ITPub博客

首页 > 数据库 > Oracle > PRVF-0002 : Could not retrieve local nodename

PRVF-0002 : Could not retrieve local nodename

原创 Oracle 作者:fwinmachao 时间:2017-11-01 17:06:53 0 删除 编辑

PRVF-0002 : Could not retrieve local nodename



原因是不能解析自己的主机名称。
执行hostname,得到自己的主机名称,然后添加到/etc/hosts文件中.

[root@machao ~]# cat /etc/hosts
127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4 machao
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
192.168.1.101 machao.localdomain


[root@machao ~]# hostname
machao.localdomain
[root@machao ~]# ifconfig
eth0      Link encap:Ethernet  HWaddr F0:DE:F1:C9:DE:F8  
          inet addr:192.168.1.101  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::f2de:f1ff:fec9:def8/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:387 errors:0 dropped:0 overruns:0 frame:0
          TX packets:154 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:37748 (36.8 KiB)  TX bytes:13913 (13.5 KiB)

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

下一篇: OCP-051-002
请登录后发表评论 登录
全部评论

注册时间:2014-05-12

  • 博文量
    15
  • 访问量
    27841