Purpose
The view DBA_OB_CLONE_PROGRESS displays information about running clone tasks.
Columns
| Column | Type | Nullable? | Description |
|---|---|---|---|
| CLONE_JOB_ID | bigint(20) | NO | The ID of the clone task, which is the primary key. |
| TRACE_ID | varchar(64) | NO | The trace ID of the clone task. |
| SOURCE_TENANT_ID | bigint(20) | NO | The ID of the source tenant. |
| SOURCE_TENANT_NAME | varchar(128) | NO | The name of the source tenant. |
| CLONE_TENANT_ID | bigint(20) | NO | The ID of the cloned tenant. |
| CLONE_TENANT_NAME | varchar(128) | NO | The name of the cloned tenant. |
| TENANT_SNAPSHOT_ID | bigint(20) | NO | The snapshot ID. |
| TENANT_SNAPSHOT_NAME | varchar(128) | NO | The snapshot name. |
| RESOURCE_POOL_ID | bigint(20) | NO | The ID of the cloned tenant's resource pool. |
| RESOURCE_POOL_NAME | varchar(128) | NO | The name of the cloned tenant's resource pool. |
| UNIT_CONFIG_NAME | varchar(128) | NO | The name of the cloned tenant's unit configuration. |
| RESTORE_SCN | bigint(20) unsigned | NO | The target SCN for the cloned tenant. |
| STATUS | varchar(64) | NO | The current status of the clone task. |
| CLONE_JOB_TYPE | varchar(16) | NO | The type of clone task: FORK (clone tenant based on current tenant state). |
| CLONE_START_TIME | timestamp(6) | NO | The start time of the clone task. |
| CLONE_FINISHED_TIME | timestamp(6) | YES | The end time of the clone task. |
| RET_CODE | bigint(20) | YES | The error code of the clone task, which can be null. |
| ERROR_MESSAGE | varchar(512) | YES | The error message when the clone task fails, which can be null. |
Sample query
obclient [oceanbase]> SELECT * FROM oceanbase.DBA_OB_CLONE_PROGRESS\G
The query result is as follows:
*************************** 1. row ***************************
CLONE_JOB_ID: 1705560540805580608
TRACE_ID: YB42AC1E87C9-00060F1AD6DF0259-0-0
SOURCE_TENANT_ID: 1002
SOURCE_TENANT_NAME: mysql001
CLONE_TENANT_ID: 1010
CLONE_TENANT_NAME: clone_tnt
TENANT_SNAPSHOT_ID: 1705560540833085798
TENANT_SNAPSHOT_NAME: _inner_snapshot$1705560540833081554
RESOURCE_POOL_ID: 1005
RESOURCE_POOL_NAME: clone_tnt_pool
UNIT_CONFIG_NAME: unit001
RESTORE_SCN: 1705560541854044646
STATUS: CLONE_SYS_CREATE_TENANT
CLONE_JOB_TYPE: FORK
CLONE_START_TIME: 2024-01-18 14:49:00.804883
CLONE_FINISHED_TIME: NULL
RET_CODE: NULL
ERROR_MESSAGE: NULL
1 row in set (0.001 sec)