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

本站中文解释

V$MUTEX_SLEEP(睡眠)视图显示了所有等待睡眠的调用者,它们被阻塞等待SQL一致性读。该视图返回子程序的睡眠状态,会话ID,请求ID,被保持锁的ID,被请求的模式,还有活动睡眠的时长。

使用方法:

可以使用以下查询语句查看V$MUTEX_SLEEP视图:

SELECT * FROM V$MUTEX_SLEEP;

这可以用于检查Oracle数据库请求是否被阻塞,以及是否有请求因等待一致性读而被阻塞。

官方英文解释

V$MUTEX_SLEEP shows the wait time, and the number of sleeps for each combination of mutex type and location.

Column Datatype Description

MUTEX_TYPE

VARCHAR2(32)

Type of action/object the mutex protects

LOCATION

VARCHAR2(40)

The code location where the waiter slept for the mutex

SLEEPS

NUMBER

Number of sleeps for this MUTEX_TYPE and LOCATION

WAIT_TIME

NUMBER

Wait time in microseconds

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$MUTEX_SLEEP 官方解释,作用,如何使用详细说明