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

Home -> Community -> Usenet -> c.d.o.misc -> Slow INSERT across database link

Slow INSERT across database link

From: Steven <steven.pannell_at_gmx.net>
Date: Fri, 14 Jun 2002 15:18:00 +0200
Message-ID: <aecqe6$61ori$1@ID-82797.news.dfncis.de>


Hi,

I have a remote database where I select data and insert it in my local database across a database link. However, this is very, very slow. I have a statement such as:

insert into xxxx as

    select * from table1, table2_at_remote_database

       were .... (join statement).

The problem seems to be the fact I have a select across two databases (if there is no select across the database an insert from the tables on the remote database is quite fast). The current insert takes 2 hours! but the select only 5 minutes. I tried using the DRIVING_SITE hint but this only speeds up the select not the insert.

Does anyone know of a solution to this problem. I read the Oracle Documentation but it was not really clear how I solve this particular problem.

Any help would be greatly appreciated.

Regards,
Steve. Received on Fri Jun 14 2002 - 08:18:00 CDT

Original text of this message

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