|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
|
|
#1
|
|||
|
|||
|
Link two DB2 Databases
Hi,
I have 2 databases running on a AIX ver 5.2 box. The DB2 version is 8.1.4. My problem is that I want to join the tables from both of these databases in a query. I'm from Oracle background and in oracle its very straight forward to create batabase links. What is the procedure in DB2. Do I have to use the Federated Systems mechanism or is there simple otherway out. I have read the thread on a similar article but it talks about DDF which is only available on OS/390. Please help. |
|
#2
|
||||
|
||||
|
If you look in Chapter 2 of the DB2 Connect User's Guide, it talks about using a Federated Database to run a query between two DB2 databases (or a DB2 and an Oracle database, etc.).
http://publib.boulder.ibm.com/infocenter/db2v8luw/index.jsp?topic=/com.ibm.db2.udb.doc/conn/c0004778.htm |
|
#3
|
|||
|
|||
|
I think what dcaillouet suggested is probably what you will have to do. We have some federated tables, but all are federated on UDB 8 for Win, and alias tables on Z/OS.
Thinking DB2 also has a product called Information Integrator that will let you reference everything but the kitchen sink... fv
__________________
...because that is the way we have always done it. We've been doing it like that for 80 Years! (How do we change that mindset?) |
|
#4
|
|||
|
|||
|
Ii
Information Integrator is extremely powerful and is in a sense a dedicated Federated server. It allows for connectivity to a wide range of data sources, and is fast.
It creates the illusion of connecting to a single data source, when in reality your connecting to potentially hundreds of different tables, in different databases, on different platforms. Once you have the II dB installed, its then just a matter of creating wrappers for your data sources. Then create server mappings, user mappings and nicknames, which are aliases of tables. And away you go! Aj. ![]() |
![]() |
| Viewing: Dev Shed Forums > Databases > DB2 Development > Link two DB2 Databases |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|