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 > Current db2 log chain ?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-26-10, 05:29
vilius vilius is offline
Registered User
 
Join Date: Nov 2007
Posts: 55
Current db2 log chain ?

Hello,

running db2 v9.5 on AIX v6.1
I'm writing a script and want to get current db2 log chain.

Using VENDOR not DISK:.. as log archive target.
Any db2 commands to do that ?

thanks
Vilius
Reply With Quote
  #2 (permalink)  
Old 01-26-10, 07:17
nvk@vhv nvk@vhv is offline
Registered User
 
Join Date: Jan 2010
Posts: 294
It depends on the Options of the 3rd Party tools. If they can display the current logchain.

I don't know any db2 command to see the current logchain. DB2 writes an entry in db2diag.log for each archived logfile. Maybe you can parse the db2diag.log. We are using TSM and the entries have the eduid 5772.

> db2diag -eduid 5772

...
2010-01-19-07.11.04.328000+060 I11713613F439 LEVEL: Warning
PID : 820 TID : 5772 PROC : db2syscs.exe
INSTANCE: DB2 NODE : 000
EDUID : 5772 EDUNAME: db2logmgr (DBNAME)
FUNCTION: DB2 UDB, data protection services, sqlpgArchiveLogFile, probe:3180
MESSAGE : Completed archive for log file S0000544.LOG to TSM chain 1 from
...

Cheers
nvk
Reply With Quote
  #3 (permalink)  
Old 01-26-10, 19:42
db2girl db2girl is offline
∞∞∞∞∞∞
 
Join Date: Aug 2008
Location: Toronto, Canada
Posts: 1,816
list history archive log should also give you the current log chain (look for C0000001, C0000002, etc...)
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