Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Manual calculation of ‘Buffer Cache hit ratio’

sape007Jan 29 2008 — edited Jan 29 2008

Using: Oracle 10.2.0.1.0, Redhat 4, 64bit.

Manual calculation of ‘Buffer Cache hit ratio’ is very off from what it shown in statspack.

Statspack shows:

Instance Efficiency Percentages
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
            Buffer Nowait %:  100.00       Redo NoWait %:   99.97
            Buffer  Hit   %:   99.18    In-memory Sort %:  100.00
            Library Hit   %:   90.43        Soft Parse %:   52.56
         Execute to Parse %:   80.14         Latch Hit %:   99.98
Parse CPU to Parse Elapsd %:   96.21     % Non-Parse CPU:   56.89

Manual calculation (Got this formula from Sybex PT book, page 275):

SQL> select name, 1-(PHYSICAL_READS/(DB_BLOCK_GETS+CONSISTENT_GETS)) 
from  v$buffer_pool_statistics;
NAME                 1-(PHYSICAL_READS/(DB_BLOCK_GETS+CONSISTENT_GETS))
-------------------- --------------------------------------------------
DEFAULT                                                      .700247215

Any idea, why using v$buffer_pool_statistics gives wrong results?

Thanks regards,

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 26 2008
Added on Jan 29 2008
2 comments
551 views