3、查看某表是否被锁
select c.inst_id, b.object_name, a.session_id, c.serial#, c.machine,
c.PROGRAM,c.username,c.status, c.osuser, c.logon_time ,a.*
from gv$locked_object a, dba_objects b, gv$session c
where a.object_id=b.object_id and b.object_name='TOAD_PLAN_TABLE'
and c.sid=a.session_id and schemaname<>'SYS' ;