Oracle Database 19c Installation on RHEL 8 with OUI

Avani Jhala
4 min readOct 13, 2023

--

Oracle Database offers market-leading performance, scalability, reliability, and security, both on-premises and in the cloud. Oracle Database 19c is the current long-term release, and it provides the highest level of release stability and the longest time frame for support and bug fixes.

We are going to install Oracle 19c software and database on Linux8 which is running on Oracle Virtual Machine (7.0)

You can find detailed documentation on installing RHEL 8 on Oracle VM here.

Let’s start our installation.

1. Open the browser in your virtual machine, and go to https://yum.oracle.com to get the Oracle21c Pre-install rpm.

select Oracle Linux 8 under the browse repositories section -> AppStream Latest -> select x86–64 -> Type database in search bar -> Right-click and copy the link for “oracle-database-preinstall-21c-1.0–1.el8.x86_64.rpm”

Open the terminal and download the rpm using the wget command.

2. Install the RPM.

3. Create the password for the Oracle user. Oracle users and groups have already been created when you installed the RPM.

4. Open the browser again, and go to oracle.com to download Oracle19c (19.3) Software for Linux x86–64.

5. Once you download it, you can see it is now in your downloads. Now copy the zip file to /Avani, where we are going to install our software. /Avani is our mount point, to understand how we created our mount point, click here for detailed documentation.

Change the ownership of the directory /Avani from Root to oracle:oinstall Group/user using “ chown -R oracle:oinstall /Avani”.

Login as an Oracle user and unzip the “Linux.x64_193000_db_home.zip” file.

6. Create the following directory before starting the installation, because we set them as our Oracle_Home, Oracle_Base, and OraInventory location.

mkdir /Avani/oracle /Avani/oraInventory

7. Go to /Avani where we extract our Oracle Software. You can see runInstaller, but before executing it, set the OS parameter to a previous version to avoid below error.

Current OS version: 8

Setting it to 7.8

export CV_ASSUME_DISTID=OEL7.8

8. Type ./runInstaller to start the installation with OUI (GUI) Utility.

Select Set up Software only, as we will create the database using the DBCA tool later on.

9. Select a single Instance for this demo.

10. Select Enterprise edition.

11. Set /Avani/oracle path for our Oracle base.

12. Set /Avani/oraInventory path as our Inventory Directory Location.

13. For this demo purpose, select DBA for all the groups.

14. Check the Automatically run configuration scripts option.

15. Verify the summary and start Installation.

16. After the successful installation of Oracle software, now we are going to create a database using the DBCA utility.

Go to Oracle_Home/bin directory and enter the DBCA command, you will get the DBCA screen.

Select create a database.

17. Select a typical configuration.

18. Verify the summary and click on finish.

19. Oracle 19c database has been successfully created.

20. Go to command line -> .oraenv to set the environment variable -> login as sys and check the database mode and name.

Oracle 19c Installation using OUI utility has been successfully completed!

If you find value in the knowledge shared, your applause on my post would be greatly appreciated!

Keep Learning!

--

--

Avani Jhala

Talks about #awscloud, #database, #posgresql, #oraclecloud, and #performancetuning