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:
- to obtain the compressed file that contains the driver.
For each copy of the IBM Data Server Driver for ODBC and CLI that
you are installing:
- create a unique target installation directory; and
- follow the installation steps outlined in Installing the IBM Data Server Driver for ODBC and CLI.
- 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:
- Create the two directories, $HOME/db2_cli_odbc_driver1 and
$HOME/db2_cli_odbc_driver2, where you will install the
driver.
- 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.
- Copy db2_driver_for_odbc_cli.tar.Z to the install directories, $HOME/db2_cli_odbc_driver1 and $HOME/db2_cli_odbc_driver2.
- 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
- Delete db2_driver_for_odbc_cli.tar.Z.
[ Top of Page | Previous Page | Next Page | Contents ]