

# Oracle database backups

AWS Backup protects self-managed Oracle databases that run on standalone servers and Real Application Clusters (RAC), either on-premises or on Amazon EC2. You register the Oracle server or cluster through your backup appliance, AWS Backup discovers the databases beneath it, and you protect those databases with the same backup plans, vaults, and monitoring you use for AWS resources.

## Supported versions and platforms
<a name="backup-onprem-oracle-versions"></a>

AWS Backup supports the following Oracle configurations.
+ Oracle Database 19c, 21c, and 23c.
+ Linux only (Oracle Linux and Red Hat Enterprise Linux). Windows, AIX, and Solaris are not supported.
+ Standalone Oracle servers and RAC clusters. For RAC, backups run on one node.

AWS Backup authenticates to Oracle using operating system authentication only. The backup agent runs as a user with the required Oracle backup privileges. You do not provide or store database credentials.

## Prerequisites
<a name="backup-onprem-oracle-prerequisites"></a>

Before you back up an Oracle database, make sure that:
+ Your backup appliance is deployed and activated, with network connectivity to your Oracle infrastructure and to AWS.
+ The backup agent is installed on the standalone server, or on every node of a RAC cluster. For RAC, Oracle Grid Infrastructure must be installed.
+ The appliance can reach the Oracle server over the ports listed in [Network requirements and ports](appliance-network.md), and the appliance has outbound connectivity to AWS. No inbound internet connectivity to your data center is required.
+ The database runs in archive log mode if you want transaction log backups and point-in-time recovery. For container databases, archive log mode is set at the container level.
+ For Transparent Data Encryption (TDE) databases, a copy of the source database's keystore (wallet) is configured on the restore target as a software keystore in auto-login mode before you restore.

We recommend that you also configure Oracle's native RMAN archive log deletion policy as a secondary safeguard against the source disk filling with archive logs.

## How Oracle backups work
<a name="backup-onprem-oracle-how"></a>

AWS Backup uses Oracle Recovery Manager (RMAN) through the System Backup to Tape (SBT) interface. RMAN streams backup sets to your backup appliance over an encrypted connection. No file shares or NFS mounts are required.

AWS Backup takes three backup types:
+ **Full.** A complete backup of the database.
+ **Incremental.** An RMAN changed-block backup that captures only the blocks that changed since the previous backup in the chain.
+ **Archive log.** The Oracle archive logs that make point-in-time recovery possible.

Every restore begins from a full backup. AWS Backup chooses automatically whether a scheduled backup runs as a full or an incremental, based on a resource-level setting you control.

You set **Full backup after days** (1 to 31 days) on the server or cluster, with an optional schedule. This setting decides the type of each backup; it does not trigger backups. Your backup plan controls when backups run. AWS Backup automatically runs the next scheduled or on-demand backup as a full backup if it's the first backup, the backup chain is broken, or no full backup exists, and it reports the reason in the job history.

Because SBT uses backup sets, some RMAN image-copy features, such as Instant Recovery, database clone, and granular NFS-mount recovery, are not available and are not supported.

### Backup settings you configure
<a name="backup-onprem-oracle-settings"></a>

You configure these settings on the Oracle server or cluster (the resource provider). You can override them per database.
+ Host address, or the RAC SCAN address with an optional alternative endpoint.
+ Archive log backup frequency (15 minutes to 24 hours; required for log backups).
+ Full backup after days (1 to 31) and an optional full backup schedule.
+ Archive log deletion on the source (an age threshold in hours; set to 0 to delete immediately after each successful backup). To use log backups, choose a deletion option.
+ Backup channels, from 1 to 255. If you leave it empty, the appliance calculates the count from the number of appliance nodes and the server's CPUs, up to 8.
+ For RAC, the backup node (an available node is selected automatically, or you can pin one).

## Single-node RAC backup
<a name="backup-onprem-oracle-rac"></a>

For a RAC cluster, you register the cluster by its SCAN address, and AWS Backup discovers all databases across the nodes. Backups run on a single node, either an available node selected automatically, or a node you pin per database. Because RAC uses shared storage, a single node captures the entire database; the limitation is throughput, not coverage.

If a backup node fails, the job fails and retries on the same node. At the next scheduled run, automatic selection might choose a different node. A node failure does not require a new full backup, because RMAN backup sets capture the shared-storage blocks.

Multi-node RAC backup is not supported.

## Oracle Data Guard
<a name="backup-onprem-oracle-dataguard"></a>

Data Guard role-based backup is not supported. A backup plan has no concept of backing up a database only when it holds the primary role, so both the primary and the standby would be backed up.

