免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 3189 | 回复: 0
打印 上一主题 下一主题

DB2 V8.2 under SUSE11 创建实例失败及解决的办法 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2012-02-25 23:47 |只看该作者 |倒序浏览
最近做的一个项目,操作系统使用的是SUSE 11sp1、数据库是由客户提供的DB2 V8.2。如往常一样装好数据库软件,在使用db2icrt创建实例的时候始终报错。日志中报了以下内容:
  1.        Program name = db2idbm
  2. Instance home dir = /home/db2,   Sysadm group = db2admin
  3. Instance type = 1,  Auth type = SERVER

  4. SQL6048N  A communication error occurred during START or STOP DATABASE MANAGER
  5. processing.
  6. Update DBM cfg SYSADM_GROUP errcode = 8
  7. DBI1281E The database manager configuration file could not be
  8.           initialized.

  9. Explanation:

  10. An error occurred when attempting to initialize the database
  11. manager configuration file. A DB2 instance could not be created
  12. or migrated.

  13. User Response:

  14. Refer to the log file for problem determination. Resolve the
  15. problem and try the command again. If the problem persists,
  16. 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文件中后,创建实例、启动实例等操作一切正常。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP