Storing Backups in OCI Immutable Buckets
Learn how to configure the Oracle Database Cloud Backup Module to store backups in OCI immutable buckets.
In Oracle Cloud Infrastructure (OCI) Object Storage, an immutable bucket is a storage location governed by time-bound retention rules that protect data from modification or deletion for a specified duration. Use immutable buckets to implement a flexible backup retention strategy for each target database, and to prevent any modification to backups.
The Oracle Database Cloud Backup Module supports storing backups in immutable buckets that you have created in OCI.
To store backups in immutable buckets, you must first create these buckets in OCI Object storage:
- Regulatory Compliance Bucket configured with retention rules and rule lock (if necessary)
You can also reuse an existing bucket associated with retention rules.
- Temporary Metadata Bucket with no retention rules or retention settings
During backup operations, the temporary bucket is used to store backup metadata and files temporarily.
Note:
If you have stored your database backups in an existing regular bucket, then you can configure the same bucket to store immutable backups. In this case, first specify the existing bucket and a temporary bucket in the opcSID.ora
configuration file (or run the backup module installer again), and then apply retention rules to the bucket in OCI. This ensures that your existing backups are also protected for the duration defined in the retention rule.
Note:
Your databases may have varied demands for backup retention. As a best practice, Oracle recommends that you maintain a separate immutable bucket and a corresponding unique temporary metadata bucket for each target database.
For example, if you create an immutable bucket named sales_db
, then create a temporary metadata bucket named sales_db_temp
.
If you plan to reuse an existing OCI bucket that is currently used by more than one target database, ensure that you reconfigure the bucket per the best practice recommended by Oracle.
For more information about creating buckets and retention rules, see OCI Object Storage documentation.
To Store Immutable Backups with Oracle Database Cloud Backup Module for OCI
Note:
Ensure that the duration you specify in a retention rule is shorter than the RMAN recovery window period. RMAN issues an error while trying to delete an expired backup that exists in the retention period.OPC_CONTAINER
parameter, the OPC_TEMP_CONTAINER
parameter, and the container names in opcSID.ora
.