Professional IT Solution - Oracle Database 19c Training
Preparing Linux for Installing Oracle Database 19c
1. Install Linux (CentOS 8) with Required Resources
RAM – 8 GB
CPU – 2 Core
Disk Space – 80GB
/boot – 1GB
/ - 20GB
/tmp – 1GB
/u01 – 20GB
/u02 – 30GB
swap – 8 GB
2. Disable SELinux
# vi /etc/selinux/config
SELINUX=disabled
# setenforce 0
# getenforce
# reboot
3. Disable Firewall
# systemctl stop firewalld
# systemctl disable firewalld
Prepared By: Sanjiv R. Karn
OCP-Oracle, DevOps Professional, RHCI, RHCE-Linux, RHCS-Ansible, RHCSA-OpenStack, VCP-VMware
IT Trainer & Consultant, +977-9851127912, sanjiv@professionalitsolution.com
Professional IT Solution - Oracle Database 19c Training
4. Update CentOS 8 and Install Required Packages
# ls /etc/yum.repos.d
# yum -y update
# cd /etc/yum.repos.d
# wget http://public-yum.oracle.com/public-yum-ol7.repo
# rpm --import http://yum.oracle.com/RPM-GPG-KEY-oracle-ol7
# yum -y install oracle-database-preinstall-19c
# yum -y install gcc-c++
# yum -y install compat-libstdc*
# yum –y install libnsl
5. Create required groups and users
# groups oracle
# passwd oracle
6. Create required directories for the Oracle software and database
# mkdir -p /u01/app/oracle/product/19.3.0/dbhome_1
# mkdir -p /u02/oradata
# chown -R oracle:oinstall /u01 /u02
# chmod -R 775 /u01 /u02
7. Set environment variables
# vi /home/oracle/.bashrc
# Oracle Settings
export TMP=/tmp
export TMPDIR=$TMP
Prepared By: Sanjiv R. Karn
OCP-Oracle, DevOps Professional, RHCI, RHCE-Linux, RHCS-Ansible, RHCSA-OpenStack, VCP-VMware
IT Trainer & Consultant, +977-9851127912, sanjiv@professionalitsolution.com
Professional IT Solution - Oracle Database 19c Training
export ORACLE_HOSTNAME=sanjivserver.pis.com
export ORACLE_UNQNAME=orcl
export ORACLE_BASE=/u01/app/oracle
export ORACLE_HOME=$ORACLE_BASE/product/19.3.0/dbhome_1
export ORA_INVENTORY=/u01/app/oraInventory
export ORACLE_SID=orcl
export DATA_DIR=/u02/oradata
export PATH=$PATH:$ORACLE_HOME/bin
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/lib64:/usr/lib:/usr/lib64
export CLASSPATH=$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib
8. Specify an entry for Hostname to IP Address Mapping
# hostname
# hostname –I
# vi /etc/hosts
(bottom)
192.168.234.200 sanjivserver.pis.com
9. Extract the Oracle Database 19c Software and Execute the Installer Script
Login as oracle user
Save the Oracle Database 19c Software (LINUX.X64_193000_db_home.zip) into
$ORACLE_HOME directory
$ cd $ORACLE_HOME
$ unzip LINUX.X64_193000_db_home.zip
$ ls
Prepared By: Sanjiv R. Karn
OCP-Oracle, DevOps Professional, RHCI, RHCE-Linux, RHCS-Ansible, RHCSA-OpenStack, VCP-VMware
IT Trainer & Consultant, +977-9851127912, sanjiv@professionalitsolution.com
Professional IT Solution - Oracle Database 19c Training
10. Set the Required Variable Value
Login as oracle user
$ vi $ORACLE_HOME/cv/admin/cvu_config
uncomment Line 20 (CV_ASSUME_DISTID=OEL5)
$ source $ORACLE_HOME/cv/admin/cvu_config
11. Run the Oracle Installer Script
$ cd $ORACLE_HOME
$ ls
$ ./runInstaller [Note: Installer script takes 15/20 minutes time to initialize, wait]
[Note: Pre-requisite checks also take 15/20 minutes time to initialize, wait]
Prepared By: Sanjiv R. Karn
OCP-Oracle, DevOps Professional, RHCI, RHCE-Linux, RHCS-Ansible, RHCSA-OpenStack, VCP-VMware
IT Trainer & Consultant, +977-9851127912, sanjiv@professionalitsolution.com