If you are going to connect to a localhost Informix database you do not need to setup any additional libraries to use SQLines Data tool as they are supplied with Informix server.
If you need to connect to a remote Informix database, you need to have Informix Client SDK (Informix CSDK) installed in your system.
Note. SQLines Data tool connects to Informix ODBC/CLI library directly, it does not require unixODBC on Linux, or ODBC Manager on Windows.
Before downloading check if you already have required Informix libraries:
If Informix client is not available in your system, ask your DBA or go to IBM website, download and install Informix CSDK for your Informix server version. You can try the following links (IBM Login is required):
Make sure that Informix SDK platform corresponds to SQLines Data platform i.e. if you use SQLines Data 64-bit version then Informix SDK must be also 64-bit version.
Check Informix SDK setup code:
Download the Informix CSDK software from IBM web site, for example clientsdk.4.10.FC8DE.LINUX_x64.tar. Extract the files and run installation:
tar xvf clientsdk.4.10.FC8DE.LINUX_x64.tar ./installclientsdk
Set the $INFORMIXDIR environment variable, for example:
export INFORMIXDIR=/opt/IBM/informix
You can find iclit09b.so library under $INFORMIXDIR/lib/cli/ directory. Add Informix library locations to LD_LIBRARY_PATH as follows:
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$INFORMIXDIR/lib/cli:$INFORMIXDIR/lib/esql
When running the SQLines Data tool you can get the following errors:
Check that $INFORMIXDIR/lib/cli is included to $LD_LIBRARY_PATH.
Check that $INFORMIXDIR/lib/esql is included to $LD_LIBRARY_PATH.
Check that the file $INFORMIXDIR/etc/sqlhosts file exists and contains connection information.
Check the content of $INFORMIXDIR/etc/sqlhosts, it should include the connection information for the Informix server you want to connect to. For example,
# file /opt/IBM/informix/etc/sqlhosts #dbserver protocol host port ol_informix1170 olsoctcp 10.0.2.2 14318
When you click Test Connection you can get the following error:
Possible reasons:
To set the PATH variable on Windows, right-click the Computer icon, select Properties, click the Advanced System Settings. Then select Advanced tab and click the Environment Variables button. Go to System Variables, find and append Path.
Possible reason and actions:
In the example above, Service Name specifies the Informix server listening port.
How to find the protocol and port for your Informix server:
Possible reason and actions:
Informix ODBC driver ignores CLIENT_LOCALE options set in SETNET32 and environment variables, so you have to set the -informix_client_locale option in sqldata.cfg file or command line to specify which client locale to use for the connection to Informix.
Example:
-- CLIENT_LOCALE=en_US.819 will be set for the connection -informix_client_locale=en_US.819
Instead of \etc\services file you can also check the Windows Registry and set appropriate settings: \HKEY_LOCAL_MACHINE\SOFTWARE\Informix\SQLHOSTS\ for 64-bit SDK and \HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Informix\SQLHOSTS\ for 32-bit SDK.