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

Skip to content

Commit a24425a

Browse files
committed
Fixed error:
``` ORA-14462: cannot TRUNCATE temporary table in an autonomous transaction which is already in use by the parent transaction ORA-06512: at "UT3.UT_UTILS", line 383 ORA-06512: at "UT3.UT_RUNNER", line 78 ORA-14462: cannot TRUNCATE temporary table in an autonomous transaction which is already in use by the parent transaction ORA-06512: at "UT3.UT_RUNNER", line 110 ORA-06512: at "UT3.UT", line 292 ORA-06512: at "UT3.UT", line 320 ORA-06512: at line 1 ``` Instead of truncate with autonomous_transaction we will now use delete (without autonomous_transaction )
1 parent 40e8d03 commit a24425a

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

source/core/ut_utils.pkb

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -378,10 +378,8 @@ create or replace package body ut_utils is
378378
end;
379379

380380
procedure cleanup_temp_tables is
381-
pragma autonomous_transaction;
382381
begin
383-
execute immediate 'truncate table ut_cursor_data';
384-
commit;
382+
execute immediate 'delete from ut_cursor_data';
385383
end;
386384

387385
end ut_utils;

0 commit comments

Comments
 (0)