Learn how to install Oracle Instant Client on Oracle Linux.
Oracle Instant Client enables applications to connect to a local or remote Oracle Database for development and production deployment. The Instant Client libraries provide the necessary network connectivity, as well as basic and high end data features, to make full use of Oracle Database. It underlies the Oracle APIs of popular languages and environments including Node.js, Python and PHP, as well as providing access for OCI, OCCI, JDBC, ODBC and Pro*C applications. Tools included in Instant Client, such as SQL*Plus and Oracle Data Pump, provide quick and convenient data access.
As of Instant Client release 21, yum configuration files are delivered via the packages oracle-instantclient-release-el8 and oracle-instantclient-release-el7, respectively. For descriptions of the available Instant Client packages, see the Oracle Instant Client documentation.
To install the Instant Client Basic package:
sudo dnf install oracle-instantclient-release-el8
sudo dnf install oracle-instantclient-basic
sudo yum install oracle-instantclient-release-el7
sudo yum install oracle-instantclient-basic
For Instant Client releases 19c and older, yum configuration files are delivered via the packagesoracle-release-el8, oracle-release-el7, and oracle-release-el6, respectively.
To install Oracle Instant Client Basic 19.9:
sudo dnf install oracle-release-el8
sudo dnf install oracle-instantclient19.9-basic
sudo yum install oracle-release-el7
sudo yum install oracle-instantclient19.9-basic
For Oracle Instant Client releases before 19c, you must set up the environment so that your application can find the necessary libraries. For example, for Oracle Instant Client release 18.3:
$ sudo sh -c "echo /usr/lib/oracle/18.3/client64/lib > /etc/l oracle-instantclient.conf"
$ sudo ldconfig
References
- Oracle Instant Client page on OTN
- Database Client Installation Guide for Linux: Installing Oracle Instant Client Using RPMs