Oracle TNS:为我的服务 tnsping 时没有侦听器错误

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/9367135/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-19 00:37:45  来源:igfitidea点击:

Oracle TNS: No Listener error while tnsping for my service

oracleoracle11gtns

提问by Mohamed

I just Installed Oracle 11g on windows 7 64bit, and when I tried to ping using tnspingI faced this error TNS-12541: TNS:no listener.

我刚刚在 Windows 7 64 位上安装了 Oracle 11g,当我尝试使用 ping 时tnsping遇到了这个错误TNS-12541: TNS:no listener

So, I tried to start the listener using LSNRCTL> startalso I faced this error:

所以,我尝试使用LSNRCTL> start我也遇到了这个错误来启动监听器:

TNS-12560: TNS:protocol adapter error
TNS-00530: Protocol adapter error

回答by Praveen Alur

Set ORACLE_HOMEand try starting the Listener again.

设置ORACLE_HOME并尝试再次启动监听器。