Skip to content
This repository has been archived by the owner on Mar 11, 2024. It is now read-only.

Provides a pain-free way to install the Oracle client libraries (along with SQL PLus) on your Ubuntu machine.

License

Notifications You must be signed in to change notification settings

brunorozendo/oracle_instant_client_for_ubuntu_64bit

 
 

Repository files navigation

Easy Installation of Oracle Instant Client on Ubuntu/Debian Linux

Version 1.2

If you've ever had to mess with installing and configuring the Oracle Instant Client on your Ubuntu/Debian machine, you know that it's a pain in the arse.

The crux of the problem lies in the fact the Oracle doesn't create Ubuntu/Debian compatible packages for their software.

This repo contains a simple script which will convert the binaries that Oracle does provide (Redhat rpm) files into Ubuntu/Debian files and then install them on your system.

Because of way that Oracle licenses their software, you will need to download the rpm's for the version that you want from them directly prior to using the installation script.

Important: Currently, this only supports 64-bit machines.

Instructions

  1. Download the necessary rpm files from Oracle for whatever version you want. You'll need the 'basic', 'devel', 'tools', 'jdbc', 'odbc' and 'sqlplus' packages.

    The filenames should match the following pattern for the clean version:

     - oracle-instantclient[version]-basic-[more-version-info].x86_64.rpm
     - oracle-instantclient[version]-devel-[more-version-info].x86_64.rpm
     - oracle-instantclient[version]-sqlplus-[more-version-info].x86_64.rpm
    

    The filenames should match the following pattern for the full:

     - oracle-instantclient[version]-basic-[more-version-info].x86_64.rpm
     - oracle-instantclient[version]-devel-[more-version-info].x86_64.rpm
     - oracle-instantclient[version]-jdbc-[more-version-info].x86_64.rpm
     - oracle-instantclient[version]-odbc-[more-version-info].x86_64.rpm
     - oracle-instantclient[version]-sqlplus-[more-version-info].x86_64.rpm
     - oracle-instantclient[version]-tools-[more-version-info].x86_64.rpm        
    

    Ex:

     - oracle-instantclient12.1-basic-12.1.0.2.0-1.x86_64.rpm
     - oracle-instantclient12.1-devel-12.1.0.2.0-1.x86_64.rpm
     - oracle-instantclient12.1-jdbc-12.1.0.2.0-1.x86_64.rpm
     - oracle-instantclient12.1-odbc-12.1.0.2.0-1.x86_64.rpm
     - oracle-instantclient12.1-sqlplus-12.1.0.2.0-1.x86_64.rpm
     - oracle-instantclient12.1-tools-12.1.0.2.0-1.x86_64.rpm
    
  2. Download the install_oracle_instantclient_(clean|full).py script.

  3. Run it as root, specifying the location of the rpm files as an argument:

    sudo python install_oracle_instantclient_(clean|full).py [directory_holding_rpms]
    
    • If you have an error, please submit it as an issue.

  4. Obtain your sqlnet.ora, tnsnames.ora, and possibly ldap.ora files from your DBA.

  5. Place those files into the /usr/lib/oracle/[version you installed]/client64/network/admin directory.

Warnings

This utility is provided as-is with absolutely no support.
I will not be able to help you if it hoses up your system somehow.

Further Reading

This program basically automates the instructions found on the Ubuntu help forums.

About

Provides a pain-free way to install the Oracle client libraries (along with SQL PLus) on your Ubuntu machine.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%