问题摘要:为 Oracle ASM 实例创建 Oracle Solaris Cluster 资源时,clsetup 实用程序可能会报告下列错误消息之一:
ORACLE_SID (+ASM2) does not match the Oracle ASM configuration ORACLE_SID () within CRS
ERROR: Oracle ASM is either not installed or the installation is invalid!
之所以发生这种情况,是因为在安装 Oracle Grid Infrastructure 11g R2 之后,ora.asm 资源的 GEN_USR_ORA_INST_NAME@SERVERNAME 值未包含该群集上运行的所有 Oracle ASM SID。
解决方法:使用 crsctl 命令将缺少的 SID 添加到 ora.asm 资源。
# crsctl modify res ora.asm \ -attr "GEN_USR_ORA_INST_NAME@SERVERNAME(hostname)"=ASM_SID