Create a Backup of the Source Database
Configure RMAN to create a backup of the source database and to use Oracle Database Backup Cloud Service for storage.
Install Oracle Database Backup Cloud Service on the Source Database
Install Oracle Database Backup Cloud Service on the source database to enable RMAN to recognize the object storage service. The module simulates a tape backup device on the source database.
Before you get started, collect the following information that is needed to install Oracle Database Backup Cloud Service:
-
Tenancy OCID
In the Console, click Administration, then Tenancy Details.
-
The Compartment OCID of the compartment where the Oracle Cloud Infrastructure Object Storage bucket is located.
In the Console, select Identity, then Compartments. Navigate to the compartment to get to the details page. The OCID is in Compartment Information.
-
Your User OCID
In the Console, click the Profile icon, select User Information, then User Settings.
-
Your account region
The region is part of the Console's URL. For example in https://console.us-ashburn-1.oraclecloud.com, the region ID is us-ashburn-1.
Set the Database Archiving Mode
To successfully backup the database, the database must be in ARCHIVELOG mode.
Changing the archive mode will shut down the database.
Configure the Backup Storage Device and Criteria
Configure RMAN for the backup storage device, in this case it's Oracle Database Backup Cloud Service posing as a tape backup (SBT_TAPE).
An RMAN channel represents one stream of data to a device type, and corresponds to one server session. For the BACKUP command, RMAN allocates only a single type of channel, such as DISK or SBT (Serial Backup Tape). Configure SBT_TAPE so that RMAN backups are sent to Oracle Database Backup Cloud Service instead of to disk.
config
file generated when you installed Oracle Database Backup
Cloud Service on the source database.
Backup the Source Database
Backup the source database to Oracle Database Backup Cloud Service.
Determine the type of backup to perform: a full backup (level 0) or an incremental backup (level 1). The type of backup and the amount of data will determine the amount of time needed to backup the database.