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: Help with DB_LINK parallel insert as select

Re: Help with DB_LINK parallel insert as select

From: Billy Verreynne <vslabs_at_onwe.co.za>
Date: Fri, 17 Jan 2003 10:10:32 +0000
Message-ID: <b08dpj$igh$1@ctb-nnrp2.saix.net>


Billy Verreynne wrote:

>
> Try the following:
> insert /*+ append parallel(dst,4) */ into working_raw_marks_test dst
> select
> /*+ parallel(src,4) */
> *
> from working_raw_marks_at_msup_link src,
> rowid_table rid
> where src.rowid = rid.row_id

Hmm.. I missed that dblink in the SQL. That changes the picture somewhat. Distributed joins is a thing that I never do - I have more horror stories than good stories about it. So I very very seldom consider doing a distributed join.

When dealing with data processing that includes grabbing data via dblinks, I usually just copy the data across with a CREATE TABLE NOLOGGING AS SELECT.

In that case, the above SQL should work okay with as the raw marks table is local.

The dblink also explains why the SQL slows down when adding the WHERE clause and does not parallise.

--
Billy
Received on Fri Jan 17 2003 - 04:10:32 CST

Original text of this message

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