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

來源:互聯網
上載者:User

環境:

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. 

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.