Monday, March 16, 2026

Step-by-step installation of Oracle Database 19c (64-bit) on Red Hat Enterprise Linux 9.4

Oracle Database 19c Installation Runner

Platform: RHEL 9.4 (64-bit)


Step-by-step installation of Oracle Database 19c (64-bit) on Red Hat Enterprise Linux 9.4.


1. Assumed the Installer is downloaded 

File name:

LINUX.X64_193000_db_home.zip

Upload it to the server 

/stage/oracle/LINUX.X64_193000_db_home.zip


2.  Configure Hostname

hostname.

hostnamectl


3. Configure /etc/hosts

Edit hosts file.

vi /etc/hosts


4. Install Oracle Preinstall Package

Configure prerequisites 

dnf install -y oracle-database-preinstall-19c


*Note :(this pre install steps will automatically create the require user, group and required lib and rpm)


5. Configure SELinux

Edit SELinux configuration.

vi /etc/selinux/config

Set:

SELINUX=permissive

Apply immediately:

setenforce 0


6.  Disable Firewall

Stop firewall.

systemctl stop firewalld

systemctl disable firewalld


7. Create Oracle Directory Structure

Create Oracle installation directories using your custom path.

mkdir -p /Chetan/practice/u01/app/oracle/product/19.0.0/dbhome_1

mkdir -p /Chetan/practice/u02/oradata

Set ownership.

chown -R oracle:oinstall /Chetan

chmod -R 775 /Chetan


8.  Configure Oracle Environment

Login as oracle user.

su - oracle

Create scripts directory.

mkdir ~/scripts

Create environment script.

vi ~/scripts/setEnv.sh

Add:

export TMP=/tmp

export TMPDIR=$TMP


export ORACLE_HOSTNAME=rhel9-oracle.localdomain


export ORACLE_BASE=/Chetan/practice/u01/app/oracle

export ORACLE_HOME=$ORACLE_BASE/product/19.0.0/dbhome_1


export ORACLE_SID=cdb1

export PDB_NAME=pdb1


export DATA_DIR=/Chetan/practice/u02/oradata


export PATH=$ORACLE_HOME/bin:$PATH

export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib

Load environment automatically.

echo ". ~/scripts/setEnv.sh" >> ~/.bash_profile

Reload profile.

source ~/.bash_profile

 


9. Extract Oracle Software

Navigate to Oracle Home.

cd /Chetan/practice/u01/app/oracle/product/19.0.0/dbhome_1

Unzip software.

unzip -oq /stage/oracle/LINUX.X64_193000_db_home.zip


10 . Run Oracle Installer

Start installer.

./runInstaller

Select:

Install Database Software Only

Edition: Enterprise Edition

Oracle Base:

/Chetan/practice/u01/app/oracle

Oracle Home:

/Chetan/practice/u01/app/oracle/product/19.0.0/dbhome_1

________________________________________


11. Start Oracle Listener

Switch to oracle user.

Start listener.

lsnrctl start

Verify listener.

lsnrctl status

________________________________________

12. Create Database Using DBCA

Run Database Configuration Assistant.

dbca

Select:

Create Database

General Purpose Database

Create Container Database

Example configuration:

SID:

cdb1

PDB:

pdb1

 

Datafile location:

/Chetan/practice/u02/oradata


13. Verify Database

Connect to database.

sqlplus / as sysdba

Check database.

select name, open_mode from v$database;

Check PDB.

show pdbs;



Installation Completed

Oracle Database 19c is now successfully installed.

Oracle Home:

/Chetan/practice/u01/app/oracle/product/19.0.0/dbhome_1

Database files:

/Chetan/practice/u02/oradata


No comments:

Post a Comment