Oracle 视图 V$TRANSACTION_ENQUEUE 官方解释,作用,如何使用详细说明
本站中文解释
V$TRANSACTION_ENQUEUE视图查询当前数据库系统中有关事务锁定请求情况的信息。它显示当前每个会话正在等待获得某种类型锁定的信息,或者正在持有它们的信息。
使用方法:
SQL> SELECT SID,name,enqueue_mode,state
FROM V$transaction_enqueue
WHERE status = ‘ACTIVE’;
此查询将返回正在请求某种类型锁定的每个会话的SID、会话名称、所请求的锁定类型和锁定的状态。
官方英文解释
V$TRANSACTION_ENQUEUE
displays locks owned by transaction state objects.
Column | Datatype | Description |
---|---|---|
|
|
Address of lock state object |
|
|
Address of lock |
|
|
Identifier for session holding or acquiring the lock |
|
|
Type of lock. TX indicates transaction enqueue. |
|
|
Lock identifier #1 (depends on type) |
|
|
Lock identifier #2 (depends on type) |
|
|
Lock mode in which the session holds the lock:
|
|
|
Lock mode in which the process requests the lock:
|
|
|
Time since current mode was granted |
|
|
The lock is blocking another lock |
|
|
The ID of the container to which the data pertains. Possible values include:
|