ORA-00257 archiver error的处理
- 检查flash recovery area的使用情况
SQL> set linesize 100
SQL> col parameter for a40
SQL> col value for a40
SQL> select * from V$FLASH_RECOVERY_AREA_USAGE;
FILE_TYPE PERCENT_SPACE_USED PERCENT_SPACE_RECLAIMABLE NUMBER_OF_FILES
-------------------- ------------------ ------------------------- ---------------
CONTROL FILE 0 0 0
REDO LOG 0 0 0
ARCHIVED LOG 7.03 //当时环境是99%已经满了 0 7
BACKUP PIECE 0 0 0
IMAGE COPY 0 0 0
FLASHBACK LOG 0 0 0
FOREIGN ARCHIVED LOG 0 0 0
已选择7行。
- 进入rman操作,删除归档
1.进入rman环境:
[oracle@oradb u01]$ rman target /
恢复管理器: Release 11.2.0.4.0 - Production on 星期一 7月 23 09:18:30 2018
Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved.
已连接到目标数据库: ORADB (DBID=2697310494)
RMAN>
2.检查一些无用的archivelog
RMAN> crosscheck archivelog all;
3.删除过期的归档
RMAN> delete expired archivelog all;
4.删除截止到前7天的所有archivelog
delete archivelog until time 'sysdate-7';
- 查看归档参数,并做相应的修改
1.查看recovery目录参数
SQL> show parameter recover;
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
db_recovery_file_dest string /u01/app/fast_recovery_area
db_recovery_file_dest_size big integer 4182M
db_unrecoverable_scn_tracking boolean TRUE
recovery_parallelism integer 0
2.调整recovery目录的大小,修改为16GB
alter system set db_recovery_file_dest_size=16G scope=both;