Oracle DBA Tips and Techniques

By Arjun Raja

SILENT INSTALL OF 12c Cloud Control Enterprise Manager agent .

Posted by Arjun Raja on February 1, 2012

SILENT INSTALL OF 12c Cloud Control Enterprise Manager agent :

Download the oracle12c agent software from technet.oracle.com-
Navigate to Enterprise manager area and then Enterprise Manager Agent Downloads (All Releases)
Finally under Enterprise Manager Agent 12.1 files for Self Update Feature .
Download the appropriate file as per your Operating system.
I chose this file for my AIX env – Agent file for AIX5L Based Systems
Copy this file – 12.1.0.1.0_AgentSoftware_212.sar to your server where the agent is being installed.

cd /u01/oracle/stage > ls

12.1.0.1.0_AgentSoftware_212.sar

unzip 12.1.0.1.0_AgentSoftware_212.sar

creates a directory called archives

cd archives

unzip 12.1.0.1.0_AgentCore_212.zip

Now make a copy of the agent.rsp file before editing it -

Make the following changes -

#——————————————————————————-
#OMS_HOST: OMS host info required to connect to OMS
#EM_UPLOAD_PORT: OMS port info required to connect to OMS
#AGENT_REGISTRATION_PASSWORD: Agent Registration Password needed to
# establish a secure connection to the OMS.
#AGENT_INSTANCE_HOME: Agent instance home is the location of agent state directory.
#AGENT_PORT: Agent port on which the agent process should be started.
#b_startAgent: Agent will not be started after configuration if the value specified is false.
#ORACLE_HOSTNAME: Fully qualified domain name of host where is the agent is deployed.
#s_agentHomeName:Customized Oracle home name for the agent home. Example: s_agentHomeName=”agent12gR1″
#——————————————————————————-
OMS_HOST=”middba3″
EM_UPLOAD_PORT=”4900″
AGENT_REGISTRATION_PASSWORD=”oracle12c”
AGENT_INSTANCE_HOME=”/u01/oracle/agent12c”
AGENT_PORT=”3872″
b_startAgent=true
ORACLE_HOSTNAME=”devu036.xxxxxx.com”
s_agentHomeName=”agent12gR1″
#——————————————————————————-
#s_agentServiceName: Sets the agent Service Name and this variable can be
# used to overrite the agent service name calculated by the install. This is
# required for only Windows.
# Example:
# s_agentServiceName = “Oracleagent12gAgent” ; default value
# s_agentServiceName = “GridAgent” ; User specified value
#——————————————————————————-
#s_agentServiceName=””

####################################################################################
#Please Don’t change the values of these variables
####################################################################################
#——————————————————————————-
#EM_INSTALL_TYPE: install type
#——————————————————————————-
EM_INSTALL_TYPE=”AGENT”

Save the file agent.rsp -

Make sure the OMS server ip address and alias has an entry in the /etc/hosts if there is no dns entry.

10.1.xxxx.xxx middba3

NOW INSTALL AGENT WITH SILENT INSTALL .

cd /u01/oracle/stage/archives > ./agentDeploy.sh AGENT_BASE_DIR=”/u01/oracle/agent12c” RESPONSE_FILE=”/u01/oracle/stage/archives/agent.rsp”
AGENT_BASE_DIR=/u01/oracle/agent12c

-e Validating the OMS_HOST & EM_UPLOAD_PORT
Executing command : /u01/oracle/agent12c/core/12.1.0.1.0/jdk/bin/java -classpath /u01/oracle/agent12c/core/12.1.0.1.0/jlib/agentInstaller.jar:/u01/oracle/agent12c/core/12.1.0.1.0/oui/jlib/OraInstaller.jar oracle.sysman.agent.installer.AgentInstaller /u01/oracle/agent12c/core/12.1.0.1.0 /u01/oracle/stage/archives /u01/oracle/agent12c -prereq

Validating oms host & port with url: http://middba3:4900/empbs/genwallet
Validating oms host & port with url: https://middba3:4900/empbs/genwallet
Return status:3
Unzipping the agentcoreimage.zip to /u01/oracle/agent12c ….
12.1.0.1.0_PluginsOneoffs_212.zip
-e
Checking the ownership of agent base directory:/u01/oracle/agent12c
Checking for proper ownership on the agent base directory.
Checks whether the agent base directory is owned by the agent user oracle and that its parent directory is owned by either the agent user or root.
….
Login name is : oracle & file owner is : oracle
……..
Agent Base directory verification completed Successfully.
-e
Ownership check completed.
Executing command : /u01/oracle/agent12c/core/12.1.0.1.0/jdk/bin/java -d64 -classpath /u01/oracle/agent12c/core/12.1.0.1.0/oui/jlib/OraInstaller.jar:/u01/oracle/agent12c/core/12.1.0.1.0/oui/jlib/xmlparserv2.jar:/u01/oracle/agent12c/core/12.1.0.1.0/oui/jlib/srvm.jar:/u01/oracle/agent12c/core/12.1.0.1.0/oui/jlib/emCfg.jar:/u01/oracle/agent12c/core/12.1.0.1.0/jlib/agentInstaller.jar:/u01/oracle/agent12c/core/12.1.0.1.0/oui/jlib/share.jar oracle.sysman.agent.installer.AgentInstaller /u01/oracle/agent12c/core/12.1.0.1.0 /u01/oracle/stage/archives /u01/oracle/agent12c AGENT_BASE_DIR=/u01/oracle/agent12c AGENT_BASE_DIR=/u01/oracle/agent12c RESPONSE_FILE=/u01/oracle/stage/archives/agent.rsp

