473,602 Members | 2,896 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.TABL E1_ID,
DB1.TABLE1.FIEL D_A,
DB1.TABLE2.FIEL D_1,
DB1.TABLE2.FIEL D_2,

FROM
DB1.TABLE1 LEFT OUTER JOIN DB1.TABLE2 ON
DB1.TABLE2.TABL E1_ID=DB1.TABLE 1.TABLE1_ID
WHERE
(
DB1.TABLE2.TABL E1_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 2024
<th******@yahoo .com> wrote in message
news:11******** **************@ o13g2000cwo.goo glegroups.com.. .
Hi,

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

SELECT
DB1.TABLE1.TABL E1_ID,
DB1.TABLE1.FIEL D_A,
DB1.TABLE2.FIEL D_1,
DB1.TABLE2.FIEL D_2,

FROM
DB1.TABLE1 LEFT OUTER JOIN DB1.TABLE2 ON
DB1.TABLE2.TABL E1_ID=DB1.TABLE 1.TABLE1_ID
WHERE
(
DB1.TABLE2.TABL E1_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******** *************@f 14g2000cwb.goog legroups.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
2846
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 developement machine but how does my code connect to the server when it is on another machine ? When an instance of MSDE is run on the target, it will produce... anotherPCname/instancename
1
1119
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
2310
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 "It is only possible to connect to SQL Server Desktop Engine databases and Microsoft Access databases with this version of Visual Studio". I've seen several postings regarding this on Visual Basic that say you can do this in VB if you don't...
3
1623
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 this is my connectio string: Private strsql As String Private strconnection As String = "data source=localhost;initia catalog=Customers;integrated security=SSPI;persist securit
3
1898
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 and at the remote client computer on the File>Connection>Data link properties I'm using an IP address for the server name which I got from the LOG file of MSDE (192.168.xxx.xx,1433) but then I realised that that IP could not be used to connect...
6
25916
by: ´ï´ï | last post by:
How to connect asp.net with Oracle Database? Where and How to? Thanks very much.
16
2300
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, but cannot connect through code. I have done it before and can not do it now; I don't know what changed. (I also cannot connect to local Access database through code though I can from server explorer.) The code is: conn = New SqlConnection("data...
0
3478
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 datasource import java.awt.BorderLayout; import java.awt.Component; import java.io.*; import java.net.URL; import javax.media.*;
16
4832
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 recommended for reorg. My goal is to reorgchk and run reorgs based on entries in this reorg file as shown in the example below. I have tried my hand at the following failing script and hope that gurus here can throw me a lifeline of examples on how to...
0
7920
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8401
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
6730
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
5867
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5440
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
3900
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2418
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1510
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1254
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.