How to install Oracle Database 19c on Oracle Linux or RHEL 8 step by step

In this article, we are going see how to install Oracle Database 19c on Oracle Linux or RHEL 8 step by step.

We are going to see installation of Oracle database 19c on Oracle linux:

How to install Oracle Database 19c on Oracle Linux or RHEL 8 step by step

1. We have to run pre-install step:

sudo yum install -y oracle-database-preinstall-19c

How to install Oracle Database 19c on Oracle Linux or RHEL 8 step by step

2. Set password for user oracle by using root user or the user who is having sudo privileges.

passwd oracle

3. Create ORACLE HOME directory and give ownership to user oracle.

mkdir -p /u01/app/oracle/product/19.3/db_home chown -R oracle:oinstall /u01 chmod -R 775 /u01

4. Setup bash_profile for the user ‘oracle’:

su - oracle vi .bash_profile

Delete all and paste below. Make sure to change environment variables according to your environment

# .bash_profile # Get the aliases and functions if [ -f ~/.bashrc ]; then . ~/.bashrc fi # User specific environment and startup programs export ORACLE_BASE=/u01/app/oracle export ORACLE_HOME=/u01/app/oracle/product/19.3/db_home export ORACLE_SID=CDB export LD_LIBRARY_PATH=\$ORACLE_HOME/lib:/lib:/usr/lib export CLASSPATH=\$ORACLE_HOME/jlib:\$ORACLE_HOME/rdbms/jlib export NLS_LANG=american_america.al32utf8 export NLS_DATE_FORMAT="yyyy-mm-dd:hh24:mi:ss" PATH=$PATH:$HOME/.local/bin:$ORACLE_HOME/bin export PATH

Then run . .bash_profile

5. Now download Oracle database 19c software using below link:

https://www.oracle.com/database/technologies/oracle19c-linux-downloads.html

6. Once software is downloaded, copy the zip file from Downloads directory to ORACLE_HOME directory:

7. Unzip the software using below command:

unzip -qo /softwares/LINUX.X64_193000_db_home.zip

8. Now install Oracle database 19c using below command(for GUI method):

Run the below command,

export CV_ASSUME_DISTID=OEL7.8

./runInstaller

Select 1st option and click on Next

Select Desktop Class and click on Next.

provide password and click on Next.

Click on Next.

Select “Automatically run configuration scripts” and provide password for user root.

Review the installation summary and click on Install.

Click on Yes.

Installation is successful. Click on close.

9. Now run the following command on the terminal:

export ORACLE_SID=orcl

10. Now connect to Oracle database 19c uby running sqlplus / as sysdba

11. Verify the hostname using below command:

select instance_name,status from v$instance;

So, in this article we have seen how to install Oracle database 19c on Oracle Linux step by step.

Watch below video for the same:

Leave a Reply

Your email address will not be published. Required fields are marked *