Check all articles

Installation of Oracle Database 19c on Oracle Enterprise Linux 7

Let's install Oracle Database 19c (19.3) on Oracle Enterprise Linux 7 (7.7). This is the latest available version of the database engine, the installation can be used for a development or testing environment ... it is a very simple process ... it is not an installation for a production environment. Additional, you must have basic knowledge about Linux.

For this installation, I am using a VM (virtual machine) with Oracle VirtualBox of: 2 vCPU, 4 GBytes of RAM, 60 GBytes of hard disk and "bridge adapter" for network interface.


Install the operating system

The Oracle Enterprise Linux installer could be downloaded from Oracle Software Delivery Cloud, you must sign up in order to get an username and password. Once you logged in, search "Oracle Enterprise Linux", as the following image and choose "Oracle Linux 7.7.0.0.0".

To install the operating system please review our article Installation of Oracle Enterprise Linux 8, the installation process is very similar. I do not recommend installing version 8 or 8.1, instead version 7.7 since for version 7 there is a program that verifies all the prerequisites for the database.

Ora19cScreen1

Pre-Installation Tasks

Verify in the operating system the following:

  • The ip address must be Static not DHCP.
  • We must always have the latest updated packages. We do this with the command yum, the version 8 of OEL supports the command dnf.
  • Let's put a name to the server and verify it with the command hostname or also with uname -a.
  • Add an entry to the file /etc/hosts with the static ip address, the name of the server with domain and the name of the server.
  • Confirm that we create the user oracle.

Download the database installer

We need to download 2 rpm files and place them into /home/oracle/Downloads:

  • The first file oracle-database-ee-19c-1.0-1.x86_64.rpm, download it from here.
  • For the second file, download it with root user, thus:
  • # curl -o oracle-database-preinstall-19c-1.0-1.el7.x86_64.rpm https://yum.oracle.com/repo/OracleLinux/OL7/latest/x86_64/getPackage/oracle-database-preinstall-19c-1.0-1.el7.x86_64.rpm

Start the software installation

With root user from the directory /home/oracle/Downloads, execute:

# yum -y localinstall oracle-database-ee-19c-1.0-1.x86_64.rpm

All prerequisites for the database engine software will begin to be installed.

Create the database

Once, we finished installing the software, we are going to create the database with the following command:

# /etc/init.d/oracledb_ORCLCDB-19c configure

While it is executing, it shows the percentage of completion:

Ora19cScreen2

After a few minutes, it finishes the database creation with SID equals to ORCLCDB.

Ora19cScreen3

Post-Installation Tasks

We must do the following tasks before starting to work with our database:

  • Add a new entry to the firewall, thus:
  • # firewall-cmd --zone=public --add-port=1521/tcp --permanent
    # firewall-cmd --reload
    # service firewalld restart

  • In the directory /home/oracle, edit the file .bash_profile and it must be like this (consider your own hostname):
  • Ora19cScreen4

  • Open a new terminal with oracle user and execute:
  • $ sqlplus / as sysdba;
    SQL> alter user system identified by enter_your_password;
    SQL> exit;

Check the connection

Using "Oracle SQL Developer" add a new connection to the database using the IP address, port 1521 and SID. As it shows in the image:

Ora19cScreen5

And Ready!!!

So, it is installed Oracle Database 19c (19.3) on Oracle Enterprise Linux 7 (7.7).