Note
This view is available starting with V4.0.0.
Purpose
This view displays the task-level backup tasks of the tenant.
Columns
| Column | Type | Nullable | Description |
|---|---|---|---|
| TASK_ID | bigint(20) | NO | Task-level backup task ID, corresponding to a backup set. |
| JOB_ID | bigint(20) | NO | JOB_ID of the task. |
| INCARNATION | bigint(20) | NO | Indicates the number of incarnations after a Flashback Database operation. |
| BACKUP_SET_ID | bigint(20) | NO | Backup set ID corresponding to the task. |
| START_TIMESTAMP | timestamp(6) | NO | Start time of the task. |
| END_TIMESTAMP | timestamp(6) | NO | End time of the task. |
| STATUS | varchar(4096) | NO | Backup status. |
| START_SCN | bigint(20) unsigned | NO | SCN at which the backup starts. |
| END_SCN | bigint(20) unsigned | NO | SCN at which the backup ends. |
| USER_LS_START_SCN | bigint(20) unsigned | NO | SCN of the backup log stream meta data. |
| ENCRYPTION_MODE | varchar(4096) | YES | Encryption mode. Valid values:
Only None and Password are supported. |
| PASSWD | varchar(4096) | YES | Password. |
| INPUT_BYTES | bigint(20) | YES | Input size in bytes. |
| OUTPUT_BYTES | bigint(20) | YES | Output size in bytes. |
| OUTPUT_RATE_BYTES | decimal(28,4) | NO | Output rate in bytes per second. |
| EXTRA_META_BYTES | bigint(20) | YES | Extra metadata size in bytes. |
| TABLET_COUNT | bigint(20) | YES | Total number of tablets backed up. |
| FINISH_TABLET_COUNT | bigint(20) | YES | Total number of tablets completed in the backup. |
| MACRO_BLOCK_COUNT | bigint(20) | YES | Number of macroblocks. |
| FINISH_MACRO_BLOCK_COUNT | bigint(20) | YES | Number of macroblocks completed in the backup. |
| FILE_COUNT | bigint(20) | YES | Number of backup files. |
| META_TURN_ID | bigint(20) | YES | Backup meta data turn. |
| DATA_TURN_ID | bigint(20) | YES | Backup data turn. |
| RESULT | bigint(20) | YES | Backup error code. |
| COMMENT | varchar(4096) | YES | Description of the error code. |
| PATH | varchar(4096) | YES | Backup path. |
| MINOR_TURN_ID | bigint(20) | NO | Turn at which the minor data backup ends. |
| MAJOR_TURN_ID | bigint(20) | NO | Turn at which the major data backup ends. |
| DATA_PROGRESS | decimal(26,2) | NO | Backup progress of the data. The progress is calculated as Number of completed macroblocks / Total number of macroblocks and is rounded to two decimal places. For example, 87.65 indicates that the backup progress is 87.65%.
NoteThis column is available starting with V4.3.1. |
| LOG_FILE_COUNT | bigint(20) | NO | Total number of archived clog files.
NoteThis column is available starting with V4.3.1. |
| FINISH_LOG_FILE_COUNT | bigint(20) | NO | Number of archived clog files completed in the backup.
NoteThis column is available starting with V4.3.1. |
| LOG_PROGRESS | decimal(26,2) | NO | The backup progress of the clog file. The calculation method is number of completed backups of the clog file / total number of clog files. The result is rounded to two decimal places. For example, 87.65 indicates that the backup progress is 87.65%.
NoteThis column is available starting with V4.3.1. |
Sample query
Query the backup tasks at the task level in the current user tenant.
obclient [oceanbase]> SELECT * FROM oceanbase.DBA_OB_BACKUP_TASKS\G
The query result is as follows:
*************************** 1. row ***************************
TASK_ID: 1
JOB_ID: 1
INCARNATION: 1
BACKUP_SET_ID: 1
START_TIMESTAMP: 2024-08-08 17:00:17.506621
END_TIMESTAMP: NULL
STATUS: BACKUP_DATA_MINOR
START_SCN: 1723107628199202000
END_SCN: 0
USER_LS_START_SCN: 1723107640573072000
ENCRYPTION_MODE: NONE
PASSWD:
INPUT_BYTES: 4200016
OUTPUT_BYTES: 906307
OUTPUT_RATE_BYTES: 0.0000
EXTRA_META_BYTES: 0
TABLET_COUNT: 667
FINISH_TABLET_COUNT: 6
MACRO_BLOCK_COUNT: 52
FINISH_MACRO_BLOCK_COUNT: 2
FILE_COUNT: 0
META_TURN_ID: 1
DATA_TURN_ID: 0
RESULT: 0
COMMENT:
PATH: file:///home/admin/oceanbase/backupdata
MINOR_TURN_ID: 1
MAJOR_TURN_ID: 1
DATA_PROGRESS: 3.85
LOG_FILE_COUNT: 0
FINISH_LOG_FILE_COUNT: 0
LOG_PROGRESS: 0.00
1 row in set
References
View the backup jobs in the current user tenant: DBA_OB_BACKUP_JOBS.
View the history of backup jobs at the job level in the current user tenant: DBA_OB_BACKUP_JOB_HISTORY.
View the history of backup tasks at the task level in the current user tenant: DBA_OB_BACKUP_TASK_HISTORY.
For more information about how to view the data backup progress, see View the data backup progress.