DB2由客户端连接服务端
在命令行中输入:
->db2 catalog tcpip node xxx remote serverName server 50000
->db2 catalog db databaseName at node xxx
->db2 connect to databaseName user Uid using Pwd
例:
->db2 catalog tcpip node xxx remote wjs server 50000
->db2 catalog db huaxing at node xxx
->db2 connect to huaxing user song using 3568974
===>catalog tcpip node xxx 中的xxx是任意起的一个结点名
===>catalog db huaxing at node xxx 中的xxx指的是你在前面起的那个结点名
===>serverName 服务器名称
===>databaseName 数据库名称
===>Uid 用户名
===>Pwd 密码
->db2 catalog tcpip node xxx remote serverName server 50000
->db2 catalog db databaseName at node xxx
->db2 connect to databaseName user Uid using Pwd
例:
->db2 catalog tcpip node xxx remote wjs server 50000
->db2 catalog db huaxing at node xxx
->db2 connect to huaxing user song using 3568974
===>catalog tcpip node xxx 中的xxx是任意起的一个结点名
===>catalog db huaxing at node xxx 中的xxx指的是你在前面起的那个结点名
===>serverName 服务器名称
===>databaseName 数据库名称
===>Uid 用户名
===>Pwd 密码