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
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
-
Log in as
root
. -
Download and install the Oracle Database Preinstallation RPM:
-
On Oracle Linux 7
# yum -y install oracle-database-preinstall-21c
On Oracle Linux 8
# dnf -y install oracle-database-preinstall-21c
-
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
-
-
Access the software download page for Oracle Database RPM-based installation from Oracle Technology Network:
http://www.oracle.com/technetwork/indexes/downloads/index.html -
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, downloadoracle-database-ee-21c-1.0-1.ol7.x86_64.rpm
and for Oracle Linux 8 downloadoracle-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. -
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:
-
Log in as
root.
-
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.