473,321 Members | 1,877 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,321 software developers and data experts.

Need help with SQL - connect to multiple data source in DB2 AIX

Hi,

I have a SQL statement that access to one database (DB2) i.e.

SELECT
DB1.TABLE1.TABLE1_ID,
DB1.TABLE1.FIELD_A,
DB1.TABLE2.FIELD_1,
DB1.TABLE2.FIELD_2,

FROM
DB1.TABLE1 LEFT OUTER JOIN DB1.TABLE2 ON
DB1.TABLE2.TABLE1_ID=DB1.TABLE1.TABLE1_ID
WHERE
(
DB1.TABLE2.TABLE1_ID = 123456
AND DB1.TABLE2.MSR_PRD_ID = 'AAAAAA'
)

Table2 is now going to be moved to another database DB2 residing in
another server. How can I connect to two database (DB1 & DB2) now for
the SQL Statement? Does DB2 on AIX support this?

Pls help! Thanks

Nov 12 '05 #1
4 2008
<th******@yahoo.com> wrote in message
news:11**********************@o13g2000cwo.googlegr oups.com...
Hi,

I have a SQL statement that access to one database (DB2) i.e.

SELECT
DB1.TABLE1.TABLE1_ID,
DB1.TABLE1.FIELD_A,
DB1.TABLE2.FIELD_1,
DB1.TABLE2.FIELD_2,

FROM
DB1.TABLE1 LEFT OUTER JOIN DB1.TABLE2 ON
DB1.TABLE2.TABLE1_ID=DB1.TABLE1.TABLE1_ID
WHERE
(
DB1.TABLE2.TABLE1_ID = 123456
AND DB1.TABLE2.MSR_PRD_ID = 'AAAAAA'
)

Table2 is now going to be moved to another database DB2 residing in
another server. How can I connect to two database (DB1 & DB2) now for
the SQL Statement? Does DB2 on AIX support this?

Pls help! Thanks

You need to set up DB2 Federated Support and refer to the table in the other
database via a nickname. This was discussed in detail recently. Check Google
Groups archive.
Nov 12 '05 #2
Is there any online PDFs or references that can assist a DBA in setting
up a Federated Database on AIX? Does this require additional licensing
i.e. $$$?

Pls advice. Thanks

Nov 12 '05 #3
<th******@yahoo.com> wrote in message
news:11*********************@f14g2000cwb.googlegro ups.com...
Is there any online PDFs or references that can assist a DBA in setting
up a Federated Database on AIX? Does this require additional licensing
i.e. $$$?

Pls advice. Thanks

No additional licensing if all databases are on DB2 for AIX. A recent thread
had the syntax needed. Check Google Groups archives
Nov 12 '05 #4
Go back and google the recent thread on this. Doc was discussed. Go here:

http://www-306.ibm.com/software/data...manualsv8.html

and look under "DB2 Information Integrator". No additional licensing is
required if you stay within the DB2 family in terms of your access.

Larry Edelstein

th******@yahoo.com wrote:
Is there any online PDFs or references that can assist a DBA in setting
up a Federated Database on AIX? Does this require additional licensing
i.e. $$$?

Pls advice. Thanks


Nov 12 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
by: David | last post by:
I am writing SQL data apps using VB.NET 2003, MSDE is being used as the server. When I create and instance of the server, it has a the format machinename/instancename This is fine for the...
1
by: Lakrom | last post by:
Is possible to have a connection to SQL server and another one conaxion to a data base Access to process data among them Thanks.
1
by: Dave | last post by:
I am trying to learn .NET with the standard edition of VC++.NET 2003 Standard edition. When I use the wizard in the toolbox to connect to a non-microsoft ODBC data source, I get the error message...
3
by: Justnew | last post by:
Hei All Can some body help me here: I have a database name Customers, I a trying to connect to SQL server through vb.net using asp.net webform. I want to connect to the server programatically...
3
by: GAVO-UK | last post by:
Experts I'm experimenting with ADP and MSDE and I'm trying to connect a remote front end through the internet. I have already enabled TCP/IP connection on port 1433 on the MSDE host computer...
6
by: ´ï´ï | last post by:
How to connect asp.net with Oracle Database? Where and How to? Thanks very much.
16
by: peshekeedweller | last post by:
Using asp.net 1.1. vb.net 2003. I am trying to connect to a remote sql server 2000 on a virtual machine running windows 2000 server. I can connect through the server explorer in visual studio,...
0
by: shahiz | last post by:
This the error i get when i try to run my program Error: Unable to realize com.sun.media.amovie.AMController@18b81e3 Basically i have a mediapanel class that initialize and play the media as...
16
by: Okonita via DBMonster.com | last post by:
Hi all, I am comming along with all this Linus/DB2/scripting business...I am no longer scared of it!! (LOL). But, I need to create a .ksh script that does a REORGCHK and output only tables...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.