TNS-12505: TNS:listener does not currently know of SID given in connect descriptor TNS-12505: TNS:listener does not currently know of SID given in connect descriptor oracle oracle

TNS-12505: TNS:listener does not currently know of SID given in connect descriptor


You need to add the SID entry for XE in order to register the instance with the listener.

After installation of Oracle XE, everything looks good, but when you issue

C:\>sqlplus / as sysdbaSQL>shutdown immediateSQL>startupTNS-12505: TNS:listener does not currently know of SID given in connect descriptor

the instance will not register with the listener.

So please edit your listener.ora like this:

SID_LIST_LISTENER =  (SID_LIST =     (SID_DESC =       (SID_NAME = XE)       (ORACLE_HOME = C:\oraclexe\app\oracle\product\10.2.0\server)     )     (SID_DESC =        (SID_NAME = PLSExtProc)        (ORACLE_HOME = D:\oraclexe\app\oracle\product\10.2.0\server)        (PROGRAM = extproc)     )     (SID_DESC =       (SID_NAME = CLRExtProc)       (ORACLE_HOME = D:\oraclexe\app\oracle\product\10.2.0\server)       (PROGRAM = extproc)     )  )

This issue came up when I installed Oracle XE on Windows 7. I did not face this problem on Windows XP. In general, this entry should not be necessary, because the instance should register with the listener automatically. Running Oracle XE on Linux (Fedora), there is no need to add XE to the sid-list.


this worked for me - I did all of the above then changed:

jdbc.databaseurl=jdbc:oracle:thin:@localhost:1521:xe

to:

jdbc.databaseurl=jdbc:oracle:thin:@localhost:1521/xe


After a change of ip in our oracle virtual machine, the listener never worked again. Finally these command solved the problem (where 192.168.10.200 is the new ip)

[oracle@oracle admin]$ sqlplus / as sysdba

SQL*Plus: Release 11.2.0.1.0 Production on Tue May 10 12:57:37 2016

Copyright (c) 1982, 2009, Oracle. All rights reserved.

Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production With the Partitioning, OLAP, Data Mining and Real Application Testing options

SQL> alter system set local_listener='(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.10.200)(PORT=1521))' scope=both;

System altered.

SQL> alter system register;

System altered.

SQL> exit