ServiceName CLI/ODBC and IBM data server driver configuration keyword
The server system's service name or port number, used with file DSN or in a DSN-less connection.
- db2cli.ini keyword syntax:
- ServiceName = service name | port number
- IBM® data server driver configuration file (db2dsdriver.cfg) syntax:
- <parameter name="ServiceName" value="service name | port number"/>
Attention: The IBM data server
driver configuration
file (db2dsdriver.cfg) syntax is available in Db2 11.5.4 and later.
- Default setting:
- None
- Only applicable when:
- Protocol set to TCPIP
- Usage notes:
Use this option in conjunction with the Hostname option to specify the required attributes for a TCP/IP connection from this client machine to a server running Db2®. These two values are only considered when the PROTOCOL option is set to TCPIP.
Specify either the server system's service name or its port number. The service name must be available for lookup at the client machine if it is used.