Install Oracle Database 19C on Red Hat Enterprise Linux — RHEL 8
1 min readDec 3, 2021

Before starting the installation, you might prepare your environment following the optional steps below:
- Install required packages
$ yum install bc binutils elfutils-libelf elfutils-libelf-devel fontconfig-devel glibc glibc-devel ksh libaio libaio-devel libgcc libnsl librdmacm-devel libstdc++ libstdc++-devel libX11 libXau libxcb libXi libXrender libXrender-devel libXtst make net-tools nfs-utils python3 python3-configshell python3-rtslib python3-six smartmontools sysstat targetcli unzip - Creating user and group
# This steps will be created by the Oracle Database Preinstallation RPM
$ groupadd -g 1001 oinstall
$ groupadd -g 1002 dba
$ groupadd -g 1003 oper
$ useradd -g oinstall -G dba,oper oracle
$ passwd oracle - Set environment variables for Oracle user
$ vi ~/.bash_profile
umask 022
export ORACLE_SID=ORCLCDB
export ORACLE_BASE=/opt/oracle/oradata
export ORACLE_HOME=/opt/oracle/product/19c/dbhome_1
export PATH=$PATH:$ORACLE_HOME/bin
$ source ~/.bash_profile
Starting the Installation Process:
- Downloading the Oracle Database Preinstallation RPM
https://www.oracle.com/database/technologies/oracle-database-software-downloads.html - Installing the RPM package
$ dnf -y install https://yum.oracle.com/repo/OracleLinux/OL8/appstream/x86_64/getPackage/oracle-database-preinstall-19c-1.0-1.el8.x86_64.rpm - To configure a sample Oracle Database you can execute the following service configuration script as root
$ /etc/init.d/oracledb_ORCLCDB-19c configure - Test database connection
$ sqlplus / as sysdba
SQL> exit
Resources:
https://docs.oracle.com/en/database/oracle/oracle-database/19/ladbi/index.html