Oracle Solution for Error ora-12838

Solution for Oracle Error ORA-12838

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

What triggered the Error:

Within the same transaction, an attempt was made to add read or modification statements on a table after it had been modified in parallel or with direct load. This is not permitted.

What should we do to fix it:

Rewrite the transaction, or break it up into two transactions: one containing the initial modification and the second containing the parallel modification operation.