troubleshooting Question

open user session in backgroup with shell script

Avatar of sachinonnet
sachinonnetFlag for India asked on
Oracle DatabaseShell Scripting
4 Comments1 Solution1414 ViewsLast Modified:
for installation of oracle need to set shared memory value for default project.
below code we are using to set these values.
echo "set noexec_user_stack=1" >> /etc/system
echo "set semsys:seminfo_semmni=100" >> /etc/system
echo "set semsys:seminfo_semmns=1024" >> /etc/system
echo "set semsys:seminfo_semmsl=256" >> /etc/system
echo "set semsys:seminfo_semvmx=32767" >> /etc/system
echo "set shmsys:shminfo_shmmax=4294967295" >> /etc/system
echo "set shmsys:shminfo_shmmin=1" >> /etc/system
echo "set shmsys:shminfo_shmmni=100" >> /etc/system
echo "set shmsys:shminfo_shmseg=10" >> /etc/system
echo "* *" >> /etc/system
where as above code dosenot available immediatly  and need to to user prctl to set shared memory.
prctl -n project.max-shm-memory -v 400gb -r -i project default
but this command require default project user session to on. else it raise an below error.
prctl: default: No controllable process found in task, project, or zone.
to resolve this error i decide to open user session in backgroud.
su oracle&
but this won't work while executing it from shell script.
OS : solaris 10
give any pointer to reolve this.

thanks and regards
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 4 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 4 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros