Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: Commit during insert
You can do this using PL/SQL
pseudo code below
CURSOR C_REMOTE IS
<some select statement>
FOR remote_rec in C_REMOTE LOOP
IF i mod 1000 THEN
<insert statement> COMMIT; ELSE <insert statement>
-- Niall Litchfield Oracle DBA Audit Commission UK "GREGORY KNESER" <gregoryk_at_futures.wharton.upenn.edu> wrote in message news:9lenhs$o8p$1_at_netnews.upenn.edu...Received on Thu Aug 16 2001 - 04:35:07 CDT
> Hello,
>
> I need some help creating an ETL like script.
>
> I'm going to pull data from a remote table, insert it into a local table,
> and I want to perform commits and give updates to the user along the way
to
> let them know how far it is in the process. Is there some way to pass a
> hint or set some parameter so that Oracle will commit after X rows have
> been inserted? I can figure out reporting to the user if this first
> problem is taken care of.
>
> Thanks,
> Greg
![]() |
![]() |