Protocol CLI/ODBC and IBM data server driver configuration keyword
Communications protocol used for File DSN or in a DSN-less connection.
- db2cli.ini keyword syntax:
- Protocol = TCPIP | TCPIP6 | TCPIP4 | IPC | LOCAL
- IBM® data server driver configuration file (db2dsdriver.cfg) syntax:
- <parameter name="Protocol" value="TCPIP | TCPIP6 | TCPIP4 | IPC | LOCAL"/>
Attention: The IBM data server
driver configuration
file (db2dsdriver.cfg) syntax is available in Db2 11.5.4 and later.
- Default setting:
- none
- Usage notes:
- This can be set in the
[Data Source]
section of thedb2cli.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.