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

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

Re: DB Links

From: Juan Carlos Reyes Pacheco <jreyes_at_dazasoftware.com>
Date: Wed, 22 Sep 2004 18:10:53 -0400
Message-Id: <4151F86D.000001.04164@DAZA-MGEJCA5J7T>

Hi,
If you do a fetch through a dblink, even when the dblink is pointing to your own database, you'll see it can take about 6x times, depending on your test.  

The point is you should not get data from database link, you only should get results, when possible.  

To get data from the remote database, try moving the procedure to the remote database and recive ONLY the result.
Try creating a function table, to minimize the join work, to join with a prejoined table.
try the driving site hint.
create a local materialized view from data in remote database  

Juan Carlos Reyes Pacheco
OCP
-------Original Message-------
 

From: klange_at_ppoone.com
Date: 09/22/04 17:45:59
To: Oracle-L (E-mail)
Subject: DB Links  

Does anyone happen to have a reasonable explaination on what happens to a query when you try to access tables accross db_links ?? Does it still use the indexes on the remote machine ?? Does it bring all the data locally into temp tables ??  

Any info will do. Book names .... Actual explainations ... directions to web sites ... Anything.  

We have a procedure, a fairly complex procedure, that takes about 13 hours to run when it is ran against tables that exist accross a DB link. But, when we copy all the tables locally, it runs in about an hour. We would like to try and find a way to fix this. But first, I need to know exactly what is happening when the cursor access those linked tables.  

Any help would be appreciated.  

Kevin
--

http://www.freelists.org/webpage/oracle-l
--

http://www.freelists.org/webpage/oracle-l Received on Wed Sep 22 2004 - 17:05:55 CDT

Original text of this message

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