Kernel setup for Solaris 10 using project files - Special for Oracle10g

1. Recommended method for modifying the /etc/project file is to use the "projadd" and "projmod" :

a.

bash> projadd -c "Oracle" 'user.oracle'

b.

bash> projmod -s -K "project.max-shm-memory=(privileged,10GB,deny)" 'user.oracle'

c. verify with

bash> cat /etc/project

or

bash> prctl -i project user.oracle

2. Resource Control assignments made in this way (in the /etc/project file) are permanent, and will survive a system re-boot.

3. There is also an "on-the-fly" way to temporarily set Resource Control assignments using the prctl(1) command.

a. Should we need to temporarily increase the setting to 48 GB:
For example, assuming the preceding /etc/project

bash> prctl -n project.max-shm-memory -i project user.oracle
project: 100: user.oracle
NAME PRIVILEGE VALUE FLAG ACTION RECIPIENT
project.max-shm-memory
privileged 16.0GB - deny -
system 16.0EB max deny -
bash> prctl -n project.max-shm-memory -r -v 48GB -i project user.oracle
bash> prctl -n project.max-shm-memory -i project user.oracle
project: 100: user.oracle
NAME PRIVILEGE VALUE FLAG ACTION RECIPIENT
project.max-shm-memory
privileged <strong>48</strong> .0GB - deny -
system 16.0EB max deny

b. fix parameter ; entry new value on max-shm

bash> vi /etc/project

values such as 48GB instead of the 51539607552

project.max-shm-memory=(privileged, 51539607552, deny);
Printed from: http://sysinfo.bascomp.org/solaris/kernel-setup-for-solaris-10-using-project-files-special-for-oracle10g/ .
© 2012.

3 Comments   »

RSS feed for comments on this post

Leave a Reply