zoukankan      html  css  js  c++  java
  • 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:Oracleproduct11.2.0dbhome_1)
          (SID_NAME = LOCALDB)
        )
    

    Finally, restart the listener by command:

    > lsnrctl stop
    > lsnrctl start
    

    Done!

    喜欢请赞赏一下啦^_^

    微信赞赏

    支付宝赞赏

  • 相关阅读:
    k8s升级
    k8s常用命令kubeadm
    k8s部署安装-更新时间2020-10-5(docker)
    centos7安装后的优化-2019-10-12更新
    gitlab安装后出现的web IDE显示报错问题
    奋斗的路上
    Spring Boot之过滤器
    java 并发
    jar包使用
    找不到xsd文件思路
  • 原文地址:https://www.cnblogs.com/lkj371/p/14887759.html
Copyright © 2011-2022 走看看