Installing and configuring SQL Anywhere 10 ODBC drivers

On UNIX and Linux platforms, you can connect to a Sybase IQ server using ODBC. Use the SQL Anywhere 10 ODBC drivers provided by the SQL Anywhere installer for these platforms:

For information on how to install SQL Anywhere 10, see “Installing SQL Anywhere 10”.

You must configure the SQL Anywhere 10 ODBC drivers before you use them. See “Configuring ODBC drivers”, for configuration instructions.

StepsConfiguring ODBC drivers

In the instructions that follow:

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.

  1. In the <installation_folder>, create a symbolic link called libodbc.so to the supplied SQL Anywhere 10 ODBC driver file:

    ln -s <installation_folder>/<lib_version>/libdbodbc10.so libodbc.so

  2. In the .odbc.ini file, add an entry similar to:

    [My_IQ_Server]
    Driver=/opt/sybase/<installation_folder>/<lib_version>/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
    
  3. Add the environment variable ODBCINI=$USERHOME/.odbc.ini to your server.

  4. To set the necessary environment variables, run the sa_config.sh or sa_config.csh file in the <installation_folder>/<bin_version>/ directory, where <bin_version> can be bin32 or bin64, depending on your configuration.

NoteIf 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.