监听状态显示:   Linux Error: 111: Connection refused

时间:2015-10-31 01:44:32   收藏:0   阅读:1757

现象:查看侦听状态时显示连接拒绝连接的提示。


[oracle@ocp ~]$ lsnrctl status


LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 30-OCT-2015 21:48:08


Copyright (c) 1991, 2009, Oracle.  All rights reserved.


Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))

TNS-12541: TNS:no listener

 TNS-12560: TNS:protocol adapter error

  TNS-00511: No listener

   Linux Error: 111: Connection refused

原因:/etc/hosts 里没有加入localhost .

127.0.0.1   ocp localhost

写全就可以 了

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!