Reputation: 2738
How oracle maintained concurrency of PL/SQL Program? i.e. If user A and B both execute same procedure (Contains DML operations) @ same time.
Upvotes: 0
Views: 1370
Reputation: 132680
If user A updates a particular row and then in another session user B tries to update (or delete) the same row, then user B's session will be "blocked", i.e. it will wait for user A's session to either commit or roll back before continuing. You can easily see this by opening 2 SQL Plus sessions and running the exact same update statement in both. The second session will "hang" until the first session commits or rolls back. This is true whether the updates are done in PL/SQL or not.
Upvotes: 1
Reputation: 7214
It follows general Oracle Locking features.
Oracle maintains separate session for User A and User B.
Upvotes: 0