Oracle 视图 V$ENQUEUE_STATISTICS 官方解释,作用,如何使用详细说明
本站中文解释
Oracle视图V$ENQUEUE_STATISTICS可用于检索排它锁过去一段时间的统计信息。它的记录显示了排它锁的统计信息,包括共享锁,排他锁,延迟升级锁,以及标识模式锁的数量。
用法:
首先,可以使用如下SQL语句来查询V$ENQUEUE_STATISTICS视图,以检索以下信息:
SELECT * FROM v$enqueue_statistics;
这将检索所有列中的记录,例如总数,成功数,失败数,等待数,用于排他锁请求,共享锁请求,延迟升级锁请求或符合模式锁请求的时间。
另外,也可以使用条件语句,如下例所示,以查找特定类型的数据:
SELECT * FROM v$enqueue_statistics WHERE lock_type = ‘分布式’;
此查询将显示的总数,成功数,失败数,等待数等信息,仅对于请求分布式锁的情况。
官方英文解释
V$ENQUEUE_STATISTICS displays statistics on the number of enqueue (lock) requests for each type of lock.
V$ENQUEUE_STATISTICS encompasses V$ENQUEUE_STAT and gives more detailed information (several rows for same enqueues with different reasons).
| Column | Datatype | Description |
|---|---|---|
|
| Name of the enqueue request |
|
| Type of enqueue requested |
|
| Reason for the enqueue request |
|
| Total number of enqueue requests or enqueue conversions for this type of enqueue |
|
| Total number of times an enqueue request or conversion resulted in a wait |
|
| Number of times an enqueue request or conversion was granted |
|
| Number of times an enqueue request or conversion failed |
|
| Total amount of time (in milliseconds) spent waiting for the enqueue or enqueue conversion |
|
| Description of the enqueue request |
|
| Event number |
|
| The ID of the container to which the data pertains. Possible values include:
|
See Also:
“V$ENQUEUE_STAT”
编辑:一起学习网
标签:可以使用,分布式,视图,统计信息,语句