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 FEBRUARY 03, 2020

Applies to:

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


 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 <listener_name>_<hostname>:oracle_listener TNS_ERRORS


<Agent Base>\core\\bin>emctl control agent runCollection <LISTENER_NAME>_<HOSTNAME2>: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: <Agent Base>\plugins
\oracle.sysman.db.agent.plugin_12.\scripts <Agent Base>\core\\\perl\bin <Agent Base>\core\\perl\lib
<Agent Base>\core\\perl\lib\site_perl <Agent Base>\core\\perl\site\lib <Agent Base>\core\\sysman\admin
\scripts <Agent Base>\core\\sysman\admin\scripts\Net-DNS-0.48\lib <Agent Base>\core\\bin <Agent Base>\core
\\bin <Agent Base>\core\\sysman\admin\scripts\libnet-1.19 <Agent Base>/core/ <Agent Base>/core
/ .) at <Agent Base>\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!

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.