Dear all,
Could anyone tell me how to make concurrent database application using ODAC?
Concurrency problem
It depends totally on what you want to achieve. Get the books from Thomas Kyte, there is much info about this. Understand the concept of consistent reads.
Generally, if you want to avoid concurrent editing, your application has to open the data with FOR UPDATE NOWAIT. If another user tries to open the same data, he gets an ORA-00054. You can catch the error and convert it into a meaningful error message. Without the NOWAIT, the second session waits until the first transaction commits or rollbacks. If this lasts long, the second user may see the application "hang".
Generally, if you want to avoid concurrent editing, your application has to open the data with FOR UPDATE NOWAIT. If another user tries to open the same data, he gets an ORA-00054. You can catch the error and convert it into a meaningful error message. Without the NOWAIT, the second session waits until the first transaction commits or rollbacks. If this lasts long, the second user may see the application "hang".