Agent restarts and .bash_profile
Date: Mon, 14 May 2018 13:43:40 -0500
Message-ID: <CAFN=diC3HCGns5QvLojDLiVZnE2kJ+S-vupHJLHbigNytS=0Ug_at_mail.gmail.com>
Does anyone know WHY when restarting Oracle's management agent through OEM, the appropriate ".*profile" is not sourced, corresponding to which account you run the agent as? That's a rather confusing sentence so restating with examples:
If I restart the management agent in OEM and we run the agent under the OS account "oracle", I'd expect at some point "~oracle/.bash_profile" to be sourced within the agent's environment. Yet I know this doesn't happen because we have a couple of important env variables set in ~oracle/.bash_profile and when checking for these using something like "cat /proc/<AGENT'S PID>/environ | xargs -n 1 -0" I don't see these variables.
I've checked this under RHEL and Oracle 11g / 12c. I first noticed the issue when applying the latest agent PSU to a group of agents via an OEM plan, then validated the same situation happens if, under the agent's home page, I restart it in OEM. Normally all management agent restarts are performed in a standard script we have which runs through stop, start, clearstate, upload, status for the given agent, among other things.
-- Dave -- http://www.freelists.org/webpage/oracle-lReceived on Mon May 14 2018 - 20:43:40 CEST