溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務條款》

數(shù)據(jù)庫中手工rm刪除歸檔日志對備份歸檔日志的影響有哪些

發(fā)布時間:2021-11-09 13:49:01 來源:億速云 閱讀:130 作者:小新 欄目:關(guān)系型數(shù)據(jù)庫

這篇文章主要為大家展示了“數(shù)據(jù)庫中手工rm刪除歸檔日志對備份歸檔日志的影響有哪些”,內(nèi)容簡而易懂,條理清晰,希望能夠幫助大家解決疑惑,下面讓小編帶領(lǐng)大家一起研究并學習一下“數(shù)據(jù)庫中手工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 database 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 compromises 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 sequence 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 set

channel ORA_DISK_1: specifying archived log(s) in backup set

input archived log thread=1 sequence=494 RECID=1 STAMP=982495630

input archived log thread=1 sequence=495 RECID=2 STAMP=982495631

input archived log thread=1 sequence=499 RECID=6 STAMP=982495640

input archived log thread=1 sequence=501 RECID=8 STAMP=982495646

input archived log thread=1 sequence=502 RECID=9 STAMP=982495881

input archived log thread=1 sequence=503 RECID=10 STAMP=982495953

input archived log thread=1 sequence=504 RECID=11 STAMP=982513112

496、497、498、500這幾個sequence的歸檔日志都沒有備份進去

以上是“數(shù)據(jù)庫中手工rm刪除歸檔日志對備份歸檔日志的影響有哪些”這篇文章的所有內(nèi)容,感謝各位的閱讀!相信大家都有了一定的了解,希望分享的內(nèi)容對大家有所幫助,如果還想學習更多知識,歡迎關(guān)注億速云行業(yè)資訊頻道!

向AI問一下細節(jié)

免責聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點不代表本網(wǎng)站立場,如果涉及侵權(quán)請聯(lián)系站長郵箱:is@yisu.com進行舉報,并提供相關(guān)證據(jù),一經(jīng)查實,將立刻刪除涉嫌侵權(quán)內(nèi)容。

AI