This section explains how to install and configure Oracle software.
Note
Install only Oracle software to all nodes. Do not create a database in this section (Database creation is performed in "2.2.6 Oracle Database Creation and Setting").
If you install Oracle software on the shared disk, using ASM is not supported. Install the Oracle software on a local disk of each node when you use ASM.
If multiple Oracle homes are configured on one server, a different user name must be assigned for each Oracle home.
If you install Oracle Grid Infrastructure to use ASM on Oracle 11g R2, you must create install user for the Oracle Grid Infrastructure and the Oracle Database installations separately. For information on how to install this configuration, see "2.3.2 ASM (Automatic Storage Management)".
Confirm the contents of "Chapter 5 Notice" before Installing.
Initial setup
Set up the kernel parameter
Set up values in the "/etc/system" file for Oracle in addition to the values for PRIMECLUSTER.
The kernel parameter values vary depending on the implemented Oracle versions.
Refer to the Oracle installation guide. The parameter values should be identical on all the nodes.
The kernel parameters can be configured with the sysctl (8) utility when they are executed. The procedures for changing the kernel parameters and setting up the new kernel parameters are explained below.
Note
For semopm (the third value of "kernel.sem"), specify a value of 4 or more.
Example
The following command enables the value of /etc/sysctl.conf for the kernel. You do not have to reconfigure the kernel.
To change the kernel parameter while the OS is running, use sysctl (8). For details about sysctl (8), refer to the manual pages.
sysctl -p <filename>
If <filename> is omitted, read from /etc/sysctl.conf.
Oracle User
Create an OS user which belongs to OSDBA group to allow users to install and operate Oracle. The user ID and the group ID must be the same on all the nodes.
Example
# groupadd -g <group ID> dba
# groupadd -g <group ID> oinstall
# useradd -g oinstall -G dba oracle
# passwd oracle
Normally, the group name should be "dba" and "oinstall".
Set up an environment variable of an Oracle user.
Example
(.bash_profile)
ORACLE_BASE=/u01/app/oracle; export ORACLE_BASE ORACLE_HOME=/u01/app/oracle/product/db; export ORACLE_HOME ORACLE_SID=ora export ORACLE_SID LD_LIBRARY_PATH=$ORACLE_HOME/lib; export LD_LIBRARY_PATH PATH=$ORACLE_HOME/bin:/usr/bin:/bin:/usr/bin/X11/:/usr/local/bin; export PATH
Note
PRIMECLUSTER Wizard for Oracle controls Oracle as the Oracle user which belongs to OSDBA group.
Be sure to include ORACLE_HOME/bin in the PATH environment variable of the Oracle user.
Check if root user access privileges can switch the user to the Oracle user, using the su (1M) command.
# su - <Oracle user>
A command (e.g. script) that has interactive mode should not be described in Oracle user's profile. (e.g. /etc/profile, .bash_profile, .cshrc, .profile) It may cause failure of userApplication startup, shutdown or monitoring.
Environment that Oracle user's home directory and profile are located on the shared disk is not supported. Oracle user's home directory and profile must be located on the local disk of each node.
See
For further details, refer to the Oracle manual.
Installation
Install Oracle software using Oracle user access privileges.
Install a program on the local disk of each node or on the shared disk. If you install it on the local disk, refer to the Oracle manual. If you install it on the shared disk, refer to "Appendix D Using Oracle Database software on shared disks".
The database needs to be created on the shared disk when configuration of the cluster system is completed, not when Oracle software is installed. The details will be described in "2.2.6 Oracle Database Creation and Setting".
See
For further details, refer to the Oracle manual.