Note
This view is available starting with V4.2.1.
Purpose
This view displays the history of table-level cross-tenant import tasks for the current tenant.
Columns
| Column | Type | Nullable | Description |
|---|---|---|---|
| TASK_ID | VARCHAR2(4096) | NO | The load balancing task ID. |
| JOB_ID | NUMBER(38) | NO | The task ID. |
| SRC_TENANT_ID | NUMBER(38) | NO | The source tenant ID. |
| SRC_TABLESPACE | VARCHAR2(128) | YES | The TABLESPACE of the source table. |
| SRC_TABLEGROUP | VARCHAR2(128) | YES | The TABLEGROUP of the source table. |
| SRC_DATABASE | VARCHAR2(128) | YES | The DATABASE of the source table. |
| SRC_TABLE | VARCHAR2(128) | YES | The name of the source table. |
| SRC_PARTITION | VARCHAR2(64) | YES | The name of the partition of the source table. |
| TARGET_TABLESPACE | VARCHAR2(128) | YES | The remapped tablespace name. If no remapping is performed, this column is empty. |
| TARGET_TABLEGROUP | VARCHAR2(128) | YES | The remapped tablegroup name. If no remapping is performed, this column is empty. |
| TARGET_DATABASE | VARCHAR2(128) | YES | The remapped database name. If no remapping is performed, this column is empty. |
| TARGET_TABLE | VARCHAR2(128) | YES | The name of the target table. |
| TABLE_COLUMN | NUMBER(38) | NO | The number of columns in the table. |
| STATUS | VARCHAR2(64) | NO | The import status. Valid value: FINISH. |
| START_TIMESTAMP | VARCHAR2(256) | NO | The current time of the tenant when the task started. |
| COMPLETION_TIMESTAMP | VARCHAR2(256) | NO | The current time of the tenant when the task completed. |
| CUMULATIVE_TS | NUMBER(38) | NO | The cumulative time. |
| TOTAL_INDEX_COUNT | NUMBER(38) | NO | The total number of indexes. |
| IMPORTED_INDEX_COUNT | NUMBER(38) | NO | The number of indexes that have been imported. |
| FAILED_INDEX_COUNT | NUMBER(38) | NO | The number of indexes that failed to be imported. |
| TOTAL_CONSTRAINT_COUNT | NUMBER(38) | NO | The total number of constraints. |
| IMPORTED_CONSTRAINT_COUNT | NUMBER(38) | NO | The number of constraints that have been imported. |
| FAILED_CONSTRAINT_COUNT | NUMBER(38) | NO | The number of constraints that failed to be imported. |
| TOTAL_REF_CONSTRAINT_COUNT | NUMBER(38) | NO | The total number of reference constraints. |
| IMPORTED_REF_CONSTRAINT_COUNT | NUMBER(38) | NO | The number of reference constraints that have been imported. |
| FAILED_REF_CONSTRAINT_COUNT | NUMBER(38) | NO | The number of reference constraints that failed to be imported. |
| RESULT | VARCHAR2(64) | YES | The result of the table-level restore task. Valid values: SUCCESS and FAIL. |
| COMMENT | CLOB | YES | The comment. |
Sample query
Query the history of table-level cross-tenant import tasks for the current tenant.
obclient [SYS]> SELECT * FROM SYS.DBA_OB_IMPORT_TABLE_TASK_HISTORY\G
The query result is as follows:
*************************** 1. row ***************************
TASK_ID: 247439
JOB_ID: 6
SRC_TENANT_ID: 1010
SRC_TABLESPACE: NULL
SRC_TABLEGROUP: NULL
SRC_DATABASE: ORACLE001
SRC_TABLE: t2
SRC_PARTITION: NULL
TARGET_TABLESPACE: NULL
TARGET_TABLEGROUP: NULL
TARGET_DATABASE: ORACLE001
TARGET_TABLE: NEWTB2
TABLE_COLUMN: 3
STATUS: FINISH
START_TIMESTAMP: 2025-01-07 16:11:33.111473
COMPLETION_TIMESTAMP: 2025-01-07 16:12:33.297206
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: SUCCESS
COMMENT:
1 row in set