I've done DB2 (v11.5) installation on RHEL. Just for testing so both OS and DB are fresh. All went fine, db2start
message is SQL1063N DB2START processing was successful
, but the instance is not listening on IPv4 port.
Here's what netstat shows:
[db2inst1@localhost ~]$ netstat -an |grep tcp
tcp 0 0 192.168.130.1:53 0.0.0.0:* LISTEN
tcp 0 0 192.168.122.1:53 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:53 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:44321 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:4330 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN
tcp6 0 0 :::25010 :::* LISTEN
tcp6 0 0 :::22 :::* LISTEN
tcp6 0 0 ::1:631 :::* LISTEN
tcp6 0 0 ::1:44321 :::* LISTEN
tcp6 0 0 ::1:4330 :::* LISTEN
tcp6 0 0 :::111 :::* LISTEN
[db2inst1@localhost ~]$
only IPv6 is listening.
I doublechecked the configuration. Here's the /etc/services part
DB2_db2inst1 20016/tcp
DB2_db2inst1_1 20017/tcp
DB2_db2inst1_2 20018/tcp
DB2_db2inst1_3 20019/tcp
DB2_db2inst1_4 20020/tcp
DB2_db2inst1_END 20021/tcp
db2c_db2inst1 25010/tcp
and db2 settings:
[db2inst1@localhost ~]$ db2set -all
[i] DB2COMM=TCPIP
[i] DB2AUTOSTART=YES
[g] DB2SYSTEM=localhost.localdomain
[db2inst1@localhost ~]$
I tried changing the port number to 50000 with the same result.
I changed DIAGLEVEL 4 hoping that there will be something in the log, but nothing that I could see that would indicate a problem with IPv4.
In the end I uninstalled the database completely and reinstalled as I thought I might had done something wrong during the first installation. It was done through CLI. The second installation was done using wizzard. But nothing changed. DB is not listening on IPv4 port and I ran out of ideas.
Does anyone have idea what could be wrong or what else could be checked?
------------------------------
KL
------------------------------