You can try the Bulk insert feature of Oracle. It is available from Oracle 8i 
onwards. It really reduces time.
--

On Thu, 22 Mar 2001 18:35:21  
 CC Harvest wrote:
>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: [EMAIL PROTECTED]
>
>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: [EMAIL PROTECTED] (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).
>


Get 250 color business cards for FREE! at Lycos Mail
http://mail.lycos.com/freemail/vistaprint_index.html
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: C.S.Venkata Subramanian
  INET: [EMAIL PROTECTED]

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: [EMAIL PROTECTED] (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).

Reply via email to