Different environment in initscripts?

Silviu Marin-Caea <[email protected]>
Newsgroups gmane.linux.suse.oracle.general
Message-ID <[email protected]>
If I give this command as root, from the prompt
su - oracle --command "srvctl stop instance -d prod -i prod1 -o immediate"
it works as expected, no problem.

If I use it in an initscript, it will give the error: prod1 wrong instance 
name.  Obviously, there's something wrong with the environment.  But 
shouldn't it be the same, specifically the login environment of the oracle 
user?  Isn't su - oracle supposed to do that?  What is different for 
initscripts at shutdown?

Also, for RAC, if I give /etc/init.d/init.crs stop at the prompt, it goes down 
almost immediately.

Observing the server while it reboots I have noticed that the CRS shutdown is 
much slower, and it leaves two ons processes running.  How can the difference 
be explained?

Thanks


-- 
To unsubscribe, email: [email protected]
For additional commands, email: [email protected]
Please see http://www.suse.com/oracle/ before posting
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.