一起学习网 一起学习网


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

网络编程 Oracle 视图 V$LATCHHOLDER 官方解释,作用,如何使用详细说明 10-15

本站中文解释

V$LATCHHOLDER是一个视图,允许用户查询有关当前系统中等待锁定的事务以及其占有量的信息。它显示那些正在保留同一锁由于事务挂起时,不会释放它所持有的锁等待资源情况。它为管理员提供系统性能及数据库实例健康性的检查。

要使用V$LATCHHOLDER,请执行以下步骤:
1.确保已登录到数据库中。
2.执行“SELECT * FROM V$LATCHHOLDER”查询以查看当前系统中等待锁定的事务以及其占有量的信息。
3.查看返回的结果,以审查当前系统中正在持有的所有锁。
4.查看可疑会话中持有的锁,为了查看它们是否会导致任何冲突。
5.观察V$LATCHHOLDER视图中的等待时间,以识别潜在的性能问题。

官方英文解释

V$LATCHHOLDER displays information about the current latch holders.

ColumnDatatypeDescription

PID

NUMBER

Identifier of the process holding the latch

SID

NUMBER

Identifier of the session that owns the latch

LADDR

RAW(4 | 8)

Latch address

NAME

VARCHAR2(64)

Name of the latch being held

GETS

NUMBER

Number of times that the latch was obtained in either wait mode or no-wait mode

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


编辑:一起学习网

标签:占有量,系统,事务,视图,中正