My Oracle Support Banner

Enterprise Manager Cloud Control Listener Metric 'TNS_ERRORS' Fails with Can't locate Encode/ConfigLocal.pm in @INC (Doc ID 1633203.1)

Last updated on MARCH 08, 2017

Applies to:

Enterprise Manager for Oracle Database - Version 12.1.0.2.0 and later
Information in this document applies to any platform.
metric collection error in Enterprise Manager 12c

Symptoms

 The Enterprise Manager Cloud Control Metric TNS_ERRORS (which runs against a Listener target) fails with the following error:-

Can't locate Encode/ConfigLocal.pm in @INC 

This error message can be seen in the following ways:- 

1) From the agent home page/monitoring/metric issues tab

 

2) From All targets/Listener/<listener  home page>/Oracle Listener Drop Down Menu/Monitoring/Metric Collection Errors

3) From attempting to run the TNS_ERRORS metric manually using:-

emctl control agent runCollection <listenerName>:oracle_listener TNS_ERRORS

eg.

C:\12103agent\core\12.1.0.3.0\bin>emctl control agent runCollection LISTENER11G_machine2:oracle_listener TNS_ERRORS

Oracle Enterprise Manager Cloud Control 12c Release 3
Copyright (c) 1996, 2013 Oracle Corporation. All rights reserved.
---------------------------------------------------------------
EMD runCollection error:
TNS_ERRORS:TNS_ERRORS:em_error=Can't locate Encode/ConfigLocal.pm in @INC (@INC contains: C:\12103agent\plugins
\oracle.sysman.db.agent.plugin_12.1.0.5.0\scripts C:/12103agent\core\12.1.0.3.0\\perl\bin C:/12103agent\core\12.1.0.3.0\perl\lib
C:/12103agent\core\12.1.0.3.0\perl\lib\site_perl C:/12103agent\core\12.1.0.3.0\perl\site\lib C:/12103agent\core\12.1.0.3.0\sysman\admin
\scripts C:/12103agent\core\12.1.0.3.0\sysman\admin\scripts\Net-DNS-0.48\lib C:/12103agent\core\12.1.0.3.0\bin C:/12103agent\core
\12.1.0.3.0\bin C:/12103agent\core\12.1.0.3.0\sysman\admin\scripts\libnet-1.19 C:/12103agent/core/12.1.0.3.0/perl/lib C:/12103agent/core
/12.1.0.3.0/perl/site/lib .) at C:/12103agent\core\12.1.0.3.0\perl\lib/Encode.pm line 53.

4) From navigating to the Oracle_Listener target in the metrics browser, and clicking on the TNS_ERRORS metric.

Cause

To view full details, 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 a vibrant support community of peers and Oracle experts.