DB2 Version 9.7 for Linux, UNIX, and Windows

Protocol CLI/ODBC configuration keyword

Communications protocol used for File DSN or in a DSN-less connection.

db2cli.ini keyword syntax:
Protocol = TCPIP | TCPIP6 | TCPIP4 | IPC | LOCAL
Default setting:
none
Usage notes:
This can be set in the [Data Source] section of the db2cli.ini file for the given data source, or in a connection string.

TCP/IP is the only protocol supported when using a File DSN. Set the option to the string TCPIP (without the slash).

When this option is set then the following options must also be set:

  • Database;
  • ServiceName; and
  • Hostname.

IPC connectivity can be specified by setting Protocol to either IPC or LOCAL.

When Protocol = IPC | LOCAL the Instance keyword must also be set.