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 > meaning of a "lock name"

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-12-04, 12:22
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
meaning of a "lock name"

I'm just wondering if any meaningful information can be obtained by interpreting a lock name as it appears in the lock snapshot, e.g.

Code:
Lock Name                   = 0xA6B2A69FA4A17C7D9176505041
Reply With Quote
  #2 (permalink)  
Old 04-13-04, 03:48
nitingm nitingm is offline
Registered User
 
Join Date: Jul 2003
Location: Austin, TX, USA
Posts: 278
Hexadecimal Code

Hi,

This seems a hexadecimal code. We have tried many options to intercept what it is all about however we have had no success.

Please let us know if you have some break through.

Thanks in Advance.
__________________
HTH

Nitin

Ask the experienced rather than the learned
Reply With Quote
  #3 (permalink)  
Old 04-13-04, 08:25
J Petruk J Petruk is offline
Registered User
 
Join Date: Mar 2004
Location: Toronto, ON, Canada
Posts: 513
Re: Hexadecimal Code

The documentation says:
"Internal binary lock name. This element serves as a unique identifier
for locks."

What more do you need? Curious.

jono
__________________
--
Jonathan Petruk
DB2 Database Consultant
Reply With Quote
  #4 (permalink)  
Old 04-13-04, 08:34
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,198
For a row lock, I think it is the table id and RID.
__________________
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
  #5 (permalink)  
Old 04-13-04, 09:19
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
Re: Hexadecimal Code

Quote:
Originally posted by J Petruk
The documentation says:
"Internal binary lock name. This element serves as a unique identifier
for locks."

What more do you need? Curious.

It is I who is curious :-)
Reply With Quote
  #6 (permalink)  
Old 04-13-04, 09:37
J Petruk J Petruk is offline
Registered User
 
Join Date: Mar 2004
Location: Toronto, ON, Canada
Posts: 513
Re: Hexadecimal Code

Quote:
Originally posted by n_i
It is I who is curious :-)
You spent all Easter thinking about this, didn't you?

There seems to be some pattern to it, locks of the same type seem to share the same characters, locks on the same table seem to share some characters... I doubt they publish anything official on the subject though.

I think it goes tablespace id -> object id (table) -> a bunch of other stuff -> lock type (row/mode)?
__________________
--
Jonathan Petruk
DB2 Database Consultant
Reply With Quote
  #7 (permalink)  
Old 04-13-04, 12:42
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
Re: Hexadecimal Code

Does it name include the database seed also ?

Cheers
sathyaram

Quote:
Originally posted by J Petruk
You spent all Easter thinking about this, didn't you?

There seems to be some pattern to it, locks of the same type seem to share the same characters, locks on the same table seem to share some characters... I doubt they publish anything official on the subject though.

I think it goes tablespace id -> object id (table) -> a bunch of other stuff -> lock type (row/mode)?
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
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