Installing Oracle Database Using RPM Packages

Learn how to leverage and take advantage of an RPM framework to easily deploy Oracle Database.

About RPM-Based Oracle Database Installation

Starting with Oracle Database 18c, you can install a single-instance Oracle Database or an Oracle Database Instant Client software using RPM packages.

An RPM-based installation performs preinstallation checks, extracts the database software, reassigns ownership of the extracted software to the preconfigured user and groups, maintains the Oracle inventory, and runs all root operations required to configure the Oracle Database software for a single-instance Oracle Database creation and configuration.

The RPM-based installation process detects when the minimum requirements for an installation are not met and prompts you to finish these minimum preinstallation requirements.

An RPM-based installation performs a software-only Oracle Database installation and creates an Oracle home. After the Oracle home is created, you can then use Oracle Database Configuration Assistant (Oracle DBCA) to create an Oracle Database.

The RPM-based installation process provides you with the option to create a database with the default settings using the /etc/init.d/oracledb_ORCLCDB-19c service configuration script.

Restrictions and Guidelines for RPM-Based Installations

Review these guidelines before you start your RPM-based Oracle Database installation.

  • Patching Oracle Database software using RPMs is not supported. Please use the OPatch utility and follow the regular patching process to apply Oracle Database patches.
  • An RPM-based Oracle Database installation is not available for Standard Edition 2.
  • RPM-based database upgrades using rpm -Uvh is not supported. For Oracle Database upgrades, follow the regular upgrade process.
  • An RPM-based installation supports the installation of multiple Oracle Database software versions into different Oracle homes on the same machine.

RPM Packages Naming Convention

The RPM packages naming convention includes information such as the version, release, and architecture.

The naming convention for RPM packages is name-version-release.architecture.rpm

The following table describes the variables used in the RPM oracle-database-ee-19c-1.0-1.x86_64.rpm

Table: RPM Packages Naming Convention Example

VariableExampleDescription
nameoracle-database-ee-19cThe name of the Oracle Database edition and release.
version1.0The version number of the RPM package.
release1The release number of the RPM package.
architecturex86_64The architecture of the RPM package.

Related Topics

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-19c

    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

      # yum -y install oracle-database-preinstall-19c
    2. On Red Hat Enterprise Linux

      # 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
      # yum -y localinstall oracle-database-preinstall-19c-1.0-1.el7.x86_64.rpm

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

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

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

  4. Download the .rpm file required for performing an RPM-based installation to a directory of your choice. For example, download the oracle-database-ee-19c-1.0-1.x86_64.rpm file to the /tmp directory.
  5. Install the database software using the yum localinstall command.
    # cd /tmp
    # yum -y localinstall oracle-database-ee-19c-1.0-1.x86_64.rpm

    Where, oracle-database-ee-19c-1.0-1.x86_64.rpm is the fully qualified name of the 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-19c configure

    Note:

    You can modify the configuration parameters by editing the /etc/sysconfig/oracledb_ORCLCDB-19c.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.

Related Topics