GV$LATCH

2025-11-14 07:33:33  Updated

For OceanBase Database V4.2.x, this view no longer records data due to functionality adjustments starting from V4.2.5. Lock diagnosis related data can be queried through the views GV$SYSTEM_EVENT and GV$OB_ACTIVE_SESSION_HISTORY.

Purpose

The GV$LATCH view displays information about latches on all OBServer nodes in a cluster.

Columns

Column Type Nullable? Description
CON_ID bigint(20) NO The ID of the tenant.
SVR_IP varchar(46) NO The IP address of the OBServer node.
SVR_PORT bigint(20) NO The port number of the OBServer node.
ADDR varchar(256) NO At present, the value of this column is NULL.
LATCH# bigint(20) NO The subscript of the class to which the latch belongs.
LEVEL# bigint(20) NO The subscript of the level to which the latch belongs.
NAME varchar(256) NO The name of the latch.
HASH bigint(20) NO At present, the value of this column is 0.
GETS bigint(20) NO The number of successful lock operations.
MISSES bigint(20) NO The number of times that the latch entered the waiting state.
SLEEPS bigint(20) NO The total number of yields.
IMMEDIATE_GETS bigint(20) NO The number of times the try_lock operation succeeded.
IMMEDIATE_MISSES bigint(20) NO The number of times the try_lock operation failed.
SPIN_GETS bigint(20) NO The total number of spins.
WAIT_TIME bigint(20) NO The amount of time spent in waiting for the latch.

Contact Us