Solaris10的上安裝Oracle時需要調整的系統引數

xiaoli發表於2009-07-03

【參考】819-7063.pdf、B32313-02

我們知道solaris上安裝Oracle需要調整system引數。在solaris9中需要調整7個引數

noexec_user_stack
semsys:seminfo_semmni
semsys:seminfo_semmns
semsys:seminfo_semmsl
semsys:seminfo_semvmx
shmsys:shminfo_shmmax
shmsys:shminfo_shmmni

到了solaris10後,廢棄了其中三個引數,並且不在建議直接修改system引數,而是使用命令修改。

如下4個引數(和原引數的對應關係參考官方文件):

project.max-sem-ids
process.max-sem-nsems
project.max-shm-memory
project.max-shm-ids


檢視系統引數
# id -p // to verify the project id
uid=0(root) gid=0(root) projid=1 (user.root)
# prctl -n project.max-shm-memory -i project user.root
# prctl -n project.max-sem-ids -i project user.root

修改系統引數

# prctl -n project.max-shm-memory -v 4gb -r -i project user.root
# prctl -n project.max-sem-ids -v 256 -r -i project user.root


# su - oracle
$ id -p
uid=100(oracle) gid=100(dba) projid=100(group.dba)
$ exit

# projmod -sK "project.max-shm-memory=(privileged,4G,deny)" group.dba
# cat /etc/project 驗證檢視


修改PID

bash-3.00# projadd -U oracle -p 100 -c "oracle parameters" user.oracle
bash-3.00#

bash-3.00# cat project
system:0::::
user.root:1::::
noproject:2::::
default:3::::
group.staff:10::::
user.oracle:100:oracle parameters:oracle::
bash-3.00# su - oracle


bash-3.00# projmod -sK "project.max-shm-memory=(privileged,4G,deny)" user.oracle
bash-3.00#
bash-3.00#
bash-3.00# cat /etc/project
system:0::::
user.root:1::::
noproject:2::::
default:3::::
group.staff:10::::
user.oracle:100:oracle parameters:oracle::project.max-shm-memory=(privileged,2147483648,deny)
bash-3.00#


bash-3.00# projmod -sK "project.max-sem-ids=(privileged,100,deny)" user.oracle
bash-3.00# projmod -sK "process.max-sem-nsems=(privileged,256,deny)" user.oracle
bash-3.00# projmod -sK "project.max-shm-ids=(privileged,100,deny)" user.oracle
bash-3.00# cat /etc/project
system:0::::
user.root:1::::
noproject:2::::
default:3::::
group.staff:10::::
user.oracle:100:oracle parameters:oracle::process.max-sem-nsems=(privileged,256,deny);project.max-sem-ids=(privileged,100,deny);project.max-shm-memory=(privileged,2147483648,deny)
bash-3.00#
bash-3.00#

[@more@]

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/60144/viewspace-1023735/,如需轉載,請註明出處,否則將追究法律責任。

相關文章