Silent-Install Method for Installation of Agent12c on Windows. {CYGWIN not required.}

In this document I have explained how easily you can install Oracle Agent12c without using “CYGWIN” software. It was recommended that If you have to install Oracle Agent12c on windows server you have to install and configure CYGWIN first. However If you do not want to install CYGWIN there is one alternate method {silent Install} as well.

Using silent install method you can install Oracle Agent on windows either with or without using the “Response file”.

In this example I have installed Agent12c on one of my windows server without using  response file.

OMS Server Name = “hantestdb1.test.com”
Windows Server Name = “houtestdb1.test.com”
Step 1: Navigate to OMS Home and login and Synchronized to SL using “sysman” credentials.

[oracle@hantestdb1.test.com bin]$ pwd
/app/oracle/product/middleware/oms12cr2/oms/bin

[oracle@hantestdb1.test.com bin]$ ./emcli login -username=sysman -password=formula123
Login successful

[oracle@hantestdb1.test.com bin]$ ./emcli sync
Synchronized successfully

Step 2: Get the list of available agent softwares for supported platforms.

[oracle@hantestdb1.test.com bin]$ ./emcli get_supported_platforms
Getting list of platforms …
Check the logs at /app/oracle/product/middleware/oms12cr2/gc_inst/em/EMGC_OMS1/sysman/emcli/setup/.emcli/agent.log
About to access self-update code path to retrieve the platforms list..

Getting Platforms list  …
———————————————–
Version = 12.1.0.2.0
Platform = Linux x86-64
———————————————–
Version = 12.1.0.2.0
Platform = Microsoft Windows (32-bit)
———————————————–
Version = 12.1.0.2.0
Platform = Microsoft Windows x64 (64-bit)
———————————————–
Platforms list displayed successfully.

Step 3: Download the Agent software compatible with your Windows Server.

[oracle@hantestdb1.test.com bin]$
[oracle@hantestdb1.test.com bin]$ ./emcli get_agentimage -destination=/tmp/agent12c_silent/ -platform=”Microsoft Windows x64 (64-bit)” -version=12.1.0.2.0

Platform:Microsoft Windows x64 (64-bit)
Destination:/tmp/agent12c_silent/
=== Partition Detail ===
Space free : 3 GB
Space required : 1 GB
Check the logs at /app/oracle/product/middleware/oms12cr2/gc_inst/em/EMGC_OMS1/sysman/emcli/setup/.emcli/get_agentimage_2014-12-05_05-56-33-AM.log
Setting property ORACLE_HOME to:/app/oracle/product/middleware/oms12cr2/oms
calling pulloneoffs with arguments:/app/oracle/product/middleware/oms12cr2/oms/data2/oms12cr2/omsshared/54/CF64262D86B08797E040FE0A2401565412.1.0.2.0windows_x64
Check this logs for more information: /app/oracle/product/middleware/oms12cr2/oms/sysman/prov/agentpush/logs

Step 4: Transfer the downloaded ZIP file to a temporary directory on the destination host where you want to install the Management Agent. On the destination host, extract the contents of the ZIP file using the Unzip utility.
## ON-DESTINATION HOST {houtestdb1.test.com}

Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.
C:\Users\AppAdmin>d:
D:\>cd AgentCore
D:\AgentCore>dir
Volume in drive D is New Volume
Volume Serial Number is 04C8-BC5D
Directory of D:\AgentCore
12/05/2014  08:42 AM    <DIR>          .
12/05/2014  08:42 AM    <DIR>          ..
12/05/2014  05:56 AM         6,222,065 12.1.0.2.0_PluginsOneoffs_233.zip
12/05/2014  08:10 AM             4,024 agent.rsp
09/01/2014  06:07 AM       248,650,151 agentcoreimage.zip
09/01/2014  06:07 AM             8,977 agentDeploy.bat
12/05/2014  08:17 AM           806,256 agentDeploy.log
09/01/2014  06:06 AM               206 agentimage.properties
09/01/2014  06:07 AM           167,936 unzip.exe
7 File(s)    255,859,615 bytes
2 Dir(s)  145,714,135,040 bytes free
Step 5: Install Oracle Agent using the “agentDeploy.bat” file. Below mentioned are 4 parameters which you have to provide.

“OMS_HOST” {OMS server on which OEM software is installed}
“EM_UPLOAD_PORT” {EM upload port which will be used by agent to connect with OMS}
“AGENT_BASE_DIR” {Location where Oracle agent will be installed}
“AGENT_REGISTRATION_PASSWORD” {Password required to secure/unsecure or to resynchronize an agent}

