Creating an RDS for Oracle replica in mounted mode
By default, Oracle replicas are read-only. To create a replica in mounted mode, use the console, the AWS CLI, or the RDS API.
To create a mounted replica from a source Oracle DB instance
Sign in to the AWS Management Console and open the Amazon RDS console at https://console.aws.amazon.com/rds/
. -
In the navigation pane, choose Databases.
-
Choose the Oracle DB instance that you want to use as the source for a mounted replica.
-
For Actions, choose Create replica.
-
For Replica mode, choose Mounted.
-
Choose the settings that you want to use. For DB instance identifier, enter a name for the read replica. Adjust other settings as needed.
-
For Regions, choose the Region where the mounted replica will be launched.
-
Choose your instance size and storage type. We recommend that you use the same DB instance class and storage type as the source DB instance for the read replica.
-
For Multi-AZ deployment, choose Create a standby instance to create a standby of your replica in another Availability Zone for failover support for the mounted replica. Creating your mounted replica as a Multi-AZ DB instance is independent of whether the source database is a Multi-AZ DB instance.
-
Choose the other settings that you want to use.
-
Choose Create replica.
In the Databases page, the mounted replica has the role Replica.
To create an Oracle replica in mounted mode, set --replica-mode
to mounted
in
the AWS CLI command create-db-instance-read-replica.
Example
For Linux, macOS, or Unix:
aws rds create-db-instance-read-replica \ --db-instance-identifier
myreadreplica
\ --source-db-instance-identifiermydbinstance
\ --replica-mode mounted
For Windows:
aws rds create-db-instance-read-replica ^ --db-instance-identifier
myreadreplica
^ --source-db-instance-identifiermydbinstance
^ --replica-mode mounted
To change a read-only replica to a mounted state, set --replica-mode
to
mounted
in the AWS CLI command modify-db-instance. To place a mounted replica in read-only mode, set
--replica-mode
to open-read-only
.
To create an Oracle replica in mounted mode, specify ReplicaMode=mounted
in the RDS API
operation CreateDBInstanceReadReplica.