Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

question about v$lock columns ID1,ID2 meaning

Dimitri AvrutinMar 20 2016 — edited Mar 20 2016

Hello,

I'm trying to understand the meaning of gv$lock view columns.

from the Oracle Documentation the columns ID1 and ID2 are depended from the lock type.

so i created a  table and I did a simple Updates from two different sessions without commit.

this is the result of gv$lock:

INST_ID ADDR KADDR SID TYPE ID1 ID2 LMODE REQUEST CTIME BLOCK
200000000B1910FB000000000B191102822TX734004374177601732
200002B15C9E3C37800002B15C9E3C3D822TM6372800301732
100002AE5366D93D000002AE5366D9430135TM637280030272
100000000B7D1FC8000000000B7D1FCD8135TX73400437417706260

checking the values, from the TM lock type I can get the ID1 value which on this lock type clearly represents OBJEC_ID, this can be seen from DBA_OBJECTS.

the ID2 on TX Lock type seems to represent the the ITL Slot of the transaction.  but i just can't understand what is the ID1 in TX lock type. I can't find it in Transactions or undo segments views. where it gets the ID1's  7340043 value from?

also, if the ID1 and ID2 values are depended on the lock type than how come there is no dictionary in the documentation of the possible values and their source\meanings?

This post has been answered by AndrewSayer on Mar 20 2016
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 17 2016
Added on Mar 20 2016
2 comments
3,046 views