Results 1 to 6 of 6

Thread: Hit ratio in oracle

  1. #1
    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.

  2. #2
    Join Date
    Apr 2008
    Posts
    1,948

    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.

  3. #3
    Join Date
    May 2008
    Posts
    2,012

    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.

  4. #4
    Join Date
    Apr 2008
    Posts
    2,005

    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.

  5. #5
    Join Date
    May 2008
    Posts
    2,297

    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.

  6. #6
    Join Date
    Oct 2005
    Posts
    2,393

    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.

Similar Threads

  1. Replies: 2
    Last Post: 18-02-2012, 08:38 PM
  2. Does anyone knows about K/D ratio
    By Wadee in forum Video Games
    Replies: 5
    Last Post: 25-12-2010, 07:17 AM
  3. Want to know about P/E (price-to-earnings ratio) ratio
    By Charites in forum Education Career and Job Discussions
    Replies: 3
    Last Post: 19-11-2010, 02:47 PM
  4. What is 16:10 aspect ratio
    By Maranello in forum Monitor & Video Cards
    Replies: 3
    Last Post: 11-06-2009, 10:25 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,714,112,447.48906 seconds with 16 queries