SQL6031N错误解决办法

今天学会了使用DB2离线信息中心,查起问题来确实很方便。


我把虚拟机克隆一次,按照平时的相关修改主机名和IP地址,ps命令发现没有db2进程,我记得我设置了自动启动实例的啊,看来实例没不来。手动启动,报错如下:

[db2inst1@DB122 ~]$ db2start

SQL6031N  Error in the db2nodes.cfg file at line number "1".  Reason code "10".


我在自己的电脑上安装了一个离线的信息中心,用着真方便,查到对应的代码解释如下:

SQL6031N

Error in the db2nodes.cfg file at line number line. Reason code reason-code.

Explanation

The statement cannot be processed because of a problem with the db2nodes.cfg file, as indicated by the following reason codes:


10

The hostname at line line of the db2nodes.cfg file in the sqllib directory is not valid.


知道原因了,就好解决了。

[db2inst1@DB122 sqllib]$ cat db2nodes.cfg
0 DB121 0

[db2inst1@DB122 sqllib]$ vi db2nodes.cfg

[db2inst1@DB122 sqllib]$ cat db2nodes.cfg
0 DB122 0

[db2inst1@DB122 sqllib]$ db2start
06/12/2014 23:02:46     0   0   SQL1063N  DB2START processing was successful.
SQL1063N  DB2START processing was successful.
[db2inst1@DB122 sqllib]$


________________________________________________________________________________

版权所有,文章允许转载,但必须以链接方式注明源地址,否则追究法律责任!

Author:   laven54 (lurou)

Email:    laven54@163.com

Blog:      http://blog.csdn.net/laven54



  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值