Tuesday, March 21, 2017

OMS responded illegally [ERROR- Failed to Update Target Type Metadata] in 13cR2



                       I have been working on applying latest February patches to 13cR2 oem agents recently. Once the oem agents are patched successfully, When I was checking status of the agent happen to find out Heartbeat status shows up error OMS responded illegally [ERROR- Failed to Update Target Type Metadata] in 13cR2.



[oracle@Sajidserver ~]$ emctl status agent

Oracle Enterprise Manager Cloud Control 13c Release 2
Copyright (c) 1996, 2016 Oracle Corporation.  All rights reserved.
---------------------------------------------------------------

Last successful upload                       : (none)

Last attempted upload                        : (none)
Total Megabytes of XML files uploaded so far : 0
Number of XML files pending upload           : 290
Size of XML files pending upload(MB)         : 4.47
Available disk space on upload filesystem    : 42.52%
Collection Status                            : Collections enabled
Heartbeat Status       : OMS responded illegally [ERROR- Failed to Update Target Type Metadata]
Last attempted heartbeat to OMS              : 2017-03-21 15:11:37
Last successful heartbeat to OMS             : (none)
Next scheduled heartbeat to OMS              : 2017-03-21 15:12:07


Solution:


1. Stop the oem agents (emctl stop agent)
2. Rollback the oem agent psu or any plugin patches applied 
    (opatch rollback -id 25414194)
3. Start the agents (emctl start agent)
4. Check agent status  (emctl status agent)