Connor and Chris will both be at AI World from October 12 to October 17 , the premier Oracle conference of 2025. If you're in Vegas, please come say Hi or pop into our sessions
Thanks for the question, Lasse.
Asked: January 29, 2024 - 4:47 pm UTC
Last updated: February 05, 2024 - 1:24 am UTC
Version: 19
Viewed 1000+ times
SQL> create table t ( x int ); Table created. SQL> SQL> create or replace 2 procedure do_commit is 3 --pragma autonomous_transaction; 4 begin 5 insert into t values(1); 6 commit; 7 end; 8 / Procedure created. SQL> -- before value SQL> @stat Enter value for sid: my Enter value for stat_prefix: redo synch writes SID_STAT# NAME VALUE ---------- -------------------------------------------------------------------------------- ---------- 407 redo synch writes 13 SQL> SQL> begin 2 for i in 1 .. 10000 loop 3 insert into t values(1); 4 do_commit; 5 commit; 6 end loop; 7 end; 8 / PL/SQL procedure successfully completed. SQL> -- after value SQL> @stat Enter value for sid: my Enter value for stat_prefix: redo synch writes SID_STAT# NAME VALUE ---------- -------------------------------------------------------------------------------- ---------- 407 redo synch writes 14
Check out more PL/SQL tutorials on our LiveSQL tool.
PL/SQL reference manual from the Oracle documentation library