ORA-00257: archiver error. Connect internal only, until freed

来源:互联网 发布:mac录屏软件 编辑:程序博客网 时间:2024/04/30 19:20
ORA-00257: archiver error. Connect internal only, until freed 

登录oracle显示上面的错误 

以下是公司大师给出的步骤,谨记录备用: 
1、手工删除归档日志的文件夹(按日期那种) 
2、在oracle用户下以rman target / 
3、crosscheck archivelog all; 
4、delete expired archivelog all;--这里删除了一些与第1步中删除的文件日期匹配的文件,目前研究还不深入,不清楚它们之间具体的联系 
5、exit; 

--如果发现归档日志的空间快使用完了,而没有出现00257的错误,只做到这一步就够了,不用再进行下面的步骤了 
--查询归档日志使用的sql:select * from v$flash_recovery_area_usage; 

6、接下来是在sqlplus中的操作: 
Oracle sqlplus代码  收藏代码
  1. SQL> conn / as sysdba  
  2. Connected.  
  3. SQL> shutdown immediate  
  4. ORA-01013: user requested cancel of current operation  
  5. //一直停不掉,就ctl+c中断了  
  6.   
  7. //再试一次  
  8. SQL> shutdown immediate  
  9. ORA-01013: user requested cancel of current operation  
  10. //还是停不掉,再次ctl+c中断  
  11.   
  12. //强行停止吧  
  13. SQL> shutdown abort  
  14. ORACLE instance shut down.  
  15.   
  16. //再次启动  
  17. SQL> startup                                            
  18. ORACLE instance started.  
  19.   
  20. Total System Global Area 1610612736 bytes  
  21. Fixed Size                  1267740 bytes  
  22. Variable Size             452986852 bytes  
  23. Database Buffers         1140850688 bytes  
  24. Redo Buffers               15507456 bytes  
  25. Database mounted.  
  26. ORA-16014: log 2 sequence# 101 not archived, no available destinations  
  27. ORA-00312: online log 2 thread 1'/oracle/oradata/orcl/redo02.log'  
  28. ORA-00312: online log 2 thread 1:  
  29. '/backup/oracle_archive/redo_data/redo2/redo021.log'  
  30. //数据库没有打开,报上面的错误  
  31.   
  32. SQL> show parameter db_recovery_file_dest_size;  
  33.   
  34. NAME                                 TYPE        VALUE  
  35. ------------------------------------ ----------- ------------------------------  
  36. db_recovery_file_dest_size           big integer 4G  
  37. SQL> select group#,sequence#,archived,status from v$log;  
  38.   
  39.     GROUP#  SEQUENCE# ARC STATUS  
  40. ---------- ---------- --- ----------------  
  41.          1        103 NO  CURRENT  
  42.          3        102 NO  INACTIVE  
  43.          2        101 NO  INACTIVE  
  44.   
  45. //搞一搞SEQUENCE号最小的一个  
  46. SQL> alter database clear logfile group 2;  
  47. alter database clear logfile group 2  
  48. *  
  49. ERROR at line 1:  
  50. ORA-00350: log 2 of instance orcl (thread 1) needs to be archived  
  51. ORA-00312: online log 2 thread 1'/oracle/oradata/orcl/redo02.log'  
  52. ORA-00312: online log 2 thread 1:  
  53. '/backup/oracle_archive/redo_data/redo2/redo021.log'  
  54.   
  55. SQL> alter database clear unarchived logfile group 2;  
  56.   
  57. Database altered.  
  58.   
  59. SQL> alter database open;  
  60.   
  61. Database altered.  
原创粉丝点击