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 | varchar(46) | NO | The IP address of the OBServer node that holds or requests the lock. |
| SVR_PORT | bigint(20) | NO | The port number of the OBServer node that holds or requests the lock. |
| TENANT_ID | bigint(20) | NO | The ID of the tenant that holds or requests the lock. |
| TRANS_ID | bigint(20) | NO | The ID of the transaction that holds or requests the lock. |
| TYPE | varchar(9) | NO | The type of the lock. Valid values:
|
| ID1 | bigint(20) | NO | Lock identifier 1.
|
| ID2 | varchar(533) | NO | Lock identifier 2.
|
| LMODE | varchar(8) | NO | The lock holding mode. Valid values:
|
| REQUEST | varchar(8) | NO | The lock requesting mode. Valid values:
|
| CTIME | bigint(20) | NO | The time to hold or wait for a lock, in seconds. |
| BLOCK | bigint(1) | NO | Indicates whether the lock requested by the current transaction is held by another transaction. Valid values:
|