Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> commit or not commit inside a cursor loop
Hi,
I need to update a table with couple million rows. For some reason, I have to use pl/sql instead of SQL to do the job. My understanding is that I put COMMIT after the loop if rollback segment is big enough. If I worry the rollback segment, I'll commit every 20,000 rows inside the loop (and after the loop of course).
However, I read pl/sql document the other day. It says,
my_ename emp.ename%TYPE; my_job emp.job%TYPE; my_rowid UROWID;
Does this mean that I should NOT put commit statement inside the loop? What's the best practice? Thanks. Received on Wed May 28 2003 - 11:12:57 CDT
![]() |
![]() |