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 issuedSQLSTATE=57019

 

在google上搜索后发现和hosts有关

 

那怎么解决呢? 我们需要修改db2下的db2nodes.cfg文件或者hosts文件

 

db2nodes.cfg配置文件位于/home/db2inst1/sqllib目录下

先看下db2nodes.cfg 和hosts文件的内容是什么?
vi db2nodes.cfg

vi /etc/hosts


明显可以看到db2nodes.cfg内的localhost在hosts文件没有定义
所以我们需要把db2nodes.cfg内的localhost修改为hosts文件中的linux-vm23.localdomain


接下来启动db2 正常的启动了!

你可能感兴趣的:(linux,redhat,db2,Google)