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 | NUMBER(38) | NO | The task ID, which corresponds to a backup set. |
| JOB_ID | NUMBER(38) | NO | The ID of the job to which the task belongs. |
| INCARNATION | NUMBER(38) | NO | The number of incarnations after a flashback database operation. |
| BACKUP_SET_ID | NUMBER(38) | NO | The ID of the backup set corresponding to the task. |
| START_TIMESTAMP | VARCHAR2(256) | NO | The start time of the task. |
| END_TIMESTAMP | VARCHAR2(256) | NO | The end time of the task. |
| STATUS | VARCHAR2(4096) | NO | The status of the backup. |
| START_SCN | NUMBER(38) | NO | The SCN at which the backup starts. |
| END_SCN | NUMBER(38) | NO | The SCN at which the backup ends. |
| USER_LS_START_SCN | NUMBER(38) | NO | The SCN of the backup log stream meta data. |
| ENCRYPTION_MODE | VARCHAR2(4096) | YES | The encryption mode. Valid values:
Only the None and Password modes are supported. |
| PASSWD | VARCHAR2(4096) | YES | The password. |
| INPUT_BYTES | NUMBER(38) | YES | The number of input bytes. |
| OUTPUT_BYTES | NUMBER(38) | YES | The number of output bytes. |
| OUTPUT_RATE_BYTES | NUMBER | NO | The number of output bytes per second. |
| EXTRA_META_BYTES | NUMBER(38) | YES | The number of extra bytes. |
| TABLET_COUNT | NUMBER(38) | YES | The total number of tablets. |
| FINISH_TABLET_COUNT | NUMBER(38) | YES | The total number of tablets that have been backed up. |
| MACRO_BLOCK_COUNT | NUMBER(38) | YES | The total number of macroblocks. |
| FINISH_MACRO_BLOCK_COUNT | NUMBER(38) | YES | The total number of macroblocks that have been backed up. |
| FILE_COUNT | NUMBER(38) | YES | The total number of backup files. |
| META_TURN_ID | NUMBER(38) | YES | The number of backup meta data rounds. |
| DATA_TURN_ID | NUMBER(38) | YES | The number of backup data rounds. |
| RESULT | NUMBER(38) | YES | The error code of the backup. |
| COMMENT | VARCHAR2(4096) | YES | The description of the error code. |
| PATH | VARCHAR2(4096) | YES | The backup path. |
| MINOR_TURN_ID | NUMBER(38) | NO | The number of rounds at which the minor data backup ends. |
| MAJOR_TURN_ID | NUMBER(38) | NO | The number of rounds at which the major data backup ends. |
| DATA_PROGRESS | NUMBER | NO | The backup progress of data. The value is calculated as Number of macroblocks that have been backed up / 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 | NUMBER(38) | NO | The total number of archived clog files.
NoteThis column is available starting with V4.3.1. |
| FINISH_LOG_FILE_COUNT | NUMBER(38) | NO | The number of archived clog files that have been backed up.
NoteThis column is available starting with V4.3.1. |
| LOG_PROGRESS | NUMBER | NO | The backup progress of the archived clog files. The value is calculated as Number of archived clog files that have been backed up / Total number of archived clog files, 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. |
Sample query
Query the task-level backup tasks of the current tenant.
obclient [SYS]> SELECT * FROM SYS.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: BEFORE_BACKUP_LOG
START_SCN: 1723107628199202000
END_SCN: 1723107758007076000
USER_LS_START_SCN: 1723107640573072000
ENCRYPTION_MODE: NONE
PASSWD:
INPUT_BYTES: 112371377
OUTPUT_BYTES: 25058374
OUTPUT_RATE_BYTES: 0.0000
EXTRA_META_BYTES: 0
TABLET_COUNT: 667
FINISH_TABLET_COUNT: 667
MACRO_BLOCK_COUNT: 53
FINISH_MACRO_BLOCK_COUNT: 53
FILE_COUNT: 0
META_TURN_ID: 1
DATA_TURN_ID: 0
RESULT: 0
COMMENT:
PATH: file:///home/admin/oceanbase/backupdataorg
MINOR_TURN_ID: 1
MAJOR_TURN_ID: 1
DATA_PROGRESS: 100.00
LOG_FILE_COUNT: 0
FINISH_LOG_FILE_COUNT: 0
LOG_PROGRESS: 0.00
1 row in set
References
Query the backup jobs of the current tenant: DBA_OB_BACKUP_JOBS
Query the historical records of job-level backup tasks of the current tenant: DBA_OB_BACKUP_JOB_HISTORY
Query the historical records of task-level backup tasks of the current tenant: DBA_OB_BACKUP_TASK_HISTORY
For more information about how to view the data backup progress, see View the data backup progress.