設置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.