--1.阻塞及等待事件信息查询-- 查询所有会话的状态.等待类型及当前正在执行的SQL脚本select t.SID, t.SERIAL#, t.Status, t.Action, t.Event, t.BLOCKING_SESSION, t.BLOCKING_SESSION_STATUS , t.USERNAME, t.MACHINE, t.PROGRAM, t.sql_exec_start, t.seconds_in_wait , NVL(s1.sql_id, s2.sql_id) AS sq…