ORA-12514 TNS:listener does not currently know of service requested in connect descriptor

Posted 云居

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了ORA-12514 TNS:listener does not currently know of service requested in connect descriptor相关的知识,希望对你有一定的参考价值。

 

In my circumstances the error was due to the fact the listener did not have the db\'s service registered. I solved this by registering the services. Example:

My descriptor in tnsnames.ora:

LOCALDB =
  (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
    (CONNECT_DATA =
      (SERVER = DEDICATED)
      (SERVICE_NAME = LOCALDB)
    )
  )

So, I proceed to register the service in the listener.ora manually:

SID_LIST_LISTENER =
    (SID_DESC =
      (GLOBAL_DBNAME = LOCALDB)
      (ORACLE_HOME = C:\\Oracle\\product\\11.2.0\\dbhome_1)
      (SID_NAME = LOCALDB)
    )

Finally, restart the listener by command:

> lsnrctl stop
> lsnrctl start

Done!

以上是关于ORA-12514 TNS:listener does not currently know of service requested in connect descriptor的主要内容,如果未能解决你的问题,请参考以下文章

ORA-12514: TNS:listener does not currently know of service requested in connect descriptor

ORA-12514: TNS:listener does not currently know of service requested in connect

ORA-12514: TNS: listener does not currently know of service requested in connect descriptor

Listener refused the connection with the following error:ORA-12514, TNS:listener does not currently

ORA-12514 TNS listener does not currently know of service re

plsql登录提示ORA-12514:TNS:listener does not currently know of service…………