Snippet Name: Using COMMIT in a PL/SQL loop
Description: Oracle recommends that you COMMIT less frequently within a PL/SQL loop to prevent ORA-1555 (Snapshot too old) errors.
The higher the frequency of commit, the sooner the extents in the undo/ rollback segments will be cleared for new transactions, causing ORA-1555 errors.
To fix this problem you can rewrite code as shown in the example.
Also see: » Nested Loops: loop through tables
Comment: (none)
Language: PL/SQL
Highlight Mode: PLSQL
Last Modified: March 06th, 2009
|
|