码迷,mamicode.com
首页 > 其他好文 > 详细

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

时间:2021-06-16 17:56:58      阅读:0      评论:0      收藏:0      [点我收藏+]

标签:esc   ora-12514   div   product   rip   name   ddr   mst   tin   

 

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

标签:esc   ora-12514   div   product   rip   name   ddr   mst   tin   

原文地址:https://www.cnblogs.com/lkj371/p/14887759.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!