今天学会了使用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