<i id='SmiqO'><tr id='SmiqO'><dt id='SmiqO'><q id='SmiqO'><span id='SmiqO'><b id='SmiqO'><form id='SmiqO'><ins id='SmiqO'></ins><ul id='SmiqO'></ul><sub id='SmiqO'></sub></form><legend id='SmiqO'></legend><bdo id='SmiqO'><pre id='SmiqO'><center id='SmiqO'></center></pre></bdo></b><th id='SmiqO'></th></span></q></dt></tr></i><div id='SmiqO'><tfoot id='SmiqO'></tfoot><dl id='SmiqO'><fieldset id='SmiqO'></fieldset></dl></div>

      <legend id='SmiqO'><style id='SmiqO'><dir id='SmiqO'><q id='SmiqO'></q></dir></style></legend>

      <tfoot id='SmiqO'></tfoot>
      • <bdo id='SmiqO'></bdo><ul id='SmiqO'></ul>

      <small id='SmiqO'></small><noframes id='SmiqO'>

      1. ORA-12514 TNS:listener 当前不知道连接描述符中请求的服务

        时间:2023-09-20
        <tfoot id='AGkCg'></tfoot>

          1. <legend id='AGkCg'><style id='AGkCg'><dir id='AGkCg'><q id='AGkCg'></q></dir></style></legend>
            • <bdo id='AGkCg'></bdo><ul id='AGkCg'></ul>

              <i id='AGkCg'><tr id='AGkCg'><dt id='AGkCg'><q id='AGkCg'><span id='AGkCg'><b id='AGkCg'><form id='AGkCg'><ins id='AGkCg'></ins><ul id='AGkCg'></ul><sub id='AGkCg'></sub></form><legend id='AGkCg'></legend><bdo id='AGkCg'><pre id='AGkCg'><center id='AGkCg'></center></pre></bdo></b><th id='AGkCg'></th></span></q></dt></tr></i><div id='AGkCg'><tfoot id='AGkCg'></tfoot><dl id='AGkCg'><fieldset id='AGkCg'></fieldset></dl></div>
                  <tbody id='AGkCg'></tbody>
                • <small id='AGkCg'></small><noframes id='AGkCg'>

                  本文介绍了ORA-12514 TNS:listener 当前不知道连接描述符中请求的服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我们有一个在本地运行的应用程序,但遇到以下错误:

                  We have an application running locally where we're experiencing the following error:

                  ORA-12514: TNS:listener 当前不知道请求的服务在连接描述符中

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

                  我已经使用 TNSPing 测试了连接,该连接正确解析并且我尝试了 SQLPlus 尝试连接,但失败并出现与上述相同的错误.我在 SQLPlus 中使用了这个语法:

                  I've tested the connection using TNSPing which resolved correctly and I tried SQLPlus to try connecting, which failed with the same error as above. I used this syntax for SQLPlus:

                  sqlplus username/password@addressname[or host name]
                  

                  我们已经证实:

                  • 服务器上的 TNS 侦听器正在运行.
                  • 服务器上的 Oracle 本身正在运行.

                  我们不知道对此环境进行了任何更改.还有什么我们可以测试的吗?

                  We don't know of any changes that were made to this environment. Anything else we can test?

                  推荐答案

                  我遇到了这个问题,解决方法是确保 tnsnames.ora 中的 SERVICE_NAME 是一个数据库中的有效服务名称.要找出有效的服务名称,您可以在 oracle 中使用以下查询:

                  I had this issue and the fix was to make sure in tnsnames.ora the SERVICE_NAME is a valid service name in your database. To find out valid service names, you can use the following query in oracle:

                  select value from v$parameter where name='service_names'
                  

                  一旦我将 tnsnames.ora 更新为:

                  TEST =
                     (DESCRIPTION =
                      (ADDRESS_LIST =
                        (ADDRESS = (PROTOCOL = TCP)(HOST = *<validhost>*)(PORT = *<validport>*))
                      )
                      (CONNECT_DATA =
                        (SERVER = DEDICATED)
                        (SERVICE_NAME = *<servicenamefromDB>*)
                      )
                  )
                  

                  然后我跑了:

                  sqlplus user@TEST
                  

                  成功!侦听器基本上是在告诉您,根据数据库,您使用的任何 service_name 都不是有效的服务.

                  Success! The listener is basically telling you that whatever service_name you are using isn't a valid service according to the DB.

                  (*我从 Win7 客户端工作站运行 sqlplus 到远程数据库并责怪 DBA ;) *)

                  (*I was running sqlplus from Win7 client workstation to remote DB and blame the DBAs ;) *)

                  这篇关于ORA-12514 TNS:listener 当前不知道连接描述符中请求的服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:oracle中的base64编解码 下一篇:如何在 Oracle SQL Developer 中使用变量?

                  相关文章

                  <legend id='3kqzU'><style id='3kqzU'><dir id='3kqzU'><q id='3kqzU'></q></dir></style></legend>

                  <small id='3kqzU'></small><noframes id='3kqzU'>

                  <i id='3kqzU'><tr id='3kqzU'><dt id='3kqzU'><q id='3kqzU'><span id='3kqzU'><b id='3kqzU'><form id='3kqzU'><ins id='3kqzU'></ins><ul id='3kqzU'></ul><sub id='3kqzU'></sub></form><legend id='3kqzU'></legend><bdo id='3kqzU'><pre id='3kqzU'><center id='3kqzU'></center></pre></bdo></b><th id='3kqzU'></th></span></q></dt></tr></i><div id='3kqzU'><tfoot id='3kqzU'></tfoot><dl id='3kqzU'><fieldset id='3kqzU'></fieldset></dl></div>

                    • <bdo id='3kqzU'></bdo><ul id='3kqzU'></ul>
                      <tfoot id='3kqzU'></tfoot>