SGA_TARGET

SGA_TARGET specifies the total size of all SGA components.

Property Description
Parameter type Big integer
Syntax SGA_TARGET = integer [K | M | G]
Default value 0 (SGA autotuning is disabled for DEFERRED mode autotuning requests, but allowed for IMMEDIATE mode autotuning requests)
Modifiable ALTER SYSTEM
Modifiable in a PDB Yes
Range of values

Minimum value:

The minimum SGA_TARGET value is the sum of the minimum sizes of the automatically tuned memory pools and the sizes of the manually sized components as described later in this section.

The database buffer cache (DB_CACHE_SIZE) is usually a major contributor to the minimum SGA_TARGET requirement.

Starting with Oracle AI Database 26ai, RU 23.26.3, for standard production database configurations, the minimum buffer cache size is at least 128 MB multiplied by the number of CPUs (64 MB multiplied by the number of CPUs on AIX). The buffer cache is also prevented from shrinking below 5% of SGA_TARGET.

These buffer cache requirements, together with the memory requirements of other SGA components, determine the minimum SGA_TARGET. The actual minimum may therefore be larger, depending on the system configuration.

Different minimum buffer cache requirements apply to earlier releases and certain database configurations, including Oracle AI Database Free and Developer's Instance user PDBs. See "DB_CACHE_SIZE" for details.

If the specified SGA_TARGET is too small to accommodate the required memory components, the database reports ORA-00821 and indicates the minimum required value.

Maxiumum value: SGA_MAX_SIZE

Note that if MEMORY_MAX_TARGET > 0, then the value of SGA_TARGET also cannot exceed the value of MEMORY_MAX_TARGET.

Basic Yes

If SGA_TARGET is specified, then the following memory pools are automatically sized:

If these automatically tuned memory pools are set to nonzero values, then those values are used as minimum levels by Automatic Shared Memory Management. You would set minimum values if an application component needs a minimum amount of memory to function properly.

The following pools are manually sized components and are not affected by Automatic Shared Memory Management:

The memory allocated to these pools is deducted from the total available for SGA_TARGET when Automatic Shared Memory Management computes the values of the automatically tuned memory pools.

In the Default value field, IMMEDIATE mode autotuning requests are necessary to avoid ORA-04031 errors. The DEFERRED and IMMEDIATE modes are reflected in the OPER_MODE column of the V$MEMORY_RESIZE_OPS view.

If Automatic Memory Management is enabled (MEMORY_TARGET is set to a positive value) and SGA_TARGET is also set to a positive value, the SGA_TARGET value acts as the minimum value for the size of the SGA.

Note:

This parameter is optional for pluggable databases (PDBs). When this parameter is set for a PDB, it specifies the maximum SGA that the PDB can use at any time. When this parameter is not set at the PDB level, the PDB has no limit for the amount of SGA it can use, other than the CDB’s SGA size.

To be able to use Resource Manager in a CDB to control the amount of memory each PDB can use:

See Also: