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 > How can I fetch the state of the DB2 database

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-24-11, 07:34
Panther1 Panther1 is offline
Registered User
 
Join Date: Jul 2011
Posts: 1
Post How can I fetch the state of the DB2 database

I have a DB2 database and I want to fetch the state (roll forward pending state). To get this information I need to connect to the database and run the command get db cfg or query the DBCFG catalog table.

Is there a way I can fetch this information without connecting to the database?

From some log or from the thread running in the OS?

Please advice...
Reply With Quote
  #2 (permalink)  
Old 07-24-11, 08:45
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
You _don't_ need to connect to the database to use GET DB CFG. You could also use db2pd or capture the SQLCODE of a CONNECT command.
Reply With Quote
  #3 (permalink)  
Old 07-25-11, 02:42
blazer789 blazer789 is offline
Registered User
 
Join Date: Jun 2009
Posts: 221
db2 "rollforward db <dbname> query status"
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