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 level table db2

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-17-11, 09:05
georgipa georgipa is offline
Registered User
 
Join Date: Dec 2002
Location: Madrid - Spain
Posts: 282
Lock level table db2

Hi Colleagues,

Somebody can say me how to look the lock level in a table db2.


Thank you for advanced.
Reply With Quote
  #2 (permalink)  
Old 02-17-11, 09:31
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
What DB2 version and OS are you using?

Andy
Reply With Quote
  #3 (permalink)  
Old 02-17-11, 14:21
georgipa georgipa is offline
Registered User
 
Join Date: Dec 2002
Location: Madrid - Spain
Posts: 282
Hi,
I am using DB2 Version 9.5 and OS AIX 6

Thank you for advanced.
Reply With Quote
  #4 (permalink)  
Old 02-17-11, 14:25
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
Reply With Quote
  #5 (permalink)  
Old 02-17-11, 14:59
georgipa georgipa is offline
Registered User
 
Join Date: Dec 2002
Location: Madrid - Spain
Posts: 282
Hi,

I need to look if the lock level in the table is row or table, if you can give me an example is welcome.
Than yuo for advanced.
Reply With Quote
  #6 (permalink)  
Old 02-17-11, 15:02
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
Maybe you want what is in syscat.tables.locksize

Andy
Reply With Quote
  #7 (permalink)  
Old 02-18-11, 01:05
JAYANTA_DATTA JAYANTA_DATTA is offline
Registered User
 
Join Date: Oct 2004
Location: DELHI INDIA
Posts: 336
you can get the lock level info from the lock snapshot "db2 get snapshot for locks on DB_NAME".

From the snapshot look out for something like the following ( based on whether you are in V8 or V9).

Lock object type = Row
Lock mode = Exclusive Lock (X)
Lock mode requested = Next Key Share (NS)
Name of tablespace holding lock = USERSPACE1
Schema of table holding lock = DB2(R)
Name of table holding lock = STAFF
------
Lock Name = 0x00020026000000000000000054
Lock Attributes = 0x00000000
Object Type = Table
Tablespace Name = USERSPACE1
Table Schema = XXXX1
Table Name = SIXXXX1
Mode = S
__________________

Jayanta Datta
DB2 UDB DBA
IBM India, Global Delivery
New Delhi
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