Add or amend the following lines in the "/etc/sysctl.conf" file.
kernel.sem = 250 32000 100 128
kernel.shmall = 1073741824
kernel.shmmax = 4398046511104
net.core.rmem_default = 262144
net.core.rmem_max = 4194304
net.core.wmem_default = 262144
net.core.wmem_max = 1048576
net.ipv4.ip_local_port_range = 9000 65500
Run the following command to change the current kernel parameters.
Add the following lines to the "/etc/security/limits.conf" file.
MANUALLY INSTALL PACKAGES FROM INTERNET OR FROM CD DRIVE(below is to install from INTERNET) :
Yum install binutils, compat-libcap1, compat-libstdc++-33, compat-libstdc++-33.i686, gcc, gcc-c++, glibc, glibc.i686, glibc-devel, glibc-devel.i686, ksh, libgcc, libgcc.i686, libstdc++, libstdc++.i686, libstdc++-devel, libstdc++-devel.i686, libaio, libaio.i686, libaio-devel, libaio-devel.i686, libXext, libXext.i686, libXtst, libXtst.i686, libX11, libX11.i686, libXau, libXau.i686, libxcb, libxcb.i686, libXi, libXi.i686, make, sysstat, unixODBC, unixODBC-devel
Create the new groups and users as per your requirements. For my case just to keep it simple let's use 3 groups & oracle users.
groupadd -g 54321 oinstall
useradd -u 54321 -g oinstall -G dba,oper oracle.
Set SELINUX to permissive or diable it if this is test env.
Set secure Linux to permissive by editing the "/etc/selinux/config" file, making sure the SELINUX flag is set as follows.
Create the directories in which the Oracle software will be installed.
mkdir -p /u01/app/oracle/product/12.1/db_1
chown -R oracle:oinstall /u01
Add the following lines at the end of the "/home/oracle/.bash_profile" file.
export ORACLE_HOSTNAME=ol6-121.localdomain
export ORACLE_UNQNAME=orcl
export ORACLE_BASE=/u01/app/oracle
export ORACLE_HOME=$ORACLE_BASE/product/12.1/db_1
export PATH=/usr/sbin:$PATH
export PATH=$ORACLE_HOME/bin:$PATH
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib
export CLASSPATH=$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib
Change your directory to the location where you have downloaded Oracle software.
Start the Oracle Universal Installer (OUI) by issuing the following command in the database directory.
I don't want any update to uncheck to receive updates.
Lets create a server class.
To keep this simple I am going to select a typical installation.
Make sure you have selected the home path correct.
After This step, you will be notified if you have any pre-req failures. Make sure you have cleared them all. Missing ksh package can be ignored as this is a known bug. Oracle is expecting a specific version of ksh & i have the latest pkg. Assuming that you have all cleared up.
Now you will be prompted to execute shell scripts before the installation of software is complete. I have missed that prompt screen but it will ask you to execute the below 2 shell scripts as the root user. see below screen
After executing hit OK and it will continue to install oracle DB software.
You will see this screen after installation is complete.