Symantec logo

Checking /etc/services

On each system in the cluster, use the more command to check the file /etc/services.

The following is an example for a DB2 UDB instance with two partitions, one port for each partition:

  # more /etc/services

  DB2_db2inst1 70000/tcp # Connection port for DB2 instance

     db2inst1

  DB2_db2inst1_END 70001/tcp

  DB2_db2inst1a 60003/tcp # Interrupt port for DB2 instance

     db2inst1

  DB2_db2inst10 50002/tcp # Connection port for DB2 instance

     db2inst1

  DB2_db2inst10 50003/tcp # Interrupt port for DB2 instance

     db2inst1

The file shows the ports assigned when DB2 UDB creates a new instance. The first two lines in the example show a range of ports, 70000 through 70001, for two database partitions. The next three lines assign additional ports for use by the database instance. Inspect the file and verify there are no duplicate port numbers.

The following is an example for a DB2UDB instance with four partitions, a port for each partition.

# more /etc/services

DB2_db2inst1 60000/tcp #

DB2_db2inst1_1 60001/tcp #

DB2_db2inst1_2 60002/tcp #

DB2_db2inst1_END 60003/tcp #

db2c_db2inst1 50000/tcp #

The four instances are assigned 60000 through 60003.