查詢當前數據庫被鎖的對象數據庫
select b.owner,b.object_name,a.SESSION_ID,a.LOCKED_MODE from v$locked_object a dba_objects b where b.object_id=a.object_id;session
根據上面session查到session查到session用下面的語句定位機器用戶對象
select * from v$locked_object a v$session b where a.session_id=b.sid;io