4.5.1.1 Install Oracle Instant Client for Linux for On-Premises Databases

Instructions for installing Oracle Instant Client for Linux for use with an on-premises Oracle database.

The OML4Py client requires Oracle Instant Client to connect to an Oracle database.

To install Oracle Instant Client, the following are required:

  • A connection to the internet.
  • Write permission on the directory in which you are installing the client.

To install Oracle Instant Client, do the following:

  1. Download the Oracle Instant Client for your system. Go to the Oracle Instant Client Downloads page and select Instant Client for Linux x86-64.
  2. Locate the section for your version of Oracle Database. These instructions use Version 23.4.0.0.0.
  3. In the Base section, in the Download column, click the zip file for the Basic Package and save the file in an accessible directory on your system or use wget to download the file:
  4. Unzip the package:
    unzip instantclient-basic-linux.x64-23.4.0.24.05.zip

    Extracting the package creates the subdirectory instantclient_23_4, which contains the Oracle Instant Client files.

  5. To install the libaio package with sudo or as the root user, run the following command:
    sudo yum install libaio

    Note:

    In some Linux distributions, this package is called libaio1.
  6. Add the directory that contains the Oracle Instant Client files to the beginning of your LD_LIBRARY_PATH environment variable:
    export LD_LIBRARY_PATH=/opt/oracle/instantclient_23_04:$LD_LIBRARY_PATH