Setup and Configuration for Failover
This section establishes VPC users for the Recovery Appliances to use later for failover.It modifies the network configuration files needed, configures the replication server, creates protection policies, registers the protected database, and adds several grants to the upstream and downstream Recovery Appliances.
Creating VPC Users
This task creates database VPC user accounts in the upstream and downstream Recovery Appliances.
When creating the accounts, keep in mind these password requirements.
- The first VPC user (
HADR_LOCAL_VPCUSER
) account may be used by other protected databases and can have different passwords between the RAHADR1 and RAHADR2 Recovery Appliances. - The second VPC user (
HADR_COMMON_VPCUSER
) account must use the same password on both the RAHADR1 and RAHADR2 Recovery Appliances and can be used by other protected databases
The following conditions are applicable to this specific example.
- Recovery Appliance RAHADR1 has previously been installed with a
DB_UNIQUE_NAME
ofrahadr1
. - Recovery Appliance RAHADR2 has previously been installed with a
DB_UNIQUE_NAME
ofrahadr2
.
Modifying Configuration for Transport Failover
This task modifies the Oracle network configuration files that are used for transparent failover to the downstream Recovery Appliance.
Configuring the Replication Server
This task configures the replication server that sends the database backups from RAHADR1 to the RAHADR2 Recovery Appliance.
Configuring Upstream and Downstream Recovery Appliances
This task configures the protection policies for the protected database on the downstream and upstream Recovery Appliance, and then adds the protection policy to the replication server.
If a protection policy that is used, for example, by the CBR122DR database does not exist on the respective Recovery Appliances, these steps create them. The protection policy name does not have to be unique between the downstream and upstream Recovery Appliances.
To prevent a circular references between RAHADR1 and RAHADR2, the protection policy from RAHADR2 is not added to the replication server while the protection policy from RAHADR1 is added. All databases in the protection policy are replicated.
Note: Because RAHADR2 does not normally accept redo from the CDB122DR database, set the unprotected data window parameter is set to 1.25 days to avoid false alerts from occurring if the CDB122DR database is idle.
Registering the Protected Database on the Upstream Recovery Appliance
This task configures the wallet, adds VPC user credentials, tests those credentials, and registers the protected database with the upstream Recovery Appliance. If it is a RAC database, the steps need to be performed on each host where the protected database runs.