Designing Disaster Recovery Clusters using Metroclusters and Continentalclusters, Reprinted October 2011 (5900-1881)

ln s /opt/app/oracle/admin/+ASM/pfile/init.ora init+ASM2.ora
chown -h oracle:oinstall init+ASM2.ora
chown oracle:oinstall orapw+ASM2
7. Add the ASM instances with the CRS cluster on the recovery cluster. In this example, run the
following commands from any node on cluster2:
export ORACLE_SID=+ASM
srvctl add asm -n <cluster2_node1> -i +ASM1 o
srvctl add asm -n <cluster2_node2> -i +ASM2 o
/opt/app/oracle/product/11.1.0/db_1/
Configuring the Identical RAC Database at the recovery cluster
Complete the following procedure to configure the replica RAC database. To explain this procedure,
it is assumed that the database name is hrdb and the instance hrdb1 is the first instance on first
node and hrdb2 is second instance on second node of the primary cluster.
Complete the following procedure to configure the identical RAC database:
1. Copy the first RAC database instance pfile and password file from the primary cluster to the
first RAC database instance node in the recovery cluster.
In this example, run the following commands from the first node in cluster1:
cd /opt/app/oracle/product/11.1.0/db_1/dbs
rcp -p inithrdb1.ora <cluster2_node1>:$PWD
rcp -p orapwhrdb1 <cluster2_node1>:$PWD
The -p option retains the permissions of the file.
2. Setup the first RAC database instance on the recovery cluster. In this example, run the following
commands from the first node in cluster2:
cd /opt/app/oracle/product/11.1.0/db_1/dbs
chown oracle:oinstall orapwhrdb1
chown oracle:oinstall initrhrdb1.ora
3. Copy the second RAC database instance pfile and password file from the primary
cluster to the second RAC database instance node in the recovery cluster. In this example, run
the following commands from the second node in cluster1:
cd /opt/app/oracle/product/11.1.0/db_1/dbs
rcp -p inithrdb2.ora <cluster2_node2>:$PWD
rcp -p orapwhrdb2 <cluster2_node2>:$PWD
The -p option retains the permissions of the file.
4. Set up the second RAC database instance on the recovery cluster. In this example, run the
following commands from the second node in cluster2:
cd /opt/app/oracle/product/11.1.0/db_1/dbs
chown oracle:oinstall orapwhrdb2
chown oracle:oinstall inithrdb2.ora
5. Create the directory for the database (in this example “hrdb”) that is replicated to the recovery
cluster, in the Oracle admin directory.
cd /opt/app/oracle
rcp -r admin/hrdb <cluster2_node1>:$PWD
rcp -r admin/hrdb <cluster2_node2>:$PWD
6. Run the following command at the remote site.
chown -R oracle:oinstall /opt/app/oracle/admin/hrdb
7. Log in at any of the nodes in the remote site using the oracle user credentials.
su oracle
8. Configure a listener for the database on this site using the Oracle Network Configuration
Assistant (NETCA).
148 Designing Continentalclusters