Note
This view is available starting with V4.2.1 BP2.
Purpose
This view DBA_OB_TRANSFER_PARTITION_TASK_HISTORY displays the history of executed Transfer Partition tasks for the current tenant.
Columns
| Column | Type | Nullable | Description |
|---|---|---|---|
| TASK_ID | NUMBER(38) | NO | The unique identifier of the Transfer Partition task. |
| CREATE_TIME | TIMESTAMP(6) WITH LOCAL TIME ZONE | NO | The creation time. |
| FINISH_TIME | TIMESTAMP(6) WITH LOCAL TIME ZONE | NO | The task completion time, including successful and canceled tasks. |
| TABLE_ID | NUMBER(38) | NO | The table ID where the Transfer Partition is located. |
| OBJECT_ID | NUMBER(38) | NO | The OBJECT_ID of the Transfer Partition. |
| DEST_LS | NUMBER(38) | NO | The destination log stream. |
| BALANCE_JOB_ID | NUMBER(38) | NO | The load balancing job ID associated with the task. |
| TRANSFER_TASK_ID | NUMBER(38) | NO | The Transfer task ID associated with the task. |
| STATUS | VARCHAR2(64) | NO | The task status:
|
| COMMENT | CLOB | YES | The comment. |
Sample query
Query the history of executed Transfer Partition tasks for the current tenant.
obclient> SELECT * FROM SYS.DBA_OB_TRANSFER_PARTITION_TASK_HISTORY;
The query result is as follows:
+---------+----------------------------+----------------------------+----------+-----------+---------+----------------+------------------+-----------+---------------------------------+
| TASK_ID | CREATE_TIME | FINISH_TIME | TABLE_ID | OBJECT_ID | DEST_LS | BALANCE_JOB_ID | TRANSFER_TASK_ID | STATUS | COMMENT |
+---------+----------------------------+----------------------------+----------+-----------+---------+----------------+------------------+-----------+---------------------------------+
| 1 | 2023-11-29 16:50:55.155765 | 2023-11-29 16:51:34.000000 | 500012 | 500014 | 1003 | 26506 | 2 | COMPLETED | Partition transfer to dest LS |
| 2 | 2023-11-29 16:55:25.391784 | 2023-11-29 16:55:28.000000 | 500012 | 500014 | 1003 | -1 | -1 | FAILED | Partition is already in dest LS |
| 3 | 2023-11-30 14:28:20.647541 | 2023-11-30 14:28:57.000000 | 500012 | 500014 | 1003 | 416470 | 6 | COMPLETED | Partition transfer to dest LS |
| 4 | 2023-12-01 11:21:11.357272 | 2023-12-01 11:21:55.000000 | 500012 | 500014 | 1003 | 737367 | 10 | COMPLETED | Partition transfer to dest LS |
+---------+----------------------------+----------------------------+----------+-----------+---------+----------------+------------------+-----------+---------------------------------+
4 rows in set
References
Query the Transfer Partition tasks being processed for the current tenant: DBA_OB_TRANSFER_PARTITION_TASKS
For information about Transfer Partition operations, see the following topics: