Purpose
The V$OB_LOCKS view displays the current user’s status for holding or requesting locks on various tables.
Note
This view is introduced since OceanBase Database 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. |
| TYPE | VARCHAR2(9) | NO | The type of the lock. Valid values:
|
| ID1 | NUMBER | NO | Lock identifier 1.
|
| ID2 | VARCHAR2(553) | NO | Lock identifier 2.
|
| LMODE | VARCHAR2(8) | NO | The lock holding mode. Valid values:
|
| REQUEST | VARCHAR2(8) | NO | The lock requesting mode. Valid values:
|
| CTIME | NUMBER(38) | NO | The time to hold or wait for a lock, in microseconds. |
| BLOCK | NUMBER | NO | Indicates whether the lock requested by the current transaction is held by another transaction. Valid values:
|