My Oracle Support Banner

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

Last updated on NOVEMBER 26, 2020

Applies to:

PL/SQL - Version and later
Oracle Database - Enterprise Edition - Version 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.


You have built an OBJECT VIEW and are using parallel DML processing
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


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

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