- CentOS 6.7
- DB2 Express v10.5
DB2 connection setting to allow external connection using TCP/IP.
# edit service file
$ sudo vi /etc/services
# add bellow
db2c_db2inst1 50000/tcp # DB2 connection service port
# update configuration to enable tcp/ip
$ db2 update database manager configuration using svcename 50000
$ db2set DB2COMM=tcpip
# restart db2
$ db2stop (or db2stop force)
$ db2start
TCP/IP 通信のためのサーバー上のサービス・ファイルの更新