|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
The new v$db_cache_advice viewStarting in Oracle9i we have a new view that can predict the benefit of additional data buffers in the data buffer cache. This view shows the estimated miss rates for twenty potential buffer cache sizes, ranging from 10% of the current size to 200% of the current size. 2008 Update: For my complete usage notes for the data buffer advisor, see: Optimizing the data buffers is especially important in Oracle9i and beyond, where you have up to five separate data buffer caches to maintain. These include:
Warning - When the DBA sets
dba_cache_advice=on, Oracle will steal RAM pages from the shared pool, often
with disastrous result to the library cache. For example, if the
existing setting for db_cache_size is 500m, Oracle will steal a significant
amount of RAM from the shared pool. See
how
to predict I/O reduction from a larger data cache
for details. To avoid this problem, the
DBA should set db_cache_advice=ready in the init.ora file. When this
is done, Oracle will pre-allocate the RAM memory at database startup time. To show how cache advice works, we start with a STATSPACK report to identify those times when the data buffer hit ratio falls below 90%. *********************************************************** In the case of the above output, we could increase the db_cache_size each day between 8:00 AM and 10:00 AM, stealing RAM memory from pga_aggregate_target. Below we see the output from the db_cache_advice utility. This chart provides complete information about the estimated reduction in disk I/O when adding new data buffers to the cache.
Estd
Phys Estd Phys If you like Oracle tuning, you might enjoy my latest book “Oracle Tuning: The Definitive Reference” by Rampant TechPress. It’s only $41.95 (I don’t think it is right to charge a fortune for books!) and you can buy it right now at this link: http://www.rampant-books.com/book_1002_oracle_tuning_definitive_reference_2nd_ed.htm
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Copyright © 1996 - 2009 by
Burleson Enterprises, Inc. All rights reserved.
Oracle® is the registered trademark
of Oracle Corporation. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||