Note
This view is available starting with V4.0.0.
Purpose
This view displays the information of backup_set/backup_piece cleanup tasks that are being executed in the current tenant.
Columns
| Column | Type | Nullable? | Description |
|---|---|---|---|
| TASK_ID | NUMBER(38) | NO | The task group ID, which is used to identify a group of tasks. |
| INCARNATION | NUMBER(38) | NO | The incarnation ID. |
| JOB_ID | NUMBER(38) | NO | The task ID, which corresponds to the ID in the JOB table. |
| TASK_TYPE | VARCHAR2(64) | NO | The task type. Valid values:
|
| ID | NUMBER(38) | NO | The task ID, which includes the IDs of backup_set and backup_piece. |
| ROUND_ID | NUMBER(38) | NO | The dest_round_id to which the piece belongs. For the cleanup of a backup_set, the ROUND_ID is 0. |
| DEST_ID | NUMBER(38) | NO | The destination ID of the backup destination. |
| START_TIMESTAMP | VARCHAR2(256) | NO | The time when the task started. |
| END_TIMESTAMP | VARCHAR2(256) | NO | The time when the task ended. |
| STATUS | VARCHAR2(64) | NO | The task status. Valid values:
|
| TOTAL_LS_COUNT | NUMBER(38) | YES | The total number of log streams under the task. |
| FINISH_LS_COUNT | NUMBER(38) | YES | The number of log streams that are successfully processed. |
| RESULT | NUMBER(38) | YES | The error code. |
| COMMENT | VARCHAR2(4096) | YES | The comment. |
| PATH | VARCHAR2(1024) | NO | The backup destination of the backup_set or backup_piece. |
Sample query
Query the information of backup_set or backup_piece cleanup tasks that are being executed in the current tenant.
obclient [SYS]> SELECT * FROM SYS.DBA_OB_BACKUP_DELETE_TASKS\G
The query result is as follows:
*************************** 1. row ***************************
TASK_ID: 4
INCARNATION: 1
JOB_ID: 7
TASK_TYPE: BACKUP SET
ID: 1
ROUND_ID: 0
DEST_ID: 1002
START_TIMESTAMP: 2022-06-01 12:09:50.800772
END_TIMESTAMP: 2022-06-01 12:09:54.954691
STATUS: COMPLETED
TOTAL_LS_COUNT: 2
FINISH_LS_COUNT: 2
RESULT: 0
COMMENT:
PATH: file:///data/nfs/backup/dataorc
*************************** 2. row ***************************
TASK_ID: 5
INCARNATION: 1
JOB_ID: 7
TASK_TYPE: BACKUP PIECE
ID: 1
ROUND_ID: 1
DEST_ID: 1001
START_TIMESTAMP: 2022-06-01 12:09:50.968413
END_TIMESTAMP:
STATUS: DOING
TOTAL_LS_COUNT: 2
FINISH_LS_COUNT: 1
RESULT: 0
COMMENT:
PATH: file:///data/nfs/backup/archiveorc
2 rows in set
References
Query the execution progress of a backup cleanup job: DBA_OB_BACKUP_DELETE_JOBS
Query the historical information of a backup cleanup job: DBA_OB_BACKUP_DELETE_JOB_HISTORY
Query the historical information of a backup cleanup task: DBA_OB_BACKUP_DELETE_TASK_HISTORY
For more information about how to configure automatic cleanup of expired backups, see Automatically clear expired backups.