To configure the Oracle native driver for Linux, complete the following steps.
- Download the 64-bit instantclient-basic package.
- Download the 64-bit instantclient-odbc package.
- Extract the packages into the same directory. Set the extracted directory as the current $ORACLE_HOME environment variable
-
Once the system extracts the files, execute the
odbc_update_init.sh from the
Instant Client directory. For more information,
see the table in the
odbc_update_ini.sh arguments section below.
odbc_update_ini.sh usage:
./odbc_update_ini.sh <ODBCDM_Home> [<Install_Location> <Driver_Name> <DSN> <ODBCINI>]
odbc_udpate_ini.sh example:./odbc_update_ini.sh / `pwd` instant_client_21_1 inow_ora /etc/odbc.ini
-
After the system installs the drivers, you must configure the
TNSNAMES file. The default location for the file
is in the
$ORACLE_HOME/network/admin directory.
If the directory does not exist, you can create it. This file should contain the service description for each datasource. The following is an example tnsnames.ora file; however, we strongly recommend to consult with your system DBA to ensure the correct configuration for your environment.
INOWTNS = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP) (HOST = <HostName/IP>) (PORT = 1521) ) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = INOW) ) )
-
Update the
inow_ora datasource configuration in the
/etc/odbc.ini file.
For example, /etc/odbc.ini file contents for odbc_update_ini.sh and TNSNAMES examples above.
[inow_ora] Description= Driver=instantclient_21_1 ServerName=INOWTNS
-
Update the Perceptive Content
environment.ini file's
IMAGENOW_LD_LIBRARY_PATH value to include the
location of the Oracle Instant Client shared libraries.
IMAGENOW_LD_LIBRARY_PATH=/lib64:/opt/instantClientInstallDir