Oracle FAQ Your Portal to the Oracle Knowledge Grid

Home -> Community -> Mailing Lists -> Oracle-L -> RE: DB Links

RE: DB Links

From: Goulet, Dick <>
Date: Thu, 23 Sep 2004 10:53:01 -0400
Message-ID: <>


        My experience is somewhat different from yours. In the case of "FROM = EMP_at_LINK WHERE EMPNO =3D 1234" I have found that the local database will = pass that along to the remote database for resolution since there will = definelty be one and only one row returned. Now "FROM EMP_at_LINK WHERE = EMPNO > 1234" would also resolve itself on the remote db, but "FROM dept = a, EMP_at_LINK b WHERE a.empno =3D b.empno and b.EMPNO > 1234" will result = in emp becoming a local temp table.

Dick Goulet
Senior Oracle DBA
Oracle Certified 8i DBA

-----Original Message-----
From: Gogala, Mladen [] Sent: Thursday, September 23, 2004 10:47 AM To: ''; ''; ''; Oracle-L (E-mail) Subject: RE: DB Links

I strongly dislike hints and I use them only when necessary. The problem with joins over the database link is that in situations like FROM EMP_at_LINK WHERE EMPNO =3D 1234, the whole EMP table will be brought over to the local site, stored in the temporary tablespace, much to the delight of users who want to do some sorting, and filtered locally, even in case that EMPNO is the primary key. How is it possible to filter remotely? Very simple, create a remote view, and access the view instead of the tables. I find that method to be much = more
portable and version independent then hints. Did I mention that I strongly dislike hints?

Mladen Gogala
A & E TV Network
Ext. 1216

> -----Original Message-----
> From: Mercadante, Thomas F=20
> []=20
> Sent: Thursday, September 23, 2004 10:36 AM
> To: ''; ''; Oracle-L (E-mail)
> Subject: RE: DB Links
>=20 >=20
> Yechial,
> The results of this hint are pretty amazing. I have a query=20
> in production that runs in about 5-10 seconds. When I apply=20
> this hint, it runs in less than 1 second. This is on
> Got to keep on testing it! Thanks again!
> Tom Mercadante
> Oracle Certified Professional
>=20 >=20
> -----Original Message-----
> From: Yechiel Adar []=20
> Sent: Thursday, September 23, 2004 9:27 AM
> To: ''; Oracle-L (E-mail)
> Subject: Re: DB Links
-- --
Received on Thu Sep 23 2004 - 09:49:00 CDT

Original text of this message