Buffer Cache Hit Ratio
rem
rem This script uses PL/SQL.
rem le hit ratio
rem
col global_name for A20
variable d number
variable c number
variable r number
begin
select value into :c
from v$sysstat
where name = 'consistent gets';
select value into :d
from v$sysstat
where name = 'db block gets';
select (1- value/( :c + :d)) into :r
from v$sysstat
where name in ( 'physical reads');
end;
/
select global_name, :r "Hit Ratio" from global_name ;
GLOBAL_NAME Hit Ratio
----------- ----------
V920.WORLD .995129671
col METRIC_NAME for a40
set lines 150
Alter session set nls_date_format='yyyy-mm-dd hh24:mi:ss';
select begin_time,end_time,metric_name,value from v$metric_history
where metric_name ='Buffer Cache Hit Ratio' order by 1;
Alter session set nls_date_format='yyyy-mm-dd hh24:mi:ss';
select begin_time,end_time,metric_name,average from v$sysmetric_summary
where metric_name = 'Buffer Cache Hit Ratio'
/
rem This script uses PL/SQL.
rem le hit ratio
rem
col global_name for A20
variable d number
variable c number
variable r number
begin
select value into :c
from v$sysstat
where name = 'consistent gets';
select value into :d
from v$sysstat
where name = 'db block gets';
select (1- value/( :c + :d)) into :r
from v$sysstat
where name in ( 'physical reads');
end;
/
select global_name, :r "Hit Ratio" from global_name ;
GLOBAL_NAME Hit Ratio
----------- ----------
V920.WORLD .995129671
col METRIC_NAME for a40
set lines 150
Alter session set nls_date_format='yyyy-mm-dd hh24:mi:ss';
select begin_time,end_time,metric_name,value from v$metric_history
where metric_name ='Buffer Cache Hit Ratio' order by 1;
Alter session set nls_date_format='yyyy-mm-dd hh24:mi:ss';
select begin_time,end_time,metric_name,average from v$sysmetric_summary
where metric_name = 'Buffer Cache Hit Ratio'
/
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/20747382/viewspace-2131796/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- [Oracle Script] Buffer Cache Hit RatioOracle
- why Buffer Cache Hit Ratio < 0
- Cursor Cache Hit Ratio超過100%
- Keeping the Library Cache Reload Ratio at 0 and the Hit Ratio Above 95 Percent
- Keeping the Data Dictionary Cache Hit Ratio at or above 95 Percent
- Hit Ratio For ORACLEOracle
- [Oracle Script] Library Cche Hit RatioOracle
- 關於計算buffer cache hit rate的精確演算法演算法
- Buffer Cache 原理
- cache buffer chainAI
- IO之核心buffer----"buffer cache"
- Oracle Buffer Cache原理Oracle
- Oracle database buffer cacheOracleDatabase
- CACHE BUFFER CHAINSAI
- Database Buffer Cache (79)Database
- page cache與buffer cache的關係
- Oracle Cache Buffer ChainsOracleAI
- linux cache and buffer【轉】Linux
- Latch: cache buffer chains (%)AI
- BUFFER CACHE尋找流程
- buffer cache logical structure!Struct
- buffer cache部分原理(LRU)
- Organization of the Database Buffer Cache (80)Database
- Size of the Database Buffer Cache (82)Database
- oracle buffer cache管理機制_buffer cache dump與lru機制小記Oracle
- 【BUFFER】Oracle buffer cache之 latch 學習記錄Oracle
- buffer與cache的區別
- database buffer cache之我見Database
- buffer cache基本知識點
- BUFFER CACHE 基礎知識
- 等待模擬-cache buffer chainAI
- Buffer cache的執行原理
- Buffer和Cache的區別
- Buffer 與 Cache 的區別
- Cache Buffer Chain Latch等待事件AI事件
- Cache 和 Buffer的區別
- buffer cache實驗5-latch:cache buffers chainAI
- 【Cache】將常用的“小表”快取到Buffer Cache快取