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 > active log file number

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-31-06, 19:30
udbdb2 udbdb2 is offline
Registered User
 
Join Date: Nov 2003
Posts: 121
active log file number

Is there anyway to find the active log other than "fist active" in system catalog tables ?
TIA
Reply With Quote
  #2 (permalink)  
Old 11-01-06, 08:23
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
Please specify DB2 version and OS.

Under DB2 8.x for LUW, you can use the GET DB CFG command.

HTH

Andy
Reply With Quote
  #3 (permalink)  
Old 11-01-06, 16:14
oraora oraora is offline
Registered User
 
Join Date: Jun 2006
Posts: 20
db2 8.2 OS AIX 5.2

What we are looking for is some system tables we can query if those tables are keeping track of active/archive log file numbers.
Reply With Quote
  #4 (permalink)  
Old 11-01-06, 16:35
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
As far as I know, there is no table in the catalog that contains this. Since you are on 8.2, you can do this:

CALL SYSPROC.GET_DB_CONFIG()
SELECT LOGHEAD from SESSION.DB_CONFIG FETCH FIRST 1 ROW ONLY

HTH

Andy
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