.net

.net

博客园 首页 新随笔 联系 订阅 管理

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

posted on 2014-12-24 15:55  航宇  阅读(461)  评论(0编辑  收藏  举报