sunlan 发表于 2012-02-25 23:47

DB2 V8.2 under SUSE11 创建实例失败及解决的办法

最近做的一个项目,操作系统使用的是SUSE 11sp1、数据库是由客户提供的DB2 V8.2。如往常一样装好数据库软件,在使用db2icrt创建实例的时候始终报错。日志中报了以下内容:       Program name = db2idbm
Instance home dir = /home/db2,   Sysadm group = db2admin
Instance type = 1,Auth type = SERVER

SQL6048NA 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.
起初百思不得其解,同样的方法,为什么在其他的操作系统(包括SUSE 10)上是正常的、而在SUSE 11上会出差呢?起初怀疑是SUSE 11的某些运行环境与DB2 V8.2不兼容,后来经检查发现,问题出在hosts文件中。大多数的linux操作系统会自动将主机的名称($HOSTNAME)自动添加到/etc/hosts中,而SUSE 11的/etc/hosts文件中仅有localhost项。而DB2创建实例时需要使用hostname项。在手动将hostname添加到hosts文件中后,创建实例、启动实例等操作一切正常。
页: [1]
查看完整版本: DB2 V8.2 under SUSE11 创建实例失败及解决的办法