ITPub博客

首页 > Linux操作系统 > Linux操作系统 > Oracle Performance Tuning Case Analysis

Oracle Performance Tuning Case Analysis

原创 Linux操作系统 作者:licheng79 时间:2011-11-15 16:33:52 0 删除 编辑

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

皇家方舟.jpg

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/26136400/viewspace-710986/ ,如需转载,请注明出处,否则将追究法律责任。

上一篇: Manage CBO statistics
请登录后发表评论 登录
全部评论

注册时间:2011-09-07

  • 博文量
    54
  • 访问量
    84438