Overview
In parallel execution scenarios, it displays the execution information of each thread for all tenants across all OBServer nodes.
Columns
Field |
Type |
Nullable |
Description |
|---|---|---|---|
| SESSION_ID | bigint(20) | NO |
|
| TENANT_ID | bigint(20) | NO | Tenant ID |
| SVR_IP | varchar(46) | NO | Server IP Address |
| SVR_PORT | bigint(20) | NO | Server Port |
| TRACE_ID | varchar(128) | NO | SQL trace_id |
| QC_ID | bigint(20) | NO | qc_id in px |
| SQC_ID | bigint(20) | NO | sqc_id in px |
| WORKER_ID | bigint(20) | NO | Thread ID |
| DFO_ID | bigint(20) | NO | dfo_id in px |
| START_TIME | timestamp(6) | NO | Time when the thread starts running |
Sample query
In the sys tenant, view the execution information of all threads for all tenants across all OBServer nodes in parallel execution scenarios.
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: Y4Cxxxxxxxxxxxxxxxxxxxxxxxxxxxxx-0-0
QC_ID: 1
SQC_ID: 0
WORKER_ID: 0
DFO_ID: 0
START_TIME: 2023-04-23 17:29:17.372461
***************** 2. row *****************
SESSION_ID: 3221520410
TENANT_ID: 1004
SVR_IP: 192.xx.xx.xx
SVR_PORT: 19510
TRACE_ID: Y4Cxxxxxxxxxxxxxxxxxxxxxxxxxxxxx-0-0
QC_ID: 1
SQC_ID: 0
WORKER_ID: 0
DFO_ID: 0
START_TIME: 2023-04-23 17:29:15.372461
2 rows in set