Promoting an RDS Custom for Oracle replica to a standalone DB instance
Just as with RDS for Oracle, you can promote an RDS Custom for Oracle replica to a standalone DB instance. When you promote a Oracle replica, RDS Custom for Oracle reboots the DB instance before it becomes available. For more information about promoting Oracle replicas, see Promoting a read replica to be a standalone DB instance.
The following steps show the general process for promoting a Oracle replica to a DB instance:
-
Stop any transactions from being written to the primary DB instance.
-
Wait for RDS Custom for Oracle to apply all updates to your Oracle replica.
-
Promote your Oracle replica by choosing the Promote option on the Amazon RDS console, the AWS CLI command
promote-read-replica
, or thePromoteReadReplica
Amazon RDS API operation.
Promoting a Oracle replica takes a few minutes to complete. During the process, RDS Custom for Oracle stops replication and reboots your replica. When the reboot completes, the Oracle replica is available as a standalone DB instance.
To promote an RDS Custom for Oracle replica to a standalone DB instance
Sign in to the AWS Management Console and open the Amazon RDS console at https://console.aws.amazon.com/rds/
. -
In the Amazon RDS console, choose Databases.
The Databases pane appears. Each Oracle replica shows Replica in the Role column.
-
Choose the RDS Custom for Oracle replica that you want to promote.
-
For Actions, choose Promote.
-
On the Promote Oracle replica page, enter the backup retention period and the backup window for the newly promoted DB instance. You can't set this value to 0.
-
When the settings are as you want them, choose Promote Oracle replica.
To promote your RDS Custom for Oracle replica to a standalone DB instance, use the AWS CLI promote-read-replica
command.
Example
For Linux, macOS, or Unix:
aws rds promote-read-replica \ --db-instance-identifier
my-custom-read-replica
\ --backup-retention-period 2 \ --preferred-backup-window 23:00-24:00
For Windows:
aws rds promote-read-replica ^ --db-instance-identifier
my-custom-read-replica
^ --backup-retention-period 2 ^ --preferred-backup-window 23:00-24:00
To promote your RDS Custom for Oracle replica to be a standalone DB instance, call the Amazon RDS API PromoteReadReplica
operation with the required parameter DBInstanceIdentifier
.