Note
This view is available starting with V2.2.77.
Purpose
This view displays the file status of backup sets for each tenant.
Columns
| Column | Type | Nullable | Description |
|---|---|---|---|
| TENANT_ID | bigint(20) | NO | The ID of the tenant. |
| 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(1) | 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 starts. |
| END_TIMESTAMP | varchar(26) | NO | The timestamp when the backup set ends. |
| 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 log. |
| 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. |
| MIN_RESTORE_SCN_DISPLAY | varchar(26) | NO | The earliest timestamp that can be restored. |
| 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 completed tablets in the backup. |
| 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 completed macroblocks in the backup. |
| FILE_COUNT | bigint(20) | YES | The number of backup files. |
| META_TURN_ID | bigint(20) | YES | The number of backup meta data. |
| DATA_TURN_ID | bigint(20) | YES | The number of 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 tenant version number. |
| BACKUP_COMPATIBLE | bigint(20) | NO | The backup set version number. |
| PATH | varchar(4096) | YES | The backup path. |
| CLUSTER_VERSION | varchar(4096) | NO | The cluster version number. |
| 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 BACKUP_SET_ID 1 of the 1002 tenant in the sys tenant.
obclient [oceanbase]> SELECT * FROM oceanbase.CDB_OB_BACKUP_SET_FILES WHERE TENANT_ID = 1002 AND BACKUP_SET_ID = 1\G
The query result is as follows:
*************************** 1. row ***************************
TENANT_ID: 1002
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: CDB_OB_BACKUP_JOB_HISTORY
View the history of backup tasks: CDB_OB_BACKUP_TASK_HISTORY
View the details of a backup task: View data backup results
