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 -Uvhis 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
| Variable | Example | Description |
|---|---|---|
name | oracle-database-ee-19c | The name of the Oracle Database edition and release. |
version | 1.0 | The version number of the RPM package. |
release | 1 | The release number of the RPM package. |
architecture | x86_64 | The 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
- Log in as
root. - If you are using Oracle Linux and have subscribed to Unbreakable Linux Network (ULN), you can install Oracle Database via a single
yumcommand.# yum -y install oracle-database-ee-19cThis 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
- Log in as
root. Download and install the Oracle Database Preinstallation RPM:
On Oracle Linux
# yum -y install oracle-database-preinstall-19cOn 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.rpmAfter successful installation, you can delete the downloaded RPM file:
# rm oracle-database-preinstall-19c-1.0-1.el7.x86_64.rpm
- 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
- Download the
.rpmfile required for performing an RPM-based installation to a directory of your choice. For example, download theoracle-database-ee-19c-1.0-1.x86_64.rpmfile to the/tmpdirectory. - Install the database software using the
yum localinstallcommand.# cd /tmp # yum -y localinstall oracle-database-ee-19c-1.0-1.x86_64.rpmWhere,
oracle-database-ee-19c-1.0-1.x86_64.rpmis 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:
- Log in as
root. - To configure a sample Oracle Database instance, run the following service configuration script:
# /etc/init.d/oracledb_ORCLCDB-19c configureNote:
You can modify the configuration parameters by editing the
/etc/sysconfig/oracledb_ORCLCDB-19c.conffile.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