Note
This view is available starting with V4.0.0.
Purpose
This view displays the history records of task-level backups for the current tenant.
Columns
| Column | Type | Nullable | Description |
|---|---|---|---|
| TASK_ID | bigint(20) | NO | The ID of the task-level backup task, which corresponds to the 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 starts. |
| END_SCN | bigint(20) unsigned | NO | The SCN at which the backup ends. |
| 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:
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 turn number of the backup meta data. |
| DATA_TURN_ID | bigint(20) | YES | The turn number of the backup data. |
| 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 turn number at which the minor data backup ends. |
| MAJOR_TURN_ID | bigint(20) | NO | The turn number at which the major data backup ends. |
Sample query
Query the history records of task-level backups for the current tenant.
obclient [oceanbase]> SELECT * FROM oceanbase.DBA_OB_BACKUP_TASK_HISTORY\G
The query result is as follows:
*************************** 1. row ***************************
TASK_ID: 1
JOB_ID: 1
INCARNATION: 1
BACKUP_SET_ID: 1
START_TIMESTAMP: 2024-05-09 17:43:38.705117
END_TIMESTAMP: 2024-05-09 17:45:52.737037
STATUS: COMPLETED
START_SCN: 1715247825077980000
END_SCN: 1715247952707346000
USER_LS_START_SCN: 1715247835736673000
ENCRYPTION_MODE: NONE
PASSWD:
INPUT_BYTES: 175358314
OUTPUT_BYTES: 18706196
OUTPUT_RATE_BYTES: 139565.2319
EXTRA_META_BYTES: 0
TABLET_COUNT: 668
FINISH_TABLET_COUNT: 668
MACRO_BLOCK_COUNT: 83
FINISH_MACRO_BLOCK_COUNT: 83
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
*************************** 2. row ***************************
TASK_ID: 2
JOB_ID: 2
INCARNATION: 1
BACKUP_SET_ID: 2
START_TIMESTAMP: 2024-05-09 17:54:07.718856
END_TIMESTAMP: 2024-05-09 17:58:42.610461
STATUS: COMPLETED
START_SCN: 1715248462749288000
END_SCN: 1715248598352783000
USER_LS_START_SCN: 1715248476694964000
ENCRYPTION_MODE: NONE
PASSWD:
INPUT_BYTES: 173261302
OUTPUT_BYTES: 18706154
OUTPUT_RATE_BYTES: 68049.2007
EXTRA_META_BYTES: 0
TABLET_COUNT: 668
FINISH_TABLET_COUNT: 668
MACRO_BLOCK_COUNT: 82
FINISH_MACRO_BLOCK_COUNT: 82
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
*************************** 3. row ***************************
TASK_ID: 3
JOB_ID: 3
INCARNATION: 1
BACKUP_SET_ID: 3
START_TIMESTAMP: 2024-05-10 11:07:36.090752
END_TIMESTAMP: 2024-05-10 11:09:49.366714
STATUS: COMPLETED
START_SCN: 1715310467306544000
END_SCN: 1715310589336746000
USER_LS_START_SCN: 1715310476572942000
ENCRYPTION_MODE: NONE
PASSWD:
INPUT_BYTES: 162779396
OUTPUT_BYTES: 21486971
OUTPUT_RATE_BYTES: 161221.6538
EXTRA_META_BYTES: 0
TABLET_COUNT: 668
FINISH_TABLET_COUNT: 668
MACRO_BLOCK_COUNT: 77
FINISH_MACRO_BLOCK_COUNT: 77
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
*************************** 4. row ***************************
TASK_ID: 4
JOB_ID: 4
INCARNATION: 1
BACKUP_SET_ID: 4
START_TIMESTAMP: 2024-05-10 11:33:23.701693
END_TIMESTAMP: 2024-05-10 11:37:09.512717
STATUS: COMPLETED
START_SCN: 1715312029426020000
END_SCN: 1715312164875616000
USER_LS_START_SCN: 1715312043478618000
ENCRYPTION_MODE: NONE
PASSWD:
INPUT_BYTES: 164876747
OUTPUT_BYTES: 20151573
OUTPUT_RATE_BYTES: 89240.8734
EXTRA_META_BYTES: 0
TABLET_COUNT: 668
FINISH_TABLET_COUNT: 668
MACRO_BLOCK_COUNT: 78
FINISH_MACRO_BLOCK_COUNT: 78
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
4 rows in set
References
Query the history records of backup jobs for the current tenant: DBA_OB_BACKUP_JOB_HISTORY
Query the backup jobs for the current tenant: DBA_OB_BACKUP_JOBS
Query the progress of task-level backups for the current tenant: DBA_OB_BACKUP_TASKS
For more information about how to view the backup results, see View data backup results.