Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ff26e36

Browse files
committed
made buffer clear autonomous
1 parent 227fe70 commit ff26e36

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

source/core/ut_output_buffer.pkb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,9 +111,11 @@ create or replace package body ut_output_buffer is
111111
procedure cleanup_buffer(a_retention_time_sec naturaln := gc_buffer_retention_sec) is
112112
l_retention_days number := a_retention_time_sec / (60 * 60 * 24);
113113
l_max_retention_date date := sysdate - l_retention_days;
114+
pragma autonomous_transaction; -- the cleanup should initiate transaction
114115
begin
115116
delete from ut_output_buffer_tmp t
116117
where t.start_date <= l_max_retention_date;
118+
commit;
117119
end;
118120

119121
end;

0 commit comments

Comments
 (0)