Viewing the buffer cache hit rate

Source: Internet
Author: User

Sql> Select Name,value from V$sysstat where name in (' db block gets ', ' consistent gets ', ' physical reads ');

NAME VALUE
---------------------------------------------------------------- ----------
DB Block gets 932
Consistent gets 50535
Physical reads 9145

Hit Rate calculation formula

Hit Radio=1-physical reads/(db block gets+consistent gets)

Sql> Select (1-9145/(50535+932)) from dual;

(1-9145/(50535+932))
--------------------
.822313327
Sql> Show Parameter Db_block_buffers

NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
Db_block_buffers integer 0

Due to the introduction of the SGA Auto-management in 10G, show parameter found the db_block_buffers to be 0

View current buffer Cache size

Sql> select name, bytes/1024/1024 Mb from v$sgainfo where name = ' Buffer Cache Size ';

NAME MB
-------------------------------- ----------
Buffer Cache Size 288 This buffer cache size refers to the default + keep +recycle and

Sql> select Current_size from V$buffer_pool;

Current_size
------------
288 I do not configure keep pool here, nor do I configure recycle pool

If a long-running database hit radio<90%, you should consider allocating multiple points of memory to the buffer cache, adding physical memory, or SQL tuning

The ideal hit radio should be above 95%

Viewing the buffer cache hit rate

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.