ce97
作者ce97·2010-07-06 17:37
软件开发工程师·某某某

从DB2 客户机编目 TCP/IP 节点

字数 1379阅读 1564评论 0赞 0
在已经安装DB2客户端的机器上添加server编目:
语法
Sql代码
  1. db2 => catalog tcpip node node_name remote hostname|ip_address  
  2.   server service_name|port_number [remote_instance instance_name]  
  3.   [system system_name] [ostype  os_type]  
db2 => catalog tcpip node node_name remote hostname|ip_address server service_name|port_number [remote_instance instance_name] [system system_name] [ostype os_type]

测试:
Sql代码
  1. [db2inst@rhel5 sqllib]$ db2 "catalog tcpip node tower06 remote 172.21.21.21 server 50000"  
[db2inst@rhel5 sqllib]$ db2 "catalog tcpip node tower06 remote 172.21.21.21 server 50000"

注意使用username:
Sql代码
  1. [db2inst@rhel5 sqllib]$ db2 connect to bitest user etl   
  2. Enter current password for etl:   
  3.    Database Connection Information  
  4.   
  5.  Database server        = DB2/AIX64 8.2.3  
  6.  SQL authorization ID   = ETL  ----------已经变更  
  7.  Local database alias   = BITEST  

如果觉得我的文章对您有用,请点赞。您的支持将鼓励我继续创作!

0

添加新评论0 条评论

Ctrl+Enter 发表

作者其他文章

相关问题

X社区推广