

# Prepare Oracle

Protect Oracle databases on standalone servers or RAC clusters, whether on-premises or on Amazon EC2. You register the server or cluster, and AWS Backup discovers the databases beneath it.

## Supported versions and platforms
<a name="oracle-supported-versions"></a>
+ **Oracle:** 19c, 21c, 23c.
+ **Operating system:** Linux only: Oracle Linux 8.x and RHEL 8.x.

AWS Backup does not support Windows, AIX, or Solaris.

## Install the agent
<a name="oracle-install-agent"></a>

Install the backup agent on the standalone server, or on all RAC nodes, before you register. On Linux, use the installer for your distribution, or the script installer. See [Install a backup agent](backup-agents-install.md). For RAC, you must install Grid Infrastructure, and you must install the agent on every node. The SCAN address rotates across nodes, so a node without the agent causes registration or synchronization to fail.

Before you install the agent, make sure that:
+ Each database on the host has a unique DBID.
+ Each standalone database is listed in `/etc/oratab` with the correct `ORACLE_HOME`. AWS Backup doesn't discover databases that aren't listed.
+ For Oracle RAC, `GRID_HOME` is listed in `/etc/oratab` or `/etc/oraInst.loc`.

## Authentication
<a name="oracle-authentication"></a>

Oracle uses OS authentication only. The agent runs as root or as a dedicated service account with SYSDBA or SYSBACKUP privileges. A service account other than root must belong to the OS group that grants SYSDBA or SYSBACKUP, such as `dba` or `backupdba`. If the database uses ASM, the account must also belong to the ASM OSDBA group. You do not provide database credentials.

## Registration inputs
<a name="oracle-registration-inputs"></a>
+ **Standalone:** the host address (hostname, IP address, or FQDN).
+ **RAC:** the SCAN address (`Endpoint`), with an optional alternative endpoint (`AlternativeEndpoint`) if the SCAN address is not directly reachable.

You can update the host or SCAN address without re-baselining, as long as it still resolves to the same host or cluster running the agent.

## Ports
<a name="oracle-ports"></a>

For the ports to open between the appliance, your Oracle servers, and AWS, see [Network requirements and ports](appliance-network.md).

You do not need inbound internet connectivity.

## Archive log mode and TDE
<a name="oracle-archivelog-tde"></a>
+ **Archive log mode** must be on for log backups and PITR (at the container level for a multitenant database). We recommend configuring the native RMAN archive-log deletion policy as a secondary safeguard against the source disk filling up. To enable log backups, set `LogBackupFrequencyInMinutes` and `LogRetentionOnHostInHours` in the `OracledbDatabase` target configuration and assign the database to a backup rule with continuous backups turned on.
+ **Transparent Data Encryption (TDE).** AWS Backup supports TDE-enabled databases. Before you restore, you must configure a copy of the source database's keystore on the target as a software keystore in auto-login mode. You set wallet-related environment variables through the restore's Shell Environment parameter. AWS Backup does not store or manage your TDE keys.

## RAC backups
<a name="oracle-rac"></a>

For a RAC cluster, AWS Backup discovers all databases across nodes and runs backups on a single node (auto-selected, or one you pin for each database). A single node captures the whole database because the cluster shares storage. The limitation is throughput, not coverage. AWS Backup does not currently support multi-node RAC backup. A RAC database restores as a standalone, single-instance database. You re-add it to Grid Infrastructure after restore.