Sun Cluster 3.0 Data Services Installation and Configuration Guide

Installing the Oracle Server Software

Use the procedures in this section to do the following:

Before setting up Sun Cluster HA for Oracle, you must have configured the Sun Cluster software on each node by using the procedures described in the Sun Cluster 3.0 Installation Guide.

How to Prepare the Nodes

This procedure describes how to prepare the cluster nodes for installation of the Oracle application software.


Caution - Caution -

Perform all the steps described in this section on all Sun Cluster nodes.


Consult the Oracle documentation before performing this procedure.

The following steps prepare Sun Cluster nodes and install the Oracle software:

  1. Become superuser on all the nodes in the cluster.

  2. Set up the /etc/nsswitch.conf files as follows so that the data service starts and stops correctly in case of switchovers or failovers.

    On each node that can master the logical host running Sun Cluster HA for Oracle, the /etc/nsswitch.conf file must have one of the following entries for group.


    group:
    group:		 	files
    group:		 	files [NOTFOUND=return] nis
    group:		 	files [NOTFOUND=return] nisplus

    Sun Cluster HA for Oracle uses the su user command when starting and stopping the database node. The above settings ensure that the su(1M) command does not refer to NIS/NIS+ when the network information name service is not available because of a failure of the public network on the cluster node.

  3. Set up the cluster file system for Sun Cluster HA for Oracle.

    If you are using raw devices to contain the databases, you must configure the global devices for raw device access. For information on configuring global devices, see the Sun Cluster 3.0 Installation Guide.

    When using SolsticeTM DiskSuite, configure Oracle to use UFS logging or raw mirrored meta devices. For more information on setting up raw mirrored meta devices, see the Solstice DiskSuite documentation.

  4. Prepare the Oracle home directory for Oracle installation.

    Choose a location for the $ORACLE_HOME directory on either a local or multihost disk.


    Note -

    If you choose to install the Oracle binaries on a local disk of the physical hosts, use a separate disk, if possible. Doing so prevents Oracle binaries from being overwritten if the operating environment is reinstalled.


  5. On each node, create an entry for the database administrator group in the /etc/group file and add potential users to the group.

    Normally, this group is named dba. Verify that root and oracle_id are members of the dba group and add entries as necessary for other DBA users. Ensure that the group IDs are the same on all the nodes that run Sun Cluster HA for Oracle. For example:


    dba:*:520:root,oracle 

    You can make the group entries in a network name service (for example, NIS or NIS+). You should also make entries in the local /etc files to eliminate dependency on the network name service.

  6. On each node, create an entry for the Oracle user ID (oracle_id).

    Normally, oracle_id is oracle. The following command line updates the /etc/passwd and /etc/shadow files as required.


    # useradd -u 120 -g dba -d /Oracle-home oracle
    

    Ensure that oracle_id is the same on all the nodes that run Sun Cluster HA for Oracle.

How to Install the Oracle Software
  1. Become superuser on a node in the cluster.

  2. Note the requirements for Oracle installation.

    You can install Oracle binaries on either the local disks of the physical hosts or on the cluster file system. For more information about installation locations, see "Preparing to Install Sun Cluster HA for Oracle".

    If you plan to install Oracle software on the cluster file system, you must first start Sun Cluster and take ownership of the disk device group.

  3. Install the Oracle software.

    Regardless of where the Oracle software is to be installed, on each node, modify the /etc/system files according to standard Oracle installation procedures. Reboot afterward.

    Log in as oracle_id to ensure ownership of the entire directory before performing this step. For instructions on installing Oracle software, refer to the appropriate Oracle installation and configuration guides.

How to Verify the Oracle Installation

  1. Verify that $ORACLE_HOME/bin/oracle is owned by the oracle_id user and the dba group.

  2. Verify that the $ORACLE_HOME/bin/oracle permissions are set as follows:


    -rwsr-s--x
  3. Verify that the listener binaries exist in $ORACLE_HOME/bin.

Where to Go from Here

When you have completed the work in this section, go to "Creating an Oracle Database".