查看OracleCPU情况Oracle认证考试
文章作者 100test 发表时间 2010:02:15 22:16:52
来源 100Test.Com百考试题网
--发现那些SQL运行了大量的PARSE
0select sql_text, parse_calls, executions from v$sqlarea order by parse_calls desc.
--SYS的总的PARSE情况
0select name, value from v$sysstat where name like parse count% .
--CPU空间及繁忙情况
0select * from v$osstat.
--查看每个Session的CPU利用情况:
0select ss.sid,se.command,ss.value CPU ,se.username,se.program
from v$sesstat ss, v$session se
where ss.statistic# in
(0select statistic#
from v$statname
where name = CPU used by this session )
and se.sid=ss.sid
and ss.sid