Keeping the Data Dictionary Cache Hit Ratio at or above 95 Percent
The data dictionary cache is a key area to tune because the dictionary is accessed so frequently, especially by the internals of Oracle. At startup, the data dictionary cache contains no data. But as more data is read into cache, the likelihood of cache misses decreases. For this reason, monitoring the data dictionary cache should be done only after the system has been up for a while and stabilized. If the dictionary cache hit ratio is below 95 percent, then you’ll probably need to increase the size of the SHARED_POOL_SIZE parameter in the initialization parameter file.
Use the following query against the Oracle V$ view to determine the data dictionary cache hit ratio:
select ((1 - (Sum(GetMisses) / (Sum(Gets) + Sum(GetMisses)))) * 100) "Hit Rate"
from V$RowCache
where Gets + GetMisses <> 0;
Hit Rate
---------
91.747126
To diagnose a problem with the shared pool or the overuse of the shared pool, use a modified query to the V$ROWCACHE view. This will show how each individual parameter makes up the data dictionary cache, also referred to as the row cache.
column parameter format a20 heading 'Data Dictionary Area'
column gets format 999,999,999 heading 'Total|Requests'
column getmisses format 999,999,999 heading 'Misses'
column modifications format 999,999 heading 'Mods'
column flushes format 999,999 heading 'Flushes'
column getmiss_ratio format 9.99 heading 'Miss|Ratio'
set pagesize 50
ttitle 'Shared Pool Row Cache Usage'
select parameter, gets, getmisses, modifications, flushes,
(getmisses / decode(gets,0,1,gets)) getmiss_ratio,
(case when (getmisses / decode(gets,0,1,gets)) > .1 then '*' else ' ' end) " "
from v$rowcache
where Gets + GetMisses <> 0;
Use the following query against the Oracle V$ view to determine the data dictionary cache hit ratio:
select ((1 - (Sum(GetMisses) / (Sum(Gets) + Sum(GetMisses)))) * 100) "Hit Rate"
from V$RowCache
where Gets + GetMisses <> 0;
Hit Rate
---------
91.747126
To diagnose a problem with the shared pool or the overuse of the shared pool, use a modified query to the V$ROWCACHE view. This will show how each individual parameter makes up the data dictionary cache, also referred to as the row cache.
column parameter format a20 heading 'Data Dictionary Area'
column gets format 999,999,999 heading 'Total|Requests'
column getmisses format 999,999,999 heading 'Misses'
column modifications format 999,999 heading 'Mods'
column flushes format 999,999 heading 'Flushes'
column getmiss_ratio format 9.99 heading 'Miss|Ratio'
set pagesize 50
ttitle 'Shared Pool Row Cache Usage'
select parameter, gets, getmisses, modifications, flushes,
(getmisses / decode(gets,0,1,gets)) getmiss_ratio,
(case when (getmisses / decode(gets,0,1,gets)) > .1 then '*' else ' ' end) " "
from v$rowcache
where Gets + GetMisses <> 0;
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/12361284/viewspace-598226/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Keeping the Library Cache Reload Ratio at 0 and the Hit Ratio Above 95 Percent
- Buffer Cache Hit Ratio
- [Oracle Script] Buffer Cache Hit RatioOracle
- why Buffer Cache Hit Ratio < 0
- Cursor Cache Hit Ratio超過100%
- Cache the Data Dictionary for Fast Access (264)AST
- Hit Ratio For ORACLEOracle
- [Oracle Script] Library Cche Hit RatioOracle
- data dictionary(資料字典)
- About Static Data Dictionary ViewsView
- Structure of the Data Dictionary : Base Tables (258)Struct
- How Oracle Uses the Data Dictionary (262)Oracle
- Public Synonyms for Data Dictionary Views (263)View
- How to get ORACLE_HOME from data dictionaryOracle
- Structure of the Data Dictionary : User-Accessible Views (259)StructView
- Step 9: Run Scripts to Build Data Dictionary Views (67)UIView
- Logical DBA, DA Data Architect
- MySQL:Table_open_cache_hits/Table_open_cache_misses/Table_open_cache_overflowsMySql
- note of Beginning Oracle SQL-Oracle Data Dictionary ViewsOracleSQLView
- db_cache hitratio sql and v$db_cache_advice and create table with storageSQL
- 【YashanDB知識庫】YAS-00103 no free block in dictionary cacheBloC
- HITSC_4_Data Type and Type Checking
- HITSC_6_Abstract Data Type (ADT)
- school dictionary, kids dictionary, children dictionary
- data buffer cache的一點總結。
- Oracle 19c Concepts(06):Data Dictionary and Dynamic Performance ViewsOracleORMView
- Oracle10g資料字典(Data Dictionary for Oracle 10g)-ztOracle 10g
- data buffer cache的一點總結 -- 轉
- 轉享:Keeping Track of JavaScript Event HandlersJavaScript
- 關於計算buffer cache hit rate的精確演算法演算法
- CUME-DIST()和PERCENT-RANK()函式函式
- SQL*Net more data from dblink引起library cache pinSQL
- ARABIC-ENGLISH DICTIONARY: THE HANS WEHR DICTIONARY OF MODERN WRITTEN ARABIC
- dataGridView繫結Dictionary |Dictionary繫結到DataGridViewView
- mapred.job.shuffle.input.buffer.percent(R1)
- Linux 管理員手冊(9)--Keeping Time(轉)Linux
- Oracle10g data buffer cache的記憶體結構Oracle記憶體
- The above mentioned chinese sex pills nutritional vitamins would