Tag Archives: ORACLE Error

[Solved] Oracle Error: SGA_MAX_SIZE cannot be set to more than MEMORY_TARGET

Oracle reports error: SGA_MAX_SIZE cannot be set to more than MEMORY_TARGET

When logging in to the database, you will be prompted that the database listening does not exist

Log in to the oracle account and log in to the database server to check whether the database monitoring is enabled

lsnrctl status Check the database monitoring, the result is as follows, the database service is not started.

SQL>startupSqlplus / as sysdba sqlplus interface login as dba

Start the database, the error message is

SGA_MAX_SIZE 536870912 cannot be set to more than MEMORY_TARGET 411041792

Problem analysis : In Oracle 11g, MAX(SGA+PGA)<= memory_target, when SGA is greater than memory_target, an exception may occur when using startup nomount

Processing steps: At this time, the following steps need to be performed:

SQL> create pfile=’/home/oracle/init0321.ora’ from spfile;

File created.

SQL> !vi /home/oracle/init0321.ora

Then modify:

*.memory_target=1073741824

*.sga_max_size=805306368

*.sga_target=805306368

SQL> startup pfile=’/home/oracle/init0321.ora’;

SQL> create spfile from pfile=’/home/oracle/init0321.ora’;

SQL> shutdown immediate;

Database closed.

Database dismounted.

ORACLE instance shut down.

SQL> startup;

The database starts normally, and you can log in to the database using the tool normally.

How to Solve ORACLE Error: ORA-27102: out of memory

SQL> startup
ORA-27102: out of memory
Linux-x86_64 Error: 28: No space left on device
Additional information: 2097152

[oracle@kingdee-test ~]$ cat /etc/redhat-release
CentOS release 6.9 (Final)
[oracle@kingdee-test ~]$ uname -a
Linux kingdee-test 2.6.32-696.el6.x86_64 #1 SMP Tue Mar 21 19:29:05 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

Memory usage.

$ free -m
total used free shared buffers cached
Mem: 15866 337 15529 0 15 130
-/+ buffers/cache: 191 15675
Swap: 7999 0 7999

 

Solution:

vi/etc/sysctl.conf max kernel.shmall kernel.shmmax

kernel.shmall = 5368709120
kernel.shmmax = 12884901888

# sysctl -p