由oracle属组引起某个节点实例无法启动

3787阅读 0评论2012-06-11 jjg6256308
分类:Oracle

     装完RAC 以后,发现RAC中的一个节点的数据库实例无法启动
    
  1. [oracle@rac2 ~]$ sqlplus /nolog
  2. SQL*Plus: Release 11.2.0.1.0 Production on Tue Jun 5 23:11:57 2012
  3. Copyright (c) 1982, 2009, Oracle. All rights reserved.
  4. SQL> conn /as sysdba
  5. Connected to an idle instance.
  6. SQL> startup mount
  7. ORA-01078: failure in processing system parameters
  8. ORA-01565: error in identifying file '+DATA/orcl/spfileorcl.ora'
  9. ORA-17503: ksfdopn:2 Failed to open file +DATA/orcl/spfileorcl.ora
  10. ORA-01031: insufficient privileges
  11. SQL> exit
根据提示,检查了asm磁盘组的属组,没发现什么异常,后网上google了一把,有人说这可能是由oracle 属组的问题引起的,就信誓旦旦的检查了oracle用户组,发现有问题的节点的oracle组 的确存在问题:

  1. [oracle@rac2 ~]$
  2. [root@rac2 11.2.0]# id oracle
  3. uid=500(oracle) gid=501(oinstall) groups=501(oinstall),502(dba),503(oper),505(asmoper)
  4. [root@rac2 11.2.0]# id grid
  5. uid=501(grid) gid=501(oinstall) groups=501(oinstall),502(dba),503(oper),504(asmadmin),505(asmoper),506(asmdba)
正常节点oracle用户属性:

  1. [root@rac1 etc]# id oracle
  2. uid=500(oracle) gid=501(oinstall) groups=501(oinstall),502(dba),503(oper),506(asmdba)
  3. [root@rac1 etc]# id grid
  4. uid=501(grid) gid=501(oinstall) groups=501(oinstall),502(dba),503(oper),504(asmadmin),505(asmoper),506(asmdba)
  5. [root@rac1 etc]#
找到了原因以后,修改oracle 属组,再启动数据库,一切正常了:

  1. [root@rac2 11.2.0]# usermod -g oinstall -G dba,oper,asmdba oracle
  2. [root@rac2 11.2.0]# id oracle
  3. uid=500(oracle) gid=501(oinstall) groups=501(oinstall),502(dba),503(oper),506(asmdba)
  4. [root@rac2 11.2.0]# su - oracle
  5. [oracle@rac2 ~]$
  6. [oracle@rac2 ~]$
  7. [oracle@rac2 ~]$ sqlplus /nolog
  8. SQL*Plus: Release 11.2.0.1.0 Production on Tue Jun 5 23:35:06 2012
  9. Copyright (c) 1982, 2009, Oracle. All rights reserved.
  10. SQL> conn /as sysdba
  11. Connected to an idle instance.
  12. SQL> startup
  13. ORACLE instance started.
  14. Total System Global Area 849530880 bytes
  15. Fixed Size 1339824 bytes
  16. Variable Size 562040400 bytes
  17. Database Buffers 281018368 bytes
  18. Redo Buffers 5132288 bytes
  19. Database mounted.
  20. Database opened.
  21. SQL>





 
上一篇:hp-unix挂载存储没分配设备号
下一篇:shell 获取 alert_sid.log 错误日志