Posted on 2009-12-31 00:02
Prayer 閱讀(2074)
評論(0) 編輯 收藏 引用 所屬分類:
DB2
在redhat AS4上裝了個db2
裝好后發(fā)現(xiàn)無法啟動,使用db2start的時候報錯:
SQL6048N A communication error occurred during START or STOP DATABASE MANAGER processing.
SQL1032N No start database manager command was issued . SQLSTATE=57019
在google上搜索后發(fā)現(xiàn)和hosts有關(guān)
那怎么解決呢? 我們需要修改db2下的db2nodes.cfg文件或者hosts文件
db2nodes.cfg配置文件位于/home/db2inst1/sqllib目錄下
先看下db2nodes.cfg 和hosts文件的內(nèi)容是什么?
vi db2nodes.cfg

vi /etc/hosts

明顯可以看到db2nodes.cfg內(nèi)的localhost在hosts文件沒有定義
所以我們需要把db2nodes.cfg內(nèi)的localhost修改為hosts文件中的linux-vm23.localdomain

接下來啟動db2 正常的啟動了!
