日期:2014-05-16  浏览次数:20377 次

db2 连接远程数据库并执行sql文件
db2 => catalog tcpip node mynode remote pvcent20.cn.ibm.com server 5000
db2 => catalog db db_1 as mydb_1 at node mynode
db2 connect to mydb_1 user db2inst1 using db2inst1 (用户名和密码是远程server的用户名和密码)

db2   -tvf   e:\ttt.sql