在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,。。。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值