Registering the IBM Data Server Driver for ODBC and CLI with the Microsoft ODBC driver manager

The IBM Data Server Driver for ODBC and CLI is not part of the IBM Data Server Client or the IBM Data Server Runtime Client. It must be installed and configured separately. For ODBC applications to use the IBM Data Server Driver for ODBC and CLI with the Microsoft ODBC driver manager, you must register the driver with the driver manager.

Before you begin

To register the IBM Data Server Driver for ODBC and CLI with the Microsoft ODBC driver manager, you need one or more copies of the driver installed. See: Installing the IBM Data Server Driver for ODBC and CLI software on Linux and UNIX operating systems.

About this task

The Microsoft ODBC driver manager is the only ODBC driver manager with which you must register the IBM Data Server Driver for ODBC and CLI. The other ODBC driver managers do not require this activity.

Procedure

To register the IBM Data Server Driver for ODBC and CLI with the Microsoft driver manager, run the db2cli install -setup command for each copy of the driver that is installed.

Results

The db2cli install -setup command changes the Windows registry when you run it after installing the driver. If you uninstall the driver, run the db2cli install -cleanup command to undo those changes.

Example

For example, the following command registers the IBM Data Server Driver for ODBC and CLI in the Windows registry, and creates the configuration folders under the application data path:
> db2cli install -setup

The IBM Data Server Driver for ODBC and CLI registered successfully.
The configuration folders are created successfully.