Note
This view is available starting with V4.0.0.
Purpose
This view displays the history of backup cleanup tasks executed for a tenant.
Columns
| Column | Type | Nullable | Description | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| JOB_ID | NUMBER(38) | NO | job ID, which is a monotonic incremental value | ||||||||||
| INCARNATION | NUMBER(38) | NO | The ID of the incarnation. | ||||||||||
| INITIATOR_TENANT_ID | NUMBER(38) | NO | the ID of the tenant that initiated the job | ||||||||||
| INITIATOR_JOB_ID | NUMBER(38) | NO | The job ID of the tenant in which the job was initiated. | ||||||||||
| JOB_ID | |||||||||||||
| COLUMN | TYPE | NULLABLE | DESCRIPTION | --- | --- | --- | --- | EXECUTOR_TENANT_ID | VARCHAR2(65536) | NO | List of tenants that performed the cleanup task. | ||
| TYPE | VARCHAR2(64) | NO | The type of cleanup operation. Valid values:
|
||||||||||
| COLUMN | VARCHAR2(1024) | NO | This column stores the specific parameters for the cleanup type. | ||||||||||
| JOB_LEVEL | VARCHAR2(64) | NO | Task initiation level:
|
||||||||||
| START_TIMESTAMP | VARCHAR2(256) | NO | The current tenant time when the task starts. | ||||||||||
| END_TIMESTAMP | VARCHAR2(256) | NO | Time in the current tenant when the task ends. | ||||||||||
| Column | Type | Nullable | Description | --- | --- | --- | --- | STATUS | VARCHAR2(64) | NO | 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 tasks executed successfully by the backup_set/piece task. | ||||||||||
| RESULT | NUMBER(38) | NO | Error code | ||||||||||
| COLUMN | TYPE | NULLABLE | DESCRIPTION | --- | --- | --- | --- | COMMENT | VARCHAR2(4096) | YES | Execution instructions for the task |
Sample query
Users can view the history of backup cleanup tasks performed under the current tenant. Only the first 5 records are displayed.
obclient [SYS]> SELECT * FROM SYS.DBA_OB_BACKUP_DELETE_JOB_HISTORY WHERE ROWNUM <= 5\G
The query results are 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 progress of the backup cleanup task DBA_OB_BACKUP_DELETE_JOBS.
View the progress of the 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 more information about how to configure automatic cleanup of expired backups, see Clean up backed-up data automatically.