As a workaround, register the primary and the standby each as independent standalone Oracle servers and back them up separately. RMAN backup sets are role-agnostic.

## Multitenant container databases (CDB and PDB)
<a name="backup-onprem-oracle-cdbpdb"></a>

**Important**  
AWS Backup protects Oracle multitenant container databases (CDBs) as whole containers. AWS Backup discovers and protects a container as an ordinary single-instance database: one snapshot and one archive log chain per container. A restore brings back the whole container with all of its pluggable databases (PDBs) inside it. This applies to every supported version, including 21c and 23c, which run only as container databases.  
Restoring an individual PDB (PDB-level granular restore) is not currently supported.

## Transparent Data Encryption (TDE)
<a name="backup-onprem-oracle-tde"></a>

AWS Backup supports TDE-enabled Oracle databases. During backup, encrypted data is backed up as-is; AWS Backup does not store or manage your TDE keys. The source database can use any keystore type, including a hardware keystore or Oracle Key Vault. Before you restore a TDE database, you must configure a copy of the source database's keystore (wallet) on the target as a software keystore in auto-login mode. The restore **Shell Environment** parameter sets the wallet-related variables.

Backup traffic is encrypted in transit, and recovery points are encrypted at rest with AWS KMS.

## Transaction log backups and point-in-time recovery
<a name="backup-onprem-oracle-logbackups"></a>

AWS Backup can continuously back up your Oracle archive logs so that you can restore the database to a specific point in time.

**Turning log backups on.** Log backups are turned on by the **continuous backup** setting in your backup plan, the same setting that enables point-in-time recovery for other AWS Backup resources. There is no separate enable log backups control.

**Frequency and source retention.** You set the archive log backup frequency (15 minutes to 24 hours) and how long logs are retained on the source host as resource-level settings on the server or cluster, with per-database overrides. Both settings are required for log backups. These settings let the database owner manage log accumulation on finite host disk.

**Point-in-time recovery window.** How long log recovery points are retained, the point-in-time recovery window, comes from the continuous backup rule in your backup plan (1 to 35 days). Snapshot retention and log retention are set independently, but both come from the plan, not from a resource setting. AWS Backup deletes log data that is older than the retention period. An increase applies immediately; a decrease takes effect after the current retention period elapses. You can't change the lifecycle of a log recovery point with the `UpdateRecoveryPointLifecycle` API.

**A single log recovery point.** A resource has exactly one log recovery point at any time. It is updated continuously and represents the available log time range. When gaps exist, it can expose more than one restorable range. The log recovery point is never restored directly. You always start a restore from a snapshot recovery point.

**The first backup captures all existing logs.** Log capture starts after the database's first full or incremental backup completes. When log capture begins, AWS Backup captures all existing archive logs on the source, not only logs created from that point forward. As a result, the log recovery point's range can extend earlier than the time the backup was created. This is expected. The log recovery point is created when the log backup job starts, so you might briefly see no restorable range until logs are captured.

**Log chain breaks.** A log chain break happens when archive logs are removed outside of AWS Backup, for example when another product backs up the same database, or when the database goes through an incarnation change (RESETLOGS). When a log backup run detects a break, the log backup job's status code changes to `LOG_BACKUP_NOT_CAPTURING`, and AWS Backup sends a Log Backup Range Break event. You can't restore to a point in time inside the gap. If the archive logs after the gap are available on the source, log capture can continue without a new snapshot backup. The log recovery point stays available, and you can restore to points in time within its captured ranges until it expires.

**Local vault only.** Point-in-time recovery for Oracle is available from the local vault only. Archive logs are not copied to cloud vaults. To restore to a point in time from a snapshot that you copied to a cloud vault, copy that snapshot back to a local vault first.

Because Oracle archive logs are independent, sequence-numbered files, Oracle continues producing logs on its own after a break. If archive logs that were missed are already gone from the source, you can't restore to points in time inside that gap. We recommend using Oracle's RMAN archive log deletion policy as a secondary safeguard.

## Not supported
<a name="backup-onprem-oracle-notsupported"></a>

The following Oracle capabilities are not supported:
+ Non-Linux platforms (Windows, AIX, Solaris).
+ Database (password) authentication.
+ Multi-node RAC backup.
+ Data Guard role-based backup.
+ PDB-level (granular) restore of an individual pluggable database.
+ Independent archive log restore (restoring logs alone for manual replay).
+ Copying transaction log backups to a cloud vault, and point-in-time recovery directly from a cloud vault.
+ Overwrite (destructive) restore.
+ SBT-incompatible RMAN features: Instant Recovery, database clone, and granular NFS-mount recovery.