Building Disaster Recovery Serviceguard Solutions Using Metrocluster with Continuous Access EVA A.05.01

# ln -s /cfs/rac/oradata/hrdb/orapwhrdb orapwhrdb2
# chown oracle:oinstall inithrdb2.ora
# chown -h oracle:oinstall orapwhrdb2
5. Create the Oracle admin directory at the target site.
# cd /opt/app/oracle
# rcp -r admin SJC_1:$PWD
# rcp -r admin SJC_2:$PWD
Run the following command at the remote site:
# chown -R oracle:oinstall /opt/app/oracle/admin
6. Log in at any of the nodes in the remote site using the oracle user credentials.
# su oracle
7. Configure a listener for the database on this site using the Oracle Network Configuration
Assistant (NETCA).
8. Copy the tnsnames.ora file from the remote CRS sub-cluster and modify it to fit the local
environment.
In this example, the file contents would appear as follows:
# rcp SFO_1:$ORACLE_HOME/network/admin/tnsnames.ora \
SJC_1:$ORACLE_HOME/network/admin/tnsnames.ora
# rcp SFO_2:$ORACLE_HOME/network/admin/tnsnames.ora \
SJC_2:$ORACLE_HOME/network/admin/tnsnames.ora
9. Edit the tnsnames.ora file on the local nodes and modify the HOST = keywords to specify
node names of this site.
In this example, you must edit the tnsnames.ora file on the local nodes, SJC_1 and SJC_2.
10. Register the database with the CRS sub-cluster on remote site.
# srvctl add database -d hrdb -o /opt/app/oracle/product/10.2.0/db_1/
# srvctl add instance -d hrdb -i hrdb1 -n SJC_1
# srvctl add instance -d hrdb -i hrdb2 -n SJC_2
After registering the database with the CRS sub-cluster on the remote site, you can run the srvctl
status command to view the health of the database.
Configuring the RAC MNP stack at the recovery cluster
The RAC database must be packaged as Serviceguard MNP packages. You must configure the
RAC MNP package to have a dependency on the site Clusterware sub-cluster MNP package. This
step creates the RAC MNP stack at the target site that is configured to be managed by the Site
Controller Package. For more information on configuring the RAC database in MNP packages,
see the Serviceguard Extension for Oracle RAC toolkit README.
Halting the RAC database on the recovery cluster
You must halt the RAC database on the Target Disk Site so that it can be restarted at the source
disk site. Use the cmhaltpkg command to halt the RAC MNP stack on the replication Target Disk
Site node. Deport the disk groups at the replication Target Disk Site nodes using the vxdg deport
command.
Configuring an Empty Site Controller Package
The Site Controller Package and the Site Safety Latch for the disaster tolerant RAC database are
the final two components to be configured. This section describes the procedure to configure the
Site Controller Package in a Metrocluster.
To configure the Site Controller Package:
114 Configuring Oracle RAC in SADTA