- 論壇徽章:
- 0
|
最近做的一個項目,操作系統(tǒng)使用的是SUSE 11sp1、數(shù)據(jù)庫是由客戶提供的DB2 V8.2。如往常一樣裝好數(shù)據(jù)庫軟件,在使用db2icrt創(chuàng)建實例的時候始終報錯。日志中報了以下內(nèi)容:- Program name = db2idbm
- Instance home dir = /home/db2, Sysadm group = db2admin
- Instance type = 1, Auth type = SERVER
- SQL6048N A communication error occurred during START or STOP DATABASE MANAGER
- processing.
- Update DBM cfg SYSADM_GROUP errcode = 8
- DBI1281E The database manager configuration file could not be
- initialized.
- Explanation:
- An error occurred when attempting to initialize the database
- manager configuration file. A DB2 instance could not be created
- or migrated.
- User Response:
- Refer to the log file for problem determination. Resolve the
- problem and try the command again. If the problem persists,
- please contact IBM Support.
復制代碼 起初百思不得其解,同樣的方法,為什么在其他的操作系統(tǒng)(包括SUSE 10)上是正常的、而在SUSE 11上會出差呢?起初懷疑是SUSE 11的某些運行環(huán)境與DB2 V8.2不兼容,后來經(jīng)檢查發(fā)現(xiàn),問題出在hosts文件中。大多數(shù)的linux操作系統(tǒng)會自動將主機的名稱($HOSTNAME)自動添加到/etc/hosts中,而SUSE 11的/etc/hosts文件中僅有l(wèi)ocalhost項。而DB2創(chuàng)建實例時需要使用hostname項。在手動將hostname添加到hosts文件中后,創(chuàng)建實例、啟動實例等操作一切正常。
|
|