在DB2中找到连接端口

Many times DBAs gets confused about connection ports when there are two or more instances on same server. This tip address this issue. It has been tested on DB2 version 6, 7 and 8.

To get the connection port, issue this command at the DB2 command prompt:

GET DBM CFG 
Note the information displayed, such as:
TCP/IP Service name (SVCENAME) = db2cdb2inst10 

This is the service name to which the TCP/IP port is bound to. You can use this service name to connect from the client or you can also verify the port in the /etc/services file. Mostly port numbers start from 50000 from instance one.

应该是找DAS的port, 523

查看
db2 "get admin cfg"
db2 " get db cfg"

其中SVCENAME就是,
DAS:523
DB:5000,5001,5002,。。。

你可能感兴趣的:(db2)