Note
This view is available starting with V4.6.0.
Purpose
The oceanbase.DBA_OB_BACKUP_VALIDATE_TASKS view displays information about task-level backup validation tasks initiated by the current tenant. Each task corresponds to a backup set or an archive log piece validation task.
Columns
| Column | Type | Nullable | Description |
|---|---|---|---|
| TASK_ID | bigint(20) | NO | The task ID. |
| INCARNATION | bigint(20) | NO | The incarnation ID. |
| JOB_ID | bigint(20) | NO | The job ID. |
| TASK_TYPE | varchar(64) | NO | The type of the validation task. Valid values:
|
| ID | bigint(20) | YES | The backup_set_id of the backup set to be validated or the piece_id of the archive log piece to be validated. |
| PATH | longtext | YES | The path of the backup or archive log piece to be validated. |
| PATH_TYPE | varchar(64) | YES | The type of the path. Valid values:
|
| DEST_ID | bigint(20) | YES | The ID of the path of the backup or archive log piece to be validated. |
| PLUS_ARCHIVELOG | varchar(64) | NO | Indicates whether the archive log is included. |
| INITIATOR_TASK_ID | bigint(20) | NO | The task ID of the parent task of the archive log validation task. If no parent task exists, the value is 0. |
| VALIDATE_LEVEL | varchar(64) | NO | The validation level. Valid values:
|
| ROUND_ID | bigint(20) | NO | The ID of the round to which the archive log piece validation task belongs. If no round exists, the value is 0. |
| START_TIMESTAMP | timestamp(6) | NO | The start time of the validation task. |
| END_TIMESTAMP | timestamp(6) | NO | The end time of the validation task. |
| STATUS | varchar(64) | NO | The status of the task. Valid values:
|
| TOTAL_LS_COUNT | bigint(20) | YES | The number of log streams in the task. |
| FINISH_LS_COUNT | bigint(20) | YES | The number of log streams that have been validated. |
| TOTAL_BYTES | bigint(20) | YES | The estimated size of the data to be validated, in bytes. |
| VALIDATED_BYTES | bigint(20) | YES | The size of the data that has been validated, in bytes. |
| RESULT | bigint(20) | NO | The error code of the validation result. |
| COMMENT | varchar(4096) | YES | The description of the reason for the failure of the validation task. |
Sample query
Query the information about task-level backup validation tasks initiated by the current user tenant.
obclient(root@mysql001)[oceanbase]> SELECT * FROM oceanbase.DBA_OB_BACKUP_VALIDATE_TASKS\G
The query result is as follows:
*************************** 1. row ***************************
TENANT_ID: 1002
TASK_ID: 21
INCARNATION: 1
JOB_ID: 10
TASK_TYPE: BACKUPSET
ID: 1
PATH: file:///data/nfs/backup/data/backup_set_1_full
PATH_TYPE: BACKUP_SET_DEST
DEST_ID: 1002
PLUS_ARCHIVELOG: OFF
INITIATOR_TASK_ID: 0
VALIDATE_LEVEL: basic
ROUND_ID: 0
START_TIMESTAMP: 2026-03-03 16:05:10.038803
END_TIMESTAMP: 2026-03-03 16:05:11.774651
STATUS: COMPLETED
TOTAL_LS_COUNT: 2
FINISH_LS_COUNT: 2
TOTAL_BYTES: 21126037
VALIDATED_BYTES: 0
RESULT: 0
COMMENT:
*************************** 2. row ***************************
TENANT_ID: 1002
TASK_ID: 22
INCARNATION: 1
JOB_ID: 10
TASK_TYPE: BACKUPSET
ID: 2
PATH: file:///data/nfs/backup/data/backup_set_2_full
PATH_TYPE: BACKUP_SET_DEST
DEST_ID: 1002
PLUS_ARCHIVELOG: ON
INITIATOR_TASK_ID: 0
VALIDATE_LEVEL: basic
ROUND_ID: 0
START_TIMESTAMP: 2026-03-03 16:05:10.044946
END_TIMESTAMP: 2026-03-03 16:05:13.850183
STATUS: COMPLETED
TOTAL_LS_COUNT: 2
FINISH_LS_COUNT: 2
TOTAL_BYTES: 19295388
VALIDATED_BYTES: 0
RESULT: 0
COMMENT:
*************************** 3. row ***************************
TENANT_ID: 1002
TASK_ID: 23
INCARNATION: 1
JOB_ID: 10
TASK_TYPE: ARCHIVELOG_PIECE
ID: 1
PATH: file:///data/nfs/backup/data/backup_set_2_full/complement_log/piece_d1002r1p1
PATH_TYPE: ARCHIVELOG_PIECE_DEST
DEST_ID: 1002
PLUS_ARCHIVELOG: ON
INITIATOR_TASK_ID: 22
VALIDATE_LEVEL: basic
ROUND_ID: 1
START_TIMESTAMP: 2026-03-03 16:05:10.047825
END_TIMESTAMP: 2026-03-03 16:05:13.856278
STATUS: COMPLETED
TOTAL_LS_COUNT: 0
FINISH_LS_COUNT: 0
TOTAL_BYTES: 0
VALIDATED_BYTES: 0
RESULT: 0
COMMENT:
3 rows in set
References
Query the execution history of task-level backup validation tasks initiated by the current tenant: DBA_OB_BACKUP_VALIDATE_TASK_HISTORY
Query the information about job-level backup validation tasks initiated by the current tenant:
Query the information about job-level backup validation tasks initiated by all tenants:
CDB_OB_BACKUP_VALIDATE_JOBS
CDB_OB_BACKUP_VALIDATE_JOB_HISTORY
Query the information about task-level backup validation tasks initiated by all tenants:
CDB_OB_BACKUP_VALIDATE_TASKS
CDB_OB_BACKUP_VALIDATE_TASK_HISTORY
