Note
This view is available starting with V4.0.0.
Purpose
This view displays tasks related to all OBServer nodes.
Columns
| Column | Type | Nullable | Description |
|---|---|---|---|
| JOB_ID | bigint(20) | NO | The task ID. |
| JOB_TYPE | varchar(128) | NO | The task type. DELETE_SERVER indicates a task to delete an OBServer node. |
| JOB_STATUS | varchar(128) | NO | The task status. INPROGRESS: In progressSUCCESS: SuccessfulFAILED: Failed |
| RESULT_CODE | bigint(20) | YES | The task exit code. |
| PROGRESS | bigint(20) | NO | The task progress, in percentage. Valid values: [0, 100] |
| START_TIME | timestamp(6) | YES | The time when the task was started. |
| MODIFY_TIME | timestamp(6) | YES | The time when the task was last modified. |
| SVR_IP | varchar(46) | YES | The IP address of the target server. |
| SVR_PORT | bigint(20) | YES | The port number of the target server. |
| SQL_TEXT | longtext | YES | The SQL statement related to the task. |
| EXTRA_INFO | varchar(512) | YES | Additional information. |
| RS_SVR_IP | varchar(46) | NO | The IP address of the Root Service server. |
| RS_SVR_PORT | bigint(20) | NO | The port number of the Root Service server. |
Sample query
Query all tasks related to OBServer nodes in the cluster as the sys tenant.
obclient [oceanbase]> SELECT * FROM oceanbase.DBA_OB_SERVER_JOBS;