Note
This view is available starting with V4.2.1.
Overview
Displays the result of the import task for the current tenant.
Columns
Column |
Type |
Is NULL |
Description |
|---|---|---|---|
| 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 | Import End Status: IMPORT_FINISH |
| IMPORT_ALL | tinyint(4) | NO | Specifies whether to import all tables in the entire tenant. This parameter is valid only when you specify the value of theRECOVER TABLE *.*When the time is up, this value is 1; in other scenarios, it is 0. |
| 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 TABLEGROUP list remaps tables from the source tablegroup to the target tablegroup. 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
You can view the import task results of the current tenant.
obclient [oceanbase]> SELECT * FROM oceanbase.DBA_OB_IMPORT_TABLE_JOB_HISTORY\G
A sample query is as follows:
*************************** 1. row ***************************
JOB_ID: 6
INITIATOR_TENANT_ID: 1002
INITIATOR_JOB_ID: 5
START_TIMESTAMP: 2025-01-07 16:11:32.874841
FINISH_TIMESTAMP: 2025-01-07 16:12:33.333660
SRC_TENANT_NAME: AUX_RECOVER$1736237253959061
SRC_TENANT_ID: 1008
STATUS: IMPORT_FINISH
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: 1
FINISHED_TABLE_COUNT: 1
FAILED_TABLE_COUNT: 0
RESULT: SUCCESS
COMMENT: import succeed table count: 1, failed table count: 0
DESCRIPTION: NULL
1 row in set
