该问题可以参考文章:《ASM Upgrade from 10.2.0.5 to 11.2.0.3 Fails : INS-20802, ORA-1034 (文档 ID 1534279.1)》
注意:RAC可以在只升级Clusterware,不升级ASM,不升级DB的情况下正常运行,老版本的ASM、DB和LISTENER等就需要以上的兼容性资源来启动和管理。
完成以上操作后,再次执行$GRID_HOME/cfgtoollogs/configToolFailedCommands脚本,查看日志收到类似如下的报错,ASMCA升级失败:
......
/opt/grid/oui/bin/runConfig.sh ORACLE_HOME=/opt/grid MODE=perform ACTION=configure RERUN=false $*
------
...
The plug-in Automatic Storage Management Configuration Assistant is running
The plug-in Automatic Storage Management Configuration Assistant has failed its perform method
......
手动执行asmca -silent -upgradeASM -asmsnmpPassword oracle123升级ASM会收到相同的报错。
该问题是个bug,参考如下的文章即可解决:
1. Rerun the command as:
Replace above asmadmin passwd and asmdba passwd with the real password.
2. Check resource status:
crsctl stat res -t
It should show all resources (except gsd and oc4j) are ONLINE now. gsd and oc4j OFFLINE is intended status for 11.2.0.1.
Another workaround as per BUG 16749410 - RUNCONFIG.SH FAILS WHEN UPGRADING ASM FROM 11.1 TO 11.2:
1. Create a response file for configToolAllCommands named cfgrsp.properties, for example <GRID_HOME>/cfgtoollogs/cfgrsp.properties. This file must be populated with 2 entries
"oracle.assistants.asm|S_ASMPASSWORD"
"oracle.assistants.asm|S_ASMMONITORPASSWORD"
The value for S_ASMPASSWORD MUST be left blank, S_ASMMONITORPASSWORD will be set to the desired ASM Monitor Password. The file should look as follows (assuming the ASMMONITORPASSWORD will be set to oracle):
oracle.assistants.asm|S_ASMMONITORPASSWORD=oracle
2. Once the response file is created, execute configToolAllCommands as follows:
该问题参考文章:《11gR2 Rerun command in configToolFailedCommands Failed (文档 ID 1191814.1)》
完成整个升级过程后ASM实例的资源并不存在,asmca无法正常工作,需要以GI所有者操作系统用户执行下面的命令手动添加ASM实例:
./srvctl add asm -l LISTENER -p /u01/app/11.2.0/grid/dbs/spfile+ASM.ora -d '/dev/rhdisk*'
至此,ASMCA也可以正常工作了。
--end--