Note
This view is available starting with V4.0.0.
Purpose
This view displays the history information of completed backup_set/backup_piece cleanup tasks in the current tenant.
Columns
| Column | Type | Nullable | Description |
|---|---|---|---|
| TASK_ID | NUMBER(38) | NO | The task group ID, used to identify a group of tasks. |
| INCARNATION | NUMBER(38) | NO | The incarnation ID. |
| JOB_ID | NUMBER(38) | NO | The task ID, corresponding to the JOB table. |
| TASK_TYPE | VARCHAR2(64) | NO | The task type. Valid values:
|
| ID | NUMBER(38) | NO | The task ID, including backup_set and piece. |
| ROUND_ID | NUMBER(38) | NO | The dest_round_id of the piece. For the cleanup of a backup_set, ROUND_ID is 0. |
| DEST_ID | NUMBER(38) | NO | The DEST_ID of the backup destination. |
| START_TIMESTAMP | VARCHAR2(256) | NO | The task start time. |
| END_TIMESTAMP | VARCHAR2(256) | NO | The task end time. |
| STATUS | VARCHAR2(64) | NO | The task status. Valid values:
|
| TOTAL_TASK_COUNT | NUMBER(38) | YES | The number of subtasks.
NoteIn V4.6.x, this column is available starting with V4.6.0. |
| FINISH_TASK_COUNT | NUMBER(38) | YES | The number of completed subtasks.
NoteIn V4.6.x, this column is available starting with V4.6.0. |
| 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 history information of completed backup_set or backup_piece cleanup tasks in the current tenant.
obclient [SYS]> SELECT * FROM SYS.DBA_OB_BACKUP_DELETE_TASK_HISTORY\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_TASK_COUNT: 2
FINISH_TASK_COUNT: 2
RESULT: 0
COMMENT:
PATH: file:///data/nfs/backup/data
*************************** 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: 2022-06-01 12:09:56.283804
STATUS: COMPLETED
TOTAL_TASK_COUNT: 2
FINISH_TASK_COUNT: 2
RESULT: 0
COMMENT:
PATH: file:///data/nfs/backup/archive
2 rows in set
References
View the execution progress of backup cleanup jobs that are being executed: DBA_OB_BACKUP_DELETE_JOBS
View the execution progress of backup cleanup tasks that are being executed: DBA_OB_BACKUP_DELETE_TASKS
View the history information of backup cleanup jobs: DBA_OB_BACKUP_DELETE_JOB_HISTORY
For more information about how to set the automatic cleanup of expired backups, see Automatically clean up expired backups.
