Modifying the RDS for Oracle replica mode
To change the replica mode of an existing replica, use the console, AWS CLI, or RDS API. When you change to mounted mode, the replica disconnects all active connections. When you change to read-only mode, Amazon RDS initializes Active Data Guard.
The change operation can take a few minutes. During the operation, the DB instance status changes to modifying. For more information about status changes, see Viewing Amazon RDS DB instance status.
To change the replica mode of an Oracle replica from mounted to read-only
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 mounted replica database.
-
Choose Modify.
-
For Replica mode, choose Read-only.
-
Choose the other settings that you want to change.
-
Choose Continue.
-
For Scheduling of modifications, choose Apply immediately.
-
Choose Modify DB instance.
To change a read replica to mounted mode, set --replica-mode
to mounted
in
the AWS CLI command modify-db-instance. To
change a mounted replica to read-only mode, set --replica-mode
to
open-read-only
.
Example
For Linux, macOS, or Unix:
aws rds modify-db-instance \ --db-instance-identifier
myreadreplica
\ --replica-modemode
For Windows:
aws rds modify-db-instance ^ --db-instance-identifier
myreadreplica
^ --replica-modemode
To change a read-only replica to mounted mode, set ReplicaMode=mounted
in ModifyDBInstance. To change a mounted
replica to read-only mode, set ReplicaMode=read-only
.