Call now: 252-767-6166  
Oracle Training Oracle Support Development Oracle Apps

Free Oracle Tips

HTML Text

 Home
 E-mail Us
 Oracle Articles


 Oracle Training
 Oracle News

 Oracle Forum
 Class Catalog


 Our Staff
 Our Prices
 Help Wanted!

 Remote DBA
 Oracle Tuning
 Emergency 911
 RAC Support
 Apps Support
 Analysis
 Design
 Implementation
 Oracle Support


 SQL Tuning
 Security

 UNIX
 Oracle UNIX
 Linux
 Oracle Linux
 Monitoring
 Remote help

 Remote plans
 Remote
services
 Oracle C++
 Oracle Java
 Apache
 JDeveloper
 App Server

 Applications
 Oracle Forms
 Oracle Portal
 11i Upgrades
 SQL Server
 Oracle Concepts
 HTML-DB Tips
 Software Help

 Remote Help  
 Development  

 Implementation


 Financials Training
 Oracle 11i
 Oracle Apps 11i
 Oracle Workflow
 Oracle AR 11i Class
 Oracle AP 11i class
 Oracle GL 11i class
 Oracle HR 11i class
 Oracle FA 11i class
 11i Project Mgt
 11i procurement
 11i collections


 Oracle Posters
 Oracle Books

 Oracle Tuning Book
 Oracle RAC Book
 Oracle Security
 Easy Oracle Books
 Oracle Scripts
 SQL Server DBA
 SQL Design Patterns
 Ion
 Excel-DB   


 BC Oracle News


 Rednecks!
 Dress code
 Arabian Stallion

 Burleson Arabians
 Guide Horses
 Don Burleson Blog
 Golf & Travel


 Privacy Policy
 

 

 

 

 

Oracle ASMM (AMM) tips


Don Burleson

 

 

Note:  ASMM and dynamic memory management has considerable overhead.  See my important notes on Oracle dynamic memory management.

 


Oracle heuristic tuning is a well-known scientific approach that has been codified inside the Oracle 10g Automatic Shared Memory Manager (AMM) and Oracle Data Mining tools.  Heuristic techniques are well-proven and accepted within the scientific community.  The Heuristic approach is very straightforward.  We observe our Oracle environment, searching for statistically-valid correlations, and apply these “rules of thumb” to new situations.

When Oracle9i first allowed "alter system" commands to morph the SGA, Oracle 10g introduced Automatic Memory Management, a reactive tool to re-size the RAM regions.  While AMM is fine for smaller systems, there are reports of AMM causing performance problems:

The best example is the Oracle10g Automatic Shared Memory Manager (ASMM, or AMM) which observes historical buffer cache information and builds a statistically-reliable predictive model on re-sizing the data buffer.  Using the rule-of-thumb “Increase the data buffer cache size until the marginal benefit declines”, AMM can estimate the optimal cache size (the working-set of frequently-referenced data blocks).

 

 

When the marginal benefit of adding additional data blocks is plotted, the output looks like the following predictive model from v$db_cache_advice  (x$kcbcbh). 

 

When this data is plotted, the result is a typical 1/x curve as shown above. For an undersized buffer, a large reduction in disk I/O is achieved with a small increase in the size of a small RAM buffer.

In 11g and beyond, Oracle automatic memory management is configured using the memory_target  and memory_max_target initialization parameters.  The memory_target parameter specifies the amount of shared memory available for Oracle to use when dynamically controlling the SGA and PGA. The memory_max_target AMM parameter specifies the max size that memory_target may take.  The docs note this on memory_max_target:

“For the MEMORY_MAX_TARGET initialization parameter, decide on a maximum amount of memory that you would want to allocate to the database for the foreseeable future.

That is, determine the maximum value for the sum of the SGA and instance PGA sizes.”

Note:  When using AMM, the values for the “traditional” pool parameters (db_cache_size, shared_pool_size, &c) are not ignored.  Rather, they will specify the minimum size that Oracle will always maintain for each sub-area in the SGA.

Warnings about AMM

Quest Software's Guy Harrison has this warning about using the AMM:

"When you use MTS and AMM (or ASMM) together, PL/SQL programs that try to create large collections can effectively consume all available server memory with disastrous consequences . .

AMM allocates virtually all memory on the system to the large pool in order to accommodate the PL/SQL memory request.  First it consumes the buffer cache, then it reduces the PGA_AGGREGATE_TARGET - all the way to zero!"

For more details on using automatic memory management (AMM), see:

 

http://www.dba-oracle.com/o10g_15.htm

 

http://www.dba-oracle.com/art_so_fav_10g.htm

 


 

 

  
 

 Oracle cruise
 
 
 
Oracle performance tuning software
 
 

Oracle performance tuning book

 

 
 
 
Oracle performance Tuning 10g reference poster
 
 
 
Oracle training in Linux commands
 
Oracle training Excel
 
Oracle training & performance tuning books
 

 

Burleson is the American Team

Note: This Oracle documentation was created as a support and Oracle training reference for use by our DBA performance tuning consulting professionals.  Feel free to ask questions on our Oracle forum.

Verify experience! Anyone considering using the services of an Oracle support expert should independently investigate their credentials and experience, and not rely on advertisements and self-proclaimed expertise. All legitimate Oracle experts publish their Oracle qualifications.

Errata?  Oracle technology is changing and we strive to update our BC Oracle support information.  If you find an error or have a suggestion for improving our content, we would appreciate your feedback.  Just  e-mail:  and include the URL for the page.
 
 


Burleson Consulting

The Oracle of Database Support

Oracle Performance Tuning

 

Remote DBA Services


 

Copyright © 1996 -  2009 by Burleson Enterprises, Inc. All rights reserved.

Oracle © is the registered trademark of Oracle Corporation.