- 最后登录
- 2023-8-16
- 在线时间
- 1686 小时
- 威望
- 2135
- 金钱
- 50532
- 注册时间
- 2011-10-12
- 阅读权限
- 200
- 帖子
- 5207
- 精华
- 39
- 积分
- 2135
- UID
- 2
|
4#
发表于 2013-8-7 12:42:50
Event Waits Time(s) Avg Wait(ms) % Total Call Time Wait Class
CPU time 12,926 99.6
log file sync 207,381 323 2 2.5 Commit
log file parallel write 193,160 222 1 1.7 System I/O
SQL*Net more data from client 345,720 46 0 .4 Network
SQL*Net more data to client 211,972 5 0 .0 Network
top 5 主要是cpu time , cpu敏感的系统
Statistic Name Time (s) % of DB Time
DB CPU 12,926.30 99.58
sql execute elapsed time 12,305.42 94.79
parse time elapsed 23.64 0.18
% Non-Parse CPU: 99.85
解析花的 cpu很少
所以不是解析cpu敏感
PU Time (s) Elapsed Time (s) Executions CPU per Exec (s) % Total % Total DB Time SQL Id SQL Module SQL Text
3,957 3,874 18,345 0.22 30.61 29.84 2ax73suj5nyka JDBC Thin Client SELECT SUM(PL.GROSSPREMIUM) FR...
2,533 2,480 24,573 0.10 19.60 19.11 3r1uzmbwxhw3p JDBC Thin Client select insureinfo0_.POLICYSERI...
1,849 1,816 73,018 0.03 14.31 13.99 6hhyacc5t6kmk JDBC Thin Client select this_.SERIALNO as SERIA...
1,244 1,218 24,368 0.05 9.62 9.38 3rm6gtwn27uq4 JDBC Thin Client select beneficiar0_.PARENTSERI...
765 754 122,799 0.01 5.92 5.81 151jmjtarcvs8 JDBC Thin Client select this_.SERIALNO as SERIA...
SQL ordered by Gets
Resources reported for PL/SQL code includes the resources used by all SQL statements called by the code.
Total Buffer Gets: 2,463,735,633
Captured SQL account for 88.8% of Total
Buffer Gets Executions Gets per Exec %Total CPU Time (s) Elapsed Time (s) SQL Id SQL Module SQL Text
1,156,601,314 18,345 63,047.22 46.95 3956.90 3873.94 2ax73suj5nyka JDBC Thin Client SELECT SUM(PL.GROSSPREMIUM) FR...
395,316,269 24,573 16,087.42 16.05 2533.44 2480.47 3r1uzmbwxhw3p JDBC Thin Client select insureinfo0_.POLICYSERI...
325,621,329 73,018 4,459.47 13.22 1849.32 1816.29 6hhyacc5t6kmk JDBC Thin Client select this_.SERIALNO as SERIA...
cpu time高的语句可以和 buffer gets高的语句对应, 说明是 逻辑读造成的 cpu
SELECT SUM(PL.GROSSPREMIUM)
FROM INSURANCEPOLICY PL
INNER JOIN PARTYROLEINPOLICY APPLICANT
ON PL.SERIALNO = APPLICANT.POLICYSERIALNO
AND APPLICANT.ROLEKIND = 'InsuranceApplicant'
WHERE APPLICANT.FULLNAME = :1
AND APPLICANT.GENDER = :2
AND APPLICANT.IDTYPE = :3
AND APPLICANT.IDNUMBER = :4
AND APPLICANT.BIRTHDATE = :5
AND PL.POLICYSTATUS = :6
AND PL.SUBMISSIONDATE = :7
这个语句执行较多 18,345 次, 每次 63,047.22 , 感觉优化潜力较大 |
|