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 | bigint(20) | NO | The ID of the backup set. |
| DEST_ID | bigint(20) | NO | The ID of the backup path. |
| INCARNATION | bigint(20) | NO | The number of incarnations after Flashback Database. |
| BACKUP_TYPE | varchar(64) | NO | The backup type. Valid values: |
| PREV_FULL_BACKUP_SET_ID | bigint(20) | NO | The ID of the previous full backup set that the current backup set depends on. |
| PREV_INC_BACKUP_SET_ID | bigint(20) | NO | The ID of the previous incremental backup set that the current backup set depends on. |
| START_TIMESTAMP | timestamp(6) | NO | The timestamp when the backup set started to be backed up. |
| END_TIMESTAMP | timestamp(6) | NO | The timestamp when the backup set ended the backup. |
| STATUS | varchar(64) | NO | The status of the backup. |
| FILE_STATUS | varchar(64) | NO | The file status of the backup set. Valid values: |
| ELAPSED_SECONDES | decimal(22,0) | NO | The backup duration. |
| PLUS_ARCHIVELOG | varchar(4096) | NO | Indicates whether to complete the logs. |
| START_REPLAY_SCN | bigint(20) unsigned | NO | The SCN of the log replay that the backup set depends on. |
| START_REPLAY_SCN_DISPLAY | datetime(6) | NO | The timestamp of the log replay that the backup set depends on. |
| MIN_RESTORE_SCN | bigint(20) unsigned | NO | The latest SCN that can be restored from the backup set. |
| MIN_RESTORE_SCN_DISPLAY | varchar(4096) | NO | The timestamp of the earliest SCN that can be restored from the backup set. |
| INPUT_BYTES | bigint(20) | YES | The number of input bytes. |
| OUTPUT_BYTES | bigint(20) | YES | The number of output bytes. |
| OUTPUT_RATE_BYTES | decimal(28,4) | NO | The number of output bytes per second. |
| EXTRA_META_BYTES | bigint(20) | YES | The number of extra bytes. |
| TABLET_COUNT | bigint(20) | YES | The total number of tablets in the backup. |
| FINISH_TABLET_COUNT | bigint(20) | YES | The total number of tablets that have been backed up. |
| MACRO_BLOCK_COUNT | bigint(20) | YES | The total number of macroblocks in the backup. |
| FINISH_MACRO_BLOCK_COUNT | bigint(20) | YES | The total number of macroblocks that have been backed up. |
| FILE_COUNT | bigint(20) | YES | The number of backup files. |
| META_TURN_ID | bigint(20) | YES | The turn of the backup meta data. |
| DATA_TURN_ID | bigint(20) | YES | The turn of the backup data. |
| RESULT | bigint(20) | NO | The error code of the backup. |
| COMMENT | varchar(4096) | YES | The description of the error code. |
| ENCRYPTION_MODE | varchar(64) | YES | The encryption mode. Valid values: Only the None and Password modes are supported. |
| PASSWD | varchar(128) | YES | The password. |
| TENANT_COMPATIBLE | varchar(4096) | NO | The version of the tenant. |
| BACKUP_COMPATIBLE | bigint(20) | NO | The version of the backup set. |
| PATH | varchar(4096) | YES | The backup path. |
| CLUSTER_VERSION | varchar(4096) | NO | The version of the cluster. |
| CONSISTENT_SCN | bigint(20) unsigned | NO | The consistent SCN of the backup. |
| MINOR_TURN_ID | bigint(20) | NO | The turn when the minor data backup ends. |
| MAJOR_TURN_ID | bigint(20) | NO | The turn when the major data backup ends. |
Sample query
Query the file status of a backup set in the current tenant.
obclient [oceanbase]> SELECT * FROM oceanbase.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/backupdata
CLUSTER_VERSION: 4.2.5.2
CONSISTENT_SCN: 1736229758690261000
MINOR_TURN_ID: 1
MAJOR_TURN_ID: 1
1 row in set