Overview
Displays task information at the tenant level.
Columns
Field Name |
Type |
Whether can be NULL |
Description |
|---|---|---|---|
| JOB_ID | bigint(20) | NO | Task ID |
| JOB_TYPE | varchar(128) | NO | Task type:
|
| JOB_STATUS | varchar(128) | NO | Task status:
|
| RESULT_CODE | bigint(20) | YES | Task End Code |
| PROGRESS | bigint(20) | NO | Task progress percentage, which ranges from 0 to 100. |
| START_TIME | timestamp(6) | YES | Task Start Time |
| MODIFY_TIME | timestamp(6) | YES | Last Modified Time |
| TENANT_ID | bigint(20) | YES | Tenant ID |
| SQL_TEXT | longtext | YES | Related SQL strings |
| EXTRA_INFO | varchar(512) | YES | Additional information |
| RS_SVR_IP | varchar(46) | NO | Root Service Server IP Address |
| RS_SVR_PORT | bigint(20) | NO | Root Service Server Port Number |
Sample query
The system tenant queries the tenant task information of all tenants.
obclient [oceanbase]> SELECT * FROM oceanbase.DBA_OB_TENANT_JOBS\G
The query result is as follows:
*************************** 1. row ***************************
JOB_ID: 6
JOB_TYPE: ALTER_TENANT_PRIMARY_ZONE
JOB_STATUS: SUCCESS
RESULT_CODE: 0
PROGRESS: 100
START_TIME: 2025-01-10 10:33:52.307613
MODIFY_TIME: 2025-01-10 10:33:52.312021
TENANT_ID: 1002
SQL_TEXT: ALTER TENANT mysql001 PRIMARY_ZONE='RANDOM'
EXTRA_INFO: FROM: 'zone1', TO: 'RANDOM'
RS_SVR_IP: 172.xx.xxx.xxx
RS_SVR_PORT: 2882
1 row in set