你好,游客 登录 注册 搜索
背景:
阅读新闻

ORA-00257-归档日志所在磁盘空间使用100%出错解决

[日期:2013-10-06] 来源:Linux社区  作者:还不算晕 [字体:大 中 小]

五、此时使用DBA用户登陆SQLPLUS依然出错,使用SYSDBA用户登陆,切换当前日志文件。

[Oracle@oel-01 ~]$ sqlplus bys/bys
SQL*Plus: Release 11.2.0.1.0 Production on Sun Jul 21 18:03:48 2013
Copyright (c) 1982, 2009, Oracle. All rights reserved.

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

使用SYSDBA登陆
SYS@ bys001>alter system switch logfile; ----可能会需要较长时间。
System altered.
SYS@ bys001>select group#,status,archived from v$log;
GROUP# STATUS ARC
---------- ---------------- ---
1 CURRENT NO
2 INACTIVE YES
3 ACTIVE NO

日志可能如下:

[oracle@bys001 ~]$ cat alert_bys1.log
Sat Oct 05 12:44:41 2013
Suspending MMON action 'metrics monitoring' for 82800 seconds
Sat Oct 05 12:45:10 2013
Archiver process freed from errors. No longer stopped
Sat Oct 05 12:45:14 2013
Archived Log entry 106 added for thread 1 sequence 111 ID 0xebe3b9d9 dest 1:
krse_arc_driver_core: Successful archiving of previously failed ORL
Sat Oct 05 12:45:14 2013
Thread 1 advanced to log sequence 114 (LGWR switch)
Current log# 3 seq# 114 mem# 0: /u01/oradata/bys1/redo03.log
Sat Oct 05 12:45:14 2013
AUD: Audit Commit Delay exceeded, written a copy to OS Audit Trail
Sat Oct 05 12:45:21 2013
Archived Log entry 107 added for thread 1 sequence 113 ID 0xebe3b9d9 dest 1:
Archived Log entry 108 added for thread 1 sequence 112 ID 0xebe3b9d9 dest 1:


六、现在数据库恢复正常,可以登陆并操作

SYS@ bys001>conn bys/bys
Connected.
BYS@ bys001>exit

[oracle@oel-01 ~]$ sqlplus bys/bys
BYS@ bys001>truncate table test1;
Table truncated.

最后要对归档日志进行备份和删除。

使用备份归档脚本如下:
[oracle@oel-01 ~]$ cat archback.sh
#!/bin/sh
#su - oracle
source /home/oracle/.bash_profile
##########
/u01/app/oracle/product/11.2.0/dbhome_1/bin/rman log /home/oracle/rman-arch`date +%Y%m%d-%H%M`.log <<EOF
connect target /;
run{
backup archivelog all delete input
format '/backup/archlog/arch_%d_%T_%s';
}
exit

更多Oracle相关信息见Oracle 专题页面 http://www.linuxidc.com/topicnews.aspx?tid=12

linux
相关资讯       ORA-00257 
本文评论   查看全部评论 (0)
表情: 表情 姓名: 字数

       

评论声明
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款