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: Which is faster??

Re: Which is faster??

From: Ron Rogers <RROGERS_at_galottery.org>
Date: Fri, 23 Mar 2001 05:29:47 -0800
Message-ID: <F001.002D5DD5.20010323052116@fatcity.com>

Chris,
 Does the destination table have to be recoverable? If not you could built the table with the UNRECOVERABLE clause and your problem is solved.  In large inserts from one table to another for archive purposes, I get around the large RBS problem by using a procedure with a commit every 200000 records. Works fine and I kick it off and you home.
ROR mª¿ªm

>>> ccharvest_at_yahoo.com 03/22/01 09:35PM >>>
I have the following scripts:

insert into table
select * from table2
;

So if use the about bulk statement in my application, and the table2 is big, say 10 million records, my concern is that it's going to fail because of the possible rollback segments failure. So then I have to use PL/SQL to create a cursor and commit every 50000 records. What's the disadvantage of this?Will it be much slower than a bulk insert?

Can I do it another way: create a stored procedure for this bulk insert, then pin this procedure in memory, does it still have RBS problem?

Anyone has similar experience?

Thanks in Advance,

Chris



Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com 
-- 
Author: CC Harvest
  INET: ccharvest_at_yahoo.com 

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
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).

--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author: Ron Rogers
  INET: RROGERS_at_galottery.org

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
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 Fri Mar 23 2001 - 07:29:47 CST

Original text of this message

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