Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

ORA-12841 Error coming while trying to do a parallel insert

443884Sep 30 2005 — edited Oct 3 2005
Hi All,

My requirement is to do a parallel insert into a table. This is what I am doing inside the package body EMP_PKG.

EXECUTE IMMEDIATE 'alter session enable parallel dml';

INSERT /*+ PARALLEL (EMP,2,1) */
INTO EMP_DUMMY
SELECT * FROM EMP;

EXECUTE IMMEDIATE 'alter session enable parallel dml';

But this is throwing the following error:
ORA-12841: Cannot alter the session parallel DML state within a transaction

Am I missing some thing here? Please let me know

Thanks in advance :-)
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 31 2005
Added on Sep 30 2005
8 comments
2,310 views