Unix Technical Forum

locks_held_top - Maximum Number of Locks Held monitor element

This is a discussion on locks_held_top - Maximum Number of Locks Held monitor element within the DB2 forums, part of the Database Server Software category; --> Description The maximum number of locks held during this transaction. It's not true. :-( When I tried found longest ...


Go Back   Unix Technical Forum > Database Server Software > DB2

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-27-2008, 05:38 AM
bughunter@ru
 
Posts: n/a
Default locks_held_top - Maximum Number of Locks Held monitor element

Description
The maximum number of locks held during this transaction.


It's not true. :-( When I tried found longest transactions I see
next picture:

uow_start_time T1, uow_stop T2, locks_held_top > 0

In monitor for statements

- connect
- declare/open/fetch
- close cursor (isolation CS or UR, readonly)
(T1) - commit
(T2) - commit

Between T1 and T2 no activities. But Locks_held_top > 0.

Bug or feature?

Andy

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-27-2008, 05:38 AM
Sean McKeough
 
Posts: n/a
Default Re: locks_held_top - Maximum Number of Locks Held monitor element

How do you know you don't have catalog table or package locks? Get a
lock snapshot snapshot for the application to see what locks you're holding.

bughunter@ru wrote:
> Description
> The maximum number of locks held during this transaction.
>
>
> It's not true. :-( When I tried found longest transactions I see
> next picture:
>
> uow_start_time T1, uow_stop T2, locks_held_top > 0
>
> In monitor for statements
>
> - connect
> - declare/open/fetch
> - close cursor (isolation CS or UR, readonly)
> (T1) - commit
> (T2) - commit
>
> Between T1 and T2 no activities. But Locks_held_top > 0.
>
> Bug or feature?
>
> Andy
>

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-27-2008, 05:39 AM
bughunter@ru
 
Posts: n/a
Default Re: locks_held_top - Maximum Number of Locks Held monitor element

It's not possible and not interested AFTER T2. I need get snapshot
between T1 and T2. I will try catch this situation through periodical
snapshot.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-27-2008, 05:42 AM
bughunter@ru
 
Posts: n/a
Default Re: locks_held_top - Maximum Number of Locks Held monitor element

I catch and see for applications

By monitor: locks_help_top - 18

By snapshot for locks:

Application idle time = 5 hours 52 minutes 1
second
Locks held by application = 0
Number of SQL requests since last commit = 0
UOW completion status = Committed - Commit
Statement
Statement type = Static SQL Statement
Statement = Static Commit

No locks in this transaction :-(

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 08:54 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com