Contents Index Introduction Connecting to a data source using a logon dialog box

iAnywhere Solutions ODBC Drivers
  iAnywhere Solutions ODBC Driver for DB2

Configuring data sources


To configure a data source in the UNIX environment, you must edit the system information file using the attributes in Values for IANAAppCodePage Connection String Attribute. You must also edit this file to perform a translation.

For more information, see Quick start for UNIX.

Creating DB2 bind packages 

Users must create the DB2 bind packages on every server to which they intend to connect with the driver. The driver will not work properly with any server that does not have the packages created. The UNIX version of the driver is provided with a program that creates the bind package. It is the equivalent of the Create Package button on the Bind tab of the DB2 driver setup.

The bind program is shipped with SQL Anywhere Studio, and can be found in the drivers/lib directory under your SQL Anywhere directory. You must export LD_LIBRARY_PATH or LIBPATH before creating bind packages.

To bind a package (UNIX)

To configure a DB2 Wire Protocol data source (Windows)

  1. Start the ODBC Administrator to display a list of data sources.

  2. If you are configuring an existing data source, select the data source name and click Configure to display the ODBC DB2 Wire Protocol Driver Setup dialog box.

    If you are configuring a new data source, click Add to display a list of installed drivers. Select the DB2 Wire Protocol driver and click Finish to display the ODBC DB2 Wire Protocol Driver Setup dialog box.

    NOTE: The General and Bind tabs display only fields that are required for creating a data source. The fields on other tabs are optional, unless noted otherwise.

  3. On the General tab, provide the following information and click Apply.

  4. Optionally, click the Advanced tab to specify data source settings.

    On this tab, provide any of the following optional information and click Apply.

  5. Click the Bind tab to configure options for creating bind packages.

    The Bind tab allows you to create the bind packages on the server that will be used by the driver. The tab also allows you to specify the behavior of the package. You must create the bind packages on every server to which you intend to connect with the driver. The driver will not work properly with any server that does not have the packages created.

  6. On the Bind tab, provide the following information and click Apply.

  7. At any point during the configuration process, you can click Test Connect to attempt to connect to the data source using the connection properties specified in the Driver Setup dialog box. A logon dialog box is displayed; see Connecting to a data source using a logon dialog box. Note that the information you enter in the logon dialog box during a test connect is not saved.

  8. Click OK or Cancel. If you click OK, the values you have specified become the defaults when you connect to the data source. You can change these defaults by using this procedure to reconfigure your data source. You can override these defaults by connecting to the data source using a connection string with alternate values.


Contents Index Introduction Connecting to a data source using a logon dialog box