参数文件:
*.memory_max_target=700M
*.memory_target=0
*.pga_aggregate_target=100M
*.workarea_size_policy='MANUAL'
*.sga_max_size=500M
*.sga_target=500M
SQL> alter system set memory_target=700M;
系统已更改。
SQL> show parameters policy
NAME TYPE VALUE
----------------------------------------------- ------------------------------
parallel_degree_policy string MANUAL
workarea_size_policy string MANUAL
SQL> show parameters pga
NAME TYPE VALUE
----------------------------------------------- ------------------------------
pga_aggregate_target big integer 100M
SQL> alter system setpga_aggregate_target=0;
系统已更改。
SQL> show parameters policy
NAME TYPE VALUE
----------------------------------------------- ------------------------------
parallel_degree_policy string MANUAL
workarea_size_policy string MANUAL
SQL> alter system set pga_aggregate_target=150M;
系统已更改。
SQL> show parameters policy
NAME TYPE VALUE
----------------------------------------------- ------------------------------
parallel_degree_policy string MANUAL
workarea_size_policy string MANUAL
SQL>
AMM启动下,
workarea_size_policy为MANUAL时, pga_aggregate_target无论如何修改,都不会影响workarea_size_policy值.
SQL> alter system setpga_aggregate_target=150M;
系统已更改。
SQL> show parameters policy
NAME TYPE VALUE
----------------------------------------------- ------------------------------
parallel_degree_policy string MANUAL
workarea_size_policy string MANUAL
SQL> alter system set workarea_size_policy=auto;
系统已更改。
SQL> show parameters pga
NAME TYPE VALUE
----------------------------------------------- ------------------------------
pga_aggregate_target big integer 150M
SQL> alter system setpga_aggregate_target=0;
系统已更改。
SQL> show parameters policy
NAME TYPE VALUE
----------------------------------------------- ------------------------------
parallel_degree_policy string MANUAL
workarea_size_policy string AUTO
SQL> alter system setpga_aggregate_target=150M;
系统已更改。
SQL> show parameters policy
NAME TYPE VALUE
----------------------------------------------- ------------------------------
parallel_degree_policy string MANUAL
workarea_size_policy string AUTO
SQL>
AMM启动下,
workarea_size_policy为MANUAL时, pga_aggregate_target无论如何修改,都不会影响workarea_size_policy值.
SQL> alter system setpga_aggregate_target=150M;
系统已更改。
SQL> show parameters policy
NAME TYPE VALUE
----------------------------------------------- ------------------------------
parallel_degree_policy string MANUAL
workarea_size_policy string MANUAL
SQL> alter system setworkarea_size_policy=auto;
系统已更改。
SQL> show parameters pga
NAME TYPE VALUE
----------------------------------------------- ------------------------------
pga_aggregate_target big integer 150M
SQL> alter system setpga_aggregate_target=0;
系统已更改。
SQL> show parameters policy
NAME TYPE VALUE
----------------------------------------------- ------------------------------
parallel_degree_policy string MANUAL
workarea_size_policy string AUTO
SQL> alter system setpga_aggregate_target=150M;
系统已更改。
SQL> show parameters policy
NAME TYPE VALUE
----------------------------------------------- ------------------------------
parallel_degree_policy string MANUAL
workarea_size_policy string AUTO
SQL> alter system set workarea_size_policy=manual;
系统已更改。
SQL> show parameters pga
NAME TYPE VALUE
----------------------------------------------- ------------------------------
pga_aggregate_target big integer 150M
SQL> alter system setworkarea_size_policy=auto;
系统已更改。
SQL> show parameters pga
NAME TYPE VALUE
----------------------------------------------- ------------------------------
pga_aggregate_target big integer 150M
SQL>
AMM启动下,
pga_aggregate_target为非0时,workarea_size_policy无论如何修改,都不会影响pga_aggregate_target值.
SQL> alter system setpga_aggregate_target=0;
系统已更改。
SQL> show parameters policy
NAME TYPE VALUE
----------------------------------------------- ------------------------------
parallel_degree_policy string MANUAL
workarea_size_policy string AUTO
SQL> alter system setworkarea_size_policy=manual;
系统已更改。
SQL> show parameters pga
NAME TYPE VALUE
----------------------------------------------- ------------------------------
pga_aggregate_target big integer 0
SQL> alter system setworkarea_size_policy=auto;
系统已更改。
SQL> show parameters pga
NAME TYPE VALUE
----------------------------------------------- ------------------------------
pga_aggregate_target big integer 0
SQL>
AMM启动下,
pga_aggregate_target为0时,workarea_size_policy无论如何修改,都不会影响pga_aggregate_target值.
结论:
AMM启动下,
pga_aggregate_target和workarea_size_policy各自无论如何修改,都不会影响对方的值.
因为AMM启动时,pga自动管理机制处于关闭状态,故而pga_aggregate_target和workarea_size_policy参数间不存在任何关系,是相互独立的变量.