Você está na página 1de 4

Out of Memory Problems on Oracle 10 / Solaris 10

Many kernel parameters have been replaced by so called resource controls in Solaris
10. It is possible to change resource controls using the prctl command. ll shared
memory and semaphore settings are no! handled via resource controls" so any
entries regarding shared memory or semaphores #shm $ sem% in /etc/system !ill be
ignored.
&ere is the procedure !e follo!ed to modify the kernel parameters on Solaris 10 /
Oracle 10.'.0.'.
(nlike earlier releases of Solaris" most of the system parameters needed to run
Oracle are already set properly" so the only one you need is the ma)imum shared
memory parameter. In earlier versions this !as called S&MM* and !as set by
editing the /etc/system +le and rebooting. ,ith Solaris 10 you set this by modifying a
-.esource /ontrol 0alue1. 2ou can do this temporarily by using prctl" but that is lost
at reboot so you !ill need to add the command to the oracle user3s .pro+le.
4he other option is to create a default pro5ect for the oracle user.
6 pro5add 7( oracle 78 9
:pro5ect.ma)7shm7memory;#priv"<0=>M?"deny%: user.oracle
,hat this does@
Makes a pro5ect named :user.oracle: in /etc/pro5ect !ith the user oracle as it3s only
member.
6 cat /etc/pro5ect
system@0@@@@
user.root@1@@@@
nopro5ect@'@@@@
default@A@@@@
group.staB@10@@@@
user.oracle@100@@oracle@@pro5ect.ma)7shm7memory
;#priv"<'=<=>C'=>"deny%
?ecause the name !as of the form :user.username: it becomes the oracle user3s
default pro5ect.

4he value of the ma)imum shared memory is set to <D?" you might !ant to use a
larger value here if you have more memory and s!ap.

Eo reboot is needed" the user !ill get the ne! value
at their ne)t login.
Eo! you can also modify the ma)7sem7ids Parameter@
6 pro5mod 7s 78 :pro5ect.ma)7sem7ids;#priv"'F>"deny%: 9
user.oracle
/heck the Paramters as (ser oracle
G prctl 7i pro5ect user.oracle
pro5ect@ 100@ user.oracle
EMH P.I0IIHDH 0I(H JID /4IOE .H/IPIHE4
pro5ect.ma)7contracts
privileged 10.08 7 deny 7
system '.1FD ma) deny 7
pro5ect.ma)7device7locked7memory
privileged 1'FM? 7 deny 7
system 1>.0H? ma) deny 7
pro5ect.ma)7port7ids
privileged K.1=8 7 deny 7
system >F.F8 ma) deny 7
pro5ect.ma)7shm7memory
privileged <.00D? 7 deny 7
system 1>.0H? ma) deny 7
pro5ect.ma)7shm7ids
privileged 1'K 7 deny 7
system 1>.KM ma) deny 7
pro5ect.ma)7msg7ids
privileged 1'K 7 deny 7
system 1>.KM ma) deny 7
pro5ect.ma)7sem7ids
privileged 'F> 7 deny 7
system 1>.KM ma) deny 7
pro5ect.ma)7crypto7memory
privileged <=KM? 7 deny 7
system 1>.0H? ma) deny 7
pro5ect.ma)7tasks
system '.1FD ma) deny 7
pro5ect.ma)7l!ps
system '.1FD ma) deny 7
pro5ect.cpu7shares
privileged 1 7 none 7
system >F.F8 ma) none 7
Lone.ma)7l!ps
system '.1FD ma) deny 7
Lone.cpu7shares
privileged 1 7 none 7

Você também pode gostar