Note
This view is available starting with V4.2.1.
Purpose
This view displays records of table-level import tasks in the current tenant.
Columns
| Column | Type | Nullable | Description |
|---|---|---|---|
| TASK_ID | bigint(20) | NO | The load balancing task ID. |
| JOB_ID | bigint(20) | NO | The task ID. |
| SRC_TENANT_ID | bigint(20) | NO | The source tenant ID. |
| SRC_TABLESPACE | varchar(128) | YES | The TABLESPACE of the source table. |
| SRC_TABLEGROUP | varchar(128) | YES | The TABLEGROUP of the source table. |
| SRC_DATABASE | varchar(128) | YES | The DATABASE of the source table. |
| SRC_TABLE | varchar(128) | YES | The name of the source table. |
| SRC_PARTITION | varchar(64) | YES | The name of the partition of the source table. |
| TARGET_TABLESPACE | varchar(128) | YES | The name of the remapped tablespace. If there is no remapping, this column is empty. |
| TARGET_TABLEGROUP | varchar(128) | YES | The name of the remapped table group. If there is no remapping, this column is empty. |
| TARGET_DATABASE | varchar(128) | YES | The name of the remapped database. If there is no remapping, this column is empty. |
| TARGET_TABLE | varchar(128) | YES | The name of the target table of the source table. |
| TABLE_COLUMN | bigint(20) | NO | The number of columns in the table. |
| STATUS | varchar(64) | NO | The status of the task. Valid values:
|
| START_TIMESTAMP | timestamp(6) | NO | The current time of the tenant when the task starts. |
| COMPLETION_TIMESTAMP | timestamp(6) | NO | The current time of the tenant when the task is completed. |
| CUMULATIVE_TS | bigint(20) | NO | The cumulative time. |
| TOTAL_INDEX_COUNT | bigint(20) | NO | The total number of indexes. |
| IMPORTED_INDEX_COUNT | bigint(20) | NO | The number of indexes that have been imported. |
| FAILED_INDEX_COUNT | bigint(20) | NO | The number of indexes that failed to be imported. |
| TOTAL_CONSTRAINT_COUNT | bigint(20) | NO | The total number of constraints. |
| IMPORTED_CONSTRAINT_COUNT | bigint(20) | NO | The number of constraints that have been imported. |
| FAILED_CONSTRAINT_COUNT | bigint(20) | NO | The number of constraints that failed to be imported. |
| TOTAL_REF_CONSTRAINT_COUNT | bigint(20) | NO | The total number of reference constraints. |
| IMPORTED_REF_CONSTRAINT_COUNT | bigint(20) | NO | The number of reference constraints that have been imported. |
| FAILED_REF_CONSTRAINT_COUNT | bigint(20) | NO | The number of reference constraints that failed to be imported. |
| RESULT | varchar(64) | YES | The result of the table-level import task. Valid values:
|
| COMMENT | longtext | YES | The remarks. |
Sample query
Query the execution progress of table-level import tasks in the current user tenant.
obclient [oceanbase]> SELECT * FROM oceanbase.DBA_OB_IMPORT_TABLE_TASKS\G
The query result is as follows:
*************************** 1. row ***************************
TASK_ID: 475375
JOB_ID: 30
SRC_TENANT_ID: 1012
SRC_TABLESPACE: NULL
SRC_TABLEGROUP: NULL
SRC_DATABASE: infotest
SRC_TABLE: t2
SRC_PARTITION: NULL
TARGET_TABLESPACE: NULL
TARGET_TABLEGROUP: NULL
TARGET_DATABASE: infotest
TARGET_TABLE: newtb2
TABLE_COLUMN: 3
STATUS: DOING
START_TIMESTAMP: 2025-01-08 13:56:40.550958
COMPLETION_TIMESTAMP: 1970-01-01 07:59:59.999999
CUMULATIVE_TS: -1
TOTAL_INDEX_COUNT: 0
IMPORTED_INDEX_COUNT: 0
FAILED_INDEX_COUNT: 0
TOTAL_CONSTRAINT_COUNT: 0
IMPORTED_CONSTRAINT_COUNT: 0
FAILED_CONSTRAINT_COUNT: 0
TOTAL_REF_CONSTRAINT_COUNT: 0
IMPORTED_REF_CONSTRAINT_COUNT: 0
FAILED_REF_CONSTRAINT_COUNT: 0
RESULT:
COMMENT:
1 row in set