ORA-00845: MEMORY_TARGET not supported on this system on startup

In fase di startup del db può comparire il seguente messaggio

SQL> startup;
ORA-00845: MEMORY_TARGET not supported on this system on startup.

Questo vuol dire che il parametro del kernel "shared memory file system" /dev/shm non è correttamente dimensionato. Deve essere maggiore o uguale al parametro memory_max_target che nel caso di AMM coincide con la sga_max_size.

df -h /dev/shm
Filesystem      Size  Used Avail Use% Mounted on
tmpfs           7.0G  4.2G  2.9G  59% /dev/shm

SQL> show parameter sga_max_size;

NAME            TYPE           VALUE
-------------------------------------
sga_max_size    big integer    5056M


L'alert log fornisce il valore atteso per /dev/shm.

WARNING: You are trying to use the MEMORY_TARGET feature. This feature requires the /dev/shm file system to be mounted for at least 5301600256 bytes.
/dev/shm is either not mounted or is mounted with available space less than this size.
Please fix this so that MEMORY_TARGET can work as expected.
Current available is 2046783488 and used is 5469409280 bytes.
Ensure that the mount point is /dev/shm for this directory.
memory_target needs larger /dev/shm

Questi i valori da considerare nell'alert log:

current size : 2046783488 bytes
expected size: 5301600256 bytes (at least)

Modificare il valore della shared memory con almeno il valore atteso.

mount -t tmpfs shmfs -o size=5056M /dev/shm
oppure
mount -t tmpfs shmfs -o size=5301600256 /dev/shm

Verificare il valore nel vile /etc/fstab
tmpfs                   /dev/shm                tmpfs   size=7g         0 0

Nell'esempio è stato impostato a 7GB

Post popolari in questo blog

ORA-12154: TNS: il listener non è attualmente a conoscenza del servizio richiesto nel descrittore di connessione

Create e Drop Pluggable Database