ITPub博客

首页 > 数据库 > Oracle > [From metalink] 11g MEMORY_TARGET Parameter Dependency [ID 452512.1]

[From metalink] 11g MEMORY_TARGET Parameter Dependency [ID 452512.1]

原创 Oracle 作者:opsc 时间:2010-03-16 13:20:38 0 删除 编辑
Modified 06-JAN-2010 Type BULLETIN Status PUBLISHED

In this Document

Scope and Application
11g MEMORY_TARGET Parameter Dependency


Applies to:

Oracle Server - Enterprise Edition - Version: 11.1.0.6 to 11.1.0.6
Information in this document applies to any platform.

Purpose

Automatic memory management can be configured using a target memory size initialization parameter MEMORY_TARGET and a maximum memory size initialization parameter MEMORY_MAX_TARGET. Oracle Database then tunes to the target memory size, redistributing memory as needed between the system global area (SGA) and the instance program global area (instance PGA). Before setting any memory pool sizes, consider using the automatic memory management feature of Oracle Database.

This note describes the relationships between the various memory sizing parameters.


Show Related Information Related


Products
  • Oracle Database Products > Oracle Database > Oracle Database > Oracle Server - Enterprise Edition
Keywords
PGA_AGGREGATE_TARGET; INITIALIZATION PARAMETERS; SGA_MAX_SIZE
[@more@]

Scope and Application

DBA's with prior knowledge of 9i and 10g memory management.

11g MEMORY_TARGET Parameter Dependency

If MEMORY_TARGET is set to a non-zero value:

  • If SGA_TARGET and PGA_AGGREGATE_TARGET are set, they will be considered the minimum values for the sizes of SGA and the PGA respectively. MEMORY_TARGET can take values from SGA_TARGET + PGA_AGGREGATE_TARGET to MEMORY_MAX_SIZE.
  • If SGA_TARGET is set and PGA_AGGREGATE_TARGET is not set, we will still auto-tune both parameters. PGA_AGGREGATE_TARGET will be initialized to a value of (MEMORY_TARGET-SGA_TARGET).
  • If PGA_AGGREGATE_TARGET is set and SGA_TARGET is not set, we will still auto-tune both parameters. SGA_TARGET will be initialized to a value of min(MEMORY_TARGET-PGA_AGGREGATE_TARGET, SGA_MAX_SIZE (if set by the user)) and will auto-tune subcomps.
  • If neither is set, they will be auto-tuned without any minimum or default values. We will have a policy of distributing the total memory set by memory_target parameter in a fixed ratio to the the SGA and PGA during initialization. The policy is to give 60% for sga and 40% for PGA at startup.

If MEMORY_TARGET is not set or set to set to 0 explicitly (default value is 0 for 11g):

  • If SGA_TARGET is set we will only auto-tune the sizes of the sub-components of the SGA. PGA will be autotuned independent of whether it is explicitly set or not. Though the whole SGA(SGA_TARGET) and the PGA(PGA_AGGREGATE_TARGET) will not be auto-tuned, i.e., will not grow or shrink automatically.
  • If neither SGA_TARGET nor PGA_AGGREGATE_TARGET is set, we will follow the same policy as we have today; PGA will be auto-tuned and the SGA will not be auto-tuned and parameters for some of the sub-components will have to be set explicitly (for SGA_TARGET).
  • If only MEMORY_MAX_TARGET is set, MEMORY_TARGET will default to 0 and we will not auto tune sga and pga. It will default to 10gR2 behavior within sga and pga.
  • If sga_max_size is not user set, we will internally set it to MEMORY_MAX_TARGET.

In a text initialization parameter file, if you omit the line for MEMORY_MAX_TARGET and include a value for MEMORY_TARGET, the database automatically sets MEMORY_MAX_TARGET to the value of MEMORY_TARGET. If you omit the line for MEMORY_TARGET and include a value for MEMORY_MAX_TARGET, the MEMORY_TARGET parameter defaults to zero. After startup, you can then dynamically change MEMORY_TARGET to a non-zero value, provided that it does not exceed the value of MEMORY_MAX_TARGET.

If you wish to monitor the decisions made by Automatic Memory Management following views can be useful

  • V$MEMORY_DYNAMIC_COMPONENTS has the current status of all memory components
  • V$MEMORY_RESIZE_OPS has a circular history buffer of the last 800 SGA resize requests

References

NOTE:148495.1 - Dynamic SGA
NOTE:223730.1 - Automatic PGA Memory Management
NOTE:295626.1 - How To Use Automatic Shared Memory Management (ASMM) In Oracle10g
NOTE:443746.1 - Automatic Memory Management(AMM) on 11g

Show Related Information Related


Products
  • Oracle Database Products > Oracle Database > Oracle Database > Oracle Server - Enterprise Edition
Keywords
PGA_AGGREGATE_TARGET; INITIALIZATION PARAMETERS; SGA_MAX_SIZE

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/21084389/viewspace-1031874/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2009-10-21

  • 博文量
    14
  • 访问量
    41572