ORA-15055 Unable to Connect to ASM When Starting an Instance

尝试启动一个spfile 文件在asm 中的数据库时会遇到如下错误:

ORA-01078: failure in processing system parameters

ORA-01565: error in identifying file ‘+DATA_ASM/gisqe1/spfilegisqe1.ora’

ORA-17503: ksfdopn:2 Failed to open file +DATA_ASM/gisqe1/spfilegisqe1.ora

ORA-15055: unable to connect to ASM instance

ORA-15055: unable to connect to ASM instance

Error:      ORA-15055  (ORA-15055)

===========================================

Text:      unable to connect to ASM instance

—————————————————————————

Cause:    When accessing a diskgroup for the first time, the database was

    unable to connect to the required ASM instance.

Action:    Check the additional error messages. May need to configure

    correct ASM sid or make sure the database instance has OS

    privileges for ASM SYSDBA.

===========================================

相似的错误发生在实例尝试连接 ASM 来获取控制文件和数据文件时也会发生这样的错误,即使使用init.ora文件来代替在asm 中的spfile文件。ora-15055 错误经常发生在第一次连接asm 实例时。

原因:

以上错误可能是由于以下原因引起。

1)  ASM 用户 和ORACLE 用户不是同一个用户

2) oracle binary 的setuid 和 setgid 没有正确设置

例如:检查ASM_HOME/bin 目录的oracle binary的权限

ls -l oracle

结果用户和所属组应该有 s 标识,当asm 第一次被创建并且在创建的过程中没有错误发生,上述命令的结果应为:

-rwsr-s–x

解决方法:

执行一下步骤设置 oracle binary 文件的setuid 和setgid:

1) cd ASM_HOME/bin

2) chmod 6751 oracle

3) “ls -l oracle” should show -rwsr-s–x

点赞