2)Verify you are on the correct instance
db2 get instance
3)Find the service name of your instance
db2 get dbm cfg | grep SVCE
You’ll get back something like :
TCP/IP Service Name (SVCENAME) = db2mydb2
4)Use the service name to find the port number in the services file
e.g
db2 grep <my service> /etc/services
you’ll get back something like
<my service > 50000/tcp
Ref:Jack Vamvas(http://www.dba-db2.com)
TrackBack
TrackBack URL for this entry:
http://www.typepad.com/services/trackback/6a00d834539b6d69e20105360fe7e2970b
Listed below are links to weblogs that reference Locate the DB2 connection port number on Linux:
1)Open a DB2 command prompt
2)Verify you are on the correct instance
db2 get instance
3)Find the service name of your instance
db2 get dbm cfg | grep SVCE
You’ll get back something like :
TCP/IP Service Name (SVCENAME) = db2mydb2
4)Use the service name to find the port number in the services file
e.g
db2 grep <my service> /etc/services
you’ll get back something like
<my service > 50000/tcp
Ref:Jack Vamvas