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!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

ORA-12838: cannot read/modify object after modification in parallel

Hi Team,
we are facing an error while running DBMS_SCHEDULER job. that DBMS_SCHEDULER job contains update statement. please find the below update statement.

===================================================
UPDATE PET_DAILY_SCHEDULE
SET QB_UPDATED ='Y'
WHERE (CLIENT_ID,SCH_ID) IN (SELECT CLIENT_ID,SCH_ID
FROM PCS_QUICKBOOKS_EXPORT_TRANS
WHERE CLIENT_ID= V_CLIENT_ID
AND QUICKBOOKS_BATCH_NO = V_BATCH_NO)
AND SCH_ID NOT IN ( SELECT ORDER_NUMBER
FROM OP_HEAD
WHERE CLIENT_ID= V_CLIENT_ID
AND ORDER_NUMBER=PET_DAILY_SCHEDULE.SCH_ID
AND NVL(INVOICE_COMPLETED,'N')='N'

=====================================================
ORA-12838: cannot read/modify object after modification in parallel

Thanks & Regards
Krishna.

This post has been answered by Solomon Yakobson on Oct 27 2022
Jump to Answer
Comments
Post Details
Added on Oct 27 2022
7 comments
1,567 views