第1个回答 推荐于2018-03-26
装完RAC 以后,发现RAC中的一个节点的数据库实例无法启动
[oracle@rac2 ~]$ sqlplus /nolog
SQL*Plus: Release 11.2.0.1.0 Production on Tue Jun 5 23:11:57 2012
Copyright (c) 1982, 2009, Oracle. All rights reserved.
SQL> conn /as sysdba
Connected to an idle instance.
SQL> startup mount
ORA-01078: failure in processing system parameters
ORA-01565: error in identifying file '+DATA/orcl/spfileorcl.ora'
ORA-17503: ksfdopn:2 Failed to open file +DATA/orcl/spfileorcl.ora
ORA-01031: insufficient privileges
SQL> exit
根据提示,检查了asm磁盘组的属组,没发现什么异常,后网上google了一把,有人说这可能是由oracle 属组的问题引起的,就信誓旦旦的检查了oracle用户组,发现有问题的节点的oracle组 的确存在问题:
[oracle@rac2 ~]$
[root@rac2 11.2.0]# id oracle
uid=500(oracle) gid=501(oinstall) groups=501(oinstall),502(dba),503(oper),505(asmoper)
[root@rac2 11.2.0]# id grid
uid=501(grid) gid=501(oinstall) groups=501(oinstall),502(dba),503(oper),504(asmadmin),505(asmoper),506(asmdba)
正常节点oracle用户属性:
[root@rac1 etc]# id oracle
uid=500(oracle) gid=501(oinstall) groups=501(oinstall),502(dba),503(oper),506(asmdba)
[root@rac1 etc]# id grid
uid=501(grid) gid=501(oinstall) groups=501(oinstall),502(dba),503(oper),504(asmadmin),505(asmoper),506(asmdba)
[root@rac1 etc]#
找到了原因以后,修改oracle 属组,再启动数据库,一切正常了:
[root@rac2 11.2.0]# usermod -g oinstall -G dba,oper,asmdba oracle
[root@rac2 11.2.0]# id oracle
uid=500(oracle) gid=501(oinstall) groups=501(oinstall),502(dba),503(oper),506(asmdba)
[root@rac2 11.2.0]# su - oracle
[oracle@rac2 ~]$
[oracle@rac2 ~]$
[oracle@rac2 ~]$ sqlplus /nolog
SQL*Plus: Release 11.2.0.1.0 Production on Tue Jun 5 23:35:06 2012
Copyright (c) 1982, 2009, Oracle. All rights reserved.
SQL> conn /as sysdba
Connected to an idle instance.
SQL> startup
ORACLE instance started.
Total System Global Area 849530880 bytes
Fixed Size 1339824 bytes
Variable Size 562040400 bytes
Database Buffers 281018368 bytes
Redo Buffers 5132288 bytes
Database mounted.
Database opened.
SQL>本回答被网友采纳