6.2.1.2 Install Oracle Instant Client on Linux from RPMs

Instructions for installing Oracle Instant Client from RPMs.

  1. Create an installation directory for the OML4R client components. For example:
    mkdir oml4rclient_install_dir
    
  2. Go to the Oracle Database Instant Client page on the Oracle Technology Network:
  3. Choose See Instant Client downloads for all platforms.
  4. On the Instant Client Downloads page, choose Instant Client for Linux x86-64.
  5. On the Instant Client Downloads page for Linux, accept the license agreement and select the RPM for Instant Client Package - Basic.
  6. As the root user, install the RPM:
    rpm -i oracle-instantclient-basic-21.10.0.0.0-1.el8.x86_64.rpm
    
  7. Return to the Instant Client Downloads page for Linux x86-64.
  8. Accept the license agreement and download the RPM for Instant Client Package - SDK for your version of Oracle Database. As root, install the RPM:
    rpm -i oracle-instantclient-devel-21.10.0.0.0-1.el8.x86_64.rpm
  9. The RPMs place the files in standard locations that the ROracle configuration script can find. For example, Oracle Instant Client 12.1 is installed in/usr/lib/oracle/21.1/client64/lib.
  10. After installing Oracle Instant Client, add the path of the Oracle Instant Client libraries to LD_LIBRARY_PATH. For example:
    export LD_LIBRARY_PATH=/usr/lib/oracle/21.1/client64/lib:$LD_LIBRARY_PATH