欢迎光临
我们一直在努力

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

本站中文解释

Oracle视图DBA_BLOCKERS是数据库中所有阻塞会话的显示信息,用来查找正在等待下一个事务的完成的会话。可以认为DBA_BLOCKERS的功能类似于SELECT BLOCKING_SESSION_ID FROM V$SESSION,该视图不仅能显示那些被阻塞的sessions,也显示阻塞它们的sessions。

可以使用以下语句查询Oracle视图DBA_BLOCKERS:
SELECT * FROM DBA_BLOCKERS;

该语句会显示特定会话正在等待一个事务完成,以及阻塞该会话的其他会话。在查看视图中的列时重点应该集中在BLOCKING_SESSION_ID和SESSION_ID,以确定谁在被阻塞。

官方英文解释

DBA_BLOCKERS displays a session if it is not waiting for a locked object but is holding a lock on an object for which another session is waiting.

In an Oracle RAC environment, this only applies if the blocker is on the same instance.

Column Datatype NULL Description

HOLDING_SESSION

NUMBER

Session holding a lock

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 multitenant container database (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

赞(0)
【声明】:本博客不参与任何交易,也非中介,仅记录个人感兴趣的主机测评结果和优惠活动,内容均不作直接、间接、法定、约定的保证。访问本博客请务必遵守有关互联网的相关法律、规定与规则。一旦您访问本博客,即表示您已经知晓并接受了此声明通告。