对于Oracle数据库内存参数配置大小,一般满足如下规则
sga_target + pga_aggregate_target < memory_target <=memory_max_target
sga_max_size < memory_target
PGA_AGGREGATE_TARGET= memory_target - sga_target
******************关闭memory_target 两种方法
方法一。参数修改方式
SQL> alter system reset memory_max_target;
SQL> alter system set memory_target=0;
方法二(错误修改方式)
SQL> alter system set memory_max_target=0 scope=spfile;
SQL> alter system set memory_target=0;
SQL> shutdown immediate;
SQL> alter system set memory_target=0 scope=spfile; 要么数据库实例无法启动,要么并没有关闭memory管理方式
方法三。编辑参数文件方式
SQL> create pfile='/tmp/pfile.ora' from spfile;
vi /tmp/pfile.ora
修改前
*.memory_max_target=0
*.memory_target=0
修改后
#*.memory_max_target=0
#*.memory_target=0
SQL> create spfile from pfile='/tmp/pfile.ora';
SQL> startup
发表评论