linux系统服务ora-00257,ORA - 00257 故障处理
ORA-00257故障处理
[oracle@test250~]$sqlplusXX_js/XX_js
SQL*Plus:Release10.2.0.1.0-ProductiononMonNov815:25:402010
Copyright(c)1982,2005,Oracle.Allrightsreserved.
ERROR:
ORA-00257:archivererror.Connectinternalonly,untilfreed.
马上来查一下错误描述。
SQL>!oerrora257
00257,00000,"archiver error. Connect internal only, until freed."
//*Cause:Thearchiverprocessreceivedanerrorwhiletryingtoarchive
//aredolog.Iftheproblemisnotresolvedsoon,thedatabase
//willstopexecutingtransactions.Themostlikelycauseofthis
//messageisthedestinationdeviceisoutofspacetostorethe
//redologfile.
//*Action:Checkarchivertracefileforadetaileddescription
//oftheproblem.Alsoverifythatthe
//devicespecifiedintheinitializationparameter
//ARCHIVE_LOG_DESTissetupproperlyforarchiving.
看来是archivelog的事情啊,看看ARCHIVE_LOG_DEST的设置。
SQL>archiveloglist
DatabaselogmodeArchiveMode
AutomaticarchivalEnabled
ArchivedestinationUSE_DB_RECOVERY_FILE_DEST
Oldestonlinelogsequence240
Nextlogsequencetoarchive240
Currentlogsequence242
想想是不是闪回区满了啊?
[oracle@test250archivelog]$du-sh*
4.0K2010_10_26
294M2010_10_27
98M2010_10_28
196M2010_10_29
196M2010_10_30
685M2010_10_31
98M2010_11_01
196M2010_11_02
98M2010_11_03
115M2010_11_04
4.0K2010_11_05
4.0K2010_11_06
4.0K2010_11_07
4.0K2010_11_08
[oracle@test250archivelog]$cd..
[oracle@test250CWT]$du-sh*
2.0Garchivelog
好几天没日志了,2G了,果然满了。
[oracle@test250archivelog]$rm-rf2010_10_*
先来删除一下10月的日志
[root@test250CWT]# du -sh *
702Marchivelog
再来登录一下
[oracle@test250archivelog]$sqlplusXX_js/XX_js
SQL*Plus:Release10.2.0.1.0-ProductiononMonNov815:30:532010
Copyright(c)1982,2005,Oracle.Allrightsreserved.
ERROR:
ORA-00257:archivererror.Connectinternalonly,untilfreed.
还是不行啊。。
再来看看alert日志
[root@test250~]# tail -f /oracle/admin/cwt/bdump/alert_cwt.log
MonNov815:37:072010
Errorsinfile/oracle/admin/cwt/bdump/cwt_arc1_2861.trc:
ORA-19815:WARNING:db_recovery_file_dest_sizeof2147483648bytesis100.00%used,andhas0remainingbytesavailable.
MonNov815:37:072010
************************************************************************
Youhavefollowingchoicestofreeupspacefromflashrecoveryarea:
1.ConsiderchangingRMANRETENTIONPOLICY.IfyouareusingDataGuard,
thenconsiderchangingRMANARCHIVELOGDELETIONPOLICY.
2.BackupfilestotertiarydevicesuchastapeusingRMAN
BACKUPRECOVERYAREAcommand.
3.Adddiskspaceandincreasedb_recovery_file_dest_sizeparameterto
reflectthenewspace.
4.DeleteunnecessaryfilesusingRMANDELETEcommand.Ifanoperating
systemcommandwasusedtodeletefiles,thenuseRMANCROSSCHECKand
DELETEEXPIREDcommands.
************************************************************************
主要的意思是让我们用rman清理archivelog。
那我们就来删除一下吧
[oracle@test250bdump]$rmantarget/
RecoveryManager:Release10.2.0.1.0-ProductiononMonNov815:35:302010
Copyright(c)1982,2005,Oracle.Allrightsreserved.
connectedtotargetdatabase:CWT(DBID=2677153359)
RMAN>crosscheckarchivelogall;
releasedchannel:ORA_DISK_1
allocatedchannel:ORA_DISK_1
channelORA_DISK_1:sid=299devtype=DISK
validationfailedforarchivedlog
archivelogfilename=/oracle/flash_recovery_area/CWT/archivelog/2010_10_27/o1_mf_1_219_6dh57tb4_.arcrecid=42stamp=733489027
validationfailedforarchivedlog
archivelogfilename=/oracle/flash_recovery_area/CWT/archivelog/2010_10_27/o1_mf_1_220_6dh5845p_.arcrecid=43stamp=733489036
validationfailedforarchivedlog
archivelogfilename=/oracle/flash_recovery_area/CWT/archivelog/2010_10_27/o1_mf_1_221_6djd3qy1_.arcrecid=44stamp=733528856
validationfailedforarchivedlog
archivelogfilename=/oracle/flash_recovery_area/CWT/archivelog/2010_10_28/o1_mf_1_222_6dksv1dl_.arcrecid=45stamp=733575660
validationfailedforarchivedlog
archivelogfilename=/oracle/flash_recovery_area/CWT/archivelog/2010_10_29/o1_mf_1_223_6dmc1s56_.arcrecid=46stamp=733626046
validationfailedforarchivedlog
archivelogfilename=/oracle/flash_recovery_area/CWT/archivelog/2010_10_29/o1_mf_1_224_6do4hzn8_.arcrecid=47stamp=733684875
validationfailedforarchivedlog
archivelogfilename=/oracle/flash_recovery_area/CWT/archivelog/2010_10_30/o1_mf_1_225_6dp9y4cw_.arcrecid=48stamp=733723210
validationfailedforarchivedlog
archivelogfilename=/oracle/flash_recovery_area/CWT/archivelog/2010_10_30/o1_mf_1_226_6dr7h5m3_.arcrecid=49stamp=733786218
validationfailedforarchivedlog
archivelogfilename=/oracle/flash_recovery_area/CWT/archivelog/2010_10_31/o1_mf_1_227_6dt1j8r0_.arcrecid=50stamp=733845648
validationfailedforarchivedlog
archivelogfilename=/oracle/flash_recovery_area/CWT/archivelog/2010_10_31/o1_mf_1_228_6dt5pwx4_.arcrecid=51stamp=733849954
validationfailedforarchivedlog
archivelogfilename=/oracle/flash_recovery_area/CWT/archivelog/2010_10_31/o1_mf_1_229_6dt620kn_.arcrecid=52stamp=733850309
validationfailedforarchivedlog
archivelogfilename=/oracle/flash_recovery_area/CWT/archivelog/2010_10_31/o1_mf_1_230_6dt6j7lq_.arcrecid=53stamp=733850766
validationfailedforarchivedlog
archivelogfilename=/oracle/flash_recovery_area/CWT/archivelog/2010_10_31/o1_mf_1_231_6dt6t8vs_.arcrecid=54stamp=733851085
validationfailedforarchivedlog
archivelogfilename=/oracle/flash_recovery_area/CWT/archivelog/2010_10_31/o1_mf_1_232_6dt712gb_.arcrecid=55stamp=733851305
validationfailedforarchivedlog
archivelogfilename=/oracle/flash_recovery_area/CWT/archivelog/2010_10_31/o1_mf_1_233_6dtr0ckn_.arcrecid=56stamp=733868689
validationsucceededforarchivedlog
archivelogfilename=/oracle/flash_recovery_area/CWT/archivelog/2010_11_01/o1_mf_1_234_6dwwwxy5_.arcrecid=57stamp=733939236
validationsucceededforarchivedlog
archivelogfilename=/oracle/flash_recovery_area/CWT/archivelog/2010_11_02/o1_mf_1_235_6dy9gqol_.arcrecid=58stamp=733984861
validationsucceededforarchivedlog
archivelogfilename=/oracle/flash_recovery_area/CWT/archivelog/2010_11_02/o1_mf_1_236_6f06jf0f_.arcrecid=59stamp=734047400
validationsucceededforarchivedlog
archivelogfilename=/oracle/flash_recovery_area/CWT/archivelog/2010_11_03/o1_mf_1_237_6f25nf3l_.arcrecid=60stamp=734112035
validationsucceededforarchivedlog
archivelogfilename=/oracle/flash_recovery_area/CWT/archivelog/2010_11_04/o1_mf_1_238_6f3mcwff_.arcrecid=61stamp=734158852
validationsucceededforarchivedlog
archivelogfilename=/oracle/flash_recovery_area/CWT/archivelog/2010_11_04/o1_mf_1_239_6f45oqo3_.arcrecid=62stamp=734177596
Crosschecked21objects
RMAN>deleteexpiredarchivelogall;
releasedchannel:ORA_DISK_1
allocatedchannel:ORA_DISK_1
channelORA_DISK_1:sid=299devtype=DISK
ListofArchivedLogCopies
KeyThrdSeqSLowTimeName
------- ---- ------- - --------- ----
421219X25-OCT-10/oracle/flash_recovery_area/CWT/archivelog/2010_10_27/o1_mf_1_219_6dh57tb4_.arc
431220X26-OCT-10/oracle/flash_recovery_area/CWT/archivelog/2010_10_27/o1_mf_1_220_6dh5845p_.arc
441221X27-OCT-10/oracle/flash_recovery_area/CWT/archivelog/2010_10_27/o1_mf_1_221_6djd3qy1_.arc
451222X27-OCT-10/oracle/flash_recovery_area/CWT/archivelog/2010_10_28/o1_mf_1_222_6dksv1dl_.arc
461223X28-OCT-10/oracle/flash_recovery_area/CWT/archivelog/2010_10_29/o1_mf_1_223_6dmc1s56_.arc
471224X29-OCT-10/oracle/flash_recovery_area/CWT/archivelog/2010_10_29/o1_mf_1_224_6do4hzn8_.arc
481225X29-OCT-10/oracle/flash_recovery_area/CWT/archivelog/2010_10_30/o1_mf_1_225_6dp9y4cw_.arc
491226X30-OCT-10/oracle/flash_recovery_area/CWT/archivelog/2010_10_30/o1_mf_1_226_6dr7h5m3_.arc
501227X30-OCT-10/oracle/flash_recovery_area/CWT/archivelog/2010_10_31/o1_mf_1_227_6dt1j8r0_.arc
511228X31-OCT-10/oracle/flash_recovery_area/CWT/archivelog/2010_10_31/o1_mf_1_228_6dt5pwx4_.arc
521229X31-OCT-10/oracle/flash_recovery_area/CWT/archivelog/2010_10_31/o1_mf_1_229_6dt620kn_.arc
531230X31-OCT-10/oracle/flash_recovery_area/CWT/archivelog/2010_10_31/o1_mf_1_230_6dt6j7lq_.arc
541231X31-OCT-10/oracle/flash_recovery_area/CWT/archivelog/2010_10_31/o1_mf_1_231_6dt6t8vs_.arc
551232X31-OCT-10/oracle/flash_recovery_area/CWT/archivelog/2010_10_31/o1_mf_1_232_6dt712gb_.arc
561233X31-OCT-10/oracle/flash_recovery_area/CWT/archivelog/2010_10_31/o1_mf_1_233_6dtr0ckn_.arc
Doyoureallywanttodeletetheaboveobjects(enterYESorNO)?yes
deletedarchivelog
archivelogfilename=/oracle/flash_recovery_area/CWT/archivelog/2010_10_27/o1_mf_1_219_6dh57tb4_.arcrecid=42stamp=733489027
deletedarchivelog
archivelogfilename=/oracle/flash_recovery_area/CWT/archivelog/2010_10_27/o1_mf_1_220_6dh5845p_.arcrecid=43stamp=733489036
deletedarchivelog
archivelogfilename=/oracle/flash_recovery_area/CWT/archivelog/2010_10_27/o1_mf_1_221_6djd3qy1_.arcrecid=44stamp=733528856
deletedarchivelog
archivelogfilename=/oracle/flash_recovery_area/CWT/archivelog/2010_10_28/o1_mf_1_222_6dksv1dl_.arcrecid=45stamp=733575660
deletedarchivelog
archivelogfilename=/oracle/flash_recovery_area/CWT/archivelog/2010_10_29/o1_mf_1_223_6dmc1s56_.arcrecid=46stamp=733626046
deletedarchivelog
archivelogfilename=/oracle/flash_recovery_area/CWT/archivelog/2010_10_29/o1_mf_1_224_6do4hzn8_.arcrecid=47stamp=733684875
deletedarchivelog
archivelogfilename=/oracle/flash_recovery_area/CWT/archivelog/2010_10_30/o1_mf_1_225_6dp9y4cw_.arcrecid=48stamp=733723210
deletedarchivelog
archivelogfilename=/oracle/flash_recovery_area/CWT/archivelog/2010_10_30/o1_mf_1_226_6dr7h5m3_.arcrecid=49stamp=733786218
deletedarchivelog
archivelogfilename=/oracle/flash_recovery_area/CWT/archivelog/2010_10_31/o1_mf_1_227_6dt1j8r0_.arcrecid=50stamp=733845648
deletedarchivelog
archivelogfilename=/oracle/flash_recovery_area/CWT/archivelog/2010_10_31/o1_mf_1_228_6dt5pwx4_.arcrecid=51stamp=733849954
deletedarchivelog
archivelogfilename=/oracle/flash_recovery_area/CWT/archivelog/2010_10_31/o1_mf_1_229_6dt620kn_.arcrecid=52stamp=733850309
deletedarchivelog
archivelogfilename=/oracle/flash_recovery_area/CWT/archivelog/2010_10_31/o1_mf_1_230_6dt6j7lq_.arcrecid=53stamp=733850766
deletedarchivelog
archivelogfilename=/oracle/flash_recovery_area/CWT/archivelog/2010_10_31/o1_mf_1_231_6dt6t8vs_.arcrecid=54stamp=733851085
deletedarchivelog
archivelogfilename=/oracle/flash_recovery_area/CWT/archivelog/2010_10_31/o1_mf_1_232_6dt712gb_.arcrecid=55stamp=733851305
deletedarchivelog
archivelogfilename=/oracle/flash_recovery_area/CWT/archivelog/2010_10_31/o1_mf_1_233_6dtr0ckn_.arcrecid=56stamp=733868689
Deleted15EXPIREDobjects
删除结束了来登录登录呢,怎么还是不行呢?
[root@test250archivelog]# du -sh *
98M2010_11_01
196M2010_11_02
98M2010_11_03
115M2010_11_04
4.0K2010_11_05
4.0K2010_11_06
4.0K2010_11_07
215M2010_11_08
[root@test250archivelog]# du -sh *
98M2010_11_01
196M2010_11_02
98M2010_11_03
115M2010_11_04
4.0K2010_11_05
4.0K2010_11_06
4.0K2010_11_07
216M2010_11_08
[root@test250archivelog]# du -sh *
^[[A98M2010_11_01
196M2010_11_02
98M2010_11_03
115M2010_11_04
4.0K2010_11_05
4.0K2010_11_06
4.0K2010_11_07
216M2010_11_08
[root@test250archivelog]# du -sh *
^[[A
^[[A98M2010_11_01
196M2010_11_02
98M2010_11_03
115M2010_11_04
4.0K2010_11_05
4.0K2010_11_06
4.0K2010_11_07
217M2010_11_08
发现还在归档呢。。。
再看看alert日志,已经变成38.97%
[root@test250~]# tail -f /oracle/admin/cwt/bdump/alert_cwt.log
MonNov815:37:492010
Archiverprocessfreedfromerrors.Nolongerstopped
MonNov815:37:492010
Thread1advancedtologsequence243
Currentlog# 3 seq# 243 mem# 0: /oracle/oradata/cwt/redo03.log
MonNov815:37:522010
db_recovery_file_dest_sizeof2048MBis38.97%used.Thisisa
user-specifiedlimitontheamountofspacethatwillbeusedbythis
databaseforrecovery-relatedfiles,anddoesnotreflecttheamountof
spaceavailableintheunderlyingfilesystemorASMdiskgroup
再登录一次
[oracle@test250bdump]$sqlplusXX_js/XX_js
SQL*Plus:Release10.2.0.1.0-ProductiononMonNov815:40:112010
Copyright(c)1982,2005,Oracle.Allrightsreserved.
Connectedto:
OracleDatabase10gEnterpriseEditionRelease10.2.0.1.0-Production
WiththePartitioning,OLAPandDataMiningoptions
SQL>quit
终于可以了。
总结&问题:这个问题的引起主要是因为闪回区满了,我手工删除了过期的归档日志后,并没有释放
后来使用rman进行删除后,过了几十秒就可以了。
flash_recovery_area使用率多少,不应该由rman来控制和触发吧,理论上,我第一次手工删除后就应该可以了,但是我没有等和观察
如果有知道的,告诉我一下。谢谢。还有好像虽然空间释放了,但是还是无法登陆,好像归档结束就可以登录了。等我有时间在虚拟机上来再模拟一次。
linux系统服务ora-00257,ORA - 00257 故障处理相关推荐
- linux系统服务介绍
linux系统服务介绍 在windows系统中,我们可以打开任务管理器来打开或者关闭某些服务.在Linux系统下也同样有这样的需求,那么linux下怎么打开类似于windows下的"任务管理 ...
- 查看运行状态_查看 Linux 系统服务的 5 大方法
Linux 系统服务有时也称为守护程序,是在Linux启动时自动加载并在Linux退出时自动停止的系统任务. 在本文中,良许将为大家介绍如何列出 Linux 系统里所有运行的服务,以及如何检查某个服务 ...
- linux系统服务详解 用于Linux系统服务优化
linux系统服务详解 用于Linux系统服务优化 服务名 必需(是/否)用途描述 注解 acon 否 语言支持 特别支 ...
- Linux 系统服务管理(启动服务/停止服务/重启服务)的命令 - chkconfig/service/systemctl
文章目录 一.使用命令 chkconfig 管理系统服务 (一)命令介绍 二.使用命令 service 管理系统服务 (一)命令介绍 (二)命令用法 1.启动服务 2.停止服务 3.重启服务 4.查看 ...
- linux服务chm,linux系统服务 chm
冒算发出乔家开具面霜?磨去开源新片米泉坎坷缆船六谷酷炫.连忙领属官长保民涅盘肚子凶相风趣,逞能算图碍事柴扉规例惩艾坡脚黄袍,四年幸灾别称牌号木牌,类乎股王蓝玉求新名教年糕八股联盟!挂单轨迹八股落市气功 ...
- 了解及优化常见的Linux系统服务
常见的Linux系统服务 Linux系统中包含了大量的服务程序,这些程序在切换运行级别时有rc脚本根据预设的状态进行启动或终止.其中有些系统服务可能并不是用户需要的,但是也默认运行了,只有正确了解各个 ...
- linux进程作为服务,将一个监视进程做成linux系统服务
为了能将自己写的一个监视linux系统服务或者是自己写的监视应用服务的程序做成符合linux的规范,特写了如下程序,如果次程序命名为dcp_im_server,可以使用一下命令来启动 monitors ...
- zabbix监控Linux系统服务
转载来源 :zabbix监控Linux系统服务: http://www.lwops.cn/thread-256-1-2.html Zabbix自动发现规则监控Linux系统的service units ...
- Linux学习之CentOS(三十二)--Linux系统服务基础
您可以通过点击 右下角 的按钮 来对文章内容作出评价, 也可以通过左下方的 关注按钮 来关注我的博客的最新动态. 如果文章内容对您有帮助, 不要忘记点击右下角的 推荐按钮 来支持一下哦 如果您对文章内 ...
- linux启动zabbix服务,zabbix监控Linux系统服务的流程
Zabbix自动发现规则监控Linux系统的service units 项目要求:通过systemctl命令查看Linux系统的service units: 监控前提:zabbix环境已搭建好: 监控 ...
最新文章
- 使用pymongo将文件存入MongoDB
- ContentProvider学习笔记
- Python补充01 序列的方法
- HDU - 2438 Turn the corner(三分)
- java7优化,七、索引优化分析
- python 学习笔记 - for循环: 字典遍历, 分别打印key, value, key:value
- android基础知识学习(1) TextView属性大全+单行显示长文本
- System.arraycopy详解
- 基金学习20190802
- 2021 年 6 个GitHub推荐前端项目
- POI合并单元格后边框显示问题
- 网络拓扑绘制软件亿图图示安装以及使用攻略
- Java之BIO网络编程
- 电源完整性(PI)概述
- java 常用框架MP
- 刚体6D位姿估计方法综述
- 原生JS实现拿到的时间戳“毫秒/秒”转为“时:分:秒”形式的效果
- C语言笔记(三)常量、变量
- 蒸米ROP学习笔记(一步一步学 ROP 之 Linux_x86 篇)
- 企业 Apple 设备管理概述
热门文章
- android 模拟屏幕点击
- mysql 死锁是什么_mysql死锁是什么意思
- IE8和IE9出现“此网页上的问题导致internet explorer 关闭并重新打开该选项卡
- Unity-Shader 外轮廓线,外描边
- 四针脚0.96寸OLED屏幕标准库代码转Cube Max创建的HAL库工程代码
- c莫比乌斯函数_莫比乌斯函数总结
- 让服务更有温度丨友邦智能客服机器人“小友”上线
- c语言中extern变量,C语言中的Extern用法
- IEEE 参考文献格式书写总结(超级全,一共16种格式)
- nginx静态资源访问配置