考试网 >> IT认证 >> Oracle >> Oracle指导 >> oraclestatspack实例

oraclestatspack实例

发布时间:2006-06-28 10:04     点击:
分页:上一页  1 2 3 4 5 6 7 8 9 [10] 

  ——计算数据缓冲区命中率

  select value from v$sysstat where name='physical reads' 4383475

  select * from v$sysstat where name='physical reads direct' 3834798

  select * from v$sysstat where name='physical reads direct (lob)' 374616

  select * from v$sysstat where name like 'consistent gets' 1198738167

  select * from v$sysstat where name like 'db block gets' 53472785



  x=physical reads direct+physical reads direct (lob)



  100-(physical reads-x)/(consistent gets+db block gets-x)*100



  100-(4383475-3834798-374616)/(1198738167+53472785-3834798-374616)*100

  ——共享池的命中率

  select sum(pinhits)/sum(pins)*100 "hit radio" from v$librarycache;

  ——关于排序部分

  select name,value from v$sysstat where name like '%sort%';

  select sorts(disk)/(sorts (memory)+sorts(disk)) from dual

  select 0/(17038425+0) from dual

  ——关于log_buffer

  select name,value from v$sysstat

  where name in('redo entries','redo buffer allocation retries');

  redo buffer allocation retries/redo entries >1% 考虑增加log_buffer



  ——其他视图   

  v$db_cache_advice、v$pga_target_advice、v$java_pool_advice 和 v$db_shared_pool_advice

分页:上一页  1 2 3 4 5 6 7 8 9 [10] 
版权申明:未经书面授权请勿转载本站信息!!作品版权归所属媒体与作者所有!!
发表评论: 匿名发表 用户名: 查看评论
您将承担一切因您的行为、言论而直接或间接导致的民事或刑事法律责任
留言板管理人员有权保留或删除其管辖留言中的任意内容
本站提醒:不要进行人身攻击。谢谢配合。
在本站搜索相关信息
2003-2005 Ksw123.com All Rights Reserved. - TOP
Copyright © 2006 Ksw123.com. All rights reserved.中国考题网 版权所有