Note
This view is available starting with V4.0.0.
Purpose
This view displays the history of backup cleanup tasks that have been executed under a specific tenant.
Columns
Column |
Type |
Nullable |
Description |
|---|---|---|---|
| JOB_ID | NUMBER(38) | NO | The task ID, which increments monotonically. |
| INCARNATION | NUMBER(38) | NO | 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 cleanup tasks. |
| TYPE | VARCHAR2(64) | NO | The cleanup type. Valid values:
|
| PARAMETER | VARCHAR2(1024) | NO | Parameters for different cleanup types. |
| JOB_LEVEL | VARCHAR2(64) | NO | The task initiation level. Valid values:
|
| START_TIMESTAMP | VARCHAR2(256) | NO | The current tenant time when the task starts. |
| END_TIMESTAMP | VARCHAR2(256) | NO | The current tenant time when the task ends. |
| STATUS | VARCHAR2(64) | NO | The task status. Valid values:
|
| TASK_COUNT | NUMBER(38) | YES | The number of backup set/piece tasks. |
| SUCCESS_TASK_COUNT | NUMBER(38) | YES | The number of successfully completed backup set/piece tasks. |
| RESULT | NUMBER(38) | NO | The error code. |
| COMMENT | VARCHAR2(4096) | YES | The task execution description. |
Sample query
You can query the history of backup cleanup tasks executed by your tenant and view 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: expired_time:2025-09-10 06:33:50.079557
JOB_LEVEL: USER_TENANT
START_TIMESTAMP: 2025-09-11 06:33:50.084931
END_TIMESTAMP: 2025-09-11 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: expired_time:2025-09-10 07:33:50.384197
JOB_LEVEL: USER_TENANT
START_TIMESTAMP: 2025-09-11 07:33:50.387567
END_TIMESTAMP: 2025-09-11 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: expired_time:2025-09-10 08:33:50.660556
JOB_LEVEL: USER_TENANT
START_TIMESTAMP: 2025-09-10 08:33:50.663947
END_TIMESTAMP: 2025-09-10 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: expired_time:2025-09-10 09:33:50.931100
JOB_LEVEL: USER_TENANT
START_TIMESTAMP: 2025-09-11 09:33:50.934741
END_TIMESTAMP: 2025-09-11 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: expired_time:2025-09-10 10:33:51.206735
JOB_LEVEL: USER_TENANT
START_TIMESTAMP: 2025-09-11 10:33:51.210244
END_TIMESTAMP: 2025-09-11 10:33:51.258817
STATUS: COMPLETED
TASK_COUNT: 0
SUCCESS_TASK_COUNT: 0
RESULT: 0
COMMENT:
5 rows in set
References
View the execution progress of a Job task for ongoing backup cleanup: DBA_OB_BACKUP_DELETE_JOBS
To query the execution progress of a backup cleanup task in progress: DBA_OB_BACKUP_DELETE_TASKS
View the historical information of the backup cleanup task: DBA_OB_BACKUP_DELETE_TASK_HISTORY
For details about how to enable automatic cleanup of expired backups, see Enable automatic cleanup of expired backups.
