Oracle® Database Reference 11g Release 2 (11.2) Part Number E25513-03 |
|
|
PDF · Mobi · ePub |
V$LOCK
lists the locks currently held by the Oracle Database and outstanding requests for a lock or latch.
Column | Datatype | Description |
---|---|---|
ADDR |
RAW(4 | 8) |
Address of lock state object |
KADDR |
RAW(4 | 8) |
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:
The system type locks are listed in Table 8-1. Be aware that not all types of locks are documented. To find a complete list of locks for the current release, query the |
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:
|
REQUEST |
NUMBER |
Lock mode in which the process requests the lock:
|
CTIME |
NUMBER |
Time since current mode was granted |
BLOCK |
NUMBER |
A value of either 0 or 1, depending on whether or not the lock in question is the blocker. |
Table 8-1 Values for the TYPE Column: System Types
System Type | Description | System Type | Description |
---|---|---|---|
|
Edition enqueue |
MR |
Media recovery |
|
Lock held for the |
NA..NZ |
Library cache pin instance ( |
|
Buffer hash table instance |
|
Password File |
|
Control file schema global enqueue |
|
Parallel operation |
|
Cross-instance function invocation instance |
|
Process startup |
|
Cursor bind |
|
Row cache instance ( |
|
datafile instance |
|
Redo thread global enqueue |
|
Direct loader parallel index create |
|
System change number instance |
|
Mount/startup db primary/secondary instance |
|
SMON |
|
Distributed recovery process |
|
Sequence number instance |
|
Distributed transaction entry |
|
Sequence number enqueue |
|
File set |
|
Sort segment |
|
Space management operations on a specific segment |
|
Space transaction enqueue |
|
Instance number |
|
Sequence number value |
|
Instance recovery serialization global enqueue |
|
Generic enqueue |
|
Instance state |
|
Temporary segment enqueue (ID2=0) |
|
Library cache invalidation instance |
|
New block allocation enqueue (ID2=1) |
|
Job queue |
|
Temporary table enqueue |
|
Thread kick |
|
User name |
|
Library cache lock instance lock (A..P = namespace) |
|
Undo segment DDL |
|
Mount definition global enqueue |
|
Being-written redo log instance |