oraclememory-managementshared-memory

Oracle startup not possible - ORA-00845: MEMORY_TARGET not supported on this system - but memory size seems to be fine


We get an ORA-00845: MEMORY_TARGET not supported on this system on startup.

However, df -h shows

tmpfs                 7,9G  4,0K  7,9G   1% /dev/shm. 

Which indicates that there is more than enough memory availabe. Any ideas what could be the cause?


Solution

  • You might be using Automatic Memory Management (AMM).

    AMM uses two initialization parameters:

    The shared memory file system should have enough space to accommodate the MEMORY_TARGET and MEMORY_MAX_TARGET values.

    To verify:

    SQL> show parameter memory
    
    NAME                                 TYPE        VALUE
    ------------------------------------ ----------- ------------------------------
    hi_shared_memory_address             integer     0
    memory_max_target                    big integer 6096M
    memory_target                        big integer 6096M
    shared_memory_address                integer     0
    

    In UNIX/Linux, you will have to set the shared memory file system accordingly.

    Verify:

    df -h /dev/shm
    

    Set:

    mount -t tmpfs shmfs -o size=<some_value_in_number_with_size> /dev/shm
    

    For example,

    mount -t tmpfs shmfs -o size=4096m /dev/shm