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!

MERGE can't be used for Parallel Executions?? Flaw?

oracleuser2Sep 9 2005 — edited Sep 9 2005
Can someone give an example of doing this using the Merge statement? We do a load (Insert + update) in multiple sessions simulateneously

A typical load will do this:

Update where exists

Insert NOT EXISTS

If we do this using new merge statement, we sometimes get unique key violation where two processes are trying to do the same thing, one goes through with the insert while the other fails with a unique constraint violation. There's got to be a way of putting not exists condition in the Merge INSERT statement, otherwise it won't work in a parallel environment.

thanks for your help in advance
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 7 2005
Added on Sep 9 2005
9 comments
2,882 views