这篇文章主要为大家展示了“数据库中手工rm删除归档日志对备份归档日志的影响有哪些”,内容简而易懂,条理清晰,希望能够帮助大家解决疑惑,下面让小编带领大家一起研究并学习一下“数据库中手工rm删除归档日志对备份归档日志的影响有哪些”这篇文章吧。手工rm删除归档日志后,备份归档日志的时候会报错找不到删除的归档日志,crosscheck archivelog all和delete expired archivelog all后,备份归档日志不再报错使用rman的delete命令删除归档日志后,备份归档日志不会报错[oracle@oatest 2018_07_26]$ ll总用量 12720-rw-r—–. 1 oracle dba 12994048 7月 26 11:27 o1_mf_1_494_folhwg5h_.arc-rw-r—–. 1 oracle dba 1536 7月 26 11:27 o1_mf_1_495_folhwhdx_.arc-rw-r—–. 1 oracle dba 2560 7月 26 11:27 o1_mf_1_496_folhwkfj_.arc-rw-r—–. 1 oracle dba 1024 7月 26 11:27 o1_mf_1_497_folhwlbh_.arc-rw-r—–. 1 oracle dba 1024 7月 26 11:27 o1_mf_1_498_folhwq9c_.arc-rw-r—–. 1 oracle dba 1024 7月 26 11:27 o1_mf_1_499_folhwr3b_.arc-rw-r—–. 1 oracle dba 1024 7月 26 11:27 o1_mf_1_500_folhwx96_.arc-rw-r—–. 1 oracle dba 1024 7月 26 11:27 o1_mf_1_501_folhwy86_.arc[oracle@oatest 2018_07_26]$ rm -f o1_mf_1_496_folhwkfj_.arc o1_mf_1_497_folhwlbh_.arc o1_mf_1_498_folhwq9c_.arcRMAN> backup archivelog all format ‘/home/oracle/archivelog%U’ delete input;Starting backup at 26-JUL-18current log archivedusing target database control file instead of recovery catalogallocated channel: ORA_DISK_1channel ORA_DISK_1: SID=224 device type=DISKRMAN-00571: ===========================================================RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============RMAN-00571: ===========================================================RMAN-03002: failure of backup command at 07/26/2018 11:31:23RMAN-06059: expected archived log not found, loss of archived log compromises recoverabilityORA-19625: error identifying file /u01/app/oracle/fast_recovery_area/PROD7/archivelog/2018_07_26/o1_mf_1_496_folhwkfj_.arcORA-27037: unable to obtain file statusLinux-x86_64 Error: 2: No such 免费主机域名file or directoryAdditional information: 3RMAN> crosscheck archivelog all;RMAN> delete expired archivelog all;…Do you really want to delete the above objects (enter YES or NO)? yesdeleted archived logarchived log file name=/u01/app/oracle/fast_recovery_area/PROD7/archivelog/2018_07_26/o1_mf_1_496_folhwkfj_.arc RECID=3 STAMP=982495633deleted archived logarchived log file name=/u01/app/oracle/fast_recovery_area/PROD7/archivelog/2018_07_26/o1_mf_1_497_folhwlbh_.arc RECID=4 STAMP=982495634deleted archived logarchived log file name=/u01/app/oracle/fast_recovery_area/PROD7/archivelo免费主机域名g/2018_07_26/o1_mf_1_498_folhwq9c_.arc RECID=5 STAMP=982495639Deleted 3 EXPIRED objectsRMAN> delete archivelog sequence
500;RMAN> backup archivelog all format ‘/home/oracle/archivelog%U’ delete input;Starting backup at 26-JUL-18current log archivedusing channel ORA_DISK_1channel ORA_DISK_1: starting archived log backup setchannel ORA_DISK_1: specifying archived log(s) in backup setinput archived log thread=1 sequence=494 RECID=1 STAMP=982495630input archived log thread=1 sequence=495 RECID=2 STAMP=982495631input archived log thread=1 sequence=499 RECID=6 STAMP=982495640input archived log thread=1 sequence=501 RECID=8 STAMP=982495646input archived log thread=1 sequence=502 RECID=9 STAMP=982495881input archived log thread=1 sequence=503 RECID=10 STAMP=982495953input archived log thread=1 sequence=504 RECID=11 STAMP=982513112496、497、498、500这几个sequence的归档日志都没有备份进去以上是“数据库中手工rm删除归档日志对备份归档日志的影响有哪些”这篇文章的所有内容,感谢各位的阅读!相信大家都有了一定的了解,希望分享的内容对大家有所帮助,如果还想学习更多知识,欢迎关注云技术行业资讯频道!
相关推荐: 怎么使用PostgreSQL contrib中的dblink插件
这篇文章主要介绍“怎么使用PostgreSQL contrib中的dblink插件”,在日常操作中,相信很多人在怎么使用PostgreSQL contrib中的dblink插件问题上存在疑惑,小编查阅了各式资料,整理出简单好用的操作方法,希望对大家解答”怎么使…