Note
This view is available starting with V4.0.0.
Purpose
The GV$OB_TRANSACTION_PARTICIPANTS view displays the participant information of active transactions on all OBServer nodes.
Columns
| Column | Type | Nullable | Description |
|---|---|---|---|
| TENANT_ID | bigint(20) | NO | The tenant ID. |
| SVR_IP | varchar(46) | NO | The IP address of the server. |
| SVR_PORT | bigint(20) | NO | The port number of the server. |
| SESSION_ID | bigint(20) | NO | For V4.3.x:
|
| SCHEDULER_ADDR | varchar(64) | NO | The IP address of the node where the scheduler is located. |
| TX_TYPE | varchar(11) | NO | The transaction type. |
| TX_ID | bigint(20) | NO | The transaction ID. |
| LS_ID | bigint(20) | NO | The ID of the log stream to which the transaction belongs. |
| PARTICIPANTS | varchar(1024) | NO | The participant list. |
| CTX_CREATE_TIME | timestamp(6) | YES | The time when the context was created. |
| TX_EXPIRED_TIME | timestamp(6) | YES | The time when the transaction expired. |
| STATE | varchar(9) | NO | The context commit status. |
| ACTION | varchar(10) | NO | The last executed action. |
| PENDING_LOG_SIZE | bigint(20) | NO | The size of the data to be persisted. |
| FLUSHED_LOG_SIZE | bigint(20) | NO | The size of the persisted data. |
| ROLE | varchar(8) | NO | The context role. |
| COORD | bigint(20) | NO | The ID of the corresponding coordinator (effective only after the transaction enters the commit phase). |
| LAST_REQUEST_TIME | timestamp(6) | YES | The time when the last external request was received. |
| FORMATID | bigint(20) | NO | The XID format type. |
| GLOBALID | varchar(257) | NO | The global identifier of the XA transaction. |
| BRANCHID | varchar(257) | NO | The qualifier of the XA transaction branch. |
Sample query
Query the participant information of active transactions on all OBServer nodes.
obclient [oceanbase]> SELECT * FROM oceanbase.GV$OB_TRANSACTION_PARTICIPANTS LIMIT 1\G
