Oracle Database 11g Release 2 Real Application Clusters with SLVM/RAW on HP-UX Installation Cookbook, September 2010
14
• Set Oracle environment variables by adding an entry similar to the following example to each user
startup .profile file for the Bourne or Korn shells, or .login file for the C shell.
# Oracle Environment
export ORACLE_BASE=/var/opt/oracle
export ORACLE_HOME=$ORACLE_BASE/rac_r2
export ORA_CRS_HOME=/var/opt/product/crs_r2
export ORACLE_SID=<SID>
export ORACLE_TERM=xterm
export PATH=$ORACLE_HOME/bin:$ORA_CRS_HOME/bin:$PATH
Check Cluster Configuration with Cluster Verification Utility
Cluster Verification Utility (Cluvfy) is a cluster utility introduced with Oracle Clusterware 10g Release
2. The wide domain of deployment of Cluvfy ranges from initial hardware setup through fully
operational cluster for RAC deployment and covers all the intermediate stages of installation and
configuration of various components. Cluvfy is provided with two scripts: runcluvfy.sh, which is
designed to be used before installation, and Cluvfy, which is in the path ORA_CRS_HOME/bin. The
script runcluvfy.sh contains temporary variable definitions which enable it to be run before installing
Oracle Clusterware or Oracle Database. After you install Oracle Clusterware, use the command
Cluvfy to check prerequisites and perform other system readiness checks.
Before Oracle software is installed, to enter a Cluvfy command, change directories and start
runcluvfy.sh using the following syntax:
cd /mountpoint
./runcluvfy.sh options
With Cluvfy, you can either
• Check the status for a specific component
cluvfy comp -list Cluvfy displays a list of components that can be
checked, and brief descriptions of how each component is checked.
cluvfy comp -help Cluvfy displays detailed syntax for each of the
valid component checks.
or
• Check the status of your cluster/systems at a specific point (= stage) during your RAC installation.
cluvfy stage -list Cluvfy displays a list of valid stages.
cluvfy stage -help Cluvfy displays detailed syntax for each
of the valid stage checks.
• Example 1: Checking Network Connectivity among all cluster nodes:
bike$ <OraStage>/clusterware/runcluvfy.sh comp nodecon -n bike,cycle
[-verbose]
• Example 2: Performing pre-checks for cluster services setup
bike$ <OraStage>/clusterware/runcluvfy.sh stage -pre crsinst -n
bike,cycle [-verbose]