Note
This view is available starting with V4.0.0.
Purpose
This view displays the 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 job ID 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 backup set ID 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 started. |
| END_SCN | NUMBER(38) | NO | The SCN at which the backup ended. |
| USER_LS_START_SCN | NUMBER(38) | NO | The SCN of the 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 number of macroblocks. |
| FINISH_MACRO_BLOCK_COUNT | NUMBER(38) | YES | The number of macroblocks that have been backed up. |
| FILE_COUNT | NUMBER(38) | YES | The 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 of minor data backup. |
| MAJOR_TURN_ID | NUMBER(38) | NO | The number of rounds of major data backup. |
Sample query
Query the backup progress of 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: 3
JOB_ID: 3
INCARNATION: 1
BACKUP_SET_ID: 3
START_TIMESTAMP: 2025-01-07 15:23:32.167496
END_TIMESTAMP: NULL
STATUS: BACKUP_LOG
START_SCN: 1736234633061379000
END_SCN: 1736234747644435000
USER_LS_START_SCN: 1736234641960191000
ENCRYPTION_MODE: NONE
PASSWD:
INPUT_BYTES: 275828099
OUTPUT_BYTES: 21022393
OUTPUT_RATE_BYTES: 0.0000
EXTRA_META_BYTES: 0
TABLET_COUNT: 681
FINISH_TABLET_COUNT: 681
MACRO_BLOCK_COUNT: 132
FINISH_MACRO_BLOCK_COUNT: 131
FILE_COUNT: 0
META_TURN_ID: 1
DATA_TURN_ID: 0
RESULT: 0
COMMENT:
PATH: file:///home/admin/oceanbase/backupdataorc
MINOR_TURN_ID: 1
MAJOR_TURN_ID: 1
1 row in set (0.002 sec)