Notes
This view is available starting with V4.0.0.
Purpose
Displays information about completed backup cleanup tasks.
Columns
| Column | Type | Nullable? | Description |
|---|---|---|---|
| JOB_ID | NUMBER(38) | NO | The task ID. The ID is unique and monotonically increasing. |
| INCARNATION | NUMBER(38) | NO | The incarnation ID. |
| INITIATOR_TENANT_ID | NUMBER(38) | NO | The tenant ID that initiated this job. |
| INITIATOR_JOB_ID | NUMBER(38) | NO | The JOB_ID of the tenant that initiated this job. |
| EXECUTOR_TENANT_ID | VARCHAR2(65536) | NO | The list of tenants that execute the cleanup task. |
| TYPE | VARCHAR2(64) | NO | Cleanup type:
|
| PARAMETER | VARCHAR2(1024) | NO | Cleanup parameters. Records the expiration time. |
| JOB_LEVEL | VARCHAR2(64) | NO | Job initiator level. Valid values:
|
| START_TIMESTAMP | VARCHAR2(256) | NO | The current time in the tenant when the task starts. |
| END_TIMESTAMP | VARCHAR2(256) | NO | The current time in the tenant when the task ends. |
| STATUS | VARCHAR2(64) | NO | Task status. Valid values:
|
| TASK_COUNT | NUMBER(38) | YES | Number of backup_set/piece tasks. |
| SUCCESS_TASK_COUNT | NUMBER(38) | YES | Number of backup_set/piece tasks executed successfully. |
| RESULT | NUMBER(38) | NO | Error code. |
| COMMENT | VARCHAR2(4096) | YES | Description of the task execution. |
Sample query
User tenants query the history of executed backup cleanup tasks for their tenant, displaying the first 5 records.
obclient [SYS]> SELECT * FROM SYS.DBA_OB_BACKUP_DELETE_JOB_HISTORY WHERE ROWNUM <= 5\G
The query result is as follows:
*************************** 1. row ***************************
JOB_ID: 20
INCARNATION: 1
INITIATOR_TENANT_ID: 1004
INITIATOR_JOB_ID: 20
EXECUTOR_TENANT_ID: 1004
TYPE: DELETE OBSOLETE BACKUP
PARAMETER: 2025-01-07 06:33:50.079557
JOB_LEVEL: USER_TENANT
START_TIMESTAMP: 2025-01-08 06:33:50.084931
END_TIMESTAMP: 2025-01-08 06:33:50.160191
STATUS: COMPLETED
TASK_COUNT: 0
SUCCESS_TASK_COUNT: 0
RESULT: 0
COMMENT:
*************************** 2. row ***************************
JOB_ID: 21
INCARNATION: 1
INITIATOR_TENANT_ID: 1004
INITIATOR_JOB_ID: 21
EXECUTOR_TENANT_ID: 1004
TYPE: DELETE OBSOLETE BACKUP
PARAMETER: 2025-01-07 07:33:50.384197
JOB_LEVEL: USER_TENANT
START_TIMESTAMP: 2025-01-08 07:33:50.387567
END_TIMESTAMP: 2025-01-08 07:33:50.435527
STATUS: COMPLETED
TASK_COUNT: 0
SUCCESS_TASK_COUNT: 0
RESULT: 0
COMMENT:
*************************** 3. row ***************************
JOB_ID: 22
INCARNATION: 1
INITIATOR_TENANT_ID: 1004
INITIATOR_JOB_ID: 22
EXECUTOR_TENANT_ID: 1004
TYPE: DELETE OBSOLETE BACKUP
PARAMETER: 2025-01-07 08:33:50.660556
JOB_LEVEL: USER_TENANT
START_TIMESTAMP: 2025-01-08 08:33:50.663947
END_TIMESTAMP: 2025-01-08 08:33:50.710906
STATUS: COMPLETED
TASK_COUNT: 0
SUCCESS_TASK_COUNT: 0
RESULT: 0
COMMENT:
*************************** 4. row ***************************
JOB_ID: 23
INCARNATION: 1
INITIATOR_TENANT_ID: 1004
INITIATOR_JOB_ID: 23
EXECUTOR_TENANT_ID: 1004
TYPE: DELETE OBSOLETE BACKUP
PARAMETER: 2025-01-07 09:33:50.931100
JOB_LEVEL: USER_TENANT
START_TIMESTAMP: 2025-01-08 09:33:50.934741
END_TIMESTAMP: 2025-01-08 09:33:50.984381
STATUS: COMPLETED
TASK_COUNT: 0
SUCCESS_TASK_COUNT: 0
RESULT: 0
COMMENT:
*************************** 5. row ***************************
JOB_ID: 24
INCARNATION: 1
INITIATOR_TENANT_ID: 1004
INITIATOR_JOB_ID: 24
EXECUTOR_TENANT_ID: 1004
TYPE: DELETE OBSOLETE BACKUP
PARAMETER: 2025-01-07 10:33:51.206735
JOB_LEVEL: USER_TENANT
START_TIMESTAMP: 2025-01-08 10:33:51.210244
END_TIMESTAMP: 2025-01-08 10:33:51.258817
STATUS: COMPLETED
TASK_COUNT: 0
SUCCESS_TASK_COUNT: 0
RESULT: 0
COMMENT:
5 rows in set
References
Query the execution progress of the job that is cleaning up the ongoing backup: DBA_OB_BACKUP_DELETE_JOBS
View the task progress of running backup cleanup tasks: DBA_OB_BACKUP_DELETE_TASKS
View the history information about the backup cleanup tasks: DBA_OB_BACKUP_DELETE_TASK_HISTORY
For information about how to automatically clean up expired backups, see Automatically clean up expired backups.