oracle归档备份删除,手工rm删除归档日志对备份归档日志的影响

更新时间:2023-06-25 17:43:35 阅读: 评论:0

oracle归档备份删除,⼿⼯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_.arc
RMAN>  backup archivelog all format '/home/oracle/archivelog%U' delete input;
吃醋的典故
Starting backup at 26-JUL-18
current log archived
using target databa control file instead of recovery catalog
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=224 device type=DISK
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of backup command at 07/26/2018 11:31:23
RMAN-06059: expected archived log not found, loss of archived log compromis recoverability
ORA-19625: error identifying file
/
含有草的诗句u01/app/oracle/fast_recovery_area/PROD7/archivelog/2018_07_26/o1_mf_1_496_folhwkfj_.arc
ORA-27037: unable to obtain file status
Linux-x86_64 Error: 2: No such file or directory
Additional information: 3
RMAN> crosscheck archivelog all;
娓娓是什么意思RMAN> delete expired archivelog all;
...
Do you really want to delete the above objects (enter YES or NO)? yes
deleted archived log
archived log file name=/u01/app/oracle/fast_recovery_area/PROD7/archivelog/2018_07_26/o1_mf_1_496_folhwkfj_.arc RECID=3 STAMP=982495633
deleted archived log
archived log file name=/u01/app/oracle/fast_recovery_area/PROD7/archivelog/2018_07_26/o1_mf_1_497_folhwlbh_.arc RECID=4 STAMP=982495634
deleted archived log
archived log file name=/u01/app/oracle/fast_recovery_area/PROD7/archivelog/2018_07_26/o1_mf_1_498_folhwq9c_.arc RECID=5 STAMP=982495639
Deleted 3 EXPIRED objects
小小兵RMAN> delete archivelog quence
500
;
RMAN> backup archivelog all format '/home/oracle/archivelog%U' delete input;
Starting backup at 26-JUL-18
current log archived
using channel ORA_DISK_1
channel ORA_DISK_1: starting archived log backup t
channel ORA_DISK_1: specifying archived log(s) in backup t
input archived log thread=1 quence=494 RECID=1 STAMP=982495630
input archived log thread=1 quence=495 RECID=2 STAMP=982495631
input archived log thread=1 quence=499 RECID=6 STAMP=982495640
input archived log thread=1 quence=501 RECID=8 STAMP=982495646
input archived log thread=1 quence=502 RECID=9 STAMP=982495881
input archived log thread=1 quence=503 RECID=10 STAMP=982495953
input archived log thread=1 quence=504 RECID=11 STAMP=982513112
496、497、498、500这⼏个quence的归档⽇志都没有备份进去

本文发布于:2023-06-25 17:43:35,感谢您对本站的认可!

本文链接:https://www.wtabcd.cn/fanwen/fan/82/1037892.html

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。

标签:归档   备份   删除   报错   添加
相关文章
留言与评论(共有 0 条评论)
   
验证码:
推荐文章
排行榜
Copyright ©2019-2022 Comsenz Inc.Powered by © 专利检索| 网站地图