2. Check hostname & IP on file /etc/hosts To get hostname run command # hostname To get your IP run file # /sbin/ifconfig # It will be under the ouput of section lo as inet addr If IP and hostname are not present then insert them in file: # vi /etc/hosts e.g. 127.0.0.1 localhost.localdomain localhost 3. Add Host IP to the hosts granted of connection with the X Server # xhost +<yourIP> Example: #xhost +127.0.0.1 4. Add Groups and User # groupadd -g 502 oinstall # groupadd -g 503 dba # groupadd -g 504 oper # groupadd -g 505 asmadmin # useradd -u 502 -g oinstall -G dba,asmadmin,oper oracle # passwd oracle 5. Create the directories where Oracle will be installed and give right ownershi p and permission # mkdir -p /u01/app/oracle/product/11.2.0/dbhome_1 # chown -R oracle:oinstall /u01 # chmod -R 775 /u01 6. Set Kernel's Parameters # vi /etc/sysctl.conf Add or amend the following lines in the /etc/sysctl.conf file. #### Oracle 11g Kernel Parameters #### fs.suid_dumpable = 1 fs.aio-max-nr = 1048576 fs.file-max = 6815744 kernel.shmall = 2097152 # This parameter may already exist in file kernel.shmmax = 536870912 # This parameter may already exist in file kernel.shmmni = 4096 # semaphores: semmsl, semmns, semopm, semmni kernel.sem = 250 32000 100 128 net.ipv4.ip_local_port_range = 9000 65500 net.core.rmem_default=4194304 net.core.rmem_max=4194304 net.core.wmem_default=262144 net.core.wmem_max=1048586 Comment out these lines in same file /etc/sysctl.conf #net.bridge.bridge-nf-call-ip6tables = 0 #net.bridge.bridge-nf-call-iptables = 0 #net.bridge.bridge-nf-call-arptables = 0 7. Add user settings in limits.conf file # vi /etc/security/limits.conf Add the following lines to the /etc/security/limits.conf file. #### oracle User Settings 4 Oracle 11g #### oracle soft nproc 2047 oracle hard nproc 16384 oracle soft nofile 1024 oracle hard nofile 65536 oracle soft stack 10240 8. Disable Secure (SE) Linux by editing the /etc/selinux/config file, making sur e the SELINUX flag is set as follows SELINUX=disabled # vi /etc/selinux/config 9. Run the following command to Load the New Kernel Parameters. # /sbin/sysctl -p 10. Install the Prerequisite Packages # yum install gcc compat-libstdc++-33 elfutils-libelf-devel glibc-header s gcc-c++ \libaio-devel libstdc++-devel unixODBC unixODBC-devel sysstat # Error during installing of packages due repo errors, to resolve add DVD as bas e repository in RHEL 6 vi /etc/yum.repos.d/iso.repo # create new file Following lines should be added to above file. You can use your favorite editor. [base] name=CDROM baseurl=file:///mnt/cd/Server enabled=1 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-releas e Now mount Installation DVD to /mnt/cd. # Can be mount anywhere, just baseu rl in above configuration. # mkdir /mnt/cd # mount /dev/cdrom /mnt/cd 11. Unzip the Oracle 11g Database, Set oracle as Owner and Move it into the orac le's Home - if not already unzip # cd </path/To/linux_11gR2*.zip> # unzip linux_11gR2_database_1of2.zip # unzip linux_11gR2_database_2of2.zip # chown -R oracle:oinstall database # May be reappli ed if ./runInstaller file doesn't run, make sure permission has been granted # mv database /home/oracle 12. Add Paths to Oracle's .bash_profile # Login as Oracle # su oracle 13. Edit the .bash_profile # vi /home/oracle/.bash_profile Insert the following contents in .bash_profile: # Oracle Settings TMP=/tmp; export TMP TMPDIR=$TMP; export TMPDIR ORACLE_HOSTNAME=<HOSTNAME>; export ORACLE_HOSTNAME # <HOSTN AME> to be replaced with ip like 127.0.0.1 ORACLE_UNQNAME=DB11G; export ORACLE_UNQNAME ORACLE_BASE=/u01/app/oracle; export ORACLE_BASE ORACLE_HOME=$ORACLE_BASE/product/11.2.0/dbhome_1; export ORACLE_HOME ORACLE_SID=<DBSID>; export ORACLE_SID # <DBSID > to be replaced with SID like Orcl PATH=/usr/sbin:$PATH; export PATH PATH=$ORACLE_HOME/bin:$PATH; export PATH LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib; export LD_LIBRARY_PATH CLASSPATH=$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib; export CLASSPATH 14. Install the Oracle 11g Software cd /home/oracle/database ./runInstaller