D:\AgentCore>agentDeploy.bat AGENT_BASE_DIR=D:\app\oracle\product\agent12c OMS_HOST=hantestdb1.test.com EM_UPLOAD_PORT=4904 AGENT_REGISTRATION_PASSWORD=formula1

D:\AgentCore
Present working directory:D:\AgentCore
Archive location:D:\AgentCore  directory
AGENT_BASE_DIR
AGENT_BASE_DIR
D:\app\oracle\product\agent12c
Agent base directory:D:\app\oracle\product\agent12c
D:\app\oracle\product\agent12c
OMS_HOST
OMS_HOST
hantestdb1.test.com
OMS Host:hantestdb1.test.com
hantestdb1.test.com
EM_UPLOAD_PORT
4904
AGENT_REGISTRATION_PASSWORD
formula1
Agent base directory:D:\app\oracle\product\agent12c
OMS Host:hantestdb1.test.com
Agent image loc : “D:\AgentCore”
D:\app\oracle\product\agent12c configonlyfalse
Reading the properties file: “D:\AgentCore”\agentimage.properties
1 file(s) copied.
This is the version 12.1.0.2.0
This is the type core
This is the aru id 233
“Validating the OMS_HOST & EM_UPLOAD_PORT”

“D:\app\oracle\product\agent12c\core\12.1.0.2.0”
“Executing command : D:\app\oracle\product\agent12c\core\12.1.0.2.0\jdk\bin\java -classpath D:\app\oracle\product\agent12c\core\12.1.0.2.0\jlib\agentInstaller.jar:D:\app\oracle\product\agent12c\core\12.1.0.2.0\oui\jlib\OraInstaller.jar oracle.sysman.agent.installer.AgentInstaller D:\app\oracle\product\agent12c\core\12.1.0.2.0 “D:\AgentCore” D:\app\oracle\product\agent12c -prereq”

Validating oms host & port with url: http://hantestdb1.test.com:4904/empbs/genwallet
Validating oms host & port with url: https://hantestdb1.test.com:4904/empbs/genwallet
Return status:3

“D:\AgentCore”\12.1.0.2.0_PluginsOneoffs_233.zip
“Executing command : D:\app\oracle\product\agent12c\core\12.1.0.2.0\jdk\bin\java -classpath D:\app\oracle\product\agent12c\core\12.1.0.2.0\jlib\OraInstaller.jar:D:\app\oracle\product\agent12c\core\12.1.0.2.0\sysman\jlib\emInstaller.jar:D:\app\oracle\product\agent12c\core\12.1.0.2.0\jlib\xmlparserv2.jar:D:\app\oracle\product\agent12c\core\12.1.0.2.0\jlib\srvm.jar:D:\app\oracle\product\agent12c\core\12.1.0.2.0\jlib\emCfg.jar:D:\app\oracle\product\agent12c\core\12.1.0.2.0\sysman\jlib\agentInstaller.jar oracle.sysman.agent.installer.AgentInstaller D:\app\oracle\product\agent12c\core\12.1.0.2.0”

Executing agent install prereqs…
Executing command: D:\app\oracle\product\agent12c\core\12.1.0.2.0\oui\bin\setup.exe -ignoreSysPrereqs -prereqchecker -silent -ignoreSysPrereqs -waitForCompletion  -prereqlogloc D:\app\oracle\product\agent12c\core\12.1.0.2.0\cfgtoollogs\agentDeploy -entryPoint oracle.sysman.top.agent_Complete -detailedExitCodes PREREQ_CONFIG_LOCATION=D:\app\oracle\product\agent12c\core\12.1.0.2.0\prereqs
Prereq Logs Location:D:\app\oracle\product\agent12c\core\12.1.0.2.0\cfgtoollogs\agentDeploy\prereq<timestamp>.log
Agent install prereqs completed successfully

Cloning the agent home…
Executing command: D:\app\oracle\product\agent12c\core\12.1.0.2.0\oui\bin\setup.exe -ignoreSysPrereqs -clone -forceClone -silent -waitForCompletion -nowait ORACLE_HOME=D:\app\oracle\product\agent12c\core\12.1.0.2.0   AGENT_BASE_DIR=D:/app/oracle/product/agent12c AGENT_BASE_DIR=D:/app/oracle/product/agent12c OMS_HOST=hanoemxx.xxx.com EM_UPLOAD_PORT=4904 AGENT_REGISTRATION_PASSWORD=formula1 -noconfig  ORACLE_HOME_NAME=agent12c1 -force b_noUpgrade=true AGENT_PORT=-1
Clone Action Logs Location:C:\Program Files\Oracle\Inventory\logs\cloneActions<timestamp>.log
Cloning of agent home completed successfully

