问题描述:修改了redhat虚拟机hostname,db2 启动不了,报错SQL6048N A communication error occurred during START or STOP DATABASE MANAGE
解决思路:首先通过命令db2 ? SQL6048N查看错误代码具体解释,然后决定下一步怎么做
db2 ? SQL6048N
SQL6048N A communication error occurred during START or STOP DATABASE
MANAGER processing.
Explanation:
A TCP/IP communication error occurred while the START or STOP DATABASE
MANAGER command was trying to establish connection with all the nodes
defined in the sqllib/db2nodes.cfg file including the new node you
attempted to add.
User response:
Do the following:
* Ensure that the node has the proper authorization defined in the
.rhosts or the host.equiv files.
* Ensure that the application is not using more than (500 + (1995 - 2 *
total_number_of_nodes)) file descriptors at the same time.
* Ensure all the Enterprise Server Edition environment variables are
defined in the profile file.
* Ensure the profile file is written in the Korn Shell script format.
* Ensure that all the host names defined in the db2nodes.cfg file in
the sqllib directory are defined on the network and are running.
* Ensure that the DB2FCMCOMM registry variable is set correctly.
解决方案:通过读取错误解释,发现db2 已经给出了6个建设性解决方案。结合实际情况,我是修改了hostname,那么应该选择第5种解决方案。Ensure that all the host names defined in the db2nodes.cfg file in
the sqllib directory are defined on the network and are running.
提到了db2nodes.cfg文件中的指定hostname要正在运行。
vi /db2data/db2inst1/sqllib/db2nodes.cfg
0 localhost.localdomain 0
这个文件中指定的hostname竟然还是修改前的hostname,问题原因应该在这里。果断修改为现在的hostname。
经测试,问题解决。
阅读(2009) | 评论(0) | 转发(0) |