CentLinux | Learn How to Install CentOS/Rocky Linux Servers

Tuesday, February 23, 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.


Table of Contents:


Unmanaged Host Specification:

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


Add Hostnames to Local DNS Resolvers:

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

# echo “ appserver.mydomain.com 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.mydomain.com oms12c” >> C:\Windows\System32\drivers\etc\hosts
C:\Users\Ahmer> echo “ appserver.mydomain.com appserver” >> C:\Windows\System32\drivers\etc\hosts


Download OMA installation package from OMS:

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

$ export OMS_HOME = /u01/app/oracle/oms12cr2/oms
$ $OMS_HOME/bin/emcli login -username=sysman 
$ $OMS_HOME/bin/emcli sync
$ $OMS_HOME/bin/emcli get_supported_platforms
$ $OMS_HOME/bin/emcli get_agentimage -destination=/soft -platform="Microsoft Windows x64 (64-bit)" -version=
$ $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.


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


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.



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.


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 appserver.mydomain.com 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.

If you find this article useful? Consider supporting us by Buy Me A Coffee

No comments:

Post a Comment

© 2023 CentLinux. All Rights Reserved.