DB2创建实例失败 DBI1922N The host name is not valid.
-bash-3.2# ./db2icrt -p 60000 -s ese -u db2fenc1 db2inst1
The host name "AIXSERVER" is invalid. Specify a valid host name.
DBI1922N The host name is not valid.
Explanation:
The TCP/IP host name parameter is not valid or does not exist.
User response:
Ensure that TCP/IP is operational on the system. If a domain name server
is used, ensure that the domain name server machine is active. Issue the
command again using the correct TCP/IP host name.
DBI1079I Output is saved in the log file /tmp/db2icrt.log.106582.
Explanation:
All processed and failed operations have been saved into this log file.
User response:
Do not modify this file in any way. This file is for IBM Technical
Support reference.
./db2icrt: DB2INSTVER: parameter null or not set
网上搜到的解决方案:
DB2 V9.7 for Linux, UNIX, and Windows
--------------------------------------------------------------------------------
DBI1922N
主机名无效。
说明
TCP/IP 主机名参数无效或者不存在。
用户响应
确保 TCP/IP 在系统上是可运行的。如果使用了域名服务器,那么应确保域名服务器处于活动状态。使用正确的 TCP/IP 主机名再次发出该命令。
DBI1922N The host name is not valid.
Cause: The TCP/IP host name parameter is not valid or does not exist.
Action: Ensure that TCP/IP is operational on the system. If a domain name server is used, ensure that the domain name server machine is active. Issue the command again using the correct TCP/IP host name.
我的测试服务器网络设置:
-bash-3.2# cat /etc/hosts | grep AIXSERVER
192.168.30.128 AIXSERVER