- 最后登录
- 2023-8-16
- 在线时间
- 1686 小时
- 威望
- 2135
- 金钱
- 50532
- 注册时间
- 2011-10-12
- 阅读权限
- 200
- 帖子
- 5207
- 精华
- 39
- 积分
- 2135
- UID
- 2
|
2#
发表于 2012-4-24 22:15:11
Event Waits Time(s) Avg Wait(ms) % Total Call Time Wait Class
CPU time 70,242 67.9
library cache lock 313,880 5,105 16 4.9 Concurrency
db file scattered read 837,372 4,504 5 4.4 User I/O
db file sequential read 1,122,023 3,592 3 3.5 User I/O
gc cr multi block request 1,672,438 3,106 2 3.0 Cluster
Top 5 包括 CPU time 和 library cache lock
Logical reads: 305,571.08 每秒逻辑读 2387MB
Hard parses: 25.72 每秒 硬解析 25次
建议你 优化SQL 减少 逻辑读 和 硬解析次数 ,以减少 CPU TIME和 library cache lock 等待
在 nmods1 实例的AWR显示
SQL ordered by CPU Time
Resources reported for PL/SQL code includes the resources used by all SQL statements called by the code.
% Total DB Time is the Elapsed Time of the SQL statement divided into the Total Database Time multiplied by 100
CPU Time (s) Elapsed Time (s) Executions CPU per Exec (s) % Total DB Time SQL Id SQL Module SQL Text
2,474 3,881 0 3.75 bff5yk2rg2uyz PL/SQL Developer declare a varchar2(1000); b va...
1,269 1,370 1 1268.84 1.32 2w1m08ukq927w PL/SQL Developer INSERT /*+APPEN*/ INTO DM.DM_L...
1,187 1,512 1 1187.17 1.46 99h4n4vrbnnd1 JDBC Thin Client BEGIN DM.P_DM_LEADER_POINT_CHE...
sql id bff5yk2rg2uyz 和 2w1m08ukq927w 消耗了 较多的CPU TIME, 其module 为 PL/SQL Developer ,可能是 有人在使用 PL/SQL Developer 执行某些过程所导致的
nmods2 实例的AWR 显示
SQL ordered by CPU Time
Resources reported for PL/SQL code includes the resources used by all SQL statements called by the code.
% Total DB Time is the Elapsed Time of the SQL statement divided into the Total Database Time multiplied by 100
CPU Time (s) Elapsed Time (s) Executions CPU per Exec (s) % Total DB Time SQL Id SQL Module SQL Text
1,918 3,004 0 2.73 9s67rr5298b4u JDBC Thin Client BEGIN HOLD.P_DW_STOP_USER_DAY(...
1,256 3,987 1 1255.85 3.62 76vktpp8rktmc JDBC Thin Client BEGIN WXWL_CA.P_TMS_DAY_7(:1);...
851 1,385 1 850.83 1.26 f1u64bdsdzqg7 JDBC Thin Client BEGIN NMTMS_CA.P_USER_PRICE_PL...
建议你 检查 sql_id 9s67rr5298b4u 76vktpp8rktmc f1u64bdsdzqg7 对应的匿名块 是否可以减少逻辑读 和 逻辑处理环节 以 减少其使用cpu时间片。 |
|