DB2设置tcp/ip服务端口

1、在/etc/services中为instance添加服务项:

1
db2c_db2inst1   50000/tcp

2、以DB2 instance owner身份设置DB2 instance使用tcp/ip及指定服务名:

1
2
db2set DB2COMM=tcpip
db2 update database manager configuration using svcename db2c_db2inst1

3、重启DB2 instance:

1
2
db2stop
db2start
This entry was posted in DB2, IBM, Linux. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *