AW: [suse-oracle] Different environment in initscripts? 2007-12-05 - By Klier, Martin (A.T.U)
Back Hi,
the /etc/profile construct is not sourced by init scripts.
Do it manually by ". /etc/profile" so you invoke /etc/init.d/oracle.sh automatically, too. But have care, by default (out of orarun package) it's only valid for the login of the oracle user. It's almost everytime a good ideat to extend that to the root user, too.
Regards -- Freundliche Gr??e
i.A. Martin Klier Systemadministration / Datenbanken
A.T.U Auto-Teile-Unger Handels GmbH & Co. KG Dr.-Kilian-Str. 4 92637 Weiden i. d. OPf.
Tel.: +49 961 - 306 5663 Fax: +49 961 - 306 5982
martin.klier@(protected) www.atu.eu
-- --Urspr?ngliche Nachricht-- -- Von: Silviu Marin-Caea [mailto:silviu_marin-caea@(protected)] Gesendet: Mittwoch, 5. Dezember 2007 12:29 An: suse-oracle@(protected) Betreff: [suse-oracle] Different environment in initscripts?
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
-- To unsubscribe, email: suse-oracle-unsubscribe@(protected) For additional commands, email: suse-oracle-help@(protected) Please see http://www.suse.com/oracle/ before posting
|
|