Executing agent install prereqs…
Executing command: /u01/oracle/agent12c/core/12.1.0.1.0/oui/bin/runInstaller -ignoreSysPrereqs -prereqchecker -silent -ignoreSysPrereqs -waitForCompletion -prereqlogloc /u01/oracle/agent12c/core/12.1.0.1.0/cfgtoollogs/agentDeploy -entryPoint oracle.sysman.top.agent_Complete -detailedExitCodes PREREQ_CONFIG_LOCATION=/u01/oracle/agent12c/core/12.1.0.1.0/prereqs -J-DORACLE_HOSTNAME=devu036.xxxxxx.com
Prereq Logs Location:/u01/oracle/agent12c/core/12.1.0.1.0/cfgtoollogs/agentDeploy/prereq.log
Agent install prereqs completed successfully

Cloning the agent home…
Executing command: /u01/oracle/agent12c/core/12.1.0.1.0/oui/bin/runInstaller -ignoreSysPrereqs -clone -forceClone -silent -waitForCompletion -nowait ORACLE_HOME=/u01/oracle/agent12c/core/12.1.0.1.0 -responseFile /u01/oracle/stage/archives/agent.rsp AGENT_BASE_DIR=/u01/oracle/agent12c AGENT_BASE_DIR=/u01/oracle/agent12c RESPONSE_FILE=/u01/oracle/stage/archives/agent.rsp -noconfig ORACLE_HOME_NAME=agent12gR1 -force
Clone Action Logs Location:/u01/oracle/oraInventory/logs/cloneActions.log
Cloning of agent home completed successfully

Attaching sbin home…
Executing command: /u01/oracle/agent12c/core/12.1.0.1.0/oui/bin/runInstaller -ignoreSysPrereqs -attachHome -waitForCompletion -nowait ORACLE_HOME=/u01/oracle/agent12c/sbin ORACLE_HOME_NAME=sbin12g1 -force
Attach Home Logs Location:/u01/oracle/agent12c/core/12.1.0.1.0/cfgtoollogs/agentDeploy/AttachHome.log
Attach home for sbin home completed successfully.

Updating home dependencies…
Executing command: /u01/oracle/agent12c/core/12.1.0.1.0/oui/bin/runInstaller -ignoreSysPrereqs -updateHomeDeps -waitForCompletion HOME_DEPENDENCY_LIST=”/u01/oracle/agent12c/sbin:/u01/oracle/agent12c/core/12.1.0.1.0″ -invPtrLoc /u01/oracle/agent12c/core/12.1.0.1.0/oraInst.loc -force
Update Home Dependencies Location:/u01/oracle/agent12c/core/12.1.0.1.0/cfgtoollogs/agentDeploy/UpdateHomeDeps.log
Update home dependency completed successfully.

Performing the agent configuration…
Executing command: /u01/oracle/agent12c/core/12.1.0.1.0/oui/bin/runConfig.sh ORACLE_HOME=/u01/oracle/agent12c/core/12.1.0.1.0 RESPONSE_FILE=/u01/oracle/agent12c/core/12.1.0.1.0/agent.rsp ACTION=configure MODE=perform COMPONENT_XML={oracle.sysman.top.agent.11_1_0_1_0.xml} RERUN=true
Configuration Log Location:/u01/oracle/agent12c/core/12.1.0.1.0/cfgtoollogs/cfgfw/CfmLogger.log
Agent Configuration completed successfully

The following configuration scripts need to be executed as the “root” user.
#!/bin/sh
#Root script to run
/u01/oracle/agent12c/core/12.1.0.1.0/root.sh
To execute the configuration scripts:
1. Open a terminal window
2. Log in as “root”
3. Run the scripts
Agent Deployment Successful.
Agent deployment log location:
/u01/oracle/agent12c/core/12.1.0.1.0/cfgtoollogs/agentDeploy/agentDeploy_.log
Agent deployment completed successfully.
sid1d:/u01/oracle/stage/archives>

As root user run > /u01/oracle/agent12c/core/12.1.0.1.0/root.sh

Check status of agent -

cd /u01/oracle/agent12c/bin >

./emctl status agent

Oracle Enterprise Manager 12c Cloud Control 12.1.0.1.0
Copyright (c) 1996, 2011 Oracle Corporation. All rights reserved.
—————————————————————
Agent Version : 12.1.0.1.0
OMS Version : 12.1.0.1.0
Protocol Version : 12.1.0.1.0
Agent Home : /u01/oracle/agent12c
Agent Binaries : /u01/oracle/agent12c/core/12.1.0.1.0
Agent Process ID : 25952500
Parent Process ID : 15597582
Agent URL : https://devu036.xxxxxxx.com:3872/emd/main/
Repository URL : https://middba3:4900/empbs/upload
Started at : 2012-02-01 08:44:43
Started by user : oracle
Last Reload : (none)
Last successful upload : 2012-02-01 08:59:49
Last attempted upload : 2012-02-01 08:59:49
Total Megabytes of XML files uploaded so far : 0.04
Number of XML files pending upload : 0
Size of XML files pending upload(MB) : 0
Available disk space on upload filesystem : 32.16%
Collection Status : Collections enabled
Last attempted heartbeat to OMS : 2012-02-01 08:59:51
Last successful heartbeat to OMS : 2012-02-01 08:59:51

—————————————————————
Agent is Running and Ready
sid1d:/u01/oracle/agent12c/bin>

About these ads

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

 
Follow

Get every new post delivered to your Inbox.

%d bloggers like this: