SQL> select * from v$version;
使用spfile
SQL> show parameter spfile
调整前
SQL> set wrap off
SQL> set linesize 159
SQL> show parameter sga
调整为小于sga_max_size值
SQL> alter system set sga_target=200m;
System altered.
SQL> show parameter sga
调整为大于sga_max_size值
SQL> alter system set sga_target=500m;
alter system set sga_target=500m
按照静态参数的方式调整
SQL> alter system set sga_target=500m scope=spfile;
System altered.
SQL> show parameter sga
重启验证
SQL> shutdown immediate
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> startup
ORACLE instance started.
SQL> show parameter sga