帮助客户在Windows2008R2上安装Oracle11.2.0.3,DBCA建库到85% 有报错

点确定忽略此报错,可以完成安装,但安装后EM是用不了的。印象中在windows上装oracle 10g 的时候会遇到这个报错,需要打Patch8350262,怎么到11.2.0.3还有这个报错?难道还需要打补丁?

尝试重建EM,会有类似的报错

2010-6-13 11:05:43 oracle.sysman.emcp.EMReposConfig invoke
信息: 有关详细资料, 请参阅 D:\oracle\cfgtoollogs\emca\erp\emca_repos_config_<日期>.log 中的日志文件。
2010-6-13 11:05:43 oracle.sysman.emcp.EMReposConfig invoke
严重: 将配置数据上载到资料档案库时出错
2010-6-13 11:05:43 oracle.sysman.emcp.EMConfig perform
严重: 将配置数据上载到资料档案库时出错
有关详细资料, 请参阅 D:\oracle\cfgtoollogs\dbca\erp\emConfig.log 中的日志文件。

最后Google了一下找到问题原因:

Cause

The windows machine is in an active directory and is using IPv6. When the short hostname is pinged, it is resolved via the fully qualified hostname to an IPv6 (ISATAP) address eg:-
ping machine1
Pinging machine1.uk.oracle.com [fe80::f1bb:2ed:4d5a:1732] with 32 bytes of data:
Reply from fe80::f1bb:2ed:4d5a:1732: time<1ms
Dbconsole 11.2 is built around Grid Control 10.2.0.4 and so is not IPv6 compliant. Grid Control 11.1.0.1 is IPv6 compliant.. The version of dbconsole which is built around Grid Control 11.1.0.1 will be IPv6 compliant. (the version which dbconsole is built round is shown in the output of emctl status agent).
Solution
Add entries into the host file, to force IPv4 style resolution:-
1) edit the windows\system32\drivers\etc\hosts file
2) add an entry for the machine of the format:-
<ipaddress> <fully qualified hostname> <short hostname>
eg.
138.3. 146.333 machine1.uk.oracle.com machine1
Now when pinging the short hostname, the ipv4 style ipaddress is returned.
简单解释:

  2008默认使用IPV 6协议解析,被ping主机名,它是通过完整主机名解析到IPv6(ISATAP)地址

  例如:  ping

  DBCONSOLE 11.2围绕网格控制10.2.0.4,所以不支持IPv6兼容。网格控制11.1.0.1是IPv6兼容.. (哪个DBCONSOLE内置一轮的版本中所示的输出emctl状态剂)。

也就是说操作系统用IPV 6解析地址,而你的EM确需要IPV 4解析的地址。解决方法:强行使用IPV4 解析地址

1)编辑WINDOWS \ SYSTEM32 \ DRIVERS \ ETC \ hosts文件

2) add an entry for the machine of the format:- 2)添加一个条目机的格式: -
<ipaddress> <fully qualified hostname> <short hostname> <ip地址><完全合格的主机名> <短主机名
eg.例如。
192.168.77.1 swspor.oraclemachine.com  oraclemachine
.现在,当执行ping短的主机名,IPv4形式IPAddress是回来了。
之后:

手动重建em资料库
下面是emca创建em的过程,大致演示一下:
1, 删除建立失败的em档案库:
C:\Documents and Settings\Administrator>emca -deconfig dbcontrol db -repos drop
2, 重新创建em档案库:
C:\Documents and Settings\Administrator>emca -config dbcontrol db -repos create