DB2 Version 9.7 for Linux, UNIX, and Windows
IBM data server clients and drivers overview > IBM Data Server Drivers > Installing the IBM Data Server Driver for ODBC and CLI >

Installing multiple copies of the IBM Data Server Driver for ODBC and CLI on the same machine

The IBM® Data Server Driver for ODBC and CLI is not part of the IBM Data Server Client or the Data Server Runtime Client. It must be installed separately. You can install multiple copies of the IBM Data Server Driver for ODBC and CLI on the same machine. You might want to do this if you have two database applications on the same machine that require different versions of the driver.

To install multiple copies of the IBM Data Server Driver for ODBC and CLI on the same machine, you need:

For each copy of the IBM Data Server Driver for ODBC and CLI that you are installing:

  1. create a unique target installation directory; and
  2. follow the installation steps outlined in Installing the IBM Data Server Driver for ODBC and CLI.
  3. Ensure the application is using the correct copy of the driver. Avoid relying on the LD_LIBRARY_PATH environment variable as this can lead to inadvertent loading of the incorrect driver. Dynamically load the driver explicitly from the target installation directory.

If you are installing two copies of the IBM Data Server Driver for ODBC and CLI under the following conditions:

the steps you would follow are:

  1. Create the two directories, $HOME/db2_cli_odbc_driver1 and $HOME/db2_cli_odbc_driver2, where you will install the driver.
  2. Locate the compressed file that contains the driver on the install CD. In this scenario, the file would be called db2_driver_for_odbc_cli.tar.Z.
  3. Copy db2_driver_for_odbc_cli.tar.Z to the install directories, $HOME/db2_cli_odbc_driver1 and $HOME/db2_cli_odbc_driver2.
  4. Uncompress db2_driver_for_odbc_cli.tar.Z in each directory:
    cd $HOME/db2_cli_odbc_driver1
    uncompress db2_driver_for_odbc_cli.tar.Z
    tar -xvf db2_driver_for_odbc_cli.tar
    cd $HOME/db2_cli_odbc_driver2
    uncompress db2_driver_for_odbc_cli.tar.Z
    tar -xvf db2_driver_for_odbc_cli.tar
  5. Delete db2_driver_for_odbc_cli.tar.Z.

[ Top of Page | Previous Page | Next Page | Contents ]