Overview
Displays the tenant-level restore tasks completed by the current tenant.
Columns
Field Name |
Type |
Whether can be NULL |
Description |
|---|---|---|---|
| JOB_ID | bigint(20) | NO | Recovery Job ID, corresponding to a single recovery task |
| RESTORE_TENANT_NAME | varchar(128) | NO | Name of the restored tenant |
| RESTORE_TENANT_ID | bigint(20) | NO | Recovered Tenant ID |
| BACKUP_TENANT_NAME | varchar(128) | NO | Name of the source tenant for backup |
| BACKUP_TENANT_ID | bigint(20) | NO | Source Tenant ID for Backup |
| BACKUP_CLUSTER_NAME | varchar(128) | NO | Source cluster name for backup |
| BACKUP_DEST | longtext | NO | Backup set path, which refers to the data backup path and log archive path entered by the user. |
| RESTORE_SCN | bigint(20) unsigned | NO | User-specified restore point |
| RESTORE_SCN_DISPLAY | datetime(6) | NO | The timestamp of the user-specified restore point is represented as |
| RESTORE_OPTION | varchar(4096) | NO | The restore options specified by the user when initiating the restore. restore_option |
| RESTORE_TYPE | varchar(4096) | NO | Recovery type:
|
| START_TIMESTAMP | timestamp(6) | YES | Restored Task Start Timestamp |
| FINISH_TIMESTAMP | timestamp(6) | YES | Restored Task End Timestamp |
| STATUS | varchar(64) | NO | Recovery result:
|
| BACKUP_PIECE_LIST | longtext | NO | List of log archive shard paths to restore. Separate shards with commas. , Separate them with commas. For example: file:///data/nfs/backup/archive/2_1_2,file:///data/nfs/backup/archive/2_1_3 |
| BACKUP_SET_LIST | longtext | NO | List of data backup set paths to restore. Separate backup sets with commas (,). , Separate them with commas, for example: file:///data/nfs/backup/data/backup_set_1_full,file:///data/nfs/backup/data/backup_set_2_inc |
| BACKUP_CLUSTER_VERSION | bigint(20) | NO | Version of the source cluster to be backed up |
| LS_COUNT | bigint(20) | NO | Total restored log streams |
| FINISH_LS_COUNT | bigint(20) | NO | Number of Log Streams Restored |
| TABLET_COUNT | bigint(20) | NO | Total Number of Restored Shards |
| FINISH_TABLET_COUNT | bigint(20) | NO | Number of Restored Shards |
| TOTAL_BYTES | bigint(20) | NO | Total Bytes Restored |
| TOTAL_BYTES_DISPLAY | varchar(27) | NO | Total bytes restored, displayed in storage capacity units |
| FINISH_BYTES | bigint(20) | NO | Number of bytes restored |
| FINISH_BYTES_DISPLAY | varchar(27) | NO | Number of bytes restored, in storage capacity units |
| DESCRIPTION | varchar(1024) | YES | Specified in the restore command DESCRIPTION Information |
| COMMENT | varchar(1024) | YES | Record failure information when recovery fails |
Sample query
Users can query the restore tasks completed in the current tenant.
obclient [oceanbase]> SELECT * FROM oceanbase.DBA_OB_RESTORE_HISTORY\G
The query result is as follows:
*************************** 1. row ***************************
JOB_ID: 3
RESTORE_TENANT_NAME: AUX_RECOVER$1736315512813183
RESTORE_TENANT_ID: 1012
BACKUP_TENANT_NAME: mysql001
BACKUP_TENANT_ID: 1002
BACKUP_CLUSTER_NAME: test425
BACKUP_DEST: file:///home/admin/oceanbase/arglog,file:///home/admin/oceanbase/backupdata
RESTORE_SCN: 1736315345952321000
RESTORE_SCN_DISPLAY: 2025-01-08 13:49:05.952321
RESTORE_OPTION: pool_list=rptest
RESTORE_TYPE: QUICK
START_TIMESTAMP: 2025-01-08 13:51:52.836523
FINISH_TIMESTAMP: 2025-01-08 13:55:55.937792
STATUS: SUCCESS
BACKUP_PIECE_LIST: file:///home/admin/oceanbase/arglog/piece_d1001r1p1,file:///home/admin/oceanbase/arglog/piece_d1001r1p2
BACKUP_SET_LIST: file:///home/admin/oceanbase/backupdata/backup_set_5_full
BACKUP_CLUSTER_VERSION: 17180001538
LS_COUNT: 2
FINISH_LS_COUNT: 0
TABLET_COUNT: 1258
FINISH_TABLET_COUNT: 1258
TOTAL_BYTES: 56561873
TOTAL_BYTES_DISPLAY: 53.94MB
FINISH_BYTES: 0
FINISH_BYTES_DISPLAY: 0.00MB
DESCRIPTION: NULL
COMMENT:
1 row in set
References
View all completed tenant-level restore tasks for a tenant: CDB_OB_RESTORE_HISTORY
View the current execution progress of all tenant physical restore tasks: CDB_OB_RESTORE_PROGRESS
For detailed operations and instructions on viewing the physical restore result, see View the physical restore result.