Oracle DBA Script - Adjust AMM on RAC
Assume we would like to set memory target to 6000M
On Node 1:
Repeat the above procedure at node 2, with the appropriate change of node name at restart procedure.
On Node 1:
- Enter the DB instance via SQL Plus. Enter the below command:
- show spparameter target (to check the current setting)
- ALTER SYSTEM SET MEMORY_MAX_TARGET = 600M scope=SPFILE;
- ALTER SYSTEM SET MEMORY_TARGET = 600M scope=SPFILE;
- ALTER SYSTEM SET SGA_TARGET = 0 scope=SPFILE;
- ALTER SYSTEM SET PGA_AGGREGATE_TARGET = 0 scope=SPFILE;
- show spparameter target (to check the new setting)
- exit SQL Plus
- Restart the instance at command prompt:
- srvctl stop instance -d dbname -n dbnode01-o IMMEDIATE
- srvctl start instance -d dbname -n dbnode01
- Enter SQL plus again
- verify the running parameter by this command:
- show parameter target
Repeat the above procedure at node 2, with the appropriate change of node name at restart procedure.
Comments