[grid@rac22 ~]$ lsnrctl status
LSNRCTL for Linux: Version 11.2.0.1.0 – Production on 23-AUG-2013 10:31:27
Copyright (c) 1991, 2009, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER)))
TNS-12541: TNS:no listener
TNS-12560: TNS:protocol adapter error
TNS-00511: No listener
Linux Error: 111: Connection refused
修改监听配置文件listener.ora,重启server,问题依旧,最后谷歌发现hosts文件修改之后会出现这个问题。
修改/etc/hosts文件,加入以下内容
代码如下 | 复制代码 |
127.0.0.1 localhost.hostdomain localhost |
问题解决。
代码如下 | 复制代码 |
[grid@rac22 ~]$ srvctl start listener -n rac22 |
监听启动