Overview
Displays the file status of backup sets for each tenant.
Columns
Field Name |
Field Name |
Whether can be NULL |
Field Name |
|---|---|---|---|
| TENANT_ID | bigint(20) | NO | Tenant ID |
| BACKUP_SET_ID | bigint(20) | NO | Backup Set ID |
| DEST_ID | bigint(20) | NO | Backup Path ID |
| INCARNATION | bigint(20) | NO | Indicates the number of forks after a flashback database operation. |
| BACKUP_TYPE | varchar(1) | NO | Backup type:
|
| PREV_FULL_BACKUP_SET_ID | bigint(20) | NO | BACKUP_SET_ID of the last full backup that the current backup set depends on |
| PREV_INC_BACKUP_SET_ID | bigint(20) | NO | BACKUP_SET_ID of the Previous Incremental Backup on Which the Current Backup Set Depends |
| START_TIMESTAMP | timestamp(6) | NO | Backup Set Backup Start Timestamp |
| END_TIMESTAMP | varchar(26) | NO | Backup Set End Time |
| STATUS | varchar(64) | NO | Backup Set Status:
|
| FILE_STATUS | varchar(64) | NO | File status of the backup set:
|
| ELAPSED_SECONDES | decimal(22,0) | NO | Backup Duration |
| PLUS_ARCHIVELOG | varchar(4096) | NO | Whether to append logs |
| START_REPLAY_SCN | bigint(20) unsigned | NO | Backup Set Dependent on Log Replay SCN |
| START_REPLAY_SCN_DISPLAY | varchar(26) | NO | Backup Set Dependency Log Playback Timestamp Offset |
| MIN_RESTORE_SCN | bigint(20) unsigned | NO | Latest Restorable SCN of Backup Set |
| MIN_RESTORE_SCN_DISPLAY | varchar(26) | NO | Minimum Restorable Timestamp for Backup Set |
| INPUT_BYTES | bigint(20) | YES | Input Bytes |
| OUTPUT_BYTES | bigint(20) | YES | Output Bytes |
| OUTPUT_RATE_BYTES | decimal(28,4) | NO | Output Bytes Per Second |
| EXTRA_META_BYTES | bigint(20) | YES | Extra Bytes |
| TABLET_COUNT | bigint(20) | YES | Total Number of Backed-up Tablets |
| FINISH_TABLET_COUNT | bigint(20) | YES | Total Backed-Up Tablets |
| MACRO_BLOCK_COUNT | bigint(20) | YES | Total Backup Macroblocks |
| FINISH_MACRO_BLOCK_COUNT | bigint(20) | YES | Total Number of Backup Macroblocks Completed |
| FILE_COUNT | bigint(20) | YES | Number of Backup Files |
| META_TURN_ID | bigint(20) | YES | Backup Meta Cycle |
| DATA_TURN_ID | bigint(20) | YES | Backup Cycle |
| RESULT | bigint(20) | NO | Backup Error Code Result |
| COMMENT | varchar(4096) | YES | Backup Error Code Description |
| ENCRYPTION_MODE | varchar(64) | YES | Encryption mode:
The following modes are supported: None and Password. |
| PASSWD | varchar(128) | YES | password |
| TENANT_COMPATIBLE | varchar(4096) | NO | Tenant version number |
| BACKUP_COMPATIBLE | bigint(20) | NO | Backup Set Version |
| PATH | varchar(4096) | YES | Backup Path |
| CLUSTER_VERSION | varchar(4096) | NO | Cluster Version |
| CONSISTENT_SCN | bigint(20) unsigned | NO | Consistent Backup Timestamp |
| MINOR_TURN_ID | bigint(20) | NO | Round of Minor Compaction Data Backup Completion |
| MAJOR_TURN_ID | bigint(20) | NO | Round of Baseline Data Backup Completion |
Sample query
The sys tenant queries the status of the standby cluster with BACKUP_SET_ID set to 1 in tenant 1002.
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 a backup task: CDB_OB_BACKUP_TASK_HISTORY
For more information about how to view backup results, see View data backup results.