--查看锁表情况 select distinct a.sid, to_char(a.logon_time, 'YYYY-MM-DD HH24:mi:ss') loginTime, a.serial#, a.USERNAME, a.OSUSER, a.MACHINE, a.STATUS, d.sql_text, 'ALTER SYSTEM KILL SESSION ''' || a.sid || ',' || a.SERIAL# || ',@' || a.inst_id || ''';' from…