Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save cnmoro/29a660bfcf129cded1e705cb3c60287a to your computer and use it in GitHub Desktop.
Save cnmoro/29a660bfcf129cded1e705cb3c60287a to your computer and use it in GitHub Desktop.
Install Oracle client on Ubuntu

Reference: https://help.ubuntu.com/community/Oracle%20Instant%20Client

Tested on: Ubuntu 18.04, 20.04

  1. Decide which version of the Oracle client to install

  2. Download the Oracle client packages

  3. Install prerequisites

    sudo apt install alien libaio1
    
  4. Install the Oracle client package(s)

    sudo alien -i oracle-instantclient19.12-basiclite-19.12.0.0.0-1.x86_64.rpm
    
  5. Update the system library path to include the oracle libraries

    Note: This doesn't seem to be necessary any more; maybe it's included in the newer versions of the Oracle library package now?

    sudo sh -c 'echo /usr/lib/oracle/19.12/client64/lib/ > /etc/ld.so.conf.d/oracle.conf'
    sudo ldconfig
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment