Note
This view is introduced since OceanBase Database V4.2.1 BP2.
Purpose
The oceanbase.DBA_OB_TRANSFER_PARTITION_TASKS view displays the ongoing partition transfer tasks of the current tenant.
Columns
| Column | Type | Nullable? | Description |
|---|---|---|---|
| TASK_ID | bigint(20) | No | The ID of the partition transfer task. |
| CREATE_TIME | timestamp(6) | Yes | The time when the task was created. |
| MODIFY_TIME | timestamp(6) | Yes | The time when the information was modified. |
| TABLE_ID | bigint(20) | No | The ID of the table from which the partition is transferred. |
| OBJECT_ID | bigint(20) | No | The OBJECT_ID of the transferred partition. |
| DEST_LS | bigint(20) | No | The destination log stream. |
| BALANCE_JOB_ID | bigint(20) | No | The ID of the load balancing job associated with the ongoing task. |
| TRANSFER_TASK_ID | bigint(20) | No | The ID of the transfer task associated with the ongoing task. |
| STATUS | varchar(64) | No | The task status. Valid values:
|
| COMMENT | longtext | Yes | The comments. |
Example
obclient> SELECT * FROM oceanbase.DBA_OB_TRANSFER_PARTITION_TASKS;
The query result is as follows:
+---------+----------------------------+----------------------------+----------+-----------+---------+----------------+------------------+--------+---------+
| TASK_ID | CREATE_TIME | MODIFY_TIME | TABLE_ID | OBJECT_ID | DEST_LS | BALANCE_JOB_ID | TRANSFER_TASK_ID | STATUS | COMMENT |
+---------+----------------------------+----------------------------+----------+-----------+---------+----------------+------------------+--------+---------+
| 4 | 2023-12-01 11:21:11.357272 | 2023-12-01 11:21:17.904857 | 500012 | 500014 | 1003 | 737367 | 9 | DOING | NULL |
+---------+----------------------------+----------------------------+----------+-----------+---------+----------------+------------------+--------+---------+
1 row in set (0.002 sec)