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

      <legend id='31mGp'><style id='31mGp'><dir id='31mGp'><q id='31mGp'></q></dir></style></legend>
    3. <tfoot id='31mGp'></tfoot>

        Oracle 客户端 ORA-12541:TNS:无侦听器

        时间:2023-09-19
        <legend id='Ic4Lj'><style id='Ic4Lj'><dir id='Ic4Lj'><q id='Ic4Lj'></q></dir></style></legend>

            <bdo id='Ic4Lj'></bdo><ul id='Ic4Lj'></ul>

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

                <tbody id='Ic4Lj'></tbody>
              <tfoot id='Ic4Lj'></tfoot>

                  <i id='Ic4Lj'><tr id='Ic4Lj'><dt id='Ic4Lj'><q id='Ic4Lj'><span id='Ic4Lj'><b id='Ic4Lj'><form id='Ic4Lj'><ins id='Ic4Lj'></ins><ul id='Ic4Lj'></ul><sub id='Ic4Lj'></sub></form><legend id='Ic4Lj'></legend><bdo id='Ic4Lj'><pre id='Ic4Lj'><center id='Ic4Lj'></center></pre></bdo></b><th id='Ic4Lj'></th></span></q></dt></tr></i><div id='Ic4Lj'><tfoot id='Ic4Lj'></tfoot><dl id='Ic4Lj'><fieldset id='Ic4Lj'></fieldset></dl></div>
                  本文介绍了Oracle 客户端 ORA-12541:TNS:无侦听器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我是 Oracle 数据库的新手,但我遇到了一个问题.在我的数据库服务器 (server1) 侦听器和数据库实例上运行正常,我可以使用 sqlplus 连接到这个数据库.当我使用其他服务器连接到数据库时,我检查了 TNS 配置,它是正确的,但系统说:

                  <块引用>

                  错误:ORA-12541: TNS: 没有侦听器

                  我的数据库是 Oracle 10gR2

                  那么我该如何解决这个问题?

                  解决方案

                  需要设置oracle监听所有ip地址(默认只监听localhost连接)

                  步骤 1 - 编辑 listener.ora

                  该文件位于:

                  • Windows:%ORACLE_HOME% etworkadminlistener.ora.
                  • Linux:$ORACLE_HOME/network/admin/listener.ora

                  替换 localhost with 0.0.0.0

                  # ...听者 =(DESCRIPTION_LIST =(描述 =(地址 = (协议 = IPC)(密钥 = EXTPROC1521))(地址 = (协议 = TCP)(主机 = 0.0.0.0)(端口 = 1521))))# ...

                  第 2 步 - 重启 Oracle 服务

                  • Windows:WinKey + r

                    services.msc

                  • Linux (CentOs):

                    sudo systemctl restart oracle-xe

                  I am new on Oracle database, but I have one issue. On my Database server (server1) listener and database instance run correctly and I can use sqlplus to connect to this DB. When I connect to database by using other server, I check the TNS configuration and it is correct but system says:

                  ERROR:
                  ORA-12541: TNS:no listener
                  

                  My database is Oracle 10gR2

                  So how can I solve this issue?

                  解决方案

                  You need to set oracle to listen on all ip addresses (by default, it listens only to localhost connections.)

                  Step 1 - Edit listener.ora

                  This file is located in:

                  • Windows: %ORACLE_HOME% etworkadminlistener.ora.
                  • Linux: $ORACLE_HOME/network/admin/listener.ora

                  Replace localhost with 0.0.0.0

                  # ...
                  
                  LISTENER =
                    (DESCRIPTION_LIST =
                      (DESCRIPTION =
                        (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
                        (ADDRESS = (PROTOCOL = TCP)(HOST = 0.0.0.0)(PORT = 1521))
                      )
                    )
                  
                  # ...
                  

                  Step 2 - Restart Oracle services

                  • Windows: WinKey + r

                    services.msc
                    

                  • Linux (CentOs):

                    sudo systemctl restart oracle-xe
                    

                  这篇关于Oracle 客户端 ORA-12541:TNS:无侦听器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:如何在 Oracle SQL 中选择特定字符的子字符串? 下一篇:使用 SQL 生成日期范围

                  相关文章

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

                        <bdo id='oY6SU'></bdo><ul id='oY6SU'></ul>

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

                    1. <tfoot id='oY6SU'></tfoot>
                      <legend id='oY6SU'><style id='oY6SU'><dir id='oY6SU'><q id='oY6SU'></q></dir></style></legend>