Log into the node as the root user and perform the following:
STEP 1: Install the operating system; check the version of the operating system, by using the “#uname –a” command; make sure it corresponds to SUSE Linux Enterprise Server 10 (x86_64)
STEP 2: Create the operating system group dba;
Check whether the dba group exist by running the following command;
#grep dba /etc/group
If it does delete it by running the following commands:
# /usr/sbin/groupdel dba ;
and create a new group dba, by running the following commands:
# /usr/sbin/groupadd –g 200 dba ;
STEP3: Check whether the oracle user exists or not by running the following command:
# grep oracle /etc/passwd;
If no information appears, it indicates that the oracle user does not exist. If the user exists, delete it, and then create a user again.
Delete the oracle user by running the following command:
# /usr/sbin/userdel -f oracle
Create the oracle user by running the following command:
# /usr/sbin/useradd -u 300 -g dba -d /home/oracle -s /bin/bash -m oracle;
Also the following command should be run to create passwords;
# passwd oracle
STEP 4: Set the environment variables and assign permissions;
Assign Permissions to /opt/oracle by running the following commands:
# chown oracle:dba /opt/oracle
# chmod 770 /opt/oracle
Assigning Permissions to /opt/orabak
Run the following commands assign permissions to /opt/orabak:
# chown oracle:dba /opt/orabak
# chmod 770 /opt/orabak
Creating and Assigning Permissions to /usr/local/bin
Search for the directory /usr/local/bin .If the directory exists, you do not need to create it. Otherwise, run the following commands to create the directory and assign Read, Write, and Copy permissions to the directory .
# mkdir /usr/local/bin
# chmod 777 /usr/local/bin
# ll /usr/local
drwxrwxrwx 2 root root 4096 2007-05-03 21:24 bin
Assigning Permissions to /tmp
Check the /tmp directory to see whether it has the Read, Write, and Copy permissions. If the permissions are not assigned, run the following command to assign them to the directory:
# chmod 777 /tmp
# ll /
drwxrwxrwx 17 root root 4096 2008-06-13 10:00 tmp
Setting Environment Variables for the oracle User
Log in to node as the oracle user, and then set the environment variables described in this section in /home/oracle/.profile.
# Oracle Environment
export ORACLE_BASE=/opt/oracle
export ORACLE_HOME=$ORACLE_BASE/product/11gR1/db
export ORACLE_SID=oradb
export ORACLE_TERM=xterm
LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib:$ORACLE_HOME/rdbms/lib
export LD_LIBRARY_PATH
SHLIB_PATH=$ORACLE_HOME/lib32:$ORACLE_HOME/rdbms/lib32
export SHLIB_PATH
# Set shell search paths:
export PATH=$ORACLE_HOME/bin:/usr/sbin:$PATH:/usr/local/bin
# CLASSPATH must include the following JRE locations:
CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib
export CLASSPATH=$CLASSPATH:$ORACLE_HOME/network/jlib
export DBCA_RAW_CONFIG=/opt/oracle/rawdevpath
export NLS_LANG=AMERICAN_AMERICA.UTF8
STEP 5: Configuring the hosts File
Edit the hosts file on each node as the root user.
The path of the file is /etc/hosts e.g
#Network configuration of hostnameB
10.71.111.176 hostnameB hostnameB_data #IP address of the primary network adapter
STEP 6: Set the kernel Parameters for installing oracle on Linux. Apply the following settings:
Edit the /etc/sysctl.conf file, by adding the following;
# Disable response to broadcasts.
# You don't want yourself becoming a Smurf amplifier.
net.ipv4.icmp_echo_ignore_broadcasts = 1
# enable route verification on all interfaces
net.ipv4.conf.all.rp_filter = 1
# enable ipV6 forwarding
#net.ipv6.conf.all.forwarding = 1
net.ipv4.conf.all.arp_ignore = 2
.ipv4.conf.default.arp_ignore = 2
fs.file-max = 6553600
kernel.shmall = 2097152
kernel.shmmax = 2147483648
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
net.ipv4.ip_local_port_range=1024 65000
net.core.rmem_default = 4194304
net.core.rmem_max = 4194304
net.core.wmem_default = 262144
net.core.wmem_max = 262144
Enter the following command to change the current values of the kernel
parameters:
# /sbin/chkconfig boot.sysctl on
# /sbin/sysctl -p
Enter the commands shown in the following table to view the current values
of the kernel parameters:
# /sbin/sysctl -a | grep sem
# /sbin/sysctl -a | grep shm
# /sbin/sysctl -a | grep file-max
# /sbin/sysctl -a | grep net.ipv4.ip_local
STEP 7: Set the shell limits for the oracle user
Add the following lines to /etc/security/limits.conf file:
oracle - nproc 16384
oracle - nofile 65536
Add or edit the following line in the /etc/pam.d/login file, if it does not
already exist:
session required pam_limits.so
STEP 8: Copying Files from the Installation Disks
Copy the oracle 11g software stored in other disks to the /opt/orabak directory and unzip the files as follows:
# unzip /opt/orabak/linux.x64_11gR1_database.zip
# chmod 777 -R /opt/orabak/database
# chown oracle:dba -R /opt/orabak/database
STEP 9: Creating the Inventory Directory
Run the following commands to create /opt/oracle/oraInventory and set oracle:dba as the owner of the directory:
Run the following commands to stop the cluster and activate VG_ORA:
# mkdir /opt/oracle/oraInventory
# chown oracle:dba /opt/oracle/oraInventory
# chmod 755 /opt/oracle/oraInventory
STEP 10: Setting the DISPLAY Environment Variable
Run the following command to change to the oracle user:
# su - oracle
Set the DISPLAY environment variable.
If the display terminal is directly connected to the server, run the following command to set DISPLAY:
$ export DISPLAY=localhost:0.0 If that doesn’t work do the following;
$ export DISPLAY=:0.0
Check if the display setting is set by running this command :
$ echo $DISPLAY
Run the following command to check whether all the environment variables for the Oracle database software take effect. Before installation, make sure that the settings of the environment variables in the .profile file take effect.
$ env
STEP 11: Installing the Oracle11g Database Software
To install Oracle11g, you need to log in to the operating system as the oracle user and make sure that all the environment variables for the user are effective
During the installation, if the installation is stopped because the space of /tmp is insufficient, run the following commands as the oracle user to set the TEMP and TEMPDIR environment variables and point the TEMP space to a file system that has sufficient space:
$ export TEMP=/opt/oracle
$ export TEMPDIR=/opt/oracle
STEP 12 : Starting the Oracle Universal Installer
Log in to the operating system as user oracle, and then run the following command to start the Oracle Universal Installer (OUI):
$ /opt/orabak/database/runInstaller
Log in to the operating system as user oracle, and then run the following command to start the Oracle Universal Installer (OUI):
$ /opt/orabak/database/runInstaller
STEP 13: Specifying a User Group and the Global Database Name
To specify a user group and the global database name, do as follows:
1. Select Basic Installation.
2. Select a database version in Installation Type.
3. Select the created DBA group in UNIX DBA Group.
4. Deselect Create Starter Database
The reason for any error may be any of the following:
The directory /opt/oracle does not exist.
The oracle user does not have the permission to write data into /opt/oracle.
STEP 14: Specifying the Path of the Inventory Directory
Select the created Inventory directory in Enter the full path of the inventory directory.
Performing Check Before Installation; If there is no error, click Next.
Configuring Administrator Registration Information
If nothing needs to be configured, click Next.
Summary Check
If there is no error, click Install.