修改hostname后,db2 无法启动,报错SQL6048N

问题描述:修改了redhat虚拟机hostname,db2 启动不了,报错SQL6048N A communication error occurred during START or STOP DATABASE MANAGE


解决思路:首先通过命令db2 ? SQL6048N查看错误代码具体解释,然后决定下一步怎么做
[db2inst1@redhatwork ~]$ 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要正在运行。

[db2inst1@redhatwork ~]$ vi /home/db2inst1/sqllib/db2nodes.cfg
0 localhost.localdomain 0

这个文件中指定的hostname竟然还是修改前的hostname,问题原因应该在这里。果断修改为现在的hostname。

经测试,问题解决。



  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值