oceanbase.DBA_OB_IMPORT_TABLE_TASKS

2026-02-05 05:53:37  Updated

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 no remapping is performed, this column is empty.
TARGET_TABLEGROUP varchar(128) YES The name of the remapped table group. If no remapping is performed, this column is empty.
TARGET_DATABASE varchar(128) YES The name of the remapped database. If no remapping is performed, this column is empty.
TARGET_TABLE varchar(128) YES The new name of the table. If no renaming is performed, this column is empty.
TABLE_COLUMN bigint(20) NO The number of columns in the table.
STATUS varchar(64) NO The status of the task. Valid values:
  • INIT: The table-level import task is initialized.
  • DOING: The table-level import task is in progress.
  • FINISH: The import task is completed.
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 are imported.
FAILED_INDEX_COUNT bigint(20) NO The number of indexes that fail 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 are imported.
FAILED_CONSTRAINT_COUNT bigint(20) NO The number of constraints that fail 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 are imported.
FAILED_REF_CONSTRAINT_COUNT bigint(20) NO The number of reference constraints that fail to be imported.
RESULT varchar(64) YES The result of the task. Valid values:
  • SUCCESS: The import task is completed.
  • FAIL: The import task fails.
COMMENT longtext YES The comment.

Sample query

Query the execution progress of the table-level import tasks in the 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

References

For more information about table-level restore, see Table-level restore.

Contact Us