ORA-12838 with Direct Load Inserts
(Doc ID 116494.1)
Last updated on NOVEMBER 07, 2023
Applies to:
PL/SQL - Version 8.1.7.0 and laterOracle Database - Enterprise Edition - Version 11.2.0.1 and later
Oracle Database Cloud Schema Service - Version N/A and later
Oracle Database Exadata Cloud Machine - Version N/A and later
Oracle Cloud Infrastructure - Database Service - Version N/A and later
Information in this document applies to any platform.
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
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 |
Cause |
Solution |