title: ora:12505:TNS: listener does not currently know of SID given in connect descriptor (DBD ERROR: OCIServerAttach)
body: <p>Agent Connection to Instance
   Status<br>
   Failed
   Details<br>
   ORA-12505: </p>
  
  <blockquote>
    <p>TNS:listener does not currently know of SID given in connect descriptor (DBD ERROR: OCIServerAttach)</p>
  </blockquote>
  
  <p>Listener file</p>
  
  <p><strong>listener.ora Network Configuration File:</strong> </p>
  
  <p>E:\app\Administrator\product\11.2.0\dbhome_1\network\admin\listener.ora</p>
  
  <pre><code>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
  </code></pre>
  
  <p><strong>tnsnames.ora</strong> file</p>
  
  <p>tnsnames.ora Network Configuration File: </p>
  
  <p>E:\app\Administrator\product\11.2.0\dbhome_1\network\admin\tnsnames.ora</p>
  
  <pre><code># Generated by Oracle configuration tools.
  
  EDSS =
  
    (DESCRIPTION =
  
      (ADDRESS = (PROTOCOL = TCP)(HOST = 169.254.52.209)(PORT = 1521))
  
      (CONNECT_DATA =
  
        (SERVER = DEDICATED)
  
        (SERVICE_NAME = edss)
      )
    )
  </code></pre>
  
  <p>The listener status</p>
  
  <pre><code>C:\Users\Administrator&gt;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"
  </code></pre>