How to implement optemistic locking in pl/sql for oracle database
815646Nov 17 2010 — edited Nov 17 2010i 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