Oracle 11.2.0.4 RAC $ORACLE_HOME/bin/oracle許可權不對導致無法啟動例項

fjzcau發表於2015-12-03

  1. [oracle@ypdb02 ~]$ sqlplus / as sysdba

  2. SQL*Plus: Release 11.2.0.4.0 Production on Thu Dec 3 11:29:29 2015

  3. Copyright (c) 1982, 2013, Oracle. All rights reserved.

  4. Connected to an idle instance.

  5. SQL> startup
  6. ORA-01078: failure in processing system parameters
  7. ORA-01565: error in identifying file '+DATA_DG/ypdb/spfileypdb.ora'
  8. ORA-17503: ksfdopn:10 Failed to open file +DATA_DG/ypdb/spfileypdb.ora
  9. ORA-12547: TNS:lost contact

  10. ********************************************************************************
  11. 排查:

  12. --檢查ASM例項執行情況
  13. [grid@ypdb02 ~]$ srvctl status asm -n ypdb02
  14. ASM 正在 ypdb02 上執行

  15. --磁碟DATA磁碟有沒有MOUNT
  16. [grid@ypdb02 ~]$ sqlplus / as sysdba

  17. SQL*Plus: Release 11.2.0.4.0 Production on Thu Dec 3 11:34:22 2015

  18. Copyright (c) 1982, 2013, Oracle. All rights reserved.

  19. Connected to:
  20. Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
  21. With the Real Application Clusters and Automatic Storage Management options

  22. SQL> select name,free_mb from v$asm_diskgroup;

  23. NAME FREE_MB
  24. ------------------------------ ----------
  25. DATA_DG 404878
  26. OCR_DG 2146


  27. --檢視例項1上的oracle許可權
  28. [root@ypdb01 ~]# ll /oracle/product/11.2.0/db_1/bin/oracle
  29. -rwsr-s--x 1 oracle asmadmin 239811987 12月 2 17:54 /oracle/product/11.2.0/db_1/bin/oracle

  30. --檢視例項2上的oracle許可權,發現許可權不對。
  31. [grid@ypdb02 ~]$ ls -l $ORACLE_HOME/bin/oracle
  32. -rwxr-x--x 1 grid oinstall 209914479 12月 1 16:14 /oracle/11.2.0/grid/bin/oracle

  33. --更改許可權
  34. [grid@ypdb02 ~]$ chmod 6751 $ORACLE_HOME/bin/oracle

  35. [grid@ypdb02 ~]$ ls -l $ORACLE_HOME/bin/oracle
  36. -rwsr-s--x 1 grid oinstall 209914479 12月 1 16:14 /oracle/11.2.0/grid/bin/oracle


  37. --再次啟動
  38. SQL> startup
  39. ORACLE instance started.

  40. Total System Global Area 4275781632 bytes
  41. Fixed Size 2260088 bytes
  42. Variable Size 1442841480 bytes
  43. Database Buffers 2818572288 bytes
  44. Redo Buffers 12107776 bytes
  45. Database mounted.
  46. Database opened.

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/22661144/viewspace-1852317/,如需轉載,請註明出處,否則將追究法律責任。

相關文章