Skip to Main Content

Oracle Database Discussions

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!

Workaround for ORA-12838: cannot read/modify an object after modifying it in parallel

User_1I6HBJun 24 2022

Hi,
I have a business use case when I have to call package which execute multiple procedures. And, if all goes well then we perform a commit. So, this is one single transaction.
Now, since the amount of data we load is high so we are using PARALLEL hint along with ENABLE_PARALLEL_DML hint in our insert statements to influence optimizer.
However, right after Inserting data we need to read from that same table. But, the restriction says - cannot read/modify an object after modifying it in parallel.
Problem- here is we cannot have commit before selecting the data, neither we are interested in removing the ENABLE_PARALLEL_DML hint.
Question- here is - Is there a way we can use ENABLE_PARALLEL_DML within single transaction.

Comments

Processing

Post Details

Added on Jun 24 2022
3 comments
9,403 views