现象:
[db2inst1@db2 sqllib]$ db2 get database configuration for sample
^CSQL6031N Error in the db2nodes.cfg file at line number "0". Reason code
"11".
查看ibm的infocenter,发现是由于: 在 services 文件(在基于 UNIX 的系统上,是 /etc/services)中没有对 DB2 实例标识定义 sqllib 目录中 db2nodes.cfg 文件的第 行 行中的端口值,检查 /etc/services被注释,修改后恢复正。
#DB2_db2inst1 60000/tcp
DB2_db2inst1_1 60001/tcp
DB2_db2inst1_2 60002/tcp
DB2_db2inst1_END 60003/tcp
参考:
http://publib.boulder.ibm.com/infocenter/db2luw/v9r5/index.jsp?topic=%2Fcom.ibm.db2.luw.messages.sql.doc%2Fdoc%2Fmsql06031n.html
[db2inst1@db2 sqllib]$ db2 get database configuration for sample
^CSQL6031N Error in the db2nodes.cfg file at line number "0". Reason code
"11".
查看ibm的infocenter,发现是由于: 在 services 文件(在基于 UNIX 的系统上,是 /etc/services)中没有对 DB2 实例标识定义 sqllib 目录中 db2nodes.cfg 文件的第 行 行中的端口值,检查 /etc/services被注释,修改后恢复正。
#DB2_db2inst1 60000/tcp
DB2_db2inst1_1 60001/tcp
DB2_db2inst1_2 60002/tcp
DB2_db2inst1_END 60003/tcp
参考:
http://publib.boulder.ibm.com/infocenter/db2luw/v9r5/index.jsp?topic=%2Fcom.ibm.db2.luw.messages.sql.doc%2Fdoc%2Fmsql06031n.html
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/27015256/viewspace-777256/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/27015256/viewspace-777256/