My Oracle Support Banner

Database Control (dbconsole) homepage shows "Failed to connect to database instance: ORA-12537: TNS:connection closed" under "agent connection to instance" (Doc ID 1563982.1)

Last updated on MARCH 12, 2021

Applies to:

Enterprise Manager for Oracle Database - Version to [Release 10.2 to 11.2]
Information in this document applies to any platform.


 The Database home page shows:-

"The database target is currently unavailable. The state of the components are listed below"

The database instance shows as 'down'
The listener shows as 'up'
The "agent connection to instance" shows as failed accompanied by the message:-

Failed to connect to database instance: ORA-12537: TNS:connection closed (DBD ERROR: OCIServerAttach).

Underneath this section, the charts and graphs are showing on the homepage, and it is possible for example to go to the 'administration' tab, and view the tablespaces etc.

It is also possible to connect to the database in sqlplus.

$ORACLE_HOME/<host>_<sid>/sysman/log/emagent.trc shows:-

Thread-4094688144 ERROR engine: [oracle_database,orcl,Response] : nmeegd_GetMetricData failed : ORA-01017: invalid username/password; logon denied (DBD ERROR: OCISessionBegin)

or alternatively similar errors can be seen via:- 

click on the 'hostname' (under the 'general' section).
click on 'targets'
click on the agent target (eg. hostname:<port>)
view the "alerts" section
Under here is "metric collection errors:x" (where x is a number)
click on the number

check the message column for the relevant errors - eg. "ORA-01017: invalid username/pa..."






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.