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: update 30mil rows

Re: update 30mil rows

From: Mark Richard <mrichard_at_transurban.com.au>
Date: Tue, 25 Feb 2003 13:59:29 -0800
Message-ID: <F001.00559412.20030225135929@fatcity.com>


Since you've already dropped the indexes the following might be an option if you have enough diskspace available...

Rename the existing table to a temporary name Create a new table using "create table <table_name> as select ...", but replace the field you want set to 0. You could probably fiddle with hints like "append" and "parallel" and maybe "nologging" if you want to squeeze some more speed out of it.

I guess the benefit is that if you've got any plans to change storage clauses, etc then you can do those at the same time.

Regards,

     Mark.

                                                                                                                   
                    Gurelei                                                                                        
                    <gurelei_at_yahoo       To:     Multiple recipients of list ORACLE-L <ORACLE-L_at_fatcity.com>       
                    .com>                cc:                                                                       
                    Sent by:             Subject:     update 30mil rows                                            
                    root_at_fatcity.c                                                                                 
                    om                                                                                             
                                                                                                                   
                                                                                                                   
                    26/02/2003                                                                                     
                    08:26                                                                                          
                    Please respond                                                                                 
                    to ORACLE-L                                                                                    
                                                                                                                   
                                                                                                                   




Hi all:

I need to update every row 30mil-rows table. I have dropped the indices and running the update  in parallel:

update /*+ parallel (degree 8) */ table_name set field1=0;

Is there anything else I could to to speed up this process. I don't think I can do an update in nologging mode. I'm running 8.1.7.4

thanks for any advice.



Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more http://taxes.yahoo.com/
--
Please see the official ORACLE-L FAQ: http://www.orafaq.net
--
Author: Gurelei
  INET: gurelei_at_yahoo.com

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).





<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<---->>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
Privileged/Confidential information may be contained in this message. If you are not the addressee indicated in this message (or responsible for delivery of the message to such person), you may not copy or deliver this message to anyone. In such case, you should destroy this message and kindly notify the sender by reply e-mail or by telephone on (61 3) 9612-6999. Please advise immediately if you or your employer does not consent to Internet e-mail for messages of this kind. Opinions, conclusions and other information in this message that do not relate to the official business of Transurban City Link Ltd shall be understood as neither given nor endorsed by it. <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<---->>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> -- Please see the official ORACLE-L FAQ: http://www.orafaq.net -- Author: Mark Richard INET: mrichard_at_transurban.com.au Fat City Network Services -- 858-538-5051 http://www.fatcity.com San Diego, California -- Mailing list and web hosting services --------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).
Received on Tue Feb 25 2003 - 15:59:29 CST

Original text of this message

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