Oracle OCI Driver Setup

This procedure installs the the Oracle OCI drivers globally, which means that the drivers will be available for all users on the machine.

We recommend installing the Oracle OCI drivers (and other database drivers) in the correct/default global driver directories for your operating system. However it is possible to install drivers locally (for a single user) if you wish to restrict access.

Do not install Instant Client drivers if Oracle and/or the Instant Client drivers are already installed!

To check, use File Explorer to search for the tsnnames.ora file. If this file exists, speak to your DBA (database administrator) to identify the correct course of action.

How to set up the Oracle instant client OCI drivers:

Windows:

  1. Download the https://www.oracle.com/technetwork/topics/winx64soft-089540.html. Choose the latest version of the Base package, either Basic or Basic Light.

Iguana may not always support the very latest version of the ODBC drivers, so you can simply download an earlier version if necessary.

If you need to know which versions of Oracle OCI are supported by the version of Iguana you are using please contact us at support@interfaceware.com.

  1. In File Explorer, create an installation directory - C:\OracleClient

  2. Unzip and extract the downloaded drivers into the C:\OracleClient directory.

Add the OCI drivers directory to the windows Path system variable so that Iguana can find the Oracle drivers automatically.

  1. In Windows, search for “Environment” and choose Edit the system environment variables to open the System Properties window. Click the Environment Variables button near the bottom of the page:

  1. Highlight the System Path variable and click Edit.

  1. In the Edit environment variable window, add the location of your oci.dll file on the next line, and click OK to save your changes:

In the System Variables, the TNS_ADMIN variable must point to the directory containing tnsnames.ora — typically <instantclient install>/network/admin.

  1. If TNS_ADMIN does not exist then click New to create it, or click Edit if it already exists.

  2. Enter the path to the directory containing tnsnames.ora — typically <instantclient install>/network/admin, and click OK. If you are using an existing driver install then use the path that your DBA (database administrator) advises you to use.

  1. Restart your computer so that the Environment Variables changes take effect.

In IguanaX, Settings > Database confirm the Oracle OCI library has been detected and loaded correctly.

If not, click Edit to manually add the Oracle OCI shared library path. If you don’t know the location, you can search for the oci.dll

 

Linux:

  1. Download the https://www.oracle.com/technetwork/topics/linuxx86-64soft-092277.html. Choose the latest version of the Base package, either Basic or Basic Light.

Iguana may not always support the very latest version of drivers, so you can simply download an earlier version if necessary.

If you need to know which versions of Oracle OCI are supported by the version of Iguana you are using please contact us at support@interfaceware.com.

  1. Unzip the package in the /usr/lib directory:

    • Note: change <version> to match your downloaded version

      cd /usr/lib sudo unzip ~/Downloads/instantclient-basic-linux.x64-<version>.zip
  2. Confirm that the /usr/lib/instantclient_X_Y was created:

    ls -d in*
  1. Check the contents of the instant client directory:

    ls instantclient*
  1. Create a symbolic link in the /usr/lib directory:

    • Note: replace “<_X_Y>” with the version numbers to match the directory name for the downloaded version. If you are upgrading to a new version of OCI you will need to delete the old symbolic link and recreate it to point to the new version of OCI.

  2. Confirm that the symbolic link was created: