ITPub博客

首页 > 数据库 > Oracle > 监听器错误处理一则:主机名和IP错位

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

原创 Oracle 作者:幕南风 时间:2014-07-03 13:58:52 0 删除 编辑

     报错信息如下:


[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参差不齐

<!-- Baidu Button BEGIN -->

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/26515977/viewspace-1208105/ ,如需转载,请注明出处,否则将追究法律责任。

上一篇: 深入理解 Oracle 分区(3):分区表和分区索引概述
下一篇: 博客整理:Oracle 索引系列学习目录
请登录后发表评论 登录
全部评论
腾讯数据库工程师

注册时间:2012-05-10

最新文章