DBA Notes: 2011/11/15
Cheng Li
Oracle Performance Tuning Case Analysis
Instance Efficiency Percentages (Target 100%)
|
Buffer Nowait %: |
100.00 |
Redo NoWait %: |
-50.01 |
|
Buffer Hit %: |
95.61 |
In-memory Sort %: |
99.36 |
|
Library Hit %: |
99.00 |
Soft Parse %: |
97.33 |
|
Execute to Parse %: |
60.88 |
Latch Hit %: |
100.00 |
|
Parse CPU to Parse Elapsd %: |
0.00 |
% Non-Parse CPU: |
99.73 |
Redo NoWait
这个指标是指redo缓冲区获取buffer的未等待比率
正常指标范围:
Redo Nowait率正常指标范围为:99%-100%
计算公式:
Redo Nowait = (1- redo log space requests / reso entries) * 100
可以通过SQL查询得到Redo NoWait命中率
select round((1 - waits.value/redos.value)*100,2) "Redo NoWait Ratio"
from v$sysstat waits,v$sysstat redos
where waits.name ='redo log space requests'
and redos.name ='redo entries';
影响因素:
1. Log_buffer_size参数设置过小
2. 归档的速度太慢
3. 联机日志文件太小
4. 联机日志文件放在缓慢的磁盘设备上
Execute to Parse
这个指标是指数据库的SQL语句执行和分析的比例
正常指标范围:
Execute to Parse 越接近100%越好
计算公式:
Execute to Parse = (1- Parses / Executions) * 100
可以通过SQL查询得到Execute to Parse率
select round((1 - hard.value/total.value)*100,2) "Execute to Parse Ratio"
from v$sysstat hard,v$sysstat total
where hard.name ='parse count (hard)'
and total.name ='parse count (total)';
影响因素:
1. Share_pool_size参数的大小
2. 最重要的影响因素是应用程是否使用了绑定变量
Reference:
http://space.itpub.net/22779291/viewspace-625234
http://www.dba-oracle.com/m_redo_nowait_ratio.htm
华盛顿.jpg