Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Query Across Multiple Databases

Status
Not open for further replies.

subtonez

Programmer
Jun 17, 2001
7
0
0
US
Can anyone give a newbie a method for running a distributed query across multiple databases?

for example:
select *
from database1.table db1, database2.table db2
where db1.some_column=db2.some_column
 
I am assuming the there is a database link to the other(s) instances.

select a.field1,a.field2,b.field1,b.field2
from mytable a, yourtable@database_link b
where a.field1=b.field2
 
My problem is in setting up the link to the other database instance(s). I don't know how. Can you give me a quick-n-dirty method and/or point me to where I can find the method? I am using oracle 9i.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top