dbTalk Databases Forums  

Table join from different servers

comp.databases.oracle comp.databases.oracle


Discuss Table join from different servers in the comp.databases.oracle forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
JustAQTCub
 
Posts: n/a

Default Table join from different servers - 02-24-2007 , 09:08 PM






Is it possible to obtain data from two different databased, each being on a
different server. How would the query be written?

example:

TABLE1 on SERVER1 db1name/db1pass@instance1
TABLE2 on SERVER2 db2name/db2pass@instance2

TABLE1
--------------------
column_a1
column_b1
column_c1

TABLE2
---------------------
column_a2
column_b2
column_c2


TABLE JOIN:
column_a1 column_a2 column_b2 column_c1
----------- ------------ ------------ -------------
apple fruit red tree
orange fruit orange tree
grape fruit purple vine
pumpkin vegetable orange vine



Reply With Quote
  #2  
Old   
snlrice
 
Posts: n/a

Default Re: Table join from different servers - 05-20-2007 , 08:06 PM






JustAQTCub wrote:
Quote:
Is it possible to obtain data from two different databased, each being on a
different server. How would the query be written?

example:

TABLE1 on SERVER1 db1name/db1pass@instance1
TABLE2 on SERVER2 db2name/db2pass@instance2

TABLE1
--------------------
column_a1
column_b1
column_c1

TABLE2
---------------------
column_a2
column_b2
column_c2


TABLE JOIN:
column_a1 column_a2 column_b2 column_c1
----------- ------------ ------------ -------------
apple fruit red tree
orange fruit orange tree
grape fruit purple vine
pumpkin vegetable orange vine


why not establish a database link then just refernce the othertable@your
link?


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.