日期:2014-05-16  浏览次数:20525 次

编目远程数据库到本地
db2 catalog tcpip node reportdb remote 192.188.1.242 server 50001
db2 catalog db odsdb node reportdb

Ldconfig    /etc/ld.so.conf

在 "<标识>" 后面找到异常标记 "node"。预期标记可能包括:"ON"。
SQLSTATE=42601


查看文章 db2 编目远程数据库到本地
C:\Documents and Settings\new>db2 catalog tcpip node n11 remote xxx.xxx.xxx.xx serv
er 50000
DB20000I CATALOG TCPIP NODE 命令成功完成。
DB21056W 只有在刷新目录高速缓存以后,目录更改才生效。

C:\Documents and Settings\new>db2 catalog db ycweb as ycweb at node n11


例子:

db2 catalog tcpip node reportdb remote 192.188.1.242 server 50001
db2 catalog database odsdb as odsdb at node reportdb