在radhat5的Oralce11:startup時報錯:
1 | SQL> startup |
顯示:
ORA-00845: MEMORY_TARGET not supported on this system
來自Oracle的官方解析是:
Starting with Oracle Database 11g, the Automatic Memory Management feature requires more shared memory (/dev/shm)and file descriptors. The size of the shared memory should be at least the greater of MEMORY_MAX_TARGET and MEMORY_TARGET for each Oracle instance on the computer. If MEMORY_MAX_TARGET or MEMORY_TARGET is set to a non zero value, and an incorrect size is assigned to the shared memory, it will result in an ORA-00845 error at startup.
打開終端:
1 | df -h | grep shm |
顯示:
tmpfs 2.0G 0 2.0G 0% /dev/shm
修改一下tmpfs值,將2G修改大點。
打開終端:
1 | cp /etc/fstab /etc/fstab_back |
修改內容:
tmpfs /dev/shm tmpfs defaults,size=16G 0 0
通過重啟使這個配置生效