This view lists the locks currently held by the Oracle server and outstanding requests for a lock or latch.
Column
Datatype
Description
ADDR
RAW(4)
Address of lock state object
KADDR
RAW(4)
Address of lock
SID
NUMBER
Identifier for session holding or acquiring the lock
TYPE
VARCHAR2(2)
Type of user or system lock
The locks on the user types are obtained by user applications. Any process that is blocking others is likely to be holding one of these locks. The user type locks are:
TM - DML enqueue
TX - Transaction enqueue
UL - User supplied
The locks on the system types are held for extremely short periods of time.
ID1
NUMBER
Lock identifier #1 (depends on type)
ID2
NUMBER
Lock identifier #2 (depends on type)
LMODE
NUMBER
Lock mode in which the session holds the lock:
o 0 - none
o 1 - null (NULL)
o 2 - row-S (SS)
o 3 - row-X (SX)
o 4 - share (S)
o 5 - S/Row-X (SSX)
o 6 - exclusive (X)
REQUEST
NUMBER
Lock mode in which the process requests the lock:
o 0 - none
o 1 - null (NULL)
o 2 - row-S (SS)
o 3 - row-X (SX)
o 4 - share (S)
o 5 - S/Row-X (SSX)
o 6 - exclusive (X)
CTIME
NUMBER
Time since current mode was granted
BLOCK
NUMBER
The lock is blocking another lock
Table 3-1 Values for the TYPE Column: System Types