Note
This view is available starting with V4.0.0.
Purpose
This view displays task-level backup tasks of the current tenant.
Columns
| Column | Type | Nullable | Description |
|---|---|---|---|
| TASK_ID | bigint(20) | NO | The ID of the task-level backup task. This ID corresponds to a backup set. |
| JOB_ID | bigint(20) | NO | The ID of the job to which the task belongs. |
| INCARNATION | bigint(20) | NO | The number of incarnations after a flashback database operation. |
| BACKUP_SET_ID | bigint(20) | NO | The ID of the backup set corresponding to the task. |
| START_TIMESTAMP | timestamp(6) | NO | The start time of the task. |
| END_TIMESTAMP | timestamp(6) | NO | The end time of the task. |
| STATUS | varchar(4096) | NO | The status of the backup. |
| START_SCN | bigint(20) unsigned | NO | The SCN at which the backup started. |
| END_SCN | bigint(20) unsigned | NO | The SCN at which the backup ended. |
| USER_LS_START_SCN | bigint(20) unsigned | NO | The SCN of the backup log stream meta data. |
| ENCRYPTION_MODE | varchar(4096) | YES | The encryption mode. Valid values: None: no encryption is performed. Password: only password protection is performed. Password Encryption: encryption is performed and password protection is performed. Transparent Encryption: Transparent Data Encryption (TDE) is performed. Dual mode Encryption: TDE and password protection are performed. Only None and Password are supported. |
| PASSWD | varchar(4096) | YES | The password. |
| 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. |
| FINISH_TABLET_COUNT | bigint(20) | YES | The total number of tablets that have been backed up. |
| MACRO_BLOCK_COUNT | bigint(20) | YES | The number of macroblocks. |
| FINISH_MACRO_BLOCK_COUNT | bigint(20) | YES | The 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 backup meta data rounds. |
| DATA_TURN_ID | bigint(20) | YES | The number of backup data rounds. |
| RESULT | bigint(20) | YES | The error code of the backup. |
| COMMENT | varchar(4096) | YES | The description of the error code. |
| PATH | varchar(4096) | YES | The backup path. |
| MINOR_TURN_ID | bigint(20) | NO | The number of rounds of minor data backup. |
| MAJOR_TURN_ID | bigint(20) | NO | The number of rounds of major data backup. |
Sample query
Query the backup progress of task-level backup tasks of the current tenant.
obclient [oceanbase]> SELECT * FROM oceanbase.DBA_OB_BACKUP_TASKS\G
The query result is as follows:
*************************** 1. row ***************************
TASK_ID: 3
JOB_ID: 3
INCARNATION: 1
BACKUP_SET_ID: 3
START_TIMESTAMP: 2025-01-07 15:23:32.167496
END_TIMESTAMP: NULL
STATUS: BACKUP_DATA_MAJOR
START_SCN: 1736234633061379000
END_SCN: 1736234700949133000
USER_LS_START_SCN: 1736234641960191000
ENCRYPTION_MODE: NONE
PASSWD:
INPUT_BYTES: 159893226
OUTPUT_BYTES: 9582158
OUTPUT_RATE_BYTES: 0.0000
EXTRA_META_BYTES: 0
TABLET_COUNT: 681
FINISH_TABLET_COUNT: 6
MACRO_BLOCK_COUNT: 132
FINISH_MACRO_BLOCK_COUNT: 76
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
1 row in set