设置oralce自动内存管理
启用oracle自动内存管理需要shutdown ,restart
1.确定sga pga内存大小:
SHOW PARAMETER TARGET
2.确定自数据库启动以来pga最大的使用大小:
select value from v$pgastat where name='maximum PGA allocated';
3.计算memory_target大小:
memory_target = sga_target + max(pga_aggregate_target, maximum PGA
allocated)
4.设置memory_target
ALTER SYSTEM SET MEMORY_MAX_TARGET = nM SCOPE = SPFILE;
MEMORY_MAX_TARGET is not a dynamic initialization parameter.
如果使用的是 text initialization parameter file 需要编辑以下两个参数:
memory_max_target = nM
memory_target = mM
5.Shut down and restart the database.