您好,登錄后才能下訂單哦!
這篇文章主要講解了“怎么解決Oracle RMAN還原測(cè)試錯(cuò)誤ORA-19571”,文中的講解內(nèi)容簡(jiǎn)單清晰,易于學(xué)習(xí)與理解,下面請(qǐng)大家跟著小編的思路慢慢深入,一起來(lái)研究和學(xué)習(xí)“怎么解決Oracle RMAN還原測(cè)試錯(cuò)誤ORA-19571”吧!
在進(jìn)行數(shù)據(jù)庫(kù)備份有效性驗(yàn)證時(shí),測(cè)試到一半時(shí),出現(xiàn)了讓我覺(jué)得有點(diǎn)莫名的錯(cuò)誤
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>
測(cè)試的數(shù)據(jù)庫(kù),采用catalog數(shù)據(jù)庫(kù)管理備份元數(shù)據(jù)。在測(cè)試的時(shí)候,因?yàn)閭浞菰谝郧俺霈F(xiàn)過(guò)問(wèn)題,還原測(cè)試的時(shí)候,在操作系統(tǒng)層面執(zhí)行rm命令進(jìn)行物理刪除。刪除之后再次進(jìn)行還原,出現(xiàn)以上錯(cuò)誤。
解決方式:
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í)行以上操作時(shí)需要連接到catalog數(shù)據(jù)庫(kù)。
感謝各位的閱讀,以上就是“怎么解決Oracle RMAN還原測(cè)試錯(cuò)誤ORA-19571”的內(nèi)容了,經(jīng)過(guò)本文的學(xué)習(xí)后,相信大家對(duì)怎么解決Oracle RMAN還原測(cè)試錯(cuò)誤ORA-19571這一問(wèn)題有了更深刻的體會(huì),具體使用情況還需要大家實(shí)踐驗(yàn)證。這里是億速云,小編將為大家推送更多相關(guān)知識(shí)點(diǎn)的文章,歡迎關(guān)注!
免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如果涉及侵權(quán)請(qǐng)聯(lián)系站長(zhǎng)郵箱:is@yisu.com進(jìn)行舉報(bào),并提供相關(guān)證據(jù),一經(jīng)查實(shí),將立刻刪除涉嫌侵權(quán)內(nèi)容。