Search notes:

Oracle: Automatic Memory Management

When automatic memory management (AMM) is enabled, Oracle will manage memory for SGA and instance PGA.
Oracle recommends this method over manual memory management (but only for databases where where SGA + PGA <= 4GB).
AMM (which was introduced in 11g) extends ASMM (= Automatic Shared Memory Management, which was introduced in 10g and manages the SGA only).
In order to enable automatic memory management, two init parameters are needed to be set:
When using AMM, it's still possible to set SGA memory size related parameters.
If none of these is set, MMAN initially assigns 60 % of memory to sga_target and 40 % of memory to pga_aggregate_target but will then adjust the values as MMAN sees fit.

Automatic Shared Memory Management

Pools not affected by Automatic Shared Memory Management

The following pools are not affected by automatic shared memory management:
  • Log buffer
  • Other buffer caches, such as keep, recycle and other block sizes
  • Fixed SGA (including other internal allocations)

See also

v$memory_dynamic_components shows the current sizes of all dynamically tuned memory components, including the total size of the SGA and the instance PGA.
v$sga_dynamic_components shows the same information except SGA and instance PGA.
The functionality for Automatic Memory Management is provided by the MMAN (Memory Manager) background process.
When AMM is enabled, the amount of memory_target is created with /dev/shm segments (MOS Note 1392549.1):
ls -l /dev/shm | grep $ORACLE_SID

Index

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/developm...', 1758198755, '216.73.216.150', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/development/databases/Oracle/adminstration/memory-management/automatic/index(74): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78