标签:ack kill from board suse sql_id img user ref
Aix系统,使用命令topas ,可看到oracle 进程中排名靠前的PID,根据PID可找到耗能sql。pid长时间排名靠前的耗能较大
查询sql:
select a.spid,b.sid,b.osuser,b.machine,C.SQL_TEXT from v$process a
left join v$session b on a.addr=b.paddr
left join v$sql c on b.sql_id=C.SQL_ID where a.spid=‘5898296
必要时Kill 掉session
标签:ack kill from board suse sql_id img user ref
原文地址:http://www.cnblogs.com/jack-yuan/p/6397232.html