Note
This view is available starting with V4.0.0.
Purpose
This view displays the file status of a backup set.
Columns
| Column | Type | Nullable | Description |
|---|---|---|---|
| BACKUP_SET_ID | NUMBER(38) | NO | The ID of the backup set. |
| DEST_ID | NUMBER(38) | NO | The ID of the backup path. |
| INCARNATION | NUMBER(38) | NO | The number of incarnations after Flashback Database. |
| BACKUP_TYPE | VARCHAR2(64) | NO | The backup type. Valid values: |
| PREV_FULL_BACKUP_SET_ID | NUMBER(38) | NO | The ID of the previous full backup set on which the current backup set is based. |
| PREV_INC_BACKUP_SET_ID | NUMBER(38) | NO | The ID of the previous incremental backup set on which the current backup set is based. |
| START_TIMESTAMP | VARCHAR2(256) | NO | The timestamp when the backup set was started. |
| END_TIMESTAMP | VARCHAR2(256) | NO | The timestamp when the backup set was ended. |
| STATUS | varchar2(64) | NO | The status of the backup. |
| FILE_STATUS | varchar2(64) | NO | The file status of the backup set. Valid values: |
| ELAPSED_SECONDES | NUMBER | NO | The duration of the backup. |
| PLUS_ARCHIVELOG | varchar2(4096) | NO | Indicates whether the archive log is included. |
| START_REPLAY_SCN | NUMBER(38) | NO | The SCN of the log replay on which the backup set is based. |
| START_REPLAY_SCN_DISPLAY | TIMESTAMP(9) | NO | The timestamp of the log replay on which the backup set is based. |
| MIN_RESTORE_SCN | NUMBER(38) | NO | The latest SCN that can be restored from the backup set. |
| MIN_RESTORE_SCN_DISPLAY | VARCHAR2(4096) | NO | The earliest timestamp that can be restored from the backup set. |
| INPUT_BYTES | NUMBER(38) | YES | The number of input bytes. |
| OUTPUT_BYTES | NUMBER(38) | YES | The number of output bytes. |
| OUTPUT_RATE_BYTES | NUMBER | NO | The number of output bytes per second. |
| EXTRA_META_BYTES | NUMBER(38) | YES | The number of extra bytes. |
| TABLET_COUNT | NUMBER(38) | YES | The total number of tablets backed up. |
| FINISH_TABLET_COUNT | NUMBER(38) | YES | The total number of tablets completed in the backup. |
| MACRO_BLOCK_COUNT | NUMBER(38) | YES | The total number of macroblocks backed up. |
| FINISH_MACRO_BLOCK_COUNT | NUMBER(38) | YES | The total number of macroblocks completed in the backup. |
| FILE_COUNT | NUMBER(38) | YES | The number of backup files. |
| META_TURN_ID | NUMBER(38) | YES | The turn of the backup of metadata. |
| DATA_TURN_ID | NUMBER(38) | YES | The turn of the backup of data. |
| RESULT | NUMBER(38) | NO | The error code of the backup. |
| COMMENT | varchar2(4096) | YES | The description of the backup error code. |
| ENCRYPTION_MODE | varchar2(64) | YES | The encryption mode. Valid values: Only the None and Password modes are supported. |
| PASSWD | varchar2(128) | YES | The password. |
| TENANT_COMPATIBLE | varchar2(4096) | NO | The version of the tenant. |
| BACKUP_COMPATIBLE | NUMBER(38) | NO | The version of the backup set. |
| PATH | varchar2(4096) | YES | The backup path. |
| CLUSTER_VERSION | varchar(4096) | NO | The version of the cluster. |
| CONSISTENT_SCN | NUMBER(38) | NO | The consistent SCN. |
| MINOR_TURN_ID | NUMBER(38) | NO | The turn when the minor data backup was completed. |
| MAJOR_TURN_ID | NUMBER(38) | NO | The turn when the major data backup was completed. |
Sample query
Query the file status of the backup set of the current user tenant.
obclient [SYS]> SELECT * FROM SYS.DBA_OB_BACKUP_SET_FILES\G
The query result is as follows:
*************************** 1. row ***************************
BACKUP_SET_ID: 1
DEST_ID: 1002
INCARNATION: 1
BACKUP_TYPE: FULL
PREV_FULL_BACKUP_SET_ID: 0
PREV_INC_BACKUP_SET_ID: 0
START_TIMESTAMP: 2025-01-07 14:02:11.456564
END_TIMESTAMP: 2025-01-07 14:04:31.155906
STATUS: SUCCESS
FILE_STATUS: AVAILABLE
ELAPSED_SECONDES: 140
PLUS_ARCHIVELOG: OFF
START_REPLAY_SCN: 1736228322307513000
START_REPLAY_SCN_DISPLAY: 2025-01-07 13:38:42.307513
MIN_RESTORE_SCN: 1736229871129903000
MIN_RESTORE_SCN_DISPLAY: 2025-01-07 14:04:31.129903000
INPUT_BYTES: 217101469
OUTPUT_BYTES: 22114592
OUTPUT_RATE_BYTES: 158301.3326
EXTRA_META_BYTES: 0
TABLET_COUNT: 680
FINISH_TABLET_COUNT: 680
MACRO_BLOCK_COUNT: 104
FINISH_MACRO_BLOCK_COUNT: 103
FILE_COUNT: 0
META_TURN_ID: 1
DATA_TURN_ID: 0
RESULT: 0
COMMENT:
ENCRYPTION_MODE: NONE
PASSWD:
TENANT_COMPATIBLE: 4.2.5.2
BACKUP_COMPATIBLE: 3
PATH: file:///home/admin/oceanbase/backupdataorc
CLUSTER_VERSION: 4.2.5.2
CONSISTENT_SCN: 1736229758690261000
MINOR_TURN_ID: 1
MAJOR_TURN_ID: 1
1 row in set