查询数据库中被锁住的表
Select c.sid,c.serial#,d.name,b.object_name,c.username,c.program,c.osuser
from
gv$Locked_object a, All_objects b, gv$session c, audit_actions d
where a.object_id = b.object_id and
a.inst_id = c.inst_id(+) and
a.session_id = c.sid(+)
and c.command = d.action;