0% found this document useful (0 votes)
3 views

Preparing_Linux_and_Installing_Oracle_Database_19c

This document provides a step-by-step guide for preparing a Linux (CentOS 8) environment to install Oracle Database 19c, including system requirements, disabling SELinux and firewall, updating packages, and setting up necessary directories and environment variables. It details the installation process, including extracting the Oracle software and running the installer script. The guide is prepared by Sanjiv R. Karn, an IT trainer and consultant.

Uploaded by

hicata2319
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views

Preparing_Linux_and_Installing_Oracle_Database_19c

This document provides a step-by-step guide for preparing a Linux (CentOS 8) environment to install Oracle Database 19c, including system requirements, disabling SELinux and firewall, updating packages, and setting up necessary directories and environment variables. It details the installation process, including extracting the Oracle software and running the installer script. The guide is prepared by Sanjiv R. Karn, an IT trainer and consultant.

Uploaded by

hicata2319
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

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

You might also like