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

本站中文解释

Oracle视图V$SESSION_BLOCKERS含有当前会话的所有阻塞信息。它显示当前正阻塞此会话的其他会话及对象,和此会话已经被其他会话阻塞的信息。通过它可以了解当前特定的锁定状态。使用此视图,可以检视Oracle实例中,正处于锁定和等待状态的会话。

V$SESSION_BLOCKERS用于监控和检测阻塞。它能准确报告当前实例中由于资源竞争所引发的哪些数据库会话是被阻塞的,也可以对导致阻塞的会话进行排错。

使用此视图有两种方法:

(1)将它用于锁定和冲突解决,用于识别和解决冲突。

(2)将它用于检查正在阻塞多少会话的情况,当系统响应缓慢或用户反应时可以从中找到原因。

官方英文解释

V$SESSION_BLOCKERS displays the blocker sessions for each blocked session. Each row represents a blocked and blocker session pair. If a session is blocked by multiple sessions there will be multiple rows for that blocked session. The maximum number of blocker sessions displayed for a single blocked session is 30. If a session is not blocked by other sessions, then there will be no row in this view for that session.
Column Datatype Description

SID

NUMBER

Blocked session’s Oracle session identifier

SESS_SERIAL#

NUMBER

Blocked session’s Oracle session serial number

WAIT_ID

NUMBER

A number identifying the wait for the blocked session

WAIT_EVENT

NUMBER

Resource or event number for which the blocked session is waiting

WAIT_EVENT_TEXT

VARCHAR2(64)

Resource or event for which the blocked session is waiting

BLOCKER_INSTANCE_ID

NUMBER

Blocker session’s instance identifier

BLOCKER_SID

NUMBER

Blocker session’s Oracle session identifier

BLOCKER_SESS_SERIAL#

NUMBER

Blocker session’s Oracle session serial number

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