Running RPM Packages to Install Oracle Database

Perform the following steps to install and configure Oracle Database using RPM packages.

Installing Oracle Database RPM using yum

  1. Log in as root.

  2. If you are using Oracle Linux and have subscribed to Unbreakable Linux Network (ULN), you can install Oracle Database via a single yum command.

    # yum -y install oracle-database-ee-21c

    This command downloads and installs the Oracle Database Preinstallation RPM and the Oracle Database RPM packages.

    The installation of Oracle Database software is now complete, continue to the "Creating and Configuring an Oracle Database" section.

Installing Oracle Database RPM Manually

  1. Log in as root.

  2. Download and install the Oracle Database Preinstallation RPM:

    1. On Oracle Linux 7

      # yum -y install oracle-database-preinstall-21c

      On Oracle Linux 8

      # dnf -y install oracle-database-preinstall-21c
    2. On Red Hat Enterprise Linux 8

      # curl -o oracle-database-preinstall-21c-1.0-1.el8.x86_64.rpm https://yum.oracle.com/repo/OracleLinux/OL8/latest/x86_64/getPackage/oracle-database-preinstall-21c-1.0-1.el8.x86_64.rpm
      # yum -y localinstall oracle-database-preinstall-21c-1.0-1.el8.x86_64.rpm

      After successful installation, you can delete the downloaded RPM file:

      # rm oracle-database-preinstall-21c-1.0-1.el8.x86_64.rpm
  3. Access the software download page for Oracle Database RPM-based installation from Oracle Technology Network:

    http://www.oracle.com/technetwork/indexes/downloads/index.html
  4. Depending on your operating system, download the .rpm file required for performing an RPM-based installation to a directory of your choice. For Oracle Linux 7, download oracle-database-ee-21c-1.0-1.ol7.x86_64.rpm and for Oracle Linux 8 download oracle-database-ee-21c-1.0-1.ol8.x86_64.rpm.

    For example, for Oracle Linux 7, download the oracle-database-ee-21c-1.0-1.ol7.x86_64.rpm file to the /tmp directory.

  5. Install the database software using the yum localinstall command. For example, for Oracle Linux 7:

    # cd /tmp
    # yum -y localinstall oracle-database-ee-21c-1.0-1.ol7.x86_64.rpm

    Where, oracle-database-ee-21c-1.0-1.ol7.x86_64.rpm is the fully qualified name of the Oracle Linux 7 Oracle Database RPM.

The installation of Oracle Database software is now complete.

Creating and Configuring an Oracle Database

To create a sample database with the default settings, perform the following steps:

  1. Log in as root.

  2. To configure a sample Oracle Database instance, run the following service configuration script:

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

    Note:

    You can modify the configuration parameters by editing the /etc/sysconfig/oracledb_ORCLCDB-21c.conf file.

    This script creates a container database (ORCLCDB) with one pluggable database (ORCLPDB1) and configures the listener at the default port (1521).

    Review the status information that is displayed on your screen.