How to assign a Port Number to an instance in DB2

1. Add an entry to the TCP/IP Services file:


db2_c_<inst_name> 50000/tcp # DB2 Instance connection port for instance DB2C1

The service name db2_c_<inst_name> can be any name you choose, but must be unique in the Services file

and must match the value you specify for the SVCENAME parameter in the DBM CFG file.

The port number you specify should be an integer greater than 1024.

The port numbers must be unique within the Services file.


2. On a Linux or UNIX system, the services file is located in the directory path of /etc/services. You must be update it. 

 

 On a Windows system, the Services file is located in the directory path of \windows\system32\drivers\etc\services.

 

3.On an AIX system, synchronize the /etc/services file and the inetd daemon by

executing the following commands:

# inetimp

# refresh -s inetd

 

$ db2 update dbm cfg using  SVCENAME 50000

 

 After the database manager is stopped and started again, view the database manager configuration file to ensure that these changes have taken effect.

 

 

Comments

Popular posts from this blog

Db2 export command example using file format (del , ixf)

How to fix DB2 Tablespace OFFLINE state issue?

How to determine fenced User-ID of a DB2 instance