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 > Lock timeout Q

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-27-08, 12:28
Kota Kota is offline
Registered User
 
Join Date: Jun 2003
Posts: 113
Lock timeout Q

Is there a way to capture locktimeout in realtime along with the tables involved and SQL.
__________________
Thanks
SK
Reply With Quote
  #2 (permalink)  
Old 03-27-08, 12:46
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
Try an event monitor.

Andy
Reply With Quote
  #3 (permalink)  
Old 03-27-08, 12:51
Kota Kota is offline
Registered User
 
Join Date: Jun 2003
Posts: 113
Does event monitor capture lock timeouts or just deadlocks? Also, since there might be overhead, any other way? I have seen that diaglevel 3 doesn't capture 911 errors.
__________________
Thanks
SK
Reply With Quote
  #4 (permalink)  
Old 03-27-08, 12:56
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
Actually, I believe that an event monitor for STATEMENT will get you what you want.

Andy
Reply With Quote
  #5 (permalink)  
Old 03-27-08, 13:04
Kota Kota is offline
Registered User
 
Join Date: Jun 2003
Posts: 113
It just gives me the SQL,execution times, rows written/read ...Thats all
__________________
Thanks
SK
Reply With Quote
  #6 (permalink)  
Old 03-27-08, 13:10
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
You should also get sqlcode, sqlerrd1, sqlerrd2, sqlerrd3, sqlerrd4, sqlerrd5, sqlerrd6,sqlerrm, sqlerrp, sqlstate, sqlwarn, etc.

Andy
Reply With Quote
  #7 (permalink)  
Old 03-27-08, 13:15
Kota Kota is offline
Registered User
 
Join Date: Jun 2003
Posts: 113
Thanks. I see an SQLCODE. Probably it captures 911 too. So,from your response, it looks like this might be the only option.
__________________
Thanks
SK
Reply With Quote
  #8 (permalink)  
Old 03-27-08, 13:24
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
Only if you do not want to change the application to capture this information.

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