Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
MEMORY_TARGET This is the initialization parameter setting for all of the memory allocated to
both the PGA and SGA combined (new in 11g). Setting MEMORY_TARGET enables Automatic
Memory Management, so Oracle allocates memory for you based on system needs, but you can
also set minimum values for key parameters. MEMORY_TARGET is used for everything that
SGA_TARGET was used for but now additionally includes the PGA (especially important as
MEMORY_TARGET now includes the important area PGA_AGGREGATE_TARGET). Important
parameters such as DB_CACHE_SIZE, SHARED_POOL_SIZE, PGA_AGGREGATE_TARGET,
LARGE_POOL_SIZE, and JAVA_POOL_SIZE are all set automatically when you set
MEMORY_TARGET. Setting minimum values for important initialization parameters in your system
is also a very good idea.
MEMORY_MAX_TARGET This is the maximum memory allocated for Oracle and the maximum
value to which MEMORY_TARGET can be set.
DB_CACHE_SIZE Initial memory allocated to data cache or memory used for data itself. This
parameter doesnt need to be set if you set MEMORY_TARGET or SGA_TARGET, but setting a
value for this as a minimum setting is a good idea. Your goal should always be toward a memory
resident database or at least toward getting all data that will be queried in memory.
SHARED_POOL_SIZE Memory allocated for data dictionary and for SQL and PL/SQL statements.
The query itself is put in memory here. This parameter doesnt need to be set if you set
MEMORY_TARGET, but setting a value for this as a minimum is a good idea. Note that SAP
recommends setting this to 400M. Also note that the Result Cache gets its memory from the shared
pool and is set with the RESULT_CACHE_SIZE and RESULT_CACHE_MODE
(FORCE/AUTO/MANUAL) initialization parameters. Lastly, an important note for 11g is that this
parameter now includes some SGA overhead (12M worth) that it previously did not (in 10g). In 11g,
set this 12M higher than you did in 10g!
SGA_TARGET If you use Oracles Automatic Shared Memory Management, this parameter is used
to determine the size of your data cache, shared pool, large pool, and Java pool automatically.
Setting this to 0 disables it. This parameter doesnt need to be set if you set MEMORY_TARGET,
but you may want to set a value for this as a minimum setting for the SGA if youve calibrated it in
previous versions. The SHARED_POOL_SIZE, LARGE_POOL_SIZE, JAVA_POOL_SIZE, and
DB_CACHE_SIZE are all set automatically based on this parameter (or MEMORY_TARGET if
used).
PGA_AGGREGATE_TARGET Soft memory cap for total of all users PGAs. This parameter
doesnt need to be set if you set MEMORY_TARGET, but setting a value as a minimum setting is a
good idea. Note that SAP specifies to set this to 20 percent of available memory for OLTP and 40
percent for OLAP.
SGA_MAX_SIZE Maximum memory that SGA_TARGET can be set to. This parameter doesnt
need to be set if you set MEMORY_TARGET, but you may want to set a value if you use
SGA_TARGET.
OPTIMIZER_MODE FIRST_ROWS, FIRST_ROWS_n, or ALL_ROWS. Although RULE/CHOOSE
are definitely desupported and obsolete and people are often scolded for even talking about it, I
was able to set the mode to RULE in 11gR2. Consider the following error I received when I set
OPTIMIZER_MODE to a mode that doesnt exist (SUPER_FAST):