db2
1、db2 =>update dbm cfg using Federated YES
2. db2 =>db2stop force
3. db2 =>db2start
4、创建包装器:
db2 =>CREATE WRAPPER DRDA LIBRARY 'db2drda.dll' OPTIONS ( ADD DB2_FENCED 'N')
5、创建服务器定义:
db2 =>CREATE SERVER LBZM TYPE DB2/UDB VERSION '9.7' WRAPPER DRDA AUTHID "db2admin" PASSWORD "*****" OPTIONS( ADD DBNAME 'LBZM')
6、创建用户映射:
db2 =>CREATE USER MAPPING FOR DB2ADMIN SERVER LBZM OPTIONS ( ADD REMOTE_AUTHID 'db2admin', ADD REMOTE_PASSWORD '*****')
7、创建表映射(昵称)
db2 =>create nickname db2admin.v3_fore_co_day for lbzm.db2admin.v3_fore_co_day