---------------------------------------------------------------------------
TYPE Name ID1 ID2
~~~~ ~~~~ ~~~ ~~~
TX Transaction Decimal RBS & slot Decimal WRAP number
(0xRRRRSSSS RRRR = RBS number, SSSS = slot)
A TX lock is requested in eXclusive mode if we are waiting on a ROW.
A SHARE mode request implies we are waiting some other resource held
by the TX (Eg: waiting for an ITL entry)
TM Table Locks Object id of table. Always 0.
TS Temp Segment TS# Relative DBA
ST Space Transaction Only ONE enqueue.
UL User Locks
3.实例说明 TM 表级锁时 ID1 和 ID2 的含义
以最常见的 TM 表级锁定为例,ID1 表示被锁定的对象的 OBJECT_ID,ID2 此时为“0”。
1)模拟 TM 标记锁
(1)创建测试用表 T
sec@ora10g> create table t (x varchar2(8));
评论