- 最后登录
- 2023-8-16
- 在线时间
- 1686 小时
- 威望
- 2135
- 金钱
- 50532
- 注册时间
- 2011-10-12
- 阅读权限
- 200
- 帖子
- 5207
- 精华
- 39
- 积分
- 2135
- UID
- 2
|
6#
发表于 2012-7-31 17:31:42
回答:
2 10,667 0 74.86 6rv4b15qkgp8d PL/SQL Developer select * from sddtech.sdd_...
select * from sddtech.sdd_AUDIT_AUDITEVENT_HIST where BUSINESSID = 119000
就AWR看 以上语句消耗了 较多的物理读, 但是其消耗的逻辑读并不多:
Segments by Logical Reads
Total Logical Reads: 102,955,393
Captured Segments account for 97.4% of Total
Owner Tablespace Name Object Name Subobject Name Obj. Type Logical Reads %Total
sddTECH sddTECH sdd_ACC_MASTER TABLE 33,550,064 32.59
sddTECH sddTECH LOGIN_USER TABLE 33,028,768 32.08
sddTECH sddTECH sdd_ACC_SLAVE TABLE 19,780,816 19.21
sddTECH sddTECH sdd_AUTH_MASTERAUTH TABLE 7,305,840 7.10
sddTECH AUDIT_TABLES_07 sdd_AUDIT_AUDITEVENT_HIST P20120729 TABLE PARTITION 1,330,864 1.29
最主要的问题在于 cursor: pin S和 cursor: pin S wait on X的解析类等待事件
而非全表扫描
Event Waits Time(s) Avg Wait(ms) % Total Call Time Wait Class
cursor: pin S 94,363,996 199,268 2 1,398.5 Other
PX Deq Credit: send blkd 5,633 10,594 1,881 74.4 Other
CPU time 2,395 16.8
cursor: pin S wait on X 119,532 2,343 20 16.4 Concurrency
SGA breakdown difference
ordered by Pool, Name
N/A value for Begin MB or End MB indicates the size of that Pool/Name was insignificant, or zero in that snapshot
Pool Name Begin MB End MB % Diff
java free memory 45.44 45.44 0.00
java joxlod exec hp 17.34 17.34 0.00
java joxs heap 1.22 1.22 0.00
large PX msg pool 1.03 1.03 0.00
large free memory 14.97 14.97 0.00
shared CCursor 433.98 318.61 -26.58
shared Cursor Stats 50.32 50.32 0.00
shared KGH: NO ACCESS 117.85 117.85 0.00
shared PCursor 337.62 298.30 -11.65
shared free memory 1,101.54 2,049.04 86.02
shared kglsim object batch 74.00 74.00 0.00
shared library cache 246.27 224.44 -8.86
shared sql area 2,388.45 1,620.50 -32.15
buffer_cache 14,832.00 14,832.00 0.00
fixed_sga 2.08 2.08 0.00
log_buffer 4.13 4.13 0.00
shared pool在此过程中发生过大的抖动, 可以看到 free memory 从 1,101.54 涨到 2,049.04
建议你上传问题时段的ASH 报告 进一步分析
当可以确认的是 引发问题的直接原因不是全表扫描 |
|