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!

Preventing phantom reads

user11356311May 29 2014 — edited Jul 4 2014

Hello everyone.

 

When performing transactions i usually start the transaction with a read committed isolation , with an optimistic approach ,and than i can switch to pessimistic approach for certain database access parts of the transaction by specifying table hints to lock rows.

 

I learned that in PL/SQL we use SELECT....FOR UPDATE to prevent non repeatable read.

 

How about phantom rows,is there a hint to prevent insertion?

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 1 2014
Added on May 29 2014
13 comments
6,199 views