在命令行中輸入:
??? ->db2 catalog tcpip node?xxx remote?serverName server 50000?
??? ->db2 catalog db?databaseName at node xxx?
??? ->db2 connect to?databaseName user Uid using?Pwd?
????說明:
???????catalog tcpip node xxx 中的xxx是任意起的一個(gè)結(jié)點(diǎn)名?
???????catalog db huaxing at node xxx 中的xxx指的是你在前面起的那個(gè)結(jié)點(diǎn)名
???????serverName 服務(wù)器名稱
??????? databaseName 數(shù)據(jù)庫名稱
??????? Uid 用戶名
??????? 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