My Oracle Support Banner

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

Last updated on MARCH 08, 2017

Applies to:

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


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

Can't locate Encode/ 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


C:\12103agent\core\\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/ in @INC (@INC contains: C:\12103agent\plugins
\oracle.sysman.db.agent.plugin_12.\scripts C:/12103agent\core\\\perl\bin C:/12103agent\core\\perl\lib
C:/12103agent\core\\perl\lib\site_perl C:/12103agent\core\\perl\site\lib C:/12103agent\core\\sysman\admin
\scripts C:/12103agent\core\\sysman\admin\scripts\Net-DNS-0.48\lib C:/12103agent\core\\bin C:/12103agent\core
\\bin C:/12103agent\core\\sysman\admin\scripts\libnet-1.19 C:/12103agent/core/ C:/12103agent/core
/ .) at C:/12103agent\core\\perl\lib/ line 53.

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


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.