db2在linux上无法启动
在redhat AS4上装了个db2装好后发现无法启动,使用db2start的时候报错:
SQL6048N A communication error occurred during START or STOP DATABASE MANAGER processing.
SQL1032N No start database manager command was issued. SQLSTATE=57019
在google上搜索后发现和hosts有关
那怎么解决呢? 我们需要修改db2下的db2nodes.cfg文件或者hosts文件
db2nodes.cfg配置文件位于/home/db2inst1/sqllib目录下
先看下db2nodes.cfg 和hosts文件的内容是什么?
vi db2nodes.cfg
http://jayxu.iteye.com/upload/picture/pic/26399/26fc7bdd-7da6-3f6e-aa5c-d5ffe4d25a76.jpg
vi /etc/hosts
http://jayxu.iteye.com/upload/picture/pic/26401/51f5a91a-f651-316e-a844-13a8690ebf3b.jpg
明显可以看到db2nodes.cfg内的localhost在hosts文件没有定义
所以我们需要把db2nodes.cfg内的localhost修改为hosts文件中的linux-vm23.localdomain
http://jayxu.iteye.com/upload/picture/pic/26403/349b7262-4585-35c3-a9cd-71ba12605bce.jpg
接下来启动db2 正常的启动了!
http://jayxu.iteye.com/upload/picture/pic/26405/b36bbc5c-3ba7-33f4-b8b6-1b2a785c71a0.jpg
页:
[1]