Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: Pl/sql loop assistance
Hi Jacques,
It is not reliable if there is row migration.
@ Regards, @ Steve Adams @ http://www.ixora.com.au/ @ http://www.christianity.net.au/
-----Original Message-----
Sent: Friday, 11 May 2001 3:07
To: Multiple recipients of list ORACLE-L
> -----Original Message-----
> From: Jared Still [mailto:jkstill_at_cybcon.com]
>
> I'll have to disagree with not using commit within a loop.
>
> If you identify what a transaction is within your code, and
> write it accordingly, using commit where appropriate, you
> will not get ORA-1002 or ORA-1555, at least not due
> to your own code.
This reminds me, Mr. Still, you posted an example once to the list about doing a
fetch in rowid order to avoid revisiting the same block when doing a full table
scan of a table, so that reading and updating every row in a table would avoid
the dreaded "snapshot too old". I told a developer about that today and showed
him a code sample, but he says he still had a "snapshot too old". Would it be
possible for you to post that snippet of code again?
Jacques R. Kilchoër
x8816
-- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: Steve Adams INET: steve.adams_at_ixora.com.au 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 May 11 2001 - 03:02:09 CDT