1.查询锁表 SELECT a.object_name,b.session_id,c.serial#,c.program,c.username,c.command,c.machine,c.lockwait FROM All_Objects a, v$locked_object b , v$session c WHERE a.object_id=b.object_id AND c.sid=b.session_id; 2.查询运行中的进程(存储过程) select b.sid,b.SERIAL#,a…