DB2 10.5 for Linux, UNIX, and Windows

Updating the services file on the server for TCP/IP communications

This task is part of the main task of Configuring TCP/IP communications for a DB2® instance.

About this task

The TCP/IP services file specifies the ports that server applications can listen on for client requests. If you specified a service name in the svcename field of the DBM configuration file, the services file must be updated with the service name to port number/protocol mapping. If you specified a port number in the svcename field of the DBM configuration file, the services file does not need to be updated.

Update the services file and specify the ports that you want the server to listen on for incoming client requests. The default location of the services file depends on the operating system:
Linux and UNIX operating systems
/etc/services
Windows operating systems
%SystemRoot%\system32\drivers\etc\services

Procedure

Using a text editor, add the Connection entry to the services file. For example:
      db2c_db2inst1  3700/tcp # DB2 connection service port
where:
db2c_db2inst1
represents the connection service name
3700
represents the connection port number
tcp
represents the communication protocol that you are using