监听器错误处理一则:主机名和IP错位

报错信息如下:


[oracle@odd ~]$ lsnrctl status

LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 01-MAY-2013 15:40:54

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

Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
TNS-12560: TNS:protocol adapter error
 TNS-00530: Protocol adapter error
  Linux Error: 113: No route to host


netca 报错信息截图如下:




[root@odd ~]# hostname -f
odd.example.com

[root@odd ~]# ifconfig eth0
eth0      Link encap:Ethernet  HWaddr 00:0C:29:67:0C:98  
          inet addr:192.168.1.112  Bcast:255.255.255.255  Mask:255.255.255.0
          inet6 addr: fe80::20c:29ff:fe67:c98/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1254 errors:0 dropped:0 overruns:0 frame:0
          TX packets:128 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:444873 (434.4 KiB)  TX bytes:12771 (12.4 KiB)


[root@odd ~]# cat /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1               localhost.localdomain localhost
192.168.1.114           even.example.com   even
192.168.1.115           odd.example.com    odd



看了上面的输出、大家应该明白了、hosts 文件里面主机名和IP参差不齐

评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值