OraQA

Oracle Question and Answer

  • Do you have a solution to a problem? Do you have an unanswered question? Login and share it with the Oracle community. More...

Oracle News


Entries RSS feed

Comments RSS feed

How to “improve” buffer cache hit ratio

February 13th, 2006 By Vadim Bobrov

Buffer cache hit ratio should be left alone unless you have a specific problem that you traced to buffer cache performance. To prove, the following script will inflate buffer cache hit ratio to satisfy the most demanding user :-) Depending on your system configuration you may need to run it multiple times to reach the desired effect:

declare
  res varchar2(1);
begin
  for i in 1..10000000 loop
    select dummy into res from dual;
  end loop;
end;

Don’t do it on production!! (test in development first)

Vadim Bobrov
Oracle Database Tools
http://www.fourthelephant.com

3 Responses to “How to “improve” buffer cache hit ratio”

  1. Karl Reitschuster Says:

    Great!
    Now we could save a lot of money tuning efforts would cost!
    ;-)
    … and we are proud of using our CPU resources up to 100%
    ;-)

  2. Vadim Bobrov Says:

    thanks :-)

    with a little bit of fantasy this idea can further be developed to tune almost anything in the database. For example if the top wait event in the database is “db file sequential read” and it seems to bother anyone - one can provide the script to “promote” the desired wait event to the top instead

    Vadim Bobrov
    Oracle Database Tools
    http://www.fourthelephant.com

  3. austrin Says:

    Hello Vadim,
    your idea is right. A more elaborated example, which allows you to set the buffer cache hit ratio to some specific value, can be found at http://www.oracledba.co.uk/tips/choose.htm
    BR,
    Martin

Leave a Reply

You must be logged in to post a comment.

RSS feed for comments on this question