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!

How to implement optemistic locking in pl/sql for oracle database

815646Nov 17 2010 — edited Nov 17 2010
i have search the net to find example of how i can do the optimistic locking in pl/sql, all the resources i found were old , for example "Optimistic Locking with Concurrence in Oracle.
As " by Graham Thornton Snr. Database Architect / Oracle DBA in 2001, but at the end he said that the approach will not work fine if the update being made is a relative update, this apprach includes:-
1.add a timestamp column to an exsiting table.
2.add a preinsert trigger on the table to set the timestamp.
3.add a preupdate trigger to comapre the old time stamp with the new one.

So where i can find updated resources about this issue.

Edited by: 812643 on 17-Nov-2010 12:39
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 15 2010
Added on Nov 17 2010
2 comments
409 views