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: Alexander Gorbachev <gorbyx_at_gmail.com>
Date: Sat, 12 Mar 2005 14:44:33 +0100
Message-ID: <c2213f6805031205447f85aa84@mail.gmail.com>


See comments below...

> insert /*+ append nologging */
> select rownum , rpad('x',1000)
> into all_objects
>
> Append Nologging 34,456,000
> Append 34,456,000
> no hint 32,262,000

As already mentioned, /*+ append */ is enough and nologging seems to be not a valid hint but only option in DDL.

INSERT /*+ APPEND */ ... won't work if you insert into IOT - lot's of undo and redo. We use workaround - CTAS.

Also check you DB if it's in FORCE LOGGING mode: select FORCE_LOGGING from v$database;
It's often done as protection for databases with standby. Can be disabled ALTER DATABASE NO FORCE LOGGING. FORCE LOGGING confused me once as we were doing some manipulation with production DB restored to test - it was working fine for hals a year and than filled all the UNDO and was terribly slow. It took a while to figure out that FORCE LOGGING has been enabled. :)))

-- 
Best regards,
Alex Gorbachev
--
http://www.freelists.org/webpage/oracle-l
Received on Sat Mar 12 2005 - 08:47:53 CST

Original text of this message

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