Hi Srinivas,
For First time offline backup for below steps:
Example: Unix Based Machine
1. Login as sid<adm>
2. stopsap all
3. get db cfg
Backup the database shoud be in a LOGARCHMETH1 ON / LOGRETAIN mode.
4. Login as db2<sid> (take eample: db2prd)
5. If not started database -> Start db2 with "db2start" command.
6. Connect to respective system via "db2 CONNECT to PRD". -- PRD database SID
7. Give command "db2 UPDATE DB CFG FOR PRD USING LOGARCHMETH1 DISK:/DBbackup/PRDbackup/LogBackup".
5. If not started database -> Start db2 with "db2start" command.
6. Connect to respective system via "db2 CONNECT to PRD". -- PRD database SID
7. Give command "db2 UPDATE DB CFG FOR PRD USING LOGARCHMETH1 DISK:/DBbackup/PRDbackup/LogBackup".
8. It will now show the Confirmation message Like "DB2 Configuration Has been updated".
9. Now its must to take offline backup of the database( db2 forces it as it will give message db backup pending).
10. Now issue command "db2 connect reset".
11.. Stop db2 by "db2stop". -- not mandatory
9. Now its must to take offline backup of the database( db2 forces it as it will give message db backup pending).
10. Now issue command "db2 connect reset".
11.. Stop db2 by "db2stop". -- not mandatory
12. Start db2 by "db2start". -- not mandatory
10. Issue offline backup command "db2 BACKUP DATABASE PRD TO "/DBbackup/PRDbackup". --for backup to disk
or
11. Issue offline backup command "db2 BACKUP DATABASE PRD TO "/dev/rmt0". --for backup to tape device.
or
11. Issue offline backup command "db2 BACKUP DATABASE PRD TO "/dev/rmt0". --for backup to tape device.
Thanks & Regards,
V Srinivasan