Purpose
The oceanbase.CDB_OB_RESTORE_HISTORY view displays the states of physical restore tasks upon completion. It is a snapshot of the records of the corresponding tasks in oceanbase.CDB_OB_RESTORE_PROGRESS.
Columns
| Column | Type | Nullable? | Description |
|---|---|---|---|
| TENANT_ID | bigint(20) | The ID of the tenant that performed the restore task. | |
| JOB_ID | bigint(20) | The ID of the restore job. | |
| RESTORE_TENANT_NAME | varchar(128) | The name of the tenant to be restored. | |
| RESTORE_TENANT_ID | bigint(20) | The ID of the tenant to be restored. | |
| BACKUP_TENANT_NAME | varchar(128) | The name of the backup source tenant. | |
| BACKUP_TENANT_ID | bigint(20) | The ID of the backup source tenant. | |
| BACKUP_CLUSTER_NAME | varchar(128) | The name of the backup source cluster. | |
| BACKUP_DEST | longtext | The backup set paths. The value contains the data backup path and log archive path. | |
| RESTORE_SCN | bigint(20) unsigned | The restore system change number (SCN). | |
| RESTORE_SCN_DISPLAY | varchar(26) | The restore SCN displayed as a timestamp. | |
| RESTORE_OPTION | varchar(4096) | The restore option specified when restore is initiated. | |
| START_TIMESTAMP | timestamp(6) | The start timestamp of the restore task. | |
| FINISH_TIMESTAMP | timestamp(6) | The end timestamp of the restore task. | |
| STATUS | varchar(64) | The restore result. Valid values:
|
|
| BACKUP_PIECE_LIST | longtext | The paths of log archive pieces for restore, which are separated with commas (,). Here is an example: file:///data/nfs/backup/archive/2_1_2,file:///data/nfs/backup/archive/2_1_3. |
|
| BACKUP_SET_LIST | longtext | The backup set paths for restore, which are separated with commas (,). Here is an example: file:///data/nfs/backup/data/backup_set_1_full,file:///data/nfs/backup/data/backup_set_2_inc. |
|
| BACKUP_CLUSTER_VERSION | bigint(20) | The version number of the backup source cluster. | |
| LS_COUNT | bigint(20) | The total number of log streams to restore. | |
| FINISH_LS_COUNT | bigint(20) | The total number of log streams restored. | |
| TABLET_COUNT | bigint(20) | The total number of tablets to restore. | |
| FINISH_TABLET_COUNT | bigint(20) | The number of tablets restored. | |
| TOTAL_BYTES | bigint(20) | The total number of bytes to restore. | |
| TOTAL_BYTES_DISPLAY | varchar(27) | The total number of bytes to restore, in a storage capacity unit. | |
| FINISH_BYTES | bigint(20) | The number of bytes restored. | |
| FINISH_BYTES_DISPLAY | varchar(27) | The total number of bytes restored, in a storage capacity unit. | |
| DESCRIPTION | varchar(1024) | The description specified in the restore statement. | |
| COMMENT | varchar(1024) | The information about a failed restore job. |