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: Cloning 21 GB Table - Review Approach please

Re: Cloning 21 GB Table - Review Approach please

From: Tim Gorman <tim_at_evdbt.com>
Date: Thu, 10 Mar 2005 15:57:40 -0700
Message-ID: <BE561EF4.246B3%tim@evdbt.com>


> Will Arhive Redo Log be generated by the INSERT /*+ APPEND */ Command if =
> the Target Table has been PRE-Created with NOLOGGING?

No. Won't generate any "undo" either.

>
> Any possibility of giving Hint for NOLOGGING in the INSERT Command ?

Yes. /*+ APPEND NOLOGGING */

Why not use the built-in parallelism of Oracle? Unless you've left PARALLEL_MAX_SERVERS at the default of 5, you can add the PARALLEL hint to both the INSERT and SELECT clauses. You might also want to precede with ALTER SESSION ENABLE PARALLEL DML and (of course) succeed with a COMMIT...

    alter session enable parallel dml;
    insert /*+ append nologging parallel(x, 4) */ into <target> x     select /*+ full(y) parallel(y, 4) */ ... from <source> y;     commit;

No faster way to clone. Your mileage may vary, but if you have a decent sized box it shouldn't take more than 60-90 mins, tops...

--
http://www.freelists.org/webpage/oracle-l
Received on Thu Mar 10 2005 - 18:24:46 CST

Original text of this message

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