当前位置:数据库 > DB2 >>

如何解决db2nodes.cfg line number“1”,Reason code“10”


如何解决db2nodes.cfg line number“1”,Reason code“10”
 
今天发现无法用db2connect连接我的lpar,刚开始以为密码改了,后来发现密码没错,于是搜索了一下这个文件。
 
发现文件内容里有local机器的hostname,想起来我这几天刚刚改了hostname,估计就是这个原因了。
 
X:\work\workload\expscript>db2 connect to db2 user user using db2zos
SQL6031N  Error in the db2nodes.cfg file at line number "1".  Reason code
"10".
 
文件内容如下:
 
0 db2zos-desktop db2zos-desktop 0
 
果然修改后就可以正常连接了
 
Oracle
MySQL
Access
SQLServer
DB2
Excel
SQLite
SYBASE
Postgres
如果你遇到数据库难题:
请访问www.zzzyk.com 试试
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,