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 > DB2 monitor issue

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-14-06, 12:22
DBA-Jr DBA-Jr is offline
Registered User
 
Join Date: Mar 2005
Posts: 108
Question DB2 monitor issue

Hi All,
I have troubles to interpret the output from DB2 snapshot monitor using table function.
Statement used: select lock_wait_time,lock_waits from table(snapshot_database('dbname',-1 )) as snapshot_db

Output: LOCK_WAIT_TIME = 0, LOCK_WAITS = 1049

My question is if the total wait_time is 0, why are there some waits at all? Further more, after I RESET MONITOR ALL, the query result is till the same. What does LOCK_WAITS mean?
Any advice and input is highly appreciated. Thanks.
Reply With Quote
  #2 (permalink)  
Old 02-14-06, 12:35
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
IIRC, Lock waits is collected by default whereas time waited on locks is collected only after you switch on monitoring for LOCKS (like update monitor switches using lock on ) ..
When you swich on lock moniroting, you'll find time waited as 0, but the lock waits > 0 ..

But not sure why your RESET didn't reset the lock waits ..

What version and fix pak are your running ?

Cheers
sathyaram
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
Reply With Quote
  #3 (permalink)  
Old 02-14-06, 16:35
DBA-Jr DBA-Jr is offline
Registered User
 
Join Date: Mar 2005
Posts: 108
Hi sathyaram,
Thank you for your advice. I am using DB2 ESE V8.1 with fixpack 6.
It seems RESET MONITOR only resets counters which are controled by monitor switches, not the basic ones. Could this be true?
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