select sess.sid,
sess.serial#,
lo.oracle_username,
lo.os_user_name,
ao.object_name,
lo.locked_mode,sess.MACHINE
from gv$locked_object lo, dba_objects ao, gv$session sess
where ao.object_id = lo.object_id
--and ao.object_name ='TT_AS_WR_FOREAPPROVAL'
--and ao.object_name ='TT_REPAIR_ORDER'
and lo.session_id = sess.sid;