Code Listing 1: V$SESSION and V$SQL query finds lock

 

 

SID   SQL_TEXT
---   ---------------------------------------------------------------------
270   update accounts set balance = balance - 750 where account_no = 333
254   update accounts set balance = balance - 1000 where account_no = 333