This page was last edited on September 18, 2023, at 03:29.
Comments or questions about this documentation? Contact us for support!
These directions apply primarily to Linux. Directions on deploying ODBC drivers for Windows are available on this page in the Interaction Server Deployment Guide.
For compatibility purposes, the easiest and fastest way to do this is to download a prebuilt RPM or package that is compatible with your current Linux version.
You can also
Once you have downloaded and installed unixODBC, check the odbcinst.ini (under /etc in the installation directory) and odbc.ini (in $HOME/.odbc.ini) files. This guide will refer to the unixODBC installation directory as the environment variable $UNIXODBC.
./odbc_update_ini.sh $UNIXODBC $DRIVER [<Driver_Name>] [<DSN>]
For example,
./odbc_update_ini.sh $UNIXODBC $DRIVER oracleodbc-12.1 ora
For example,
export ORACLE_HOME=$DRIVER
export LD_LIBRARY_PATH= $UNIXODBC/lib/:$DRIVER/
export TNS_ADMIN=/etc/oracle
This is a sample of odbc.ini with a configured DSN:
[ora]
Application Attributes = T
Attributes = W
BatchAutocommitMode = IfAllSuccessful
BindAsFLOAT = F
CloseCursor = F
DisableDPM = F
DisableMTS = T
Driver = OracleODBC-12.1
DSN = ora
EXECSchemaOpt =
EXECSyntax = T
Failover = T
FailoverDelay = 10
FailoverRetryCount = 10
FetchBufferSize = 64000
ForceWCHAR = F
Lobs = F
Longs = T
MaxLargeData = 0
MetadataIdDefault = F
QueryTimeout = T
ResultSets = T
ServerName = GENESYS_INX
SQLGetData extensions = F
Translation DLL =
Translation Option = 0
DisableRULEHint = T
UserID = SYSTEM
Password = system
StatementCache=F
CacheBufferSize=20
UseOCIDescribeAny=F
MaxTokenSize=8192
This is a sample of odbcinst.ini:
[OracleODBC-12.1]
Description=Oracle ODBC driver for Oracle 12g
Driver=/usr/lib/oracle/12.1/client64/lib/libsqora.so.12.1
Setup=
FileUsage=
CPTimeout=
CPReuse=
Driver Logging=7
In this example, the DSN name is ora. ServerName is the corresponding service name in TNSNAMES.ora:
GENESYS_INX =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = fakehost)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = genesys_inx)
)
)
export LD_LIBRARY_PATH= $UNIXODBC/lib
sudo ln -s libodbcinst.so.2 usr/lib64/libodbcinst.so.1
Odbcinst.ini should now contain the following:
[ODBC Driver 11 for SQL Server]
Description=Microsoft ODBC Driver 11 for SQL Server
Driver=/opt/microsoft/msodbcsql/lib64/libmsodbcsql-11.0.so.2270.0
Threading=1
UsageCount=1
[sqltest]
Driver = ODBC Driver 11 for SQL Server
DSN = sqltest
Trace = No
ServerName = fakehost
UserID = genesys
Password = genesys
Database = genesys_inx
Information about PostgreSQL is provided in the Framework Database Connectivity Reference Guide and at http://www.postgresql.org/.
To test the connection, run the command
isql -v [DSN name]
If the proper credentials are not configured in the odbc.ini file, you may have to add them as parameters of this command; for example,
isql -v [DSN name] [username] [password]
Related information can be found on the pages linked to this page in the Integrated Capture Points documentation.