ORA-00257: archive log满了
2012-12-06 10:48
239 查看
今天用scott用户登录测试用的oracle,报错:ORA-00257: archiver error. Connect internal only, until freed。
在网上查了一下,应该是archive log 满了,需要清除。所有步骤都是oracle用户下操作,步骤如下:
1. rman登录,查看所有archive log,可以得知archive log的地址
2. 去archivelog的目录,删除多于的archive log
3. rman登录,check所有archive log状态,会发现有一些是check失败的,因为已经被删除了
4. 删除无效的archive log记录
5. sys用户登录db,查询archive log占用空间的百分比
发现PERCENT_SPACE_USED列,ARCHIVED LOG的占用比例明显降低,从99.55%降到6.78%
至此搞定,测试用oracle,平时少有人打理,错误常有,多多积累。
参考文章:http://liuxiaojian.iteye.com/blog/1179596
在网上查了一下,应该是archive log 满了,需要清除。所有步骤都是oracle用户下操作,步骤如下:
1. rman登录,查看所有archive log,可以得知archive log的地址
$ rman target orcl # orcl是数据库的sid RMAN> list archivelog all; -- 假设archive log存在/home/oracle/flash_recovery_area/ORCL/archivelog
2. 去archivelog的目录,删除多于的archive log
3. rman登录,check所有archive log状态,会发现有一些是check失败的,因为已经被删除了
RMAN> crosscheck archivelog all;
4. 删除无效的archive log记录
RMAN> delete expired archivelog all;
5. sys用户登录db,查询archive log占用空间的百分比
sys@ORCL> select * from v$flash_recovery_area_usage;
发现PERCENT_SPACE_USED列,ARCHIVED LOG的占用比例明显降低,从99.55%降到6.78%
至此搞定,测试用oracle,平时少有人打理,错误常有,多多积累。
参考文章:http://liuxiaojian.iteye.com/blog/1179596
相关文章推荐
- ORA-00257 archive error、noarchivelog
- ORA-19602: cannot backup or copy active file in NOARCHIVELOG mode
- ORA-16401 archivelog rejected by RFS 解决方法
- ORA-16032: parameter LOG_ARCHIVE_DEST_3 destination string cannot be translated问题处理过程
- ORA-00265: instance recovery required, cannot set ARCHIVELOG mode
- ORA-16032: parameter LOG_ARCHIVE_DEST_3 destination string cannot be translated
- ORA-16401 archivelog rejected by RFS 解决方法
- 【ORA】ORA-19602: cannot backup or copy active file in NOARCHIVELOG mode
- ORA-16401: archivelog rejected by RFS
- ORA-16179: incremental changes to "log_archive_dest_1" not allowed with SPFILE 错误解决
- DB或DG出现的ORA-16038解决-日志无法归档(startup时log不能archive)
- ORA-00265: instance recovery required, cannot set ARCHIVELOG mode
- ORA-16019: cannot use LOG_ARCHIVE_DEST_1 with LOG_ARCHIVE_DEST or LOG_ARCHIVE_DUPLEX_DEST。
- ORA-16179: 不允许使用 SPFILE 对 "log_archive_dest_1" 进行增量更改
- ORA-19602: 无法按 NOARCHIVELOG 模式备份或复制活动文件
- 【转】解决:ORA-19602: cannot backup or copy active file in NOARCHIVELOG mode
- ORA-16019: cannot use LOG_ARCHIVE_DEST_1 with LOG_ARCHIVE_DEST
- ORA-16032: parameter LOG_ARCHIVE_DEST_3 destination string cannot be translated问题处理过程
- ORA-16025: parameter LOG_ARCHIVE_DEST_2 contains repeated or conflicting attributes
- Error 270 for archive log file ORA-00270: error creating archive log Error 1033 received logging on