One of the db2 admin instance port is always 523, BUT for your normal db2 instance which contains databases you have to put an entry in /etc/services file as:
dbadmin1 50009/tcp # port for dbadmin1 instance
where dbadmin1 is the name of the instance, you can use any name though.It is recommended to use a port above 50000 but you can use any unused port though. Once you define the part in services file update the dbm cfg parameter SVCENAME as:
update dbm cfg using SVCENAME <port number>
Also make sure your DB2COMM parameter is set to TCPIP as well:
Now you are all set for remote connectivity. Hope this helps..
Originally posted by dkhambit
I want to know on db2-aix what is the default port on which DB2 listens . Also where do we specify this ? Can we change it ?
Look in Quick Beginnings. If you used the db2setup utility, the default FCM port is 60000. If you are planning to run multiple logical ports, you must reserve consecutive ports, one for each logical node. However look in /etc/services to determine what you currently have.