Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Register Tags Active Topics RSS Search Mark Forums Read SiteMap

Tags: , , ,

Sponsored Links



Hit ratio in oracle

Software Development


Reply
 
Thread Tools Search this Thread
  #1  
Old 13-02-2010
Member
 
Join Date: Nov 2009
Posts: 43
Hit ratio in oracle

Hello guys !

I need your help to find out the problems regarding Hit ratio.what is the concept behind this.Why oracle uses this type of strategy in tuning.Just make me sure me the uses and purpose of hit ratio on different components of database.

Thanks.
Reply With Quote
  #2  
Old 13-02-2010
Praetor's Avatar
Member
 
Join Date: Apr 2008
Posts: 1,937
Hit ratio in oracle

Hit ratio in oracle :

The Hit ratio term is used to find out the read consistency from the sources.It is used in tuning methodology of oracle database.There are two types of resources is being used to find out.If instance is taking the data upon user request from the disk or the SGA(System global area).

There are three columns in the v$sysstatis used to find out the hit ratio for a running instance.The name and values of the columns are dedicated the accessing the instance.
Reply With Quote
  #3  
Old 13-02-2010
Member
 
Join Date: May 2008
Posts: 1,990
Columns in V$sysstat in oracle

Columns in V$sysstat :

The V$sysstat dynamic view contains the columns which contains the exact functioning of instance regarding retrieving the data.

The columns and meaning are as follows:

Consistent GetsThe number of retrieves made upon the block buffer in consistent mode.
DB Blk Gets This column shows the number of blocks accessed via single block gets
Physical Reads Number of blocks fetched from the disk.

NOTES:
Logical reads are calculated upon the addition of consistent gets and db block gets.
The Hit Ratio should be greater than 80% otherwise you need to increase the size of DB_BLOCK_BUFFERS parameter in parameter file.
Reply With Quote
  #4  
Old 13-02-2010
kelfro's Avatar
Member
 
Join Date: Apr 2008
Posts: 1,976
Data Dictionary Hit Ratio in database

Data Dictionary Hit Ratio :

You can get the information after calculation of the hit ratio using the v$sysstat view.There are so many dynamic views are provided to find out the results of particular components of SGA.

The v$rowcache will show you the statistics of data dictionary hit ratio.

select SUM(GETS),
SUM(GETMISSES),
ROUND((1 - (sum(GETMISSES) / sum(GETS))) * 100,2)
from v$rowcache

The Getsnumber of request on data object and Cache Misses is number of misses on the data dictionary cache.The Hit Ratio should be greater than 90% other wise you have to increase the size of SHARED POOL using the pfile of the database.
Reply With Quote
  #5  
Old 13-02-2010
Zecho's Avatar
Member
 
Join Date: May 2008
Posts: 2,267
SQL Cache Hit Ratio in oracle

SQL Cache Hit Ratio :
You can find out the hit ratio on the one of the component of SGA called "SQL Cache" using the following dynamic view.

select sum(PINS) Pins,
sum(RELOADS) Reloads,
round((sum(PINS) - sum(RELOADS)) / sum(PINS) * 100,2) Hit_Ratio
from v$librarycache



Where the PINS is the number of requested made upon the object.
Reloads is the number of failed pins which get reflected from the pins and accessed from the disk.

The Hit Ratio should be greater than 85%

Last edited by Zecho : 13-02-2010 at 04:38 PM.
Reply With Quote
  #6  
Old 13-02-2010
Reegan's Avatar
Member
 
Join Date: Oct 2005
Posts: 2,299
Library Cache Miss Ratio in database

Library Cache Miss Ratio :

This is one of the component of SGA from where the current transactions are made.you can get the statistics of this component using the following view:

Code:
select 	sum(PINS) Executions,
	sum(RELOADS) cache_misses,
	sum(RELOADS) / sum(PINS) miss_ratio
from 	v$librarycache
Where the Executions shows the number times a pin is requests for object and Cache Misses show the number of missed executions.
NOTE : The hitratio should be less than the 1% other increase the SHARED POOL size.
Reply With Quote
Reply

  TechArena Community > Software > Software Development


Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "Hit ratio in oracle"
Thread Thread Starter Forum Replies Last Post
Does anyone knows about K/D ratio Wadee Video Games 5 25-12-2010 07:17 AM
Want to know about P/E (price-to-earnings ratio) ratio Charites Education Career and Job Discussions 3 19-11-2010 02:47 PM
Oracle Announces New Release of "Oracle Coherence" prakashseth Web News & Trends 1 21-07-2009 05:50 PM
Desktop is cut-off when using 16:9 ratio yaroslavvb Vista Help 2 23-05-2009 01:14 AM
16:9 and 4:3 aspect ratio Smithical Vista Help 2 01-02-2008 04:43 PM


All times are GMT +5.5. The time now is 11:53 AM.