在Solaris 10上安裝Oracle 10g時,Oracle本身安裝成功,但在創建數據庫的時候發生了錯誤,錯誤信息為:
CODE:ORA-27102 "Out of Memory"在/etc/system 下添加了推薦的關於share memory的參數,重起系統後還是沒有效果,搜索 了一下,得到了一個解決方案:
CODE:shminfo_shmmax is an obsoletes tuneable, which is replaced by the following resource control project.max-shm-memory, which in turns defaults to 1/4 of physical memory if not set.
I would suggest
groupadd dba
useradd -g dba -d ${ORACLE_HOME} -m -s /bin/bash oracle
change permissions etc on ORACLE_HOME and so on.
then
projadd -U oracle -G dba -c 'Ora DB' -p 162 user.oracle
projmod -sK 'project.max-shm-memory=(priv,48g,deny)' user.oracle
then log in as oracle and check the value via
prctl -n project.max-shm-memory -i project user.oracle用以上的方法,再次創建數據庫,就沒有問題了。