ORA-12838 with Direct Load Inserts (Doc ID 116494.1)

Last updated on FEBRUARY 05, 2016

Applies to:

PL/SQL - Version 8.1.7.0 and later
Oracle Database - Enterprise Edition - Version 11.2.0.1 and later
Information in this document applies to any platform.
***Checked for relevance on 05-Feb-2016***


Symptoms

You have built an OBJECT VIEW and are using parallel DML processing
with DIRECT-LOAD INSERTS
.
You are running into error ORA-12838, however the same procedure
works when run from SQLPlus.

Why does it work from sqlplus and not PLSQL procedure with out having to
place a COMMIT before the 2nd DML statement on the same table ?

Error: ORA 12838
Text: Cannot read/modify an object after a parallel modification
on it in the same transaction
-----------------------------------------------------------------
Cause: Multi Statement Parallel DML restriction violated

Action: Once a table has been modified in parallel, no more read or
modification statements are allowed on that table, within the same
transaction. Rewrite the transaction, or break it up into two
transactions.

Cause

Sign In with your My Oracle Support account

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

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms