0% found this document useful (0 votes)
89 views

Memory Parameters

This document discusses setting Oracle memory parameters including MEMORY_MAX_TARGET, MEMORY_TARGET, SGA_TARGET, and PGA_AGGREGATE_TARGET using ALTER SYSTEM commands. It connects as SYSDBA and sets the parameters, then restarts the instance for the changes to take effect, noting that MEMORY_TARGET can later be changed without a restart.

Uploaded by

Siva Kumar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
89 views

Memory Parameters

This document discusses setting Oracle memory parameters including MEMORY_MAX_TARGET, MEMORY_TARGET, SGA_TARGET, and PGA_AGGREGATE_TARGET using ALTER SYSTEM commands. It connects as SYSDBA and sets the parameters, then restarts the instance for the changes to take effect, noting that MEMORY_TARGET can later be changed without a restart.

Uploaded by

Siva Kumar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

ALTER SYSTEM SET MEMORY_MAX_TARGET = nM SCOPE = SPFILE;

ALTER SYSTEM SET MEMORY_TARGET = nM;


ALTER SYSTEM SET SGA_TARGET = 0;
ALTER SYSTEM SET PGA_AGGREGATE_TARGET = 0;

******************************************************************************

CONN / AS SYSDBA
-- Set the static parameter. Leave some room for possible future growth without
restart.
ALTER SYSTEM SET MEMORY_MAX_TARGET=6G SCOPE=SPFILE;

-- Set the dynamic parameters. Assuming Oracle has full control.


ALTER SYSTEM SET MEMORY_TARGET=5G SCOPE=SPFILE;
ALTER SYSTEM SET PGA_AGGREGATE_TARGET=0 SCOPE=SPFILE;
ALTER SYSTEM SET SGA_TARGET=0 SCOPE=SPFILE;

-- Restart instance.
SHUTDOWN IMMEDIATE;
STARTUP;

Once the database is restarted the MEMORY_TARGET parameter can be amended as


required without an instance restart.

ALTER SYSTEM SET MEMORY_TARGET=4G SCOPE=SPFILE;

*****************************************************************************
SQL>ALTER SYSTEM SET MEMORY_MAX_TARGET = 800M SCOPE = SPFILE; (must bounce database
if change it)
SQL>ALTER SYSTEM SET MEMORY_TARGET = 800M SCOPE = SPFILE; (dynamically can be
changed actually)
SQL>ALTER SYSTEM SET SGA_TARGET =0 SCOPE = SPFILE;
SQL>ALTER SYSTEM SET PGA_AGGREGATE_TARGET = 0 SCOPE = SPFILE;

You might also like