If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > Federated Queries?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-26-09, 23:55
mrluvdb2 mrluvdb2 is offline
Registered User
 
Join Date: Jan 2009
Posts: 7
Smile Federated Queries?

Hi Folks,

I am running LUW 9.1 on Linux. I create 2 databases under the same instance: DB1 contains table T1 and DB2 contains table T2. If I want to run a query from DB2 to join T1 and T2 do I have to create a wrapper, nickname, and a server?

The examples are readily apparent when connect to z/OS but not clear between LUW databases. Am I complicating things?

Appreciate your help.
Reply With Quote
  #2 (permalink)  
Old 01-27-09, 00:00
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
Yes you need the federated components you mentioned. The databases also have to be enabled for federation. There is a PDF manual that is dedicated to Federation.
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390
Reply With Quote
  #3 (permalink)  
Old 01-27-09, 03:05
JAYANTA_DATTA JAYANTA_DATTA is offline
Registered User
 
Join Date: Oct 2004
Location: DELHI INDIA
Posts: 336
Thats correct. Federation is the way to achive the same. Another way for the same, in case you want the remote table to be physically present on your target is the enable DB2 Replication.
__________________

Jayanta Datta
DB2 UDB DBA
IBM India, Global Delivery
New Delhi
Reply With Quote
  #4 (permalink)  
Old 01-27-09, 14:06
stolze stolze is offline
Registered User
 
Join Date: Jan 2007
Location: Jena, Germany
Posts: 2,662
Don't mix up the term "database". It means completely different things in DB2 z/OS and DB2 LUW. On z/OS, a database is pretty much only a qualifier for tablespace names (plus authorization). From a data-perspective, a database on DB2 LUW is more comparable to a DB2 subsystem on z/OS. A database on z/OS should probably be modeled as "schema" in DB2 LUW.
__________________
Knut Stolze
IBM DB2 Analytics Accelerator
IBM Germany Research & Development
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On