DB2 10.5 for Linux, UNIX, and Windows

Updating hosts and services files for TCP/IP connections

This task explains when and how to update the hosts file and services file on the client with communication parameter values for the remote database server. This task is optional for connections using TCP/IP and does not apply to connections using Named Pipes. This task is part of the larger task of configuring client-to-server connection using the CLP.

About this task

You need to update the hosts file if you want to establish a connection to the remote database server using its hostname and your network does not contain a DNS (domain name server) that can be used to resolve that hostname to an IP address. This step is not required if you want to refer to the remote database server using its IP address.

You need to update the services file if you want to specify a connection service name when establishing a connection to the remote database server. A connection service is an arbitrary name that represents the connection port number. This step is not required if you want to refer to the remote database server's port number.

Procedure

Example

The following table lists the location of the hosts file and services file referred to in the preceding procedures.

Table 1. Location of the hosts file and services file
Operating System Directory
Windows Server 2003 %SystemRoot%\system32\drivers\etc where %SystemRoot% is an environment variable defined on the system.
Linux or UNIX /etc