Oracle Database 18c – how to install in Oracle Linux 7.6 64-bit OS

Step 1 – Disable firewall and selinux
==========================
# service iptables stop
# chkconfig iptables off
# vi /etc/selinux/config
    SELINUX=disabled
==========================
Step 2 – create OS group and user
=========================
# groupadd -g 1100 oinstall
# groupadd -g 1131 dba
# groupadd -g 1132 oper
# useradd -u 1101 -g oinstall -G dba,oper oracle
# passwd oracle
==========================
create directories
==========================
# mkdir -p /u01/app/oracle/product/18.3.0/dbhome_1
# chown -R oracle:oinstall /u01
# chmod -R 775 /u01
==========================
==========================
# vi /etc/hosts
==========================
    192.168.100.10 testlab.com.bd testlab
==========================
==========================
run the following command from anywhere as root
# yum install oracle-database-preinstall-18c.x86_64

==========================

run as oracle user
==========================
# TMP=/tmp; export TMP
# TMPDIR=$TMP; export TMPDIR
# ORACLE_HOSTNAME=testlab.com.bd; export ORACLE_HOSTNAME
# ORACLE_BASE=/u01/app/oracle; export ORACLE_BASE
# ORACLE_HOME=$ORACLE_BASE/product/18.3.0/dbhome_1; export ORACLE_HOME
# ORACLE_SID=orcl; export ORACLE_SID
# ORACLE_UNQNAME=orcl; export ORACLE_UNQNAME
# ORACLE_TERM=xterm; export ORACLE_TERM
# BASE_PATH=/usr/sbin:$PATH; export BASE_PATH
# PATH=$ORACLE_HOME/bin:$GRID_HOME/bin:$BASE_PATH; export PATH
# LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib; export LD_LIBRARY_PATH
# CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib; export CLASSPATH
===========================
===========================
run  in as Oracle go to ORACLE_HOME Directory and run
===========================
#  ./runInstaller
===========================
===========================
after software is install run dbca to create database
===========================

Leave a Reply

You must be logged in to post a comment.