AW: Different environment in initscripts?
"Klier, Martin (A.T.U)" <[email protected]>
| Newsgroups | gmane.linux.suse.oracle.general |
|---|---|
| Message-ID | <[email protected]> |
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
[email protected]
www.atu.eu
-----Ursprüngliche Nachricht-----
Von: Silviu Marin-Caea [mailto:[email protected]]
Gesendet: Mittwoch, 5. Dezember 2007 12:29
An: [email 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: [email protected]
For additional commands, email: [email protected]
Please see http://www.suse.com/oracle/ before posting
--
To unsubscribe, email: [email protected]
For additional commands, email: [email protected]
Please see http://www.suse.com/oracle/ before posting