My Oracle Support Banner

Dml Does Not Run Parallel In Deeper Nesting In Dbms_job And Pl/Sql On 10.2.0.5 (Doc ID 1226655.1)

Last updated on FEBRUARY 19, 2019

Applies to:

Oracle Database - Enterprise Edition - Version 10.2.0.5 to 10.2.0.5 [Release 10.2]
Information in this document applies to any platform.

Symptoms

DML is not executed in parallel when requested from within a job on 10205, same job  used to work in 10204.

NOTE: In the images and/or the document content below, the user information and data used represents fictitious data from the Oracle sample schema(s) or Public Documentation delivered with an Oracle database product.  Any similarity to actual persons, living or dead, is purely coincidental and not intended in any manner.
--~ PACKAGE declaration
create or replace package TEST_USER.testcase_a is
procedure run_testcase;
procedure run_testcase_job;
end testcase_a;
/

---------------------------------------------
--~ PACKAGE body
create or replace package body TEST_USER.testcase_a is
procedure run_testcase is
sqlstmt varchar2(4000);
begin
--~ force parallel query and tracing
execute immediate 'alter session force parallel query';
execute immediate 'alter session set "_px_trace" = "all"';
--~ sql to execute
select sqlstmt into sqlstmt from
(select
'begin INSERT INTO TEST_USER.endtab
SELECT *
FROM TEST_USER.btab1 MINUS
SELECT *
FROM TEST_USER.btab2;
END;' sqlstmt
from dual);
--~ sql execute
execute immediate sqlstmt;
end;
procedure run_testcase_job is
begin
DBMS_JOB.isubmit(333333,'begin testcase_a.run_testcase; end;',next_date => sysdate + 1/17280);
commit;
end;
end testcase_a;
/



--~ run procedure to create job to run problematic insert
conn TEST_USER/<PASSWORD>
begin
testcase_allianz.run_testcase_job;
end;
/

Changes

 

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Changes
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.