這篇文章主要講解了“怎么解決Oracle RMAN還原測試錯誤ORA-19571”,文中的講解內(nèi)容簡單清晰,易于學(xué)習(xí)與理解,下面請大家跟著小編的思路慢慢深入,一起來研究和學(xué)習(xí)“怎么解決Oracle RMAN還原測試錯誤ORA-19571”吧!
創(chuàng)新互聯(lián)專注于企業(yè)全網(wǎng)營銷推廣、網(wǎng)站重做改版、古交網(wǎng)站定制設(shè)計、自適應(yīng)品牌網(wǎng)站建設(shè)、H5場景定制、電子商務(wù)商城網(wǎng)站建設(shè)、集團(tuán)公司官網(wǎng)建設(shè)、外貿(mào)網(wǎng)站制作、高端網(wǎng)站制作、響應(yīng)式網(wǎng)頁設(shè)計等建站業(yè)務(wù),價格優(yōu)惠性價比高,為古交等各大城市提供網(wǎng)站開發(fā)制作服務(wù)。在進(jìn)行數(shù)據(jù)庫備份有效性驗證時,測試到一半時,出現(xiàn)了讓我覺得有點莫名的錯誤
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of restore command at 07/09/2019 10:55:02
ORA-19571: ??????μ? datafile copy RECID 261 STAMP 1013152438
ORA-19600: ????tafile-copy 261 ()
ORA-19601: ?3a datafile-copy 0 (/db_backup/data_D-TESTDB_TS-SYSTEM_FNO-1)
執(zhí)行的腳本:
Recovery Manager: Release 12.1.0.2.0 - Production on 星期二 7月 9 10:57:04 2019
Copyright (c) 1982, 2014, Oracle and/or its affiliates. All rights reserved.
connected to target database: TESTDB (DBID=*****, not open)
connected to recovery catalog database
recovery catalog schema release 18.03.00.00. is newer than RMAN release
RMAN> run{
2> allocate channel c1 type disk;
3> allocate channel c2 type disk;
4> allocate channel c3 type disk;
5> allocate channel c4 type disk;
6> set newname for database to '/db_backup/%U';
7> restore database;
8> switch datafile all;
9> recover database;
10> release channel c1;
11> release channel c2;
12> release channel c3;
13> release channel c4;
14> }
15>
測試的數(shù)據(jù)庫,采用catalog數(shù)據(jù)庫管理備份元數(shù)據(jù)。在測試的時候,因為備份在以前出現(xiàn)過問題,還原測試的時候,在操作系統(tǒng)層面執(zhí)行rm命令進(jìn)行物理刪除。刪除之后再次進(jìn)行還原,出現(xiàn)以上錯誤。
解決方式:
RMAN> set backup files for device type disk to accessible; RMAN> crosscheck copy of database device type disk; RMAN> delete expired copy of database device type disk;
清理掉expired的datafile copy之后,還原可以正常進(jìn)行下去。
當(dāng)然,執(zhí)行以上操作時需要連接到catalog數(shù)據(jù)庫。
感謝各位的閱讀,以上就是“怎么解決Oracle RMAN還原測試錯誤ORA-19571”的內(nèi)容了,經(jīng)過本文的學(xué)習(xí)后,相信大家對怎么解決Oracle RMAN還原測試錯誤ORA-19571這一問題有了更深刻的體會,具體使用情況還需要大家實踐驗證。這里是創(chuàng)新互聯(lián),小編將為大家推送更多相關(guān)知識點的文章,歡迎關(guān)注!