Call Level Interface Guide and Reference

Setting up the DB2 CLI Runtime Environment

Runtime support for DB2 CLI applications is contained in all DB2 Universal Database products, including the DB2 Client Application Enabler and the DB2 Application Development Client. This section describes the general setup required; see also Platform Specific Details for CLI/ODBC Access.

In order for a DB2 CLI application to successfully access a DB2 database:

  1. The database (and node if the database is remote) must be cataloged. Use either the command line processor or (if applicable) the DB2 administration tool for your platform.
  2. The DB2 CLI bind files must be bound to the database.

    DB2 CLI will auto-bind on the first access to the database, provided the user has the appropriate authorization. The database administrator may need to perform the first connect, or explicitly bind the files. See How to Bind the DB2 CLI/ODBC Driver to the Database for more information.

  3. Optionally the DB2 CLI/ODBC Configuration Keywords can be set.

    See Platform Specific Details for CLI/ODBC Access for more information on how to do this using the tools available on your platform, or How to Set CLI/ODBC Configuration Keywords for details on doing this manually.


[ Top of Page | Previous Page | Next Page ]