4. On the root prompt type the following below:

          vi /etc/security/limits.conf /*its better you write the codes than copying and pasting*/
          

Installation of Oracle 11g

5. The vi editor file opens and you type key ‘a’ on keyboard which allows you to modify the file, then scroll down to where you see “# End of file” click enter and copy and paste the following:

          oracle soft nproc 2047
          oracle hard nproc 16384
          oracle soft nofile 1024
          oracle hard nofile 65536
          /*Note: after copying and pasting on vi editor click on ESC tab,then type ZZ on keyboard to save and exit.*/
          

6. On the root prompt type the following below:

            vi /etc/profile
           

7. The vi editor file opens and you type key ‘a’ which allows you to modify the file, then scroll one step down to where you see an empty #” copy and paste the following: /*Note anything that comes after # means comments*/

if [ $USER = "oracle" ]; then
if [ $SHELL = "/bin/ksh" ]; then
ulimit -p 16384
ulimit -n 65536
else
ulimit -u 16384 -n 65536
fi
fi
/*Note: When you are done copying and pasting, press ESC key on keyboard then also type ZZ in uppercap to save and exit*/
           

8. Create necessary directories for Oracle home by typing the following on command line:

mkdir -p /u01/app/oracle/product/11.2.0/db_1
chown –R oracle:oinstall /u01
chmod –R 0775 /u01
          

Installing Oracle 11g on OEL

9. Setting Environment Variables (optional).

To set environment variable for your Oracle database 11g, run the following as root user.

      vi /home/oracle/.bashrc
      

Copy and paste the following below inside the .bashrc file as shown in image below.
To exit, press the esc key on keyboard then make sure your caps is on,then type ZZ to save and exit.

export ORACLE_HOME=/u01/app/oracle/product/11.2.0/db_1
export ORACLE_SID=orcl
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ORACLE_HOME/lib
export PATH=$ORACLE_HOME/bin:$PATH alias database='export ORACLE_SID=orcl;sqlplus"/ as sysdba"'
      

Installing Oracle 11g on OEL

When u finish reboot and login as still root user. you can reboot by typing init 6 on terminal.