1
votes

Agent Connection to Instance Status
Failed Details
ORA-12505:

TNS:listener does not currently know of SID given in connect descriptor (DBD ERROR: OCIServerAttach)

Listener file

listener.ora Network Configuration File:

E:\app\Administrator\product\11.2.0\dbhome_1\network\admin\listener.ora

Generated by Oracle configuration tools.

LISTENER =

 (DESCRIPTION_LIST =

    (DESCRIPTION =

      (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))

      (ADDRESS = (PROTOCOL = TCP)(HOST = 169.254.52.209)(PORT = 1521))
    )
  )

ADR_BASE_LISTENER = E:\app\Administrator

tnsnames.ora file

tnsnames.ora Network Configuration File:

E:\app\Administrator\product\11.2.0\dbhome_1\network\admin\tnsnames.ora

# Generated by Oracle configuration tools.

EDSS =

  (DESCRIPTION =

    (ADDRESS = (PROTOCOL = TCP)(HOST = 169.254.52.209)(PORT = 1521))

    (CONNECT_DATA =

      (SERVER = DEDICATED)

      (SERVICE_NAME = edss)
    )
  )

The listener status

C:\Users\Administrator>lsnrctl status

LSNRCTL for 64-bit Windows: Version 11.2.0.1.0 - Production on 17-MAR-2014 09:06:11

Copyright (c) 1991, 2010, Oracle.  All rights reserved.

Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))

STATUS of the LISTENER
------------------------
Alias                    LISTENER

Version                  TNSLSNR for 64-bit Windows: Version 11.2.0.1.0 - Production

Start Date               16-MAR-2014 16:50:30

Uptime                   0 days 16 hr. 15 min. 45 sec

Trace Level              off

Security                 ON: Local OS Authentication

SNMP                     OFF

Listener Parameter File   E:\app\Administrator\product\11.2.0\dbhome_1\network\admin\listener.ora

Listener Log File         e:\app\administrator\diag\tnslsnr\server\listener\alert\log.xml

Listening Endpoints Summary...

(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1521ipc)))

(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=169.254.52.209)(PORT=1521)))

The listener supports no services

The command completed successfully

"Agent connection to instance status is failed. I could not find out where is the issue"
2

2 Answers

1
votes

The lsnrctl status command replied "The listener supports no services". There is a network listener running but it hasn't been told about any databases.

You need to add services to your listener.ora file. Add a sid_list to your listener.ora like below, then restart the listener.

 LISTENER =
 (DESCRIPTION_LIST =
  (DESCRIPTION =
   (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
   (ADDRESS = (PROTOCOL = TCP)(HOST = 169.254.52.209)(PORT = 1521))
  )
 )

SID_LIST_LISTENER =
(SID_LIST =
 (SID_DESC=
  (GLOBAL_DBNAME=edss.your.domain.here)
  (ORACLE_HOME=E:\app\Administrator\product\11.2.0\dbhome_1)
  (SID_NAME=edss)
 )
)

ADR_BASE_LISTENER = E:\app\Administrator
0
votes

There could be multiple reasons for this issue:

Recently I faced a similar problem with my Oracle 11g on Windows 7 machine. I found that in services.msc, OracleOraDb11g_home1ClrAgent was not started and its startup type was set to MANUAL.

I changed the startup type to AUTOMATIC and started OracleOraDb11g_home1ClrAgent manually, after that I was able to connect properly.

So the basic reason was that OraClrAgnt isn't running.

For other reasons you can check this link.