Purpose
The DBA_OB_CLONE_HISTORY view displays information about completed clone jobs.
Columns
| Column | Type | Nullable? | Description |
|---|---|---|---|
| CLONE_JOB_ID | bigint(20) | NO | The ID of the clone job, which is the primary key. |
| TRACE_ID | varchar(64) | NO | The trace ID of the clone job. |
| 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 ID of the snapshot. |
| TENANT_SNAPSHOT_NAME | varchar(128) | NO | The name of the snapshot. |
| RESOURCE_POOL_ID | bigint(20) | NO | The ID of the resource pool of the cloned tenant. |
| RESOURCE_POOL_NAME | varchar(128) | NO | The name of the resource pool of the cloned tenant. |
| UNIT_CONFIG_NAME | varchar(128) | NO | The name of the unit config of the cloned tenant. |
| RESTORE_SCN | bigint(20) unsigned | NO | The target replay SCN of the cloned tenant. |
| STATUS | varchar(64) | NO | The current status of the clone job. |
| CLONE_JOB_TYPE | varchar(16) | NO | The type of the clone job. The value is FORK, which specifies to clone a tenant based on the current status of the tenant. |
| CLONE_START_TIME | timestamp(6) | NO | The start time of the clone job. |
| CLONE_FINISHED_TIME | timestamp(6) | NO | The end time of the clone job. |
| RET_CODE | bigint(20) | YES | The error code of the clone job, which can be empty. |
| ERROR_MESSAGE | varchar(512) | YES | The message displayed when the clone job fails, which can be empty. |
Sample query
obclient [oceanbase]> SELECT * FROM oceanbase.DBA_OB_CLONE_HISTORY\G
The query result is as follows:
*************************** 1. row ***************************
CLONE_JOB_ID: 1705559838946348301
TRACE_ID: YB42AC1E87C9-00060F1ACFAF0250-0-0
SOURCE_TENANT_ID: 1002
SOURCE_TENANT_NAME: mysql001
CLONE_TENANT_ID: 1006
CLONE_TENANT_NAME: clone_tnt
TENANT_SNAPSHOT_ID: 1705559839011449557
TENANT_SNAPSHOT_NAME: _inner_snapshot$1705559839011443889
RESOURCE_POOL_ID: 1003
RESOURCE_POOL_NAME: clone_tnt_pool
UNIT_CONFIG_NAME: unit001
RESTORE_SCN: 1705559840052913038
STATUS: CLONE_SYS_SUCCESS
CLONE_JOB_TYPE: FORK
CLONE_START_TIME: 2024-01-18 14:37:18.949450
CLONE_FINISHED_TIME: 2024-01-18 14:37:47.012176
RET_CODE: 0
ERROR_MESSAGE: NULL
1 row in set (0.001 sec)