HP Serviceguard Metrocluster manual

Models: Serviceguard Metrocluster

1 151
Download 151 pages 11.74 Kb
Page 141
Image 141

#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 /opt/app/oracle/product/11.1.0/db_1/

#srvctl add asm -n <cluster2_node2> -i “+ASM2” –o /opt/app/oracle/product/11.1.0/db_1/

Configuring the identical RAC database in 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 the first node and hrdb2 is the second instance on second node of the primary cluster.

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.Set up 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 -poption 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

Configuring the identical RAC database in the recovery cluster 141

Page 141
Image 141
HP Serviceguard Metrocluster manual