open user session in backgroup with shell script

Posted on 2009-12-22
Last Modified: 2013-12-21
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
Question by:sachinonnet
    LVL 48

    Expert Comment

    su -c oracle 'prctl -n project.max-shm-memory -v 400gb -r -i project default'
    LVL 1

    Author Comment

    i tried this but oracle user dosen't have privileges

    prctl: cannot set process privileges for pid 14874: Not owner
    LVL 68

    Accepted Solution

    prctl -n project.max-shm-memory -v 400gb -r -p 14874 -i project default
    Maybe ...

    LVL 23

    Expert Comment

    This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.

    Featured Post

    Training Course: Java/J2EE and SOA

    This course will cover both core and advanced Java concepts like Database connectivity, Threads, Exception Handling, Collections, JSP, Servlets, XMLHandling, and more. You'll also learn various Java frameworks like Hibernate and Spring.

    Join & Write a Comment

    Suggested Solutions

    Title # Comments Views Activity
    substr - oracle 5 49
    Right Function in Oracle SQL Query 6 39
    Backing Up Ipset 9 49
    Oracle Pivot 2 20
    Truncate is a DDL Command where as Delete is a DML Command. Both will delete data from table, but what is the difference between these below statements truncate table <table_name> ?? delete from <table_name> ?? The first command cannot be …
    Note: this article covers simple compression. Oracle introduced in version 11g release 2 a new feature called Advanced Compression which is not covered here. General principle of Oracle compression Oracle compression is a way of reducing the d…
    This video explains at a high level about the four available data types in Oracle and how dates can be manipulated by the user to get data into and out of the database.
    This video shows how to copy an entire tablespace from one database to another database using Transportable Tablespace functionality.

    728 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    20 Experts available now in Live!

    Get 1:1 Help Now