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 long is database up and running

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-24-03, 05:09
grofaty grofaty is offline
Registered User
 
Join Date: Jan 2003
Posts: 1,570
How long is database up and running

Hi,

Is there any command to found out how long time is database up and running.

I can find out for Linux/Unix with command: uptime. Is there something like that on DB2 UDB v8.1 for Linux?

Thanks,
Grofaty
Reply With Quote
  #2 (permalink)  
Old 12-24-03, 05:25
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
Re: How long is database up and running

db2 get snapshot for database on <dbname> | grep 'First database connect timestamp'


Quote:
Originally posted by grofaty
Hi,

Is there any command to found out how long time is database up and running.

I can find out for Linux/Unix with command: uptime. Is there something like that on DB2 UDB v8.1 for Linux?

Thanks,
Grofaty
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
Reply With Quote
  #3 (permalink)  
Old 12-24-03, 10:48
cchattoraj cchattoraj is offline
Registered User
 
Join Date: Mar 2003
Posts: 343
get snapshot for dbm | grep -i 'start database manager timestamp'

will give the instance start timestamp

Question for Satyaram : If the database is explicitly activated after instance startup, does db2 consider that to be first connect?
Reply With Quote
  #4 (permalink)  
Old 12-24-03, 11:27
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
Yes, it does ...

The interesting thing is , following activate database command, the count of the 'Application Connects' is changed to 1 but the 'high watermark for connections' remains 0


Cheers
Sathyaram
Quote:
Originally posted by cchattoraj
get snapshot for dbm | grep -i 'start database manager timestamp'

will give the instance start timestamp

Question for Satyaram : If the database is explicitly activated after instance startup, does db2 consider that to be first connect?
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
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