Skip to main content

Configure Connection

IBM DB2 guide

Install the IBM Db2 ODBC driver, prepare an account with database access, and configure and test the connection in NIM.

Before you startDirect link to Before you start

Install the IBM ODBC driver on the NIM server and arrange an account that your Db2 environment can authenticate. The operating system account examples below apply to deployments using OS-based authentication; use your organization's identity source if Db2 authenticates through another provider.

NIM requires Driver name, Hostname, Port, Database, Schema, Username, and Password. A default driver name is provided in the connector.

Install and register the driverDirect link to Install and register the driver

  1. Download the IBM Db2 ODBC/CLI driver for the architecture used by the NIM connector.

  2. Create C:\Program Files\IBM on the NIM server.

  3. Extract the contents of clidriver into that folder.

  4. Open Command Prompt as administrator and run these commands separately:

    cd /d "C:\Program Files\IBM\bin"
    db2cli install -setup

    If your extraction retains a clidriver subfolder, use that folder's bin directory instead.

  5. Confirm that the driver is registered in ODBC Data Source Administrator > Drivers.

Step 1 of 4