This content has been marked as final. Show 2 replies
We should not use the <AGENT_INSTANCE_HOME> location as <AGENT_HOME>.
Here i am providing the explanation of each location and what is the difference b/w the directories.
Oracle Management Agent Base directory:
Also referred to as <AGENT_BASE> or <AGENT_BASE_DIR>, this is the root of the 12c Agent installation.
* This contains multiple Homes for the Agent software bits, plugins, setuid binaries and the Agent State Home.
* The agentimage.properties file located in this directory contains the OS details and version of the Agent installation.
Management Agent Home:
Also referred to as <AGENT_HOME> or Core Home, this contains all the binaries required to configure and run the Oracle Management Agent on this host. The default location is <AGENT_BASE>/core/126.96.36.199.0.
* The bin directory contains binaries for the Agent.
* The cfgtoollogs directory contains the Agent installation and configuration logs.
* The jdk directory contains the Java used by the Agent.
* The sysman/admin directory contains the files used by the Oracle Management Agent for administrative tasks:
o metadata: contains the metric metadata for Agent core target types (such as hosts, agent etc).
o default_collection: contains the default metric collection frequencies for the Agent core target types (host, agent, etc).
o scripts: contains the scripts used for the metric collection for the agent core target types.
o nsupportedtzs.lst, supportedtzs.lst: List of timezones supported by the Agent.
Oracle Management Agent Instance Home:
Also referred to as the Agent State home or <AGENT_INSTANCE_HOME> or <EMSTATE>, this is the location where the 12c Agent instance files are created.
* The bin directory in this home contains wrapper scripts that set the appropriate environment variables and redirect to the executables/perl scripts in the <AGENT_HOME>/bin directory.
So, ideally you could start the 12c Agent using the emctl from <AGENT_HOME>/bin or the <AGENT_INSTANCE_HOME>/bin.
* The diag directory contains incidents and diagnostic dumps for the Agent.
* The sysman directory is accessible only to the OS user who has installed the Agent and in turn consists of the following important directories:
o config: Contains the configuration files for the Agent, including the main configuration file named emd.properties
o emd: Contains files with Target details such as targets.xml, blackouts.xml etc and also the information that the Agent has collected for the targets.
o log: Contains the log files for the Agent.
* This need not always be present under <AGENT_BASE>. In the case of NFS installations, the Agent State Directory is deployed on the remote hosts and not placed under <AGENT_BASE>.
Oracle Management Agent plugins directory:
This is the location containing the plugins installed at the Agent side. Default location is <AGENT_BASE>/plugins.
* All the Agent-side Plugins get deployed in this location.
* Each plugin directory has its own metric metadata, default_collections and scripts directories specific to the target types supported by that plugin.
* The list of plugins installed can be obtained from <AGENT_HOME>/sysman/install/plugins.txt.
* The status of the all the plugin installations can be viewed from <AGENT_HOME>/sysman/install/plugins.txt.status.
Thank you for the prompt response!
Please correct me if I'm wrong, but it sounds like the AGENT_INSTANCE_HOME is more for NFS (Shared) Agents than the typical/standard agent deployment. Would this be a fair statement? This would be the only time I might have more than one AGENT_INSTANCE_HOME for an AGENT_HOME? But they would not be on the same system, is my understanding.
Do you see the problem I have with using the suggested AGENT_HOME that changes based on the version of the Agent installed? I will use the correct AGENT_HOME but when the version changes it will require changes to environment variables that could/should be static.
With the Oracle DB, for example, the only time we change ORACLE_HOME is with a major version upgrade (migrating from 10.2 -> 11.2 or 11.1 -> 11.2) not with minor releases (PS 188.8.131.52 -> 184.108.40.206).
Although it seems 220.127.116.11.0 is considered 12cR1 and 18.104.22.168.0 is considered 12cR2. Is this correct? This is a deviation from the standard numbering, will this be the new standard for all of Oracle? For just EM or is this a special case?