怎么解决Oracle RMAN还原测试错误ORA-19571
这篇文章主要讲解了"怎么解决Oracle RMAN还原测试错误ORA-19571",文中的讲解内容简单清晰,易于学习与理解,下面请大家跟着小编的思路慢慢深入,一起来研究和学习"怎么解决Oracle RMAN还原测试错误ORA-19571"吧!
在进行数据库备份有效性验证时,测试到一半时,出现了让我觉得有点莫名的错误
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)
执行的脚本:
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>
测试的数据库,采用catalog数据库管理备份元数据。在测试的时候,因为备份在以前出现过问题,还原测试的时候,在操作系统层面执行rm命令进行物理删除。删除之后再次进行还原,出现以上错误。
解决方式:
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之后,还原可以正常进行下去。
当然,执行以上操作时需要连接到catalog数据库。
感谢各位的阅读,以上就是"怎么解决Oracle RMAN还原测试错误ORA-19571"的内容了,经过本文的学习后,相信大家对怎么解决Oracle RMAN还原测试错误ORA-19571这一问题有了更深刻的体会,具体使用情况还需要大家实践验证。这里是,小编将为大家推送更多相关知识点的文章,欢迎关注!