On UNIX and Linux platforms, connect to a Sybase IQ server using ODBC. Use the SQL Anywhere 10 ODBC drivers provided by the Sybase IQ ETL Server installer for these platforms:
IBM AIX
Linux x86
Sun Solaris Sparc
The Sybase IQ client installer provides the ODBC drivers for Microsoft Windows platforms.
You must configure the SQL Anywhere 10 ODBC drivers before you use them. You can configure the drivers with or without an ODBC driver manager. If you configure the drivers without a driver manager, no other ODBC drivers are available.
In the instructions that follow, etlserver is the directory where ETL Server is installed, asa10 is the subdirectory containing the SQL Anywhere 10 drivers, and %USERHOME% is the home directory that contains the .odbc.ini file.
The .odbc.ini file contains the ODBC driver configuration information such as the data source name (DSN) definitions. Driver managers such as unixODBC look for the .odbc.ini file specified in the ODBCINI environment variable. For more information on .odbc.ini, see the unixODBC Web site.
Configuring ODBC drivers using an ODBC driver
manager
In the ODBC driver manager, select the SQL Anywhere 10 driver in etlserver/asa10.
In the .odbc.ini file, add an entry similar to:
[My_IQ_Server] Driver=/opt/sybase/iqetlserver/asa10/lib64/libdbodbc10.so uid=dba pwd=SQL EngineName=My_IQ_Server_asiqdemo CommLinks=tcpip(host=iq_hosting_server;port=2638) AutoStop=no DatabaseName=asiqdemo AutoPreCommit=yes
Add the environment variable ODBCINI=%USERHOME%/.odbc.ini to your server.
Configuring ODBC drivers without using an ODBC
driver manager
In etlserver/asa10, create a symbolic link called libodbc.so to the supplied SQL Anywhere 10 ODBC driver file:
ln -s etlserver/asa10/lib64/libdbodbc10.so libodbc.so
In the .odbc.ini file, add an entry similar to:
[My_IQ_Server] Driver=/opt/sybase/iqetlserver/asa10/lib64/libdbodbc10.so uid=dba pwd=SQL EngineName=My_IQ_Server_asiqdemo CommLinks=tcpip(host=iq_hosting_server;port=2638) AutoStop=no DatabaseName=asiqdemo AutoPreCommit=yes
Add the environment variable ODBCINI=%USERHOME%/.odbc.ini to your server.
If you have multiple Sybase IQ servers with the same
server name, database name, and port number, use server name caching
to connect to the target Sybase IQ server. Add the DoBroadcast=DIRECT communication parameter
to the CommLinks connection parameter, in the .odbc.ini file,
in your ETL Server:
CommLinks=tcpip(DoBroadCast=DIRECT; host=iq_hosting_server;port=2638)
See “Server name caching for faster connections,” in Chapter 3, “Sybase IQ Connections” in the Sybase IQ 12.7 System Administration Guide.