用途:用于将服务器上的数据库编目到本地,类似于oracle的本地网络服务名配置;
# 1.查看本地节点目录
db2 list node directory
# 2.查看系统数据库目录
db2 list db directory
# 3.编目一个TCP/IP节点
db2 catalog tcpip node n_aaa remote ip_xxx server 50000
# 4.编目数据库
db2 catalog db db_aaa as db_bbb at node n_aaa
# 5.取消节点编目
db2 uncatalog node n_aaa
# 6.取消数据库编目
db2 uncatalog db db_bbb
# 7.配置实例
db2 catalog TCPIP node node_1 remote 192.168.0.1 server 50000
db2 catalog db db_aaa as db_bbb at node node_1