Creating a DB2 Database federated object

Source: Internet
Author: User
Tags wrapper

Db2
1. DB2 =>update dbm CFG using federated YES
2. DB2 =>db2stop Force
3. DB2 =>db2start

4. Create the wrapper:
DB2 =>create WRAPPER DRDA LIBRARY ' Db2drda.dll ' OPTIONS (ADD db2_fenced ' N ')


5. Create a server definition:
DB2 =>create SERVER lbzm TYPE db2/udb VERSION ' 9.7 ' WRAPPER DRDA AUTHID "db2admin" PASSWORD "* * * * *" options (ADD DBNAME ' Lbzm ')

6. Create User mappings:
DB2 =>create USER MAPPING for db2admin SERVER lbzm OPTIONS (add Remote_authid ' db2admin ', add remote_password ' * * * * * ")


7. Create a table map (nickname)
DB2 =>create nickname Db2admin.v3_fore_co_day for Lbzm.db2admin.v3_fore_co_day

Creating a DB2 Database federated object

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.