NOTE:
SGA max SIZE and target should be 40% of server RAM
PGA limit shoud be 20% of SGA
PGA target should be half of PGA limit
---------------------------------------------------------------------------------
SQL*Plus: Release 12.2.0.1.0 Production on Fri Feb 3 15:17:07 2023
Copyright (c) 1982, 2019, Oracle. All rights reserved.
Connected to:
Oracle Database 12c Enterprise Edition Release 12.2.0.1.0 - 64bit Production
SQL> show parameter sga
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
allow_group_access_to_sga boolean FALSE
lock_sga boolean FALSE
pre_page_sga boolean TRUE
sga_max_size big integer 8G
sga_min_size big integer 0
sga_target big integer 8G
unified_audit_sga_queue_size integer 1048576
SQL> show parameter pga
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
pga_aggregate_limit big integer 4G
pga_aggregate_target big integer 2G
SQL> alter system set sga_max_size=26G scope =spfile;
System altered.
SQL> alter system set sga_target=26G scope=spfile;
System altered.
SQL> alter system set pga_aggregate_limit=6G scope=spfile;
System altered.
SQL> alter system set pga_aggregate_target=3G scope=spfile;
System altered.
bounce the database to talke efect.