今天安装oracle数据库的时候一直报00600的错误,都搞崩溃了,最后才发现错的好离谱
主机名当时修改的是hhhh
- @hhhh~]$dbca
- 2[Thread-13]WARN emSDK.config-Exceptioningetting localhost
- java.net.UnknownHostException:hhhh:hhhh
- at java.net.InetAddress.getLocalHost(InetAddress.java:1191)
- at oracle.sysman.emSDK.conf.TargetInstaller.getLocalHost(TargetInstaller.java:4977)
- at oracle.sysman.emSDK.conf.TargetInstaller.getLocalHost(TargetInstaller.java:4950)
- at oracle.sysman.emcp.ParamsManager.getLocalHost(ParamsManager.java:959)
- at oracle.sysman.emcp.EMDBPostConfig.getEMDProperties(EMDBPostConfig.java:1474)
- at oracle.sysman.emcp.EMDBPostConfig.getEMDProperties(EMDBPostConfig.java:1469)
- at oracle.sysman.emcp.EMDBPostConfig.getRepositoryURL(EMDBPostConfig.java:1448)
- at oracle.sysman.emcp.EMDBPostConfig.getRepositoryURLMessage(EMDBPostConfig.java:1442)
- at oracle.sysman.emcp.EMConfig.getRepositoryURLMessage(EMConfig.java:568)
- at oracle.sysman.assistants.util.em.EMConfiguration.run(EMConfiguration.java:431)
- at java.lang.Thread.run(Thread.java:534)
(注:图片当时忘截了,这是后期在网上看到的图,报错都是一样的)
[root@hhhh ~]# cat /etc/sysconfig/network
NETWORKING=yes
NETWORKING_IPV6=no
HOSTNAME=hhhh
[root@hhhh ~]# cat /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost
::1 localhost6.localdomain6 localhost6
192.168.200.12 hhh
刚开始还没发现错误,百度搜好多发现网友的原因都是:/etc/hosts文件错误,
最后终于发现hosts文件主机名少了一个h,,,,,好无语。
[root@hhhh ~]# vi /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost
::1 localhost6.localdomain6 localhost6
192.168.200.12 hhhh
~
~
~
~
~
"/etc/hosts" 5L, 190C written
问题解决。
在此劝诫其他朋友,给主机命名最好起个有意义一点的,避免再发生类似错误。
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/29618264/viewspace-2089404/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/29618264/viewspace-2089404/