Attaching sbin home…
Executing command: D:\app\oracle\product\agent12c\core\12.1.0.2.0\oui\bin\setup.exe -ignoreSysPrereqs -attachHome -waitForCompletion -nowait ORACLE_HOME=D:\app\oracle\product\agent12c\sbin ORACLE_HOME_NAME=sbin12c1 -force
Attach Home Logs Location:D:\app\oracle\product\agent12c\core\12.1.0.2.0\cfgtoollogs\agentDeploy\AttachHome<timestamp>.log
Attach home for sbin home completed successfully.

Updating home dependencies…
Executing command: D:\app\oracle\product\agent12c\core\12.1.0.2.0\oui\bin\setup.exe -ignoreSysPrereqs -updateHomeDeps -waitForCompletion HOME_DEPENDENCY_LIST={D:\app\oracle\product\agent12c\sbin:D:\app\oracle\product\agent12c\core\12.1.0.2.0,} -invPtrLoc D:\app\oracle\product\agent12c\core\12.1.0.2.0\oraInst.loc -force
Update Home Dependencies Location:D:\app\oracle\product\agent12c\core\12.1.0.2.0\cfgtoollogs\agentDeploy\UpdateHomeDeps<timestamp>.log
Update home dependency completed successfully.

Performing the agent configuration…
Executing command: D:\app\oracle\product\agent12c\core\12.1.0.2.0\oui\bin\runConfig.bat ORACLE_HOME=D:\app\oracle\product\agent12c\core\12.1.0.2.0 RESPONSE_FILE=D:\app\oracle\product\agent12c\core\12.1.0.2.0\agent.rsp ACTION=configure MODE=perform COMPONENT_XML={oracle.sysman.top.agent.11_1_0_1_0.xml} RERUN=true
Configuration Log Location:D:\app\oracle\product\agent12c\core\12.1.0.2.0\cfgtoollogs\cfgfw\CfmLogger<timestamp>.log
Agent Configuration completed successfully

Agent deployment log location:
D:\app\oracle\product\agent12c\core\12.1.0.2.0\cfgtoollogs\agentDeploy\agentDeploy_2014-12-05_08-56-44-AM.log
Agent deployment completed successfully.

Step 6: Navigate to Agent Home Bin directory and verify the status of Agent using below mentioned command.

D:\AgentCore>cd ..
D:\>cd app\oracle\product\agent12c\agent_inst\bin

D:\app\oracle\product\agent12c\agent_inst\bin>emctl status agent

Oracle Enterprise Manager Cloud Control 12c Release 2
Copyright (c) 1996, 2014 Oracle Corporation.  All rights reserved.
—————————————————————
Agent Version     : 12.1.0.2.0
OMS Version       : 12.1.0.2.0
Protocol Version  : 12.1.0.1.0
Agent Home        : D:/app/oracle/product/agent12c/agent_inst
Agent Binaries    : D:\app\oracle\product\agent12c\core\12.1.0.2.0
Agent Process ID  : 4520
Parent Process ID : 4724
Agent URL         : https://hantestdb1.test.com:1830/emd/main/
Repository URL    : https://hantestdb1.test.com:4904/empbs/upload
Started at        : 2014-12-05 08:59:25
Started by user   : HANXXX.XXX.COM$
Last Reload       : (none)
Last successful upload                       : 2014-12-05 09:10:36
Last attempted upload                        : 2014-12-05 09:10:36
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    : 67.58%
Collection Status                            : Collections enabled
Heartbeat Status                             : Ok
Last attempted heartbeat to OMS              : 2014-12-05 09:10:30
Last successful heartbeat to OMS             : 2014-12-05 09:10:30
Next scheduled heartbeat to OMS              : 2014-12-05 09:11:30
—————————————————————
Agent is Running and Ready

D:\app\oracle\product\agent12c\agent_inst\bin>

You can ask me for any doubt or queries on my email “sharma.deepak345@gmail.com

Please follow and like us:
RSS
Follow by Email
Facebook
Google+
http://emdeepaksharma.com/2015/10/silent-install-method-for-installation-of-agent12c-on-windows-cygwin-not-required/
LinkedIn
Instagram

One thought on “Silent-Install Method for Installation of Agent12c on Windows. {CYGWIN not required.}

Leave a Reply

Your email address will not be published. Required fields are marked *