About Database Backups
Database backups protect your data by creating recoverable copies of your databases.
Oracle Base Database Cloud@Customer supports automatic backups that run on a schedule and standalone (on-demand) backups that you create manually.
The database backup and recovery facilities cover Oracle AI Database data files, log files, control files, and the server parameter file (SPFILE). You are responsible for backing up other files on your virtual machines. Oracle strongly recommends that you back up the Transparent Data Encryption (TDE) keystore (wallet). Without the TDE keystore, you cannot read the encrypted data contained in the database backups.
While a backup is in progress, Oracle recommends that you avoid actions that could interfere with database availability, such as restarting virtual machines or applying patches.
Backup Storage Locations
You can store backups in one of the supported backup storage locations. Depending on the storage location, you might also need to create a backup destination.
Oracle Base Database Cloud@Customer supports the following backup storage locations:
-
Recovery Appliance:
Recovery Appliance stores database backups in Oracle Zero Data Loss Recovery Appliance.
To store backups in a Recovery Appliance, create a backup destination that defines the connection information for the Recovery Appliance.
-
Network File System (NFS):
A Network File System (NFS) stores database backups on a shared file system.
To store backups on an NFS server, create a backup destination that defines the connection information for the NFS location.
-
Local:
Stores backups locally on the Base Database Cloud@Customer system.
-
Object Storage:
Stores standalone backups in Object Storage when automatic backups are not enabled.
Backup Destinations
A backup destination is an Oracle resource that stores the connection information required to access a backup storage location.
Backup destinations are required for the following backup storage locations:
- Recovery Appliance
- Network File System (NFS)
For more information, see Database Backup Destinations
Automatic Backups
Automatic backups are managed by Oracle Base Database Cloud@Customer based on a one-time configuration. After you configure automatic backups, Oracle manages backup scheduling, creation, retention, and deletion through defined workflows. You can also configure settings such as backup window, retention period, backup storage location, and others.
Automatic backups are configured as follows:
-
Automatic backups are scheduled daily. The automatic backup process can run at any time within the daily backup window, which is between midnight and 6:00 AM in the time zone of the virtual machine (VM) cluster that hosts the database.
-
Automatic backups use a combination of full (RMAN level-0) and incremental (RMAN level 1) database backups:
-
For backups to Recovery Appliance, after an initial full backup is performed, the Recovery Appliance creates and validates virtual full backups from each daily incremental backup.
-
For backups to NFS, the default interval between level-0 backups is seven days. The default level-0 backup day is Sunday.
-
-
The retention period determines how long automatic backups are maintained:
-
For backups to Recovery Appliance, the retention policy configured on the appliance controls the retention period.
-
For backups to NFS, you can select a retention period of 7, 14, 30, 45, or 60 days. The default retention period is 30 days.
-
-
By default, Oracle AI Database runs in
ARCHIVELOGmode, and archived redo log files are backed up every 30 minutes. -
Regardless of the backup destination, backups of user data are encrypted by default.
-
If an automatic backup operation fails, the backup is deferred until the next day’s backup window.
For more information, see Configure Automatic Backups for a Database.
Standalone Backups
Standalone backups are created manually whenever required.
Standalone backups are supported for databases that are not part of a Data Guard configuration and for both primary and standby databases in a Data Guard configuration.
The storage location for standalone backups depends on the automatic backup configuration. The following retention and management requirements apply to each backup storage location:
- Object Storage:
- When automatic backups are not enabled, standalone backups are stored in Object Storage.
- These standalone backups do not have a configured retention period and are not automatically deleted. You must delete them manually when they are no longer required.
- Recovery Appliance:
- When automatic backups are enabled and configured to use Recovery Appliance, standalone backups are stored in the same Recovery Appliance.
- These standalone backups are retained for up to the recovery window configured for automatic backups.
- Network File System (NFS):
- When automatic backups are enabled and configured to use NFS, standalone backups are stored in the same NFS location.
- These standalone backups do not have a configured retention period and are not automatically deleted. You must delete them manually when they are no longer required.
To create a standalone backup for a database, see Create Standalone Backups for a Database.
Backup Management Methods
Database backup and recovery on Oracle Base Database Cloud@Customer can be accomplished through several methods:
- OCI Console: Provides the simplest and most automated method for managing database backup and recovery.
- OCI API: Provides API operations to manage database backup and recovery programmatically.
-
OCI CLI: Provides commands to manage database backup and recovery from the command line.
The OCI Console, OCI API, and OCI CLI are the preferred interfaces. If required actions cannot be completed through these interfaces, the following options are also available:
-
dbaascli: Provides additional backup configuration and management capabilities. For user-configured backups, you are responsible for configuring and executing backup operations usingdbaascli. These user-configured backups are not recognized as Oracle-managed backups.Use the
dbaascli database backup,dbaascli pdb backup,dbaascli database recover, anddbaascli pdb recovercommands to back up and recover container databases and pluggable databases.You can also use
dbaascli database backup --configureto modify certain settings for Oracle-managed automatic backups. Modify only parameters explicitly identified as compatible with Console automatic backups. -
Oracle Recovery Manager (RMAN): RMAN is the backup tool included with Oracle AI Database. Using RMAN directly provides the most flexibility in terms of backup options, but also the most complexity. You are responsible for managing database and archive log backups.
If you backed up your database using
dbaascli, you can manually restore that database backup using RMAN.If you configure backups to Object Storage using RMAN without using the OCI control plane or OCI APIs, you are responsible for manually configuring TDE wallet backups.
By default, Oracle cloud automation cleans up archive log files every 24 hours. When you use RMAN to perform manual backups, automatic cleanup can delete archive logs before they are backed up.
Oracle recommends using Oracle-managed backups.
Caution: Before configuring backups directly through RMAN, completely disable cloud-managed backups, including automatic archive log backups and the automatic archive log purge job. Do not use RMAN to initiate backups or edit backup settings in conjunction with
dbaasclior Console automatic backups. Conflicting settings or overwritten settings can cause backups to fail. This restriction does not prevent using RMAN to restore and recover existing backups.
Backup Channel Allocation
The number of channels is static for Oracle Base Database Cloud@Customer. Default number of channels per node is 4. The cluster-wide total channel count is the per-node value multiplied by the number of nodes. The automation uses the SCAN to distribute RMAN channels across all nodes in the cluster.
If needed, a static per-node value can be set by using dbaascli database backup --getConfig to generate a backup configuration file and setting channelsPerNode to the required number of channels per node. Apply the updated configuration using dbaascli database backup --configure.
Valid values are 1 through 32. The total channel count is the configured value multiplied by the number of nodes and must not exceed 255. A value of default for channelsPerNode enables OCPU-based channel allocation.