创建监听器提示端口被占用

来源:互联网 发布:三阶魔方价格 淘宝 编辑:程序博客网 时间:2024/05/08 23:25

1、错误现象

RHEL6.4下安装oracle11gR2,使用netca创建监听器的时候,无论填入哪个端口号都是报错:




实际上端口并未被占用。

 

2、错误原因

执行lsnrctl status:

[oracle@rman-backup bin]$ ./lsnrctl status

 

LSNRCTL for Linux: Version 11.2.0.1.0 -Production on 12-DEC-2014 13:26:35

 

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

 

Message 1053 not found; No message file forproduct=network, facility=TNSTNS-12543: Message 12543 not found; No messagefile for product=network, facility=TNS

 TNS-12560: Message 12560 not found; No messagefile for product=network, facility=TNS

 TNS-00513: Message 513 not found; No message file for product=network,facility=TNS

   LinuxError: 113: No route to host

 

此时收到一个Linux错误:

Linux Error: 113: No route to host

 

可以看出错误在于这里而不是端口被占用。

 

3、解决方法

 

[root@rman-backup ~]# vi /etc/hosts

添加下面的行

172.26.181.101 rman-backup

 

其中172.26.181.101为服务器IP地址,rman-backup为主机名

再次使用netca创建监听,正常。

 

 

0 0