Different environment in initscripts? 2007-12-05 - By Silviu Marin-Caea
Back 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: suse-oracle-unsubscribe@(protected) For additional commands, email: suse-oracle-help@(protected) Please see http://www.suse.com/oracle/ before posting
|
|