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.
How to set up the Oracle instant client OCI drivers:
Windows:
STEP 1: Install the latest Oracle OCI instant client drivers
Download the https://www.oracle.com/technetwork/topics/winx64soft-089540.html. Choose the latest version of the Base package, either Basic or Basic Light.
In File Explorer, create an installation directory - C:\OracleClient
Unzip and extract the downloaded drivers into the C:\OracleClient directory.
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.
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:
Highlight the System Path variable and click Edit.
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:
STEP 3: Create or ensure TNS_ADMIN variable points to the directory containing tnsnames.ora
In the System Variables, the TNS_ADMIN variable must point to the directory containing tnsnames.ora — typically <instantclient install>/network/admin
.
If TNS_ADMIN does not exist then click New to create it, or click Edit if it already exists.
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.
Restart your computer so that the Environment Variables changes take effect.
Linux:
STEP 1: Install the latest Oracle OCI instant client drivers
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.
Unzip the package in the /usr/lib directory:
Confirm that the /usr/lib/instantclient_X_Y was created:
Check the contents of the instant client directory:
Create a symbolic link in the /usr/lib directory:
Confirm that the symbolic link was created:
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:
Get the latest package info:
Install libaio/libaio1:
CentOS or other Red Hat based Linux:
Get the latest package info:
Install libaio/libaio1:
Delete the zip package (or keep a copy if you prefer).