Oracle 视图 V$ENQUEUE_STAT 官方解释,作用,如何使用详细说明

本站中文解释

Oracle视图V$ENQUEUE_STAT显示数据库系统中锁定资源的统计信息,可以被用于监测锁定时间,等待锁定资源的会话,等待锁定锁定资源的事件。

主要用途:
1. V$ENQUEUE_STAT可用于监测锁定资源的时间,以及“等待”的会话的会话ID和事件等。
2. 该视图用于识别正在等待某些资源的会话,以用于维护处理死锁。
3. V$ENQUEUE_STAT可以帮助检测当前正在进行的事务中存在的多种资源竞争。
4. 该视图可用于跟踪持久性锁定,例如数据库DML操作时锁定的表,从而排查性能问题。
5. 它还可以帮助检测那些运行时间较长的会话,以了解是否有资源瓶颈存在。

官方英文解释

V$ENQUEUE_STAT displays statistics on the number of enqueue (lock) requests for each type of lock.

Column Datatype Description

INST_ID

NUMBER

ID of the instance

EQ_TYPE

VARCHAR2(2)

Type of enqueue requested

TOTAL_REQ#

NUMBER

Total number of enqueue requests or enqueue conversions for this type of enqueue

TOTAL_WAIT#

NUMBER

Total number of times an enqueue request or conversion resulted in a wait

SUCC_REQ#

NUMBER

Number of times an enqueue request or conversion was granted

FAILED_REQ#

NUMBER

Number of times an enqueue request or conversion failed

CUM_WAIT_TIME

NUMBER

Total amount of time (in milliseconds) spent waiting for the enqueue or enqueue conversion

CON_ID

NUMBER

The ID of the container to which the data pertains. Possible values include:

  • 0: This value is used for rows containing data that pertain to the entire CDB. This value is also used for rows in non-CDBs.

  • 1: This value is used for rows containing data that pertain to only the root

  • n: Where n is the applicable container ID for the rows containing data


数据运维技术 » Oracle 视图 V$ENQUEUE_STAT 官方解释,作用,如何使用详细说明