Note
This view is available starting with V4.0.0.
Purpose
This view displays the file status of backup sets in the current tenant.
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 a Flashback Database operation. |
| BACKUP_TYPE | varchar(1) | NO | The backup type. Valid values:
|
| PREV_FULL_BACKUP_SET_ID | bigint(20) | NO | The ID of the previous full backup that the current backup set depends on. |
| PREV_INC_BACKUP_SET_ID | bigint(20) | NO | The ID of the previous incremental backup that the current backup set depends on. |
| START_TIMESTAMP | timestamp(6) | NO | The start timestamp of the backup set. |
| END_TIMESTAMP | varchar(26) | NO | The end timestamp of the backup set. |
| STATUS | varchar(64) | NO | The status of the backup set. Valid values:
|
| 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 | varchar(26) | 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(26) | NO | The earliest timestamp 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 set. |
| 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 set. |
| 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 number of rounds of meta data in the backup set. |
| DATA_TURN_ID | bigint(20) | YES | The number of rounds of data in the backup set. |
| RESULT | bigint(20) | NO | The backup error code. |
| COMMENT | varchar(4096) | YES | The description of the backup 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 cluster version. |
| CONSISTENT_SCN | bigint(20) unsigned | NO | The backup consistency point. |
| MINOR_TURN_ID | bigint(20) | NO | The turn at which the minor data backup ends. |
| MAJOR_TURN_ID | bigint(20) | NO | The turn at which the major data backup ends. |
Sample query
Query the status of a standby cluster in the current user's tenant where BACKUP_SET_ID is 1.
obclient [oceanbase]> SELECT * FROM oceanbase.DBA_OB_BACKUP_SET_FILES WHERE BACKUP_SET_ID = 1\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: 2024-05-09 17:43:38.705117
END_TIMESTAMP: 2024-05-09 17:45:52.737037
STATUS: SUCCESS
FILE_STATUS: AVAILABLE
ELAPSED_SECONDES: 134
PLUS_ARCHIVELOG: OFF
START_REPLAY_SCN: 1715247487770235000
START_REPLAY_SCN_DISPLAY: 2024-05-09 17:38:07.770235
MIN_RESTORE_SCN: 1715247952707346000
MIN_RESTORE_SCN_DISPLAY: 2024-05-09 17:45:52.707346000
INPUT_BYTES: 175358314
OUTPUT_BYTES: 18706196
OUTPUT_RATE_BYTES: 139565.2319
EXTRA_META_BYTES: 0
TABLET_COUNT: 668
FINISH_TABLET_COUNT: 668
MACRO_BLOCK_COUNT: 83
FINISH_MACRO_BLOCK_COUNT: 83
FILE_COUNT: 0
META_TURN_ID: 1
DATA_TURN_ID: 0
RESULT: 0
COMMENT:
ENCRYPTION_MODE: NONE
PASSWD:
TENANT_COMPATIBLE: 4.3.1.0
BACKUP_COMPATIBLE: 3
PATH: file:///home/admin/oceanbase/backupdata
CLUSTER_VERSION: 4.3.1.0
CONSISTENT_SCN: 1715247841358316000
MINOR_TURN_ID: 1
MAJOR_TURN_ID: 1
1 row in set
References
View the history of backup jobs: DBA_OB_BACKUP_JOB_HISTORY
View the history of backup tasks: DBA_OB_BACKUP_TASK_HISTORY
View the details of data backup results: View data backup results
