Note
This view is available starting with V4.0.0.
Purpose
This view displays the completed restore tasks of the current tenant.
Columns
| Column | Type | Nullable | Description |
|---|---|---|---|
| JOB_ID | NUMBER(38) | NO | The job ID of the restore task. |
| RESTORE_TENANT_NAME | VARCHAR2(128) | NO | The name of the tenant to be restored. |
| RESTORE_TENANT_ID | NUMBER(38) | NO | The ID of the tenant to be restored. |
| BACKUP_TENANT_NAME | VARCHAR2(128) | NO | The name of the source tenant. |
| BACKUP_TENANT_ID | NUMBER(38) | NO | The ID of the source tenant. |
| BACKUP_CLUSTER_NAME | VARCHAR2(128) | NO | The name of the source cluster. |
| BACKUP_DEST | CLOB | NO | The backup set path, which is the user-specified data backup path and log archive path. |
| RESTORE_SCN | NUMBER(38) | NO | The restore SCN specified by the user. |
| RESTORE_SCN_DISPLAY | TIMESTAMP(9) | NO | The timestamp of the restore SCN specified by the user. |
| RESTORE_OPTION | VARCHAR2(4096) | NO | The restore option specified by the user when initiating the restore task. |
| START_TIMESTAMP | TIMESTAMP(6) WITH LOCAL TIME ZONE | YES | The start timestamp of the restore task. |
| FINISH_TIMESTAMP | TIMESTAMP(6) WITH LOCAL TIME ZONE | YES | The end timestamp of the restore task. |
| STATUS | VARCHAR2(64) | NO | The restore result. Valid values:
|
| BACKUP_PIECE_LIST | CLOB | NO | The list of log archive shard paths required for the restore task, separated by commas (,). For example: file:///data/nfs/backup/archive/2_1_2,file:///data/nfs/backup/archive/2_1_3 |
| BACKUP_SET_LIST | CLOB | NO | The list of data backup set paths required for the restore task, separated by commas (,). For example: file:///data/nfs/backup/data/backup_set_1_full,file:///data/nfs/backup/data/backup_set_2_inc |
| BACKUP_CLUSTER_VERSION | NUMBER(38) | NO | The version number of the source cluster. |
| LS_COUNT | NUMBER(38) | NO | The total number of log streams to be restored. |
| FINISH_LS_COUNT | NUMBER(38) | NO | The number of log streams that have been restored. |
| TABLET_COUNT | NUMBER(38) | NO | The total number of tablets to be restored. |
| FINISH_TABLET_COUNT | NUMBER(38) | NO | The number of tablets that have been restored. |
| TOTAL_BYTES | NUMBER(38) | NO | The total number of bytes to be restored. |
| TOTAL_BYTES_DISPLAY | VARCHAR2(42) | NO | The total number of bytes to be restored, displayed in the storage capacity unit. |
| FINISH_BYTES | NUMBER(38) | NO | The number of bytes that have been restored. In this version, this value is always 0. |
| FINISH_BYTES_DISPLAY | VARCHAR2(42) | NO | The total number of bytes to be restored, displayed in the storage capacity unit. In this version, this value is always 0. |
| DESCRIPTION | VARCHAR2(1024) | NO | The DESCRIPTION information specified in the restore command. |
| COMMENT | VARCHAR2(1024) | YES | The failure information recorded when the restore task failed. |
Sample query
Query the completed restore tasks of the current tenant.
obclient [SYS]> SELECT * FROM SYS.DBA_OB_RESTORE_HISTORY\G
The query result is as follows:
*************************** 1. row ***************************
JOB_ID: 10
RESTORE_TENANT_NAME: AUX_RECOVER$1736315512813183
RESTORE_TENANT_ID: 1014
BACKUP_TENANT_NAME: oracle001
BACKUP_TENANT_ID: 1004
BACKUP_CLUSTER_NAME: test425
BACKUP_DEST: file:///home/admin/oceanbase/arglogorc,file:///home/admin/oceanbase/backupdataorc
RESTORE_SCN: 1736315345952321000
RESTORE_SCN_DISPLAY: 2025-01-08 13:49:05.952321
RESTORE_OPTION: pool_list=rptest
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/arglogorc/piece_d1001r1p1,file:///home/admin/oceanbase/arglogorc/piece_d1001r1p2
BACKUP_SET_LIST: file:///home/admin/oceanbase/backupdataorc/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