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 i can get the lock detail information?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-20-04, 03:42
chuxu chuxu is offline
Registered User
 
Join Date: Apr 2004
Posts: 2
how i can get the lock detail information?

i'm new user of db2(os390).
i know use -display database(**) locks to see the lock information
but i do not know how to differentiate the lock level ,row page table or ts.
when i update 1 row data,i do not know it will lock a page or a table
how can i do ?
Reply With Quote
  #2 (permalink)  
Old 04-20-04, 04:01
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,198
There are two ways:

1. Look at the tablespace definition and see what the locksize is. If the locksize is ANY keep in mind that the locksize can escalate from page to tablespace at runtime.

2. There are some monitoring tools, but I am not sure exactly all the ones that are available. Try checking the manuals. Hopefully some else can expound on this.
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390
Reply With Quote
  #3 (permalink)  
Old 04-20-04, 10:20
MahendraSetty MahendraSetty is offline
Registered User
 
Join Date: Apr 2004
Posts: 48
You can also look in the DB2 job in SDSF for the lock escalations.
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