Oracle 11g 新特性之---- Oracle 内存自动管理 Oracle 11g 以后,Oracle 实现了对内存的自动管理,减轻了DBA管理的工作量,以下是Oracle官方对内存管理的解释:
Oracle have made great strides in simplifying memory management over the last few versions of the database. Oracle 9i automated PGA management by introducing PGA_AGGREGATE_TARGETparameter. Oracle 10g continued this trend by automating SGA management using theSGA_TARGET parameter. Oracle 11g takes this one step further by allowing you to allocate one chunk of memory, which Oracle uses to dynamically manage both the SGA and PGA.
At the time of writing, Automatic Memory Management (AMM) is only supported on the major platforms (Linux, Solaris, Windows, HP-UX, AIX). AMM Parameters
Automatic memory management is configured using two new initialization parameters:
MEMORY_TARGET: The amount of shared memory available for Oracle to use when dynamically controlling the SGA and PGA. This parameter is dynamic, so the total amount of memory available to Oracle can be increased or decreased, provided it does not exceed theMEMORY_MAX_TARGET limit. The default value is "0".
MEMORY_MAX_TARGET: This defines the maximum>
When using automatic memory management, the SGA_TARGET and PGA_AGGREGATE_TARGET act as minimum>
If you are using UNIX/Linux, before you consider using AMM you should check the current> # df -k /dev/shm Filesystem 1K-blocks Used Available Use% Mounted on tmpfs 1029884 350916 678968 35% /dev/shm #
The shared memory file system should be big enough to accommodate the MEMORY_TARGET andMEMORY_MAX_TARGET values, or Oracle will throw the following error.
ORA-00845: MEMORY_TARGET not supported on this system
To adjust the shared memory file system>
# umount tmpfs # mount -t tmpfs shmfs -o> Make the setting permanent by amending the "tmpfs" setting of the "/etc/fstab" file to look like this.