Learn About Configuring Oracle Database Backups
Back up an on-premises database into an OCI Object Storage bucket.
Install Oracle Database Backup Module on the Source Database
Back up to OCI by first installing the Oracle Database Cloud Backup Module for OCI.
Configure RMAN to Support Cloud Backups
After you install the required backup module and configure Recovery Manager (RMAN) settings, you can create backups using familiar RMAN commands. Information about your cloud backups is maintained in the database control file, and in the recovery catalog if you use one.
Some RMAN properties need to be configured prior to backing up the cloud storage location in your account:
- Setting the retention period for the backups (30 days).
- Setting up a device type called
sbt_tape
that uses the library and config files you just installed. Notice that any defined storage chunks in the cloud will have names starting withonPremBackup_
. - Turning on encryption. This is for data security and mandatory for an on-premise-to-cloud backup scenario.
- Setting a degree of parallelism so that multiple threads will be backing-up and restoring your datafiles. This is for performance.
- Setting backup optimization to ON so that RMAN will not do unnecessary transfers to and from the cloud (e.g., if a backup file is already present and has not had any changes before a “new” backup is performed, this file will not be dealt with, saving time).
- Setting a compression level for the files going to and from the cloud.
- Configuring the
sbt_tape
device as the default for all backups.
Back Up the On-Premises Database
For security reasons, backing up to OCI requires that encryption is used. The options are: transparent data encryption (TDE) or password encryption, or both. We will be using password encryption.