Rpm packages for oracle linux
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-18c This command downloads and installs the Oracle 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 Preinstallation RPM:
- On Oracle Linux
# yum -y install oracle-database-preinstall-18c
# curl -o oracle-database-preinstall-18c-1.0-1.el7.x86_64.rpm https://yum.oracle.com/repo/OracleLinux/OL7/latest/x86_64/getPackage/oracle-database-preinstall-18c-1.0-1.el7.x86_64.rpm # yum -y localinstall oracle-database-preinstall-18c-1.0-1.el7.x86_64.rpm
# rm oracle-database-preinstall-18c-1.0-1.el7.x86_64.rpm
# cd /tmp # yum -y localinstall oracle-database-ee-18c-1.0-1.x86_64.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-18c configure
Note: You can modify the configuration parameters by editing the /etc/sysconfig/oracledb_ORCLCDB-18c.conf file.
Related Topics
Rpm packages for oracle linux
Learn how to install Oracle Instant Client by downloading the RPMs and using the yum install command.
Starting with 19c, by default, you can install only one version of the Oracle Instant Client RPM packages at a time. If you need multiple versions, use the Oracle Instant Client zip files.
Removing Earlier Oracle Instant Client Installations
Remove any earlier installations of Oracle Instant Client using yum before you start a fresh installation.
- List the currently installed Oracle Instant Client packages. For example: For Oracle Linux 7:
$ sudo yum list installed | grep instantclient
$ sudo dnf list installed | grep instantclient
oracle-instantclient19.5-basic.x86_64 19.5.0.0.0-1 @/oracle-instantclient19.5-basic-19.5.0.0.0-1.x86_64
$ sudo yum remove oracle-instantclient19.5-basic.x86_64
$ sudo dnf remove oracle-instantclient19.5-basic.x86_64
$ sudo yum remove oracle-release-el7
$ sudo dnf remove oracle-release-el8
Installing Oracle Instant Client From the yum Server
If you are using Oracle Linux and have configured your Oracle Linux yum server, then you can install Oracle Instant Client using the yum install command.
- Install the Oracle Linux release package to configure repository definitions for Oracle Instant Client: For Oracle Linux 7:
$ sudo yum install oracle-instantclient-release-el7
$ sudo dnf install oracle-instantclient-release-el8
$ sudo yum install oracle-instantclient-basic
$ sudo dnf install oracle-instantclient-basic
$ sudo yum install oracle-instantclient-sqlplus
$ sudo dnf install oracle-instantclient-sqlplus
Using versionlock to Avoid Upgrades
To ensure that you do not inadvertently upgrade Oracle Instant Client when a new major release is published, use yum versionlock after you have installed Oracle Instant Client 21c.
$ sudo yum install yum-plugin-versionlock
$ sudo yum versionlock oracle-instantclient-release-el7
$ sudo dnf versionlock oracle-instantclient-release-el8
Configuring yum versionlock still allows automatic Oracle Instant Client release updates to 21.2, 21.3, and so on.
Manually Downloading and Installing Oracle Instant Client RPM Packages
An alternative method for installing Oracle Instant Client is to manually download and install the Oracle Instant Client packages.
- Go to the Oracle Instant Client Downloads page: https://www.oracle.com/database/technologies/instant-client/downloads.html
- Download the desired Oracle Instant Client RPM packages. Select the correct platform, architecture, and packages of your choice. For example, if your application is 64-bit, then ensure that you select 64-bit Instant Client and download the Basic Package RPM file. All installations require a Basic or Basic Light package. All other packages are optional.
- Install the packages using yum . For Oracle Linux 7:
$ sudo yum install oracle-instantclient-basic-21.3.0.0.0-1.x86_64.rpm
$ sudo dnf install oracle-instantclient-basic-21.3.0.0.0-1.el8.x86_64.rpm
Additionally, you may have to perform the following tasks before you start your application:
- If you intend to colocate optional Oracle configuration files such as tnsnames.ora , sqlnet.ora , ldap.ora , or oraaccess.xml with Oracle Instant Client, then move these files to the /usr/lib/oracle/21/client64/lib/network/admin subdirectory. This is the default Oracle configuration directory for applications linked with this Oracle Instant Client. Alternatively, you can move the Oracle configuration files to another, accessible directory. Then set the environment variable TNS_ADMIN to that directory name.
- To use binaries from the tools package, use yum or dnf to install the package and then update your PATH environment variable. For example:
$ export PATH=/usr/lib/oracle/21/client64/bin:$PATH
Rpm packages for oracle linux
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
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
# dnf -y install oracle-database-preinstall-21c
# 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
# rm oracle-database-preinstall-21c-1.0-1.el8.x86_64.rpm
# cd /tmp # yum -y localinstall oracle-database-ee-21c-1.0-1.ol7.x86_64.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.
Related Topics
Rpm packages for oracle linux
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-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
- Log in as root .
- Download and install the Oracle Database Preinstallation RPM:
- On Oracle Linux
# yum -y install oracle-database-preinstall-19c
# 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
# rm oracle-database-preinstall-19c-1.0-1.el7.x86_64.rpm
# cd /tmp # yum -y localinstall oracle-database-ee-19c-1.0-1.x86_64.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 configure
Note: You can modify the configuration parameters by editing the /etc/sysconfig/oracledb_ORCLCDB-19c.conf file.
Related Topics