Installing and Configuring Oracle Clusterware

After setting up replication in your environment and configuring the Metrocluster, you must install Oracle Clusterware. Use the Oracle Universal Installer to install and configure the Oracle Clusterware. As SADTA requires two Oracle Clusterware sub-clusters, one at each site, you must install and configure Oracle Clusterware twice in the Serviceguard cluster.

When you install Oracle Clusterware at a site, the sub-cluster installation is confined to a site and the Clusterware storage is not replicated. As a result, Oracle Clusterware must be installed on a local file system at each node in the site. The Oracle Cluster Registry (OCR) and Voting disks must be shared only among the nodes in the site. In this example, CFS is shared between the site nodes for the OCR and Voting disks.

Install Oracle Clusterware, one site at a time. Following sections describe the steps to install and configure Oracle Clusterware sub-cluster at both sites.

Configuring the Network

Complete the following procedure to configure the network:

1.Identify the Oracle virtual IP and private IP to be used in the site Clusterware sub-cluster and enter them in the /etc/hosts file on all the nodes in the site. All nodes in the site CRS sub-cluster must be able to resolve the private and virtual IP of all other nodes in the site CRS sub-cluster.

In this sample configuration, for the SFO CRS sub-cluster, the following entries must be made in the /etc/hosts file of SFO_1 and SFO_2 nodes.

192.1.7.1SFO_1p.hp.com SFO_1p

192.1.7.2SFO_2p.hp.com SFO_2p

16.89.140.202 SFO_1v.hp.com SFO_1v

16.89.140.204 SFO_2v.hp.com SFO_2v

2.Configure the appropriate host equivalence for the oracle user. When installing Oracle RAC and the database software, host equivalence for the oracle user must be configured only among the nodes in the same site.

Add entries in the .rhosts file of the Oracle user for every network address of nodes in the site. Do not include the nodes in the other site.

In this example, following are the entries that are included in the .rhosts file:

SFO_1 oracle SFO_2 oracle SFO_1p oracle SFO_2p oracle SFO_1v oracle SFO_2v oracle

After installing and configuring all Oracle software, the host equivalence for the oracle user across the sites can be configured.

3.Update the /home/oracle/.profile file for the Oracle user and set the ORACLE_SID environment variable using the RAC database instance name that will run in the node.

Following is the .profile file for this example:

export ORACLE_BASE=/opt/app/oracle

export ORACLE_HOME=$ORACLE_BASE/product/10.2.0/db_1 export ORA_CRS_HOME=/opt/crs/oracle/product/10.2.0/crs LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib:

$ORACLE_HOME/rdbms/lib SHLIB_PATH=$ORACLE_HOME/lib32:$ORACLE_HOME/rdbms/lib32 export LD_LIBRARY_PATH SHLIB_PATH

export PATH=$PATH:$ORACLE_HOME/bin:$ORA_CRS_HOME/bin: /usr/local/bin:

CLASSPATH=$ORACLE_HOME/jre:$ORACLE_HOME/jlib: $ORACLE_HOME/rdbms/jlib:$ORACLE_HOME/network/jlib

Configuring Oracle RAC Database in a Site Aware Disaster Tolerant Architecture 369