Installation Cheatsheet for Oracle Instant Client on Oracle Linux – Christopher Jones

Wondering how to install Oracle Instant Client on Oracle Linux from Oracle’s yum repository? This is what you need to know.

A non-cheating sheet — Photo by Sergiu Vălenaș on Unsplash

Oracle Instant Client enables development and deployment of applications that connect to Oracle Database, either on-premise or in the Cloud. The Instant Client libraries provide the necessary network connectivity and advanced data features to make full use of Oracle Database. The libraries are used by the Oracle APIs of popular languages and environments including Python, Node.js, Go, PHP and Ruby, as well as providing access for Oracle Call Interface (OCI), Oracle C++ Call Interface (OCCI), JDBC OCI, ODBC and Pro*C applications. Tools included in Instant Client, such as SQL*Plus, SQL*Loader and Oracle Data Pump, provide quick and convenient data access.

Oracle Instant Client is available on many platforms as simple zip downloads from Oracle. This post shows how the packages can also be installed using Oracle Linux yum repositories.

Packages

18c & 19c OL7:

https://yum.oracle.com/repo/OracleLinux/OL7/oracle/instantclient/x86_64/https://yum.oracle.com/repo/OracleLinux/OL7/oracle/instantclient/aarch64/sudo yum install oracle-release-el7
sudo yum install oracle-instantclient19.23-basic

19c OL8:

https://yum.oracle.com/repo/OracleLinux/OL8/oracle/instantclient/x86_64/https://yum.oracle.com/repo/OracleLinux/OL8/oracle/instantclient/aarch64/sudo dnf install -y oracle-release-el8
sudo dnf install -y oracle-instantclient19.23-basic

19c OL9:

https://yum.oracle.com/repo/OracleLinux/OL9/oracle/instantclient/x86_64/sudo dnf install oracle-instantclient-release-el9
sudo dnf install oracle-instantclient19.19-basic

21c OL7:

https://yum.oracle.com/repo/OracleLinux/OL7/oracle/instantclient21/x86_64/sudo yum install oracle-instantclient-release-el7
sudo yum install oracle-instantclient-basic

21c OL8:

https://yum.oracle.com/repo/OracleLinux/OL8/oracle/instantclient21/x86_64/sudo dnf install oracle-instantclient-release-el8
sudo dnf install oracle-instantclient-basic

23ai OL8:

https://yum.oracle.com/repo/OracleLinux/OL8/oracle/instantclient23/x86_64/sudo dnf install oracle-instantclient-release-23ai-el8
sudo dnf install oracle-instantclient-basic

23ai OL9:

https://yum.oracle.com/repo/OracleLinux/OL9/oracle/instantclient23/x86_64/sudo dnf install oracle-instantclient-release-23ai-el9
sudo dnf install oracle-instantclient-basic

Notes

For 18c and 19c, you need to explicitly give the RU (the ‘Release Update’ patch number) in the filename when installing. To upgrade, you need to remove the old package and install the new one. Please check the repos and keep up to date!

From 21c, any yum or dnf update will automatically pull in the latest RU. If
you need to prevent an update, then use versionlock, as discussed in the
Installing Oracle Instant Client Using RPMs documentation, e.g :

dnf versionlock oracle-instantclient-release-23ai-el8

Containers

Sample Dockerfiles:

Truncated by Planet PHP, read more at the original (another 2098 bytes)


Posted

in

,

by

Tags:

Comments

Leave a Reply