在已经安装DB2客户端的机器上添加server编目:
语法
- 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]
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]
测试:
- [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:
- [db2inst@rhel5 sqllib]$ db2 connect to bitest user etl
- Enter current password for etl:
- Database Connection Information
-
- Database server = DB2/AIX64 8.2.3
- SQL authorization ID = ETL
- Local database alias = BITEST
添加新评论0 条评论