如何解决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 
 
果然修改后就可以正常连接了
原文地址:https://www.cnblogs.com/db2zos/p/3068476.html