Smart questions
Smart answers
Smart people
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Member Login




Remember Me
Forgot Password?
Join Us!

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips now!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

Join Tek-Tips
*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Donate Today!

Do you enjoy these
technical forums?
Donate Today! Click Here

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.
Jobs from Indeed

Link To This Forum!

Partner Button
Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.
Just copy and paste the
code below into your site.

martynh (TechnicalUser) (OP)
5 Jun 03 10:59
Is it possible to join tables in more than one database, within the same instance, in a query (DB2 8.1, on Windows 2000)? e.g.

select * from db1.u1.tab1 inner join db4.u2.tab6 on ...

I'm sure it worked on DB2 on a mainframe (when I used to work on proper machines!)
sathyarams (IS/IT--Management)
6 Jun 03 11:48
This is possible ...

This is called Federated System in the DB2 LUW world ... (Don't know what it was called on the mainframe)

A brief of the steps :

1) Ensure that the data joiner package is installed ( This is on Unix .. not sure how to do it on W2K)

2) Set the dbm cfg parameter FEDERATED=YES and restart the instance

3) Create Wrapper (This step identifies the library to use to connect to a remote database). In your case the library will be drda.dll

4) Create Server. This step identifies the node and database to use.

5) Create a Nickname to a remote table ...

You may also need to create a user mapping (can't remember)

In the DB2's information centre read 'Federated Systems' under the concepts heading ...

HTH

More DB2 questions answered at www.dbforums.com/f8

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Back To Forum

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close