Oracle資料庫教程:磁碟空間不足導致日誌不能歸檔

來源:互聯網
上載者:User

我的資料庫不知什麼原因無故掛起,今天啟動資料庫報如下錯誤:

SQL>alter database open;

alterdatabase open

*

ERROR atline 1:

ORA-16014:log 3 sequence# 99 not archived, no available destinations

ORA-00312:online log 3 thread 1: '+DGROUP1/oralife/redo03.log'

重做日誌不能歸檔,查看記錄檔:

  1. [Oracle@simpleit ~]$ cd admin/oralife/bdump/  
  2. [oracle@simpleit bdump]$ tail  -20 alert_oralife.log  
  3. Thu Dec  1 11:13:18 2011  
  4. Errors in file /home/oracle/admin/oralife/bdump/oralife_arc1_3465.trc:  
  5. ORA-19504: Message 19504 not found; No message file for product=RDBMS, facility=ORA; arguments: [+DGROUP1/oralife/1_99_762803211.dbf]  
  6. ORA-17502: Message 17502 not found; No message file for product=RDBMS, facility=ORA; arguments: [4] [+DGROUP1/oralife/1_99_762803211.dbf]  
  7. ORA-15041: diskgroup space exhausted  
  8. Thu Dec  1 11:13:18 2011  
  9. ARC1: Error 19504 Creating archive log file to '+DGROUP1/oralife/1_99_762803211.dbf'  
  10. ARC1: Failed to archive thread 1 sequence 99 (19504)  
  11. ARCH: Archival stopped, error occurred. Will continue retrying  
  12. Thu Dec  1 11:13:18 2011  
  13. ORACLE Instance oralife - Archival Error  
  14. Thu Dec  1 11:13:18 2011  
  15. ORA-16038: Message 16038 not found; No message file for product=RDBMS, facility=ORA; arguments: [3] [99]  
  16. ORA-19504: Message 19504 not found; No message file for product=RDBMS, facility=ORA  
  17. ORA-00312: Message 312 not found; No message file for product=RDBMS, facility=ORA; arguments: [3] [1] [+DGROUP1/oralife/redo03.log]  
  18. Thu Dec  1 11:13:18 2011  
  19. Errors in file /home/oracle/admin/oralife/bdump/oralife_arc1_3465.trc:  
  20. ORA-16038: Message 16038 not found; No message file for product=RDBMS, facility=ORA; arguments: [3] [99]  
  21. ORA-19504: Message 19504 not found; No message file for product=RDBMS, facility=ORA  
  22. ORA-00312: Message 312 not found; No message file for product=RDBMS, facility=ORA; arguments: [3] [1] [+DGROUP1/oralife/redo03.log]  

於是知道是asm空間不足的原因導致,這時可以登入rman刪除無用的歸檔日誌,來釋放磁碟空間。這時便可以成功啟動資料庫。

  1. RMAN> run{  
  2. 2> delete archivelog until time 'sysdate-7';--刪除7天前的無用的歸檔日誌}   
  3.   
  4. RMAN> crosscheck archivelog all;  
  5.   
  6. RMAN> delete noprompt expired archivelog all;  
 
  1. [oracle@simpleit bdump]$ sqlplus / as sysdba  
  2.   
  3. SQL*Plus: Release 10.2.0.1.0 - Production on 星期四 12月 1 20:48:17 2011  
  4.   
  5. Copyright (c) 1982, 2005, Oracle.  All rights reserved.  
  6.   
  7.   
  8. Connected to:  
  9. Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production  
  10. With the Partitioning, OLAP and Data Mining options  
  11.   
  12. SQL> select status from v$instance;  
  13.   
  14. STATUS  
  15. ------------   
  16. MOUNTED  
  17.   
  18. SQL> alter database open;  
  19. alter database open  
  20. *  
  21. ERROR at line 1:  
  22. ORA-16014: log 3 sequence# 99 not archived, no available destinations  
  23. ORA-00312: online log 3 thread 1: '+DGROUP1/oralife/redo03.log'  
  24.   
  25.   
  26. SQL> shutdown immediate  
  27. ORA-01109: database not open  
  28.   
  29.   
  30. Database dismounted.  
  31. ORACLE instance shut down.  
  32. SQL> startup  
  33. ORACLE instance started.  
  34.   
  35. Total System Global Area  167772160 bytes  
  36. Fixed Size                  1218316 bytes  
  37. Variable Size              83888372 bytes  
  38. Database Buffers           79691776 bytes  
  39. Redo Buffers                2973696 bytes  
  40. Database mounted.  
  41. 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.