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);
how the projmod and projadd command works in solaris
yatendra
20 Nov 08 at 11:26 pm
how does -f option works in projadd and projmod command
yatendra
20 Nov 08 at 11:47 pm
setfacl -s user::rwx,g::r–,o:—,d:user::rwx,d:g::r–,d:o:—,d:mask:rwx,d:user:yatendra:rwx yaten
yatendra
21 Nov 08 at 12:44 am