==============================================
HOW TO INSTALL ORACLE DATABASE 12C ON LINUX
==============================================
STEP1: Install the 19c preinstall package using the yum command.
From root user:
yum install oracle-database-server-12cR2-preinstall -y
STEP2: Change Oracle USER password.
Set Oracle password : passwd oracle
STEP3: Create required directories for 19c software and data files.
Create required directories for oracle 19c software and datafiles and archive log
mkdir -p /u01/app/oracle/product/12c/db_1/
mkdir -p /u01/app/oracle/oradata/
mkdir -p /u01/app/oracle/FRA/
chown -R oracle:oinstall /u01/
chmod -R 775 /u01/
STEP4: Set bash_profile from oracle user.
From oracle user:
Set bash_profile i.e. environment variables.
export TMP=/tmp
export TMPDIR=$TMP
export ORACLE_BASE=/u01/app/oracle
export DB_HOME=$ORACLE_BASE/product/12c/db_1
export ORACLE_HOME=$DB_HOME
export ORACLE_SID=orcl
export ORACLE_TERM=xterm
export BASE_PATH=/usr/sbin:$PATH
export PATH=$ORACLE_HOME/bin:$BASE_PATH
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib
export CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib
STEP5: Set limits from the root user.
From root user:
Add the below entries in /etc/security/limits.conf file which will define the
limits
oracle soft nofile 1024
oracle hard nofile 65536
oracle soft nproc 16384
oracle hard nproc 16384
oracle soft stack 10240
oracle hard stack 32768
oracle hard memlock 134217728
oracle soft memlock 134217728
STEP6: Copy Binary files into oracle home and unzip.
From oracle user:
Unzip oracle 19c software which is already copied on the server.
cd /u01/app/oracle/product/19c/db_1/
unzip V839960-01.zip
STEP7: Invoke runInstaller after setting Display (note: if you want you can use
Mobaxterm which does not require Display settings).
Login to oracle user and set DISPLAY
DISPLAY=<machine-name>:0.0;
export DISPLAY
Set profile and go to ORACLE_HOME location and run the following command and follow
the steps.
cd $ORACLE_HOME
./runInstaller
STEP8: Verification.
for verification use:
sqlplus -v
or check
cat /etc/oraInst.loc
cd /u01/app/oraInventory/ContentsXML
cat inventory.xml
STEP9: Create a database using the DBCA utility.
Create a database using dbca utility.
STEP10: Create a listener From CLI
netmgr
-- Navigate to Local then listener. Click on th '+' icon
-- Edit the listening address and database services options to default value used
in db setup.
-- Save config file