Sun Cluster 2.2 Software Installation Guide

5.2.1 How to Prepare the Nodes and Install the Oracle Software

These are the high-level steps to prepare Sun Cluster nodes for Oracle installation and install the Oracle software:


Caution - Caution -

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


Consult your Oracle documentation before performing this procedure.

These are the detailed steps to prepare Sun Cluster nodes and install the Oracle software:

  1. Prepare the environment 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 a physical host, then mount the Oracle software distribution as a file system on its own separate disk, if possible. This will prevent Oracle binaries from being overwritten if the operating environment is reinstalled.


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

    This group normally is named dba. Verify that root and oracle are members of the dba group, and add entries as necessary for other dba users. Make sure that the group IDs are the same on all nodes running Sun Cluster HA for Oracle. For example:

    dba:*:520:root,oracle 

    While you can make the name service entries in a network name service (for example, NIS or NIS+) so that the information is available to Sun Cluster HA for Oracle clients, you also should make entries in the local /etc files to eliminate dependency on the network name service.


    Note -

    This information must be replicated on each node.


  3. On each node, create an entry for the Oracle user ID (oracle_id) in the /etc/passwd file, and run the pwconv(1M) command to create an entry in the /etc/shadow file.

    This oracle_id is normally oracle. For example:

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

    Make sure that the user IDs are the same on all nodes running Sun Cluster HA for Oracle.

  4. Verify that the $ORACLE_HOME directory is owned by oracle_id and is included in the dba group.

    # chown oracle $ORACLE_HOME
    # chgrp dba $ORACLE_HOME
    

    If $ORACLE_HOME is a symbolic link to the Oracle home directory, then use the following command:

    # chown oracle $ORACLE_HOME
    # chgrp dba $ORACLE_HOME
    # chown -h oracle $ORACLE_HOME
    # chgrp -h dba $ORACLE_HOME
    
  5. Note the requirements for Oracle installation.

    Oracle binaries can be installed on either the local disks of the physical hosts, or on the multihost disks. See "5.1.1 Selecting an Install Location for Sun Cluster HA for Oracle", for more information.

    If you plan to install Oracle software on the multihost disks, you first must start Sun Cluster and take ownership of the logical host. See "5.2.2 Creating an Oracle Database and Setting Up Sun Cluster HA for Oracle", for details.

    When first installing Oracle, select the Install/Upgrade/Patch Software Only option. This is necessary because database initialization and configuration files must be modified to reflect the logical hosts as the location for the database.

  6. Install the Oracle software.

    On each node, modify the /etc/system files according to standard Oracle installation procedures. Also, on each node, create a /var/opt/oracle directory for user oracle and group dba.

    Log in as oracle to ensure ownership of the entire directory before performing this step. For complete instructions on installing Oracle software, refer to the ORACLE7 Installation and Configuration Guide and the Oracle7 for Sun SPARC Solaris 2.x Installation and Configuration Guide.

  7. Create the /var/opt/oracle/oratab file.

    As root, run the script $ORACLE_HOME/orainst/oratab.sh to create the /var/opt/oracle/oratab file with the appropriate permissions.

  8. Verify the Oracle installation.

    1. Verify that the Oracle kernel, $ORACLE_HOME/bin/oracle, is owned by oracle and is included in the dba group.

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

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

    4. Verify that the $ORACLE_HOME/orainst/RELVER file exists.

      $ORACLE_HOME/orainst/RELVER is created when Oracle Unix Installer is installed on the node. If the $ORACLE_HOME/orainst/RELVER file does not exist, then create it manually. Include the correct version number of the Oracle software installed on the node. For example:

      # cat $ORACLE_HOME/orainst/RELVER
      RELEASE_VERSION=8.0.4.0.0