Note
This view is available starting with V2.2.77.
Purpose
This view shows the status of files in a backup set.
Columns
| Column | Type | Nullable | Description | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Column | Type | Nullable | Description | --- | --- | --- | --- | TENANT_ID | bigint(20) | NO | Tenant ID | ||
| BACKUP_SET_ID | bigint(20) | NO | Backup set ID. | ||||||||||
| DEST_ID | bigint(20) | NO | ID of the backup path | ||||||||||
| INCARNATION | bigint(20) | NO | The incarnation ID after Flashback Database. | ||||||||||
| BACKUP_TYPE | varchar(1) | NO | Backup type: |
||||||||||
| PREV_FULL_BACKUP_SET_ID | bigint(20) | NO | The BACKUP_SET_ID of the previous full backup on which the current backup set depends. | ||||||||||
| PREV_INC_BACKUP_SET_ID | bigint(20) | NO | The BACKUP_SET_ID of the previous incremental backup on which the current backup set relies. | ||||||||||
| START_TIMESTAMP | timestamp(6) | NO | The backup start timestamp for the backup set. | ||||||||||
| END_TIMESTAMP | varchar(26) | NO | The timestamp when backup finishes. | ||||||||||
| STATUS | varchar(64) | NO | The status of the backup set:
|
||||||||||
| FILE_STATUS | varchar(64) | NO | The file status of the backup set. Valid values are as follows: |
||||||||||
| ELAPSED_SECONDES | decimal(22,0) | NO | the backup time | ||||||||||
| PLUS_ARCHIVELOG | varchar(4096) | NO | Whether to enable logs padding. | ||||||||||
| START_REPLAY_SCN | bigint(20) unsigned | NO | The SCN at which log replay for the backup set begins | ||||||||||
| START_REPLAY_SCN_DISPLAY | varchar(26) | NO | The backup set dependent log replay timestamp | ||||||||||
| MIN_RESTORE_SCN | bigint(20) unsigned | NO | The latest SCN that the backup set can be restored to. | ||||||||||
| MIN_RESTORE_SCN_DISPLAY | varchar(26) | NO | The minimum timestamp of a backup set that can be restored. | ||||||||||
| INPUT_BYTES | bigint(20) | YES | The number of input bytes. | ||||||||||
| OUTPUT_BYTES | bigint(20) | YES | Number of bytes output. | ||||||||||
| OUTPUT_RATE_BYTES | decimal(28,4) | NO | Number of bytes output per second | ||||||||||
| EXTRA_META_BYTES | bigint(20) | YES | Extra bytes | ||||||||||
| TABLET_COUNT | bigint(20) | YES | The total number of tablets that are backed up. | ||||||||||
| FINISH_TABLET_COUNT | bigint(20) | YES | The total number of backup tablets that have completed backup. | ||||||||||
| MACRO_BLOCK_COUNT | bigint(20) | YES | The total number of macro blocks | ||||||||||
| FINISH_MACRO_BLOCK_COUNT | bigint(20) | YES | Total number of completed backup macroblocks | ||||||||||
| FILE_COUNT | bigint(20) | YES | Backup file count | ||||||||||
| Column | Type | Nullable | Description | --- | --- | --- | --- | META_TURN_ID | bigint(20) | YES | The turn ID of the META backup. | ||
| DATA_TURN_ID | bigint(20) | YES | Specifies the backup data round. | ||||||||||
| RESULT | bigint(20) | NO | The backup error code | ||||||||||
| Comment | varchar(4096) | YES | Describes the error code. | ||||||||||
| ENCRYPTION_MODE | varchar(64) | YES | The encryption mode. Valid values: |
||||||||||
| PASSWD | varchar(128) | YES | Password | ||||||||||
| TENANT_COMPATIBLE | varchar(4096) | NO | The tenant version number. | ||||||||||
| BACKUP_COMPATIBLE | bigint(20) | NO | The version number of the backup set. | ||||||||||
| PATH | varchar(4096) | YES | Backup path | ||||||||||
| CLUSTER_VERSION | varchar(4096) | NO | the cluster version number | ||||||||||
| CONSISTENT_SCN | bigint(20) unsigned | NO | Backup consistent SCN | ||||||||||
| MINOR_TURN_ID | bigint(20) | NO | The minor compaction round when the data backup ends. | ||||||||||
| MAJOR_TURN_ID | bigint(20) | NO | The major turn when the baseline backup of the data ends. |
Sample query
The system tenant checks the file status of the backup sets for tenant with ID 1002.
obclient [oceanbase]> SELECT * FROM oceanbase.CDB_OB_BACKUP_SET_FILES WHERE TENANT_ID = 1002\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: 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