Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: Commit during insert

Re: Commit during insert

From: Robert Fazio <dbabob_at_yahoo.nospam.com>
Date: Sat, 18 Aug 2001 02:22:45 GMT
Message-ID: <Xns9100E39873FDDdbabobyahoocom@24.12.106.199>


"Niall Litchfield" <n-litchfield_at_audit-commission.gov.uk> wrote in news:3b7b93cc$0$233$ed9e5944_at_reading.news.pipex.net:
> 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>
> END IF
> i:= i + 1
> END LOOP

>>
>> I'm going to pull data from a remote table, insert it into a local
>> table, and I want to perform commits 

Be aware that if you commit, and fetch from an open cursor you stand the chance to hit ORA-01555. If you really want to commit along the way. Open and close the select cursor.

-- 
Robert Fazio
Senior Technical Advisor
dbabob_at_yahoo.com
Received on Fri Aug 17 2001 - 21:22:45 CDT

Original text of this message

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