Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

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:

 STEP 1: Install the latest Oracle OCI instant client drivers
  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:\Oracle is the “standard” location recommended by Oracle.

  2. Unzip the downloaded drivers into the C:\Oracle directory.

  3. Open the instantclient-basic-windows.x6 folder, locate your instantclient_X_Y drivers directory and move this to the C:\Oracle directory.

delete empty zip folder
  1. Delete the empty folder the zip was originally unpacked into. There should now be a single folder in C:\Oracle containing the OCI drivers.

 STEP 2: Add the OCI drivers directory to the windows Path system variable

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:

system properties advanced
  1. Highlight the System Path variable and click Edit.

highlight system path
  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:

oci system variable path
 STEP 3: Create or ensure TNS_NAMES variable points to the directory containing tnsnames.ora

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

If TNS_NAMES does not exist, you will need to create it.

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

add or edit TNS_NAMES
  1. 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.

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

 

Linux:

 STEP 1: Install the latest Oracle OCI instant client drivers
  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 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. 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*
confirm install
  1. Check the contents of the instant client directory:

    ls instantclient*
instan client driver files
  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.

      sudo ln -s /usr/lib/instantclient<_X_Y>/libclntsh.so /usr/lib/
  2. Confirm that the symbolic link was created:

    ls -l libclntsh.so
link to OCI
 STEP 2: Update the runtime link path for dynamic libraries

This tells the instantclient software where to look for dynamic library dependencies.

Only do this if the instantclient is the only Oracle software you are installing! Do not do this if you are installing the Oracle database server on the same machine, instead discuss it with your DBA.

Update the instant client configuration file:

sudo sh -c "echo /opt/oracle/instantclient_18_3 > \ /etc/ld.so.conf.d/oracle-instantclient.conf" 
sudo ldconfig
 STEP 3: Install the libaio (or libaio1) package

You will need to different (package installer) commands depending on the version of Linux you are using. For Ubuntu (Debian based) use apt, for CentOS (RHEL based) use yum.

Ubuntu or other Debian based Linux:

  1. Get the latest package info:

    sudo apt update
  2. Install libaio/libaio1:

    sudo apt install libaio1

CentOS or other Red Hat based Linux:

  1. Get the latest package info:

    yum check-update
  2. Install libaio/libaio1:

    sudo yum install libaio
  3. Delete the zip package (or keep a copy if you prefer).

  • No labels