查询当前数据库被锁的对象
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用下面的语句定位机器用户
select * from v$locked_object a v$session b where a.session_id=b.sid;