If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > backup database $DB online use tsm "include logs ???"

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-17-11, 04:46
OEggert2706 OEggert2706 is offline
Registered User
 
Join Date: Nov 2011
Posts: 3
backup database $DB online use tsm "include logs ???"

Hi forum,
if you backup your DB2 database from command line by :

backup database ... online use tsm include logs

is there written a protocol anywhere which clearly shows that the logs too
have been saved ?

Thank you for your help.

OEggert2706
Reply With Quote
  #2 (permalink)  
Old 11-17-11, 06:49
nvk@vhv nvk@vhv is offline
Registered User
 
Join Date: Jan 2010
Posts: 294
Check db2diag.log
Reply With Quote
  #3 (permalink)  
Old 11-17-11, 07:09
OEggert2706 OEggert2706 is offline
Registered User
 
Join Date: Nov 2011
Posts: 3
DB2 backup with "include logs" ???

Quote:
Originally Posted by nvk@vhv View Post
Check db2diag.log
In db2diag.log you can read things like this :

2011-11-17-08.02.25.219924+060 E10050548E421 LEVEL: Info
PID : 393 TID : 47052750842176PROC : db2sysc 0
INSTANCE: db2vmd NODE : 000 DB : VMD
APPHDL : 0-69 APPID: *LOCAL.db2vmd.111117070002
AUTHID : DB2VMD
EDUID : 791 EDUNAME: db2agent (VMD) 0
FUNCTION: DB2 UDB, database utilities, sqlubcka, probe:838
MESSAGE : Backup complete.


But nothing on the question whether logs were included or not.

Kind regards
OEggert2706
Reply With Quote
  #4 (permalink)  
Old 11-17-11, 07:25
nvk@vhv nvk@vhv is offline
Registered User
 
Join Date: Jan 2010
Posts: 294
I've entries like these during backup:

Quote:
2011-11-17-02.34.00.938594+060 I7382E444 LEVEL: Warning
PID : 24617 TID : 47888419776848PROC : db2sysc 0
INSTANCE: ijbpmprd NODE : 000
EDUID : 23 EDUNAME: db2logmgr (JBPM_PRD) 0
FUNCTION: DB2 UDB, data protection services, sqlpgRetrieveLogFile, probe:4148
MESSAGE : Completed retrieve for log file S0003054.LOG on chain 9 to
/var/db2luw/IJBPMPRD/JBPM_PRD/tlog/NODE0000/.
Logfiles were retrieved from archive to add them to the Backup.
Reply With Quote
  #5 (permalink)  
Old 11-17-11, 09:05
OEggert2706 OEggert2706 is offline
Registered User
 
Join Date: Nov 2011
Posts: 3
DB2 Backup : Logs saved or not

There are messages like the following :

MESSAGE : Started archive for log file S0000762.LOG.
MESSAGE : Completed archive for log file S0000762.LOG to TSM chain 4 from
MESSAGE : Started retrieve for log file S0000761.LOG.
MESSAGE : Completed retrieve for log file S0000761.LOG on chain 4 to
MESSAGE : Started archive for log file S0000763.LOG.
MESSAGE : Completed archive for log file S0000763.LOG to TSM chain 4 from
MESSAGE : Started retrieve for log file S0000763.LOG.
MESSAGE : Completed retrieve for log file S0000763.LOG on chain 4 to
MESSAGE : Started retrieve for log file S0000762.LOG.
MESSAGE : Completed retrieve for log file S0000762.LOG on chain 4 to

Does this mean that the logs have been saved ?

Kind regards
OEggert2706
Reply With Quote
  #6 (permalink)  
Old 11-17-11, 18:27
db2girl db2girl is offline
∞∞∞∞∞∞
 
Join Date: Aug 2008
Location: Toronto, Canada
Posts: 1,816
Yes, if it happens at the end of an online backup.

Starting with v9.5, the logs are archived by default (online backup). If you want to be 100% sure the logs were included and can extract the image to disk, then you can use db2ckbkp to verify.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On