Note
This view is available starting with V4.0.0.
Purpose
This view displays all unit-related tasks.
Columns
| Column | Type | Nullable | Description |
|---|---|---|---|
| JOB_ID | bigint(20) | NO | The task ID. |
| JOB_TYPE | varchar(128) | NO | The task type. MIGRATE_UNIT indicates a unit migration task. |
| JOB_STATUS | varchar(128) | NO | The task status. INPROGRESS: In progress.SUCCESS: Successful.FAILED: 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. |
| TENANT_ID | bigint(20) | YES | The tenant ID. NULL: The unit does not belong to any tenant. |
| UNIT_ID | bigint(20) | YES | The unit ID. |
| 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 unit-related tasks in the sys tenant.
obclient [oceanbase]> SELECT * FROM oceanbase.DBA_OB_UNIT_JOBS;