你好,游客 登录 注册 搜索
背景:
阅读新闻

ORA-01565: error in identifying file '+DATA/spfilerac.ora'

[日期:2012-10-11] 来源:Linux社区  作者:luoping [字体:大 中 小]

环境:

DB:11.2.0.2 RAC  OS:RHEL 5.6

今天在做Oracle 11gR2下面单机升级到RAC时遇到下面的问题

  1. [oracle@11rac5 ~]$ sqlplus / as sysdba 
  2.  
  3. SQL*Plus: Release 11.2.0.2.0 Production on Tue Oct 9 19:06:51 2012 
  4.  
  5. Copyright (c) 1982, 2010, Oracle.  All rights reserved. 
  6.  
  7. Connected to an idle instance. 
  8.  
  9. SQL> startup 
  10. ORA-01078: failure in processing system parameters 
  11. ORA-01565: error in identifying file '+DATA/spfilerac.ora' 
  12. ORA-17503: ksfdopn:2 Failed to open file +DATA/spfilerac.ora 
  13. ORA-01034: ORACLE not available 
  14. ORA-27123: unable to attach to shared memory segment 
  15. Linux-x86_64 Error: 13: Permission denied 
  16. Additional information: 3833863 
  17. Additional information: 10 

查看grid与oracle用户下面的oracle文件的权限

  1. 查看grid用户下面的oracle的权限 
  2. [root@11rac5 log]# su - grid 
  3. [grid@11rac5 ~]$ ls -l $ORACLE_HOME/bin/oracle 
  4. -rwxr-x--x 1 grid oinstall 200678430 Oct  9 13:35 /u01/app/11.2.0/grid/bin/oracle 
  5. 权限不正确,修改。 
  6. [grid@11rac5 ~]$ chmod 6751 $ORACLE_HOME/bin/oracle 
  7. [grid@11rac5 ~]$ ls -l $ORACLE_HOME/bin/oracle 
  8. -rwsr-s--x 1 grid oinstall 200678430 Oct  9 13:35 /u01/app/11.2.0/grid/bin/oracle 
  9. 查看oracle用户下面的oracle权限 
  10. [oracle@11rac5 trace]$ ls -l $ORACLE_HOME/bin/oracle 
  11. -rwsr-x--x 1 oracle asmadmin 228886426 Oct  9 15:29 /u01/app/oracle/product/11.2.0/db_2/bin/oracle 
  12.  
  13. 在grid用户下面修改 
  14. [oracle@11rac5 trace]$ su - grid 
  15. Password: 
  16. [grid@11rac5 ~]$ cd $ORACLE_HOME/bin/ 
  17. [grid@11rac5 bin]$ set 
  18. set            setasmgid      setasmgidwrap  setfattr       setkeycodes    setmetamode    setsid         setup           
  19. setarch        setasmgid0     setfacl        setfont        setleds        setserial      setterm        setxkbmap       
  20. [grid@11rac5 bin]$ setasmgidwrap o=/u01/app/oracle/product/11.2.0/db_2/bin/oracle 
  21. [grid@11rac5 bin]$ ls -l /u01/app/oracle/product/11.2.0/db_2/bin/oracle 
  22. -rwsr-s--x 1 oracle asmadmin 228886426 Oct  9 15:29 /u01/app/oracle/product/11.2.0/db_2/bin/oracle 

再次启动数据库:

  1. 再次启动正常 
  2. [oracle@11rac5 ~]$ sqlplus / as sysdba 
  3.  
  4. SQL*Plus: Release 11.2.0.2.0 Production on Tue Oct 9 19:28:34 2012 
  5.  
  6. Copyright (c) 1982, 2010, Oracle.  All rights reserved. 
  7.  
  8. Connected to an idle instance. 
  9.  
  10. SQL> startup 
  11. ORACLE instance started. 
  12.  
  13. Total System Global Area  839282688 bytes 
  14. Fixed Size                  2231128 bytes 
  15. Variable Size             557843624 bytes 
  16. Database Buffers          276824064 bytes 
  17. Redo Buffers                2383872 bytes 
  18. Database mounted. 
  19. Database opened. 
linux
相关资讯       Oracle错误代码 
本文评论   查看全部评论 (0)
表情: 表情 姓名: 字数

       

评论声明
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款