Db2 catalog tcpip報錯SQL1038C An I/O error occurred while accessing the node directory

問題描述

db2 catalog tcpip node報錯SQL1038C   An I/O error occurred while accessing the node directory.  

db2inst1@node01:~> db2 catalog tcpip node qingsong REMOTE 192.168.75.134 server 60000
SQL1038C  An I/O error occurred while accessing the node directory.  
SQLSTATE=58031

並且db2 list node directory沒有輸出:

db2inst1@node01:~> db2 list node directory
SQL1027N  The node directory cannot be found.

 

原因

node directory的信息存放在~/sqllib/sqlnodir目錄下,有兩個文件 sqlnobak和sqlnodir,如果這兩個文件不存在,或者已經損壞(未損壞情況下可以直接查看內容),那麼就會出現上面的問題。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章