oracle 11g 启用自动内存管理时sga_max 这个参数设置的意义不大

Note:

The preceding steps instruct you to set SGA_TARGET and PGA_AGGREGATE_TARGET to zero so that the sizes of the SGA and instance PGA are tuned up and down as required, without restrictions. You can omit the statements that set these parameter values to zero and leave either or both of the values as positive numbers. In this case, the values act as minimum values for the sizes of the SGA or instance PGA.



[oracle@ora11g ~]$ sqlplus  / as sysdba;

SQL*Plus: Release 11.2.0.4.0 Production on Wed Nov 5 18:01:25 2014

Copyright (c) 1982, 2013, Oracle.  All rights reserved.


Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options

SYS@ sms> show parameter mem;

NAME                                 TYPE        VALUE
------------------------------------ ----------- ------------------------------
hi_shared_memory_address             integer     0
memory_max_target                    big integer 2608M
memory_target                        big integer 2608M
shared_memory_address                integer     0
SYS@ sms> show parameter sga;

NAME                                 TYPE        VALUE
------------------------------------ ----------- ------------------------------
lock_sga                             boolean     FALSE
pre_page_sga                         boolean     FALSE
sga_max_size                         big integer 2G
sga_target                           big integer 1G
SYS@ sms> show parameter pga;

NAME                                 TYPE        VALUE
------------------------------------ ----------- ------------------------------
pga_aggregate_target                 big integer 600M

[oracle@ora11g ~]$ sqlplus  / as sysdba;

SQL*Plus: Release 11.2.0.4.0 Production on Wed Nov 5 18:01:25 2014

Copyright (c) 1982, 2013, Oracle.  All rights reserved.


Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options

SYS@ sms> show parameter mem;

NAME                                 TYPE        VALUE
------------------------------------ ----------- ------------------------------
hi_shared_memory_address             integer     0
memory_max_target                    big integer 2608M
memory_target                        big integer 2608M
shared_memory_address                integer     0
SYS@ sms> show parameter sga;

NAME                                 TYPE        VALUE
------------------------------------ ----------- ------------------------------
lock_sga                             boolean     FALSE
pre_page_sga                         boolean     FALSE
sga_max_size                         big integer 2G
sga_target                           big integer 1G
SYS@ sms> show parameter pga;

NAME                                 TYPE        VALUE
------------------------------------ ----------- ------------------------------
pga_aggregate_target                 big integer 600M

    在oracle 11g 中,启用了自动内存管理(memory_target,memory_max_target 为非0的值), sga_max_sizep 这个参数应是限制sga最大可分配的内存。这个参数设的再大,(等于memory_max_target的值),而实际分配的内大大小应是 <=(memory_max_target-pga_aggregate_target ),所以设置的意义不大,或直接设置 sga_max_sizep=memory_max_target
      不知我的理解对不对?

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

转载于:http://blog.itpub.net/27036311/viewspace-1321874/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值