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. If you want to make changes to the
/etc/services file, the instance must be fully offline, and you must change the
/etc/services file on all hosts in the cluster
. 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