V$OB_LOCKS

2025-11-27 07:27:57  Updated

Description

Displays the locks held or requested by the current user on tables.

Note

This view is introduced in V4.2.0.

Columns

Column Type NULLable Description
SVR_IP VARCHAR2(46) NO The IP address of the OBServer node that holds or requests the lock.
SVR_PORT NUMBER(38) NO The port number of the OBServer node that holds or requests the lock.
TENANT_ID NUMBER(38) NO The ID of the tenant that holds or requests the lock.
TRANS_ID NUMBER(38) NO The ID of the transaction that holds or requests the lock.
SESSION_ID NUMBER(38) NO The session ID of the transaction that holds or requests the lock.

Note

  • This column is introduced in V4.3.2 of the V4.3.x version.
  • This column is introduced in V4.2.5 of the V4.2.x version.

TYPE VARCHAR2(9) NO The lock type.
  • TM: table lock
  • TX: transaction lock
  • TR: row lock
ID1 NUMBER NO Lock identifier 1.
  • Table lock: TABLE_ID or TABLET_ID
  • Transaction lock: TX_ID
  • Row lock: TABLET_ID
ID2 VARCHAR2(553) NO Lock identifier 2.
  • Table lock: NULL
  • Transaction lock: NULL
  • Row lock: TX_ID + row rowkey
ID3 varchar(512) NO Lock identifier 3.
  • TM: TABLE_ID / TABLET_ID
  • TX: NULL
  • TR: TABLET_ID + row rowkey

Note

  • This column is introduced in V4.3.2 of the V4.3.x version.
  • This column is introduced in V4.2.5 of the V4.2.x version.

LMODE VARCHAR2(8) NO The mode in which the lock is held.
  • NONE: no lock is requested.
  • RS: row share.
  • RX: row exclusive.
  • S: share.
  • SRX: share row exclusive.
  • X: exclusive.
REQUEST VARCHAR2(8) NO The mode in which the lock is requested.
  • NONE: no lock is requested.
  • RS: row share.
  • RX: row exclusive.
  • S: share.
  • SRX: share row exclusive.
  • X: exclusive.
CTIME NUMBER(38) NO The time in microseconds for which the lock is held or waited for.
BLOCK NUMBER NO Indicates whether a lock requested by the current transaction is held by another transaction.
  • 0: the requested lock is not held by another transaction, which means that the transaction holds the lock.
  • 1: the requested lock is held by another transaction, which means that the transaction is blocked.

Contact Us