按照文档登陆Oracle Management Server时,第一次登陆成功,关机后再次登陆可能会出现:域名解析错误或登陆被否决错误。错误原因为当前IP地址与Oracle安装时配置的IP地址不一致。
解决办法: 修改本机host文件,手工指定本机IP地址。
解决步骤:
1。 首先要创建一个资料文档,方法 开始->程序->Oracle->Configuration and Migration Tools -> Enterprise Manager Congiguration Assistant,开始创建
2。 创建成功后在启动Oracle Management Server时,总是启动不成功, 原因是当前网络IP是动态分配的, 需要修改windows/system32/drivers/etc/hosts 文件,在该文件末尾加上10.45.8.18 oracle
# Copyright (c) 1993-1999 Microsoft Corp.
#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
#
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
#
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a '#' symbol.
#
# For example:
#
# 102.54.94.97 rhino.acme.com # source server
# 38.25.63.10 x.acme.com # x client host
127.0.0.1 localhost
#10.45.8.18是我的IP地址, oracle自己定义的名字
10.45.8.18 oracle
3。 保存关闭后, 重新启动Oracle Management Server ,提示登陆成功。
4。 在登陆窗口中输入登陆名称和密码登陆。
在CentOS 6.4下安装Oracle 11gR2(x64)