Skip to Main Content

Oracle Database Discussions

ORA-12505, TNS Listener does not currently know of SID given in connect descriptor

ziutekDec 17 2017 — edited Dec 20 2017

I change port in listener.ora and after computer restart I get this error when trying to connect to hr user. Ealier it works fine.

Db is on the same computer and os. I've googled this problem, but it looks fine as far as I can tell, but I'm new to this.

Here is listener.ora:

SID_LIST_LISTENER =

  (SID_LIST =

  (SID_DESC =

  (SID_NAME = PLSExtProc)

  (ORACLE_HOME = I:\program\oracledb\app\oracle\product\11.2.0\server)

  (PROGRAM = extproc)

  )

  (SID_DESC =

  (SID_NAME = CLRExtProc)

  (ORACLE_HOME = I:\program\oracledb\app\oracle\product\11.2.0\server)

  (PROGRAM = extproc)

  )

  )

LISTENER =

  (DESCRIPTION_LIST =

  (DESCRIPTION =

  (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))

  (ADDRESS = (PROTOCOL = TCP)(HOST = qwerty-Komputer)(PORT = 1521))

  )

  )

DEFAULT_SERVICE_LISTENER = (XE)

and tnsnames.ora

XE =

  (DESCRIPTION =

  (ADDRESS = (PROTOCOL = TCP)(HOST = qwerty-Komputer)(PORT = 1522))

  (CONNECT_DATA =

  (SERVER = DEDICATED)

  (SERVICE_NAME = XE)

  )

  )

EXTPROC_CONNECTION_DATA =

  (DESCRIPTION =

  (ADDRESS_LIST =

  (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))

  )

  (CONNECT_DATA =

  (SID = PLSExtProc)

  (PRESENTATION = RO)

  )

  )

ORACLR_CONNECTION_DATA =

  (DESCRIPTION =

  (ADDRESS_LIST =

  (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))

  )

  (CONNECT_DATA =

  (SID = CLRExtProc)

  (PRESENTATION = RO)

  )

  )

I don't know if it's connected, but I tried twice to install db, because of not enough space at the first time.

connection properties:

screen.png

This post has been answered by AndrewSayer on Dec 18 2017
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 17 2018
Added on Dec 17 2017
22 comments
15,784 views