Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: query two instances on different machines

Re: query two instances on different machines

From: Sybrand Bakker <postbus_at_sybrandb.demon.nl>
Date: Wed, 3 Jan 2001 07:05:44 +0100
Message-ID: <93061n$8ajtf$3@ID-62141.news.dfncis.de>

create a database link from database a to database b (making sure the tnsnames.ora on the server for database a lists database b) then issue
select * from foo
minus
select * from foo@<database link to b>

and that should be all.
Please refer to the sql reference manual on to how create a database link

Hth,
Sybrand Bakker, Oracle DBA

"Lane Mabbett" <lane.mabbett_at_fmr.com> wrote in message news:tno46.150$q31.386_at_news-srv1.fmr.com...
> Greetings. How is it possible (if at all) to execute a query on two
> instances located on separate servers? I'm told it can be done but am at
 a
> loss. I have two databases that should contain the exact same
 information.
> However, one database has more records than the other. I need to write a
> select statement that will show what records exist in one database that do
> not exist in the other. Thanks in advance.
>
>
Received on Wed Jan 03 2001 - 00:05:44 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US