Changing the default DB2 port

If you cannot use 50000 as the default port number for TCP/IP communication with the DB2® instance, you must modify the DB2 sample response file.

About this task

By default, the full installation uses the 50000 port to configure the DB2 instance for TCP/IP communication. The full installation fails, if this port is already in use. You must change the value for the DB2_INST.PORT_NUMBER to an available port in the DB2 sample response file.

Procedure

  1. Browse to the following directory and open the db2ese.rsp file:
    Option Description
    On AIX® systems Install_Imgs_Home/ese/db2/aix/samples
    On Linux systems Install_Imgs_Home/ese/db2/linuxamd64/samples
    On Linux for System z® systems Install_Imgs_Home/ese/db2/linux390/samples
    On Windows systems Install_Imgs_Home/ESE/image/db2/Windows/samples
  2. Change the value for the DB2_INST.PORT_NUMBER to an available port number and save the file.
    Note: Do not uncomment the line. Only change value for the port number.