Note
This view is available starting with V4.0.0.
Purpose
This view displays the cleanup policies for expired or automatic cleanup set for the tenant.
Columns
| Column | Type | Nullable | Description |
|---|---|---|---|
| POLICY_NAME | VARCHAR2(256) | NO | The name of the cleanup policy.
|
| RECOVERY_WINDOW | VARCHAR2(64) | NO | The recovery window, default value: 0 |
Sample query
Query the cleanup policy of the user tenant.
obclient [SYS]> SELECT * FROM SYS.DBA_OB_BACKUP_DELETE_POLICY;
The query result is as follows:
+-------------+-----------------+
| POLICY_NAME | RECOVERY_WINDOW |
+-------------+-----------------+
| default | 7d |
+-------------+-----------------+
1 row in set
References
View the execution progress of the backup cleanup job task: DBA_OB_BACKUP_DELETE_JOBS
View the execution progress of the backup cleanup task task: DBA_OB_BACKUP_DELETE_TASKS
View the history of the backup cleanup job task: DBA_OB_BACKUP_DELETE_JOB_HISTORY
View the history of the backup cleanup task task: DBA_OB_BACKUP_DELETE_TASK_HISTORY
For more information about how to set a cleanup policy, see Automatic cleanup of expired backups.
