Installing Oracle Management Agent on Windows - CentLinux


Tuesday, 23 February 2016

Installing Oracle Management Agent on Windows

Using AgentDeploy to Install Oracle Management Agent on Windows Oracle Management Agent (OMA) is one of the core components of Oracle Enterprise Manager Cloud Control 12c that enables you to convert an unmanaged host to a managed host in the Enterprise Management system. The Management Agent works in conjunction with the plug-ins to monitor the targets running on that managed host. Therefore, at any point in time, if you want to monitor a target running on a host, ensure that you first convert that unmanaged host to a managed host by installing a Management Agent, and then manually discover the targets running on it to start monitoring them.

There are different methods of installation of an OMA. In our previous post, we demonstrated installation of OMA using Push method on linux. However, in case of MS Windows, we have to install cygwin to use Push method. Therefore, In this article, instead of Push method, we use AgentDeploy Method to install the OMA on an unmanaged host.


Unmanaged Host Specification:

Operating System Microsoft Windows Server 2008 (64-bit)
Middleware Oracle Fusion Middleware (Forms and Reports Services) 11g
IP Address


1. Add Hostnames to Local DNS Resolvers:

Connect to OMS command line using ssh as root user and execute following to add the hostname.

[root@oms12c ~]# echo “ appserver” >> /etc/hosts

Connect to unmanaged host’s command line using CMD as Administrator and execute following to add the hostname in Local DNS Resolver.

C:\Users\Ahmer> echo “ oms12c” >> C:\Windows\System32\drivers\etc\hosts C:\Users\Ahmer> echo “ appserver” >> C:\Windows\System32\drivers\etc\hosts


2. Download OMA installation package from OMS:

Connect to OMS command line using ssh as oracle user and execute following commands:

[oracle@oms12c ~]$ export OMS_HOME = /u01/app/oracle/oms12cr2/oms [oracle@oms12c ~]$ $OMS_HOME/bin/emcli login -username=sysman [oracle@oms12c ~]$ $OMS_HOME/bin/emcli sync [oracle@oms12c ~]$ $OMS_HOME/bin/emcli get_supported_platforms [oracle@oms12c ~]$ $OMS_HOME/bin/emcli get_agentimage -destination=/soft -platform="Microsoft Windows x64 (64-bit)" -version= [oracle@oms12c ~]$ $OMS_HOME/bin/emcli logout

Above commands will download the OMA software (.zip file format) to destination directory i.e. /soft. In our case the filename was but it could be different when we downloaded it again.

Transfer this zip file to the unmanaged host and extract to c:\oracle\sw directory.


3. Open OMA port in the firewall:

OMA runs on port 3872, therefore, execute the following on unmanaged host to allow this port in Windows Firewall.

C:\Users\Ahmer> netsh advfirewall firewall add rule name="oma12c_port" dir=in protocol=TCP localport=3872 action=allow


4. Update Response File:

Go to the folder that contains OMA installation files.

C:\Users\Ahmer> cd c:\oracle\sw

Edit the response file as follows:

C:\oracle\sw> notepad agent.rsp

and add/update following parameters.

EM_INSTALL_TYPE="AGENT" EM_UPLOAD_PORT=4904 AGENT_REGISTRATION_PASSWORD=123 AGENT_INSTANCE_HOME=c:\\oracle\\agent12c\\agent_inst AGENT_PORT=3872 b_startAgent=true s_agentHomeName="agent12cR2"


5. Install OMA:

Run OMA Setup as Administrator.

C:\oracle\sw> agentDeploy.bat

OMA will be deployed automatically according to the parameters in the response file.

Ignore Setup.exe has stopped working error and close it from x button.


6. Add Non-Host Targets:

Login to OMS Console, you may see that the host target for our MS Windows Machine has been added therein.

To add non-host targets such as database, listener, etc. open the Setup menu from the top-right corner of the page. Open Add Targets and click on Add Targets Manually.

Select Add Non-Host Targets Using Guided Process (it Also Adds Related Targets) and select the target type as Oracle Fusion Middleware. Click on Add Using Guided Discovery.

At the next page it will ask you the following parameters:

Admin Server Host {Select the Server from the list}
Port 7001
Username weblogic
Password 123
Unique Domain Identifier ClassicDomain
Agent {Automatically selected when you select the Admins Server Host above}

Click on Continue to add non-host targets. Once the targets has been added, OMS will take sometime in collection, and then start showing statistics for the newly added targets.

No comments:

Post a comment