确认当前活动的 session 和正在执行 sql
SELECT SID,SERIAL#,USERNAME,STATUS,OSUSER,MACHINE,PROGRAM,SQL_ID,SQL_EXEC_START,PREV_SQL_ID,PREV_EXEC_START,LOGON_TIME
FROM v$session
WHERE type='USER'
ORDER BY STATUS,SQL_ID;
1、通过命令 iotop 查看当前占用 io 高的进程
2、查询对应的 session 和 sql
select * from v$process where spid=17287;
select * from v$session where paddr='000000042A2DEF38';
select * from v$sql where SQL_ID='fzkatnxmx15yc';
alter system kill session '14, 16987';
转载于:https://blog.51cto.com/linux10000/2329559