Note
This view is available starting with V4.2.1.
Overview
Displays information related to the import task at the tenant level.
Columns
Column |
Type |
Is NULL |
Description |
|---|---|---|---|
| TENANT_ID | bigint(20) | NO | Task Tenant ID |
| JOB_ID | bigint(20) | NO | Task ID |
| INITIATOR_TENANT_ID | bigint(20) | NO | Tenant ID of the parent task |
| INITIATOR_JOB_ID | bigint(20) | NO | JOB ID of the parent task |
| START_TIMESTAMP | timestamp(6) | NO | Current Tenant Time at Task Start |
| FINISH_TIMESTAMP | timestamp(6) | NO | Current Tenant Time at Task Completion |
| SRC_TENANT_NAME | varchar(64) | NO | Source Tenant Name |
| SRC_TENANT_ID | bigint(20) | NO | Source Tenant ID |
| STATUS | varchar(64) | NO | Task status. Valid values:
|
| IMPORT_ALL | tinyint(4) | NO | Specifies whether to import all tables in the entire tenant. This parameter is valid only when the user specifiesRECOVER TABLE *.*is 1, and 0 in other scenarios. |
| DB_LIST | longtext | YES | Database to be Fully Restored |
| TABLE_LIST | longtext | YES | Table to Restore |
| REMAP_DB_LIST | longtext | YES | The renamed database. The format is as follows:db1:new_db1, db2:newdb2 |
| REMAP_TABLE_LIST | longtext | YES | The renamed table. The format is as follows:db1.t1:new_t1, db1.t2:db2.new_t2 |
| REMAP_TABLEGROUP_LIST | longtext | YES | The remap table groups list allows you to remap tables from the original table group to the target table group. The format is as follows:tg1:new_tg1, tg2:new_tg2 |
| REMAP_TABLESPACE_LIST | longtext | YES | The list of remapped tablespaces, which indicates the tables that have been remapped from the original tablespaces to the target tablespaces. The format is as follows:ts1:new_ts1, ts2:new_ts2 |
| TOTAL_TABLE_COUNT | bigint(20) | NO | Total Tables Imported |
| FINISHED_TABLE_COUNT | bigint(20) | NO | Number of Tables Imported |
| FAILED_TABLE_COUNT | bigint(20) | NO | Number of Tables Imported Failed |
| RESULT | varchar(64) | YES | Result of the table restore task:
|
| COMMENT | longtext | YES | Remarks |
| DESCRIPTION | longtext | YES | DESCRIPTION information specified in the restore command |
Sample query
During table-level restore, the system tenant can view information related to the import task of the target tenant.
obclient [oceanbase]> SELECT * FROM oceanbase.CDB_OB_IMPORT_TABLE_JOBS\G
The query result is as follows:
*************************** 1. row ***************************
TENANT_ID: 1002
JOB_ID: 6
INITIATOR_TENANT_ID: 1002
INITIATOR_JOB_ID: 5
START_TIMESTAMP: 2025-01-07 16:11:32.874841
SRC_TENANT_NAME: AUX_RECOVER$1736237253959061
SRC_TENANT_ID: 1008
STATUS: IMPORT_TABLE
IMPORT_ALL: 0
DB_LIST:
TABLE_LIST: `infotest`.`t2`
REMAP_DB_LIST:
REMAP_TABLE_LIST: `infotest`.`t2`:`infotest`.`newtb2`
REMAP_TABLEGROUP_LIST:
REMAP_TABLESPACE_LIST:
TOTAL_TABLE_COUNT: 0
FINISHED_TABLE_COUNT: 0
FAILED_TABLE_COUNT: 0
RESULT:
COMMENT:
DESCRIPTION: NULL
1 row in set
