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 to check out if ACTIVATE DATABASE command was executed?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-23-06, 04:19
grofaty grofaty is offline
Registered User
 
Join Date: Jan 2003
Posts: 1,570
How to check out if ACTIVATE DATABASE command was executed?

Hi,
1. How to check out if "ACTIVATE DATABASE" command was executed? (command: db2 activate database sample)
2. How to activate database automaticaly after db2stop command was executed?
Thanks,
Grofaty
Reply With Quote
  #2 (permalink)  
Old 10-23-06, 05:00
grofaty grofaty is offline
Registered User
 
Join Date: Jan 2003
Posts: 1,570
Hi,
I have figured out:
get snapshot for database SAMPLE

If output of above command is "No data was returned by Database System Monitor" the database is deactivated. If command returns some data, then there is one of the row is: "Database Status = Active"

Any comment?
Grofaty
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