Note
This view is available starting with V4.0.0.
Purpose
In a parallel execution scenario, this view displays the execution information of each thread in the current tenant on all OBServer nodes.
Columns
| Column | Type | Nullable | Description |
|---|---|---|---|
| SESSION_ID | bigint(20) | NO | For V4.3.x versions:
|
| 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. |
| TRACE_ID | varchar(128) | NO | The trace ID of the SQL statement. |
| QC_ID | bigint(20) | NO | The qc_id in PX. |
| SQC_ID | bigint(20) | NO | The sqc_id in PX. |
| WORKER_ID | bigint(20) | NO | The thread ID. |
| DFO_ID | bigint(20) | NO | The dfo_id in PX. |
| START_TIME | timestamp(6) | NO | The time when the thread started running. |
Sample query
In the user tenant, view the execution information of all threads in the parallel execution scenario on all OBServer nodes.
obclient [oceanbase]> SELECT * FROM oceanbase.GV$OB_PX_WORKER_STAT\G
The query result is as follows:
***************** 1. row *****************
SESSION_ID: 3221520411
TENANT_ID: 1002
SVR_IP: 192.xx.xx.xx
SVR_PORT: 19510
TRACE_ID: Y4Cxxxxxxxxxxxxxxxxxxxxxxx-0-0
QC_ID: 1
SQC_ID: 0
WORKER_ID: 0
DFO_ID: 0
START_TIME: 2023-04-23 17:29:17.372461
1 row in set
