Metric Collection Errors: Use Of Uninitialized Value $size In Substr At HasCluster.pm Line 11236 (Doc ID 1904485.1)

Last updated on MARCH 08, 2017

Applies to:

Enterprise Manager for Oracle Database - Version 12.1.0.3.0 and later
Information in this document applies to any platform.

Symptoms

After upgrade from 10g Grid Control and after promoting the targets in EM12C 12.1.0.3, the RAC Clusters are getting alerts with the following error:

ERROR
-----------------------
 "ERROR|Use of uninitialized value $size in substr at /u01/app/oracle/agent/agent12c/plugins/oracle.sysman.db.agent.plugin_12.1.0.5.0/scripts/has/HasCluster.pm line 11236"


STEPS
-----------------------
The issue can be reproduced at will with the following steps:
1. Stop and remove the targets from 10g Grid Control
2. Install and promote RAC Cluster targets in 12c Cloud Control
3. Alerts thrown with the following error:
Error message received: ERROR|Use of uninitialized value $size in substr at /u01/app/oracle/agent/agent12c/plugins/oracle.sysman.db.agent.plugin_12.1.0.5.0/scripts/has/HasCluster.pm line 11236.


Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms