Starting backup at 05-JAN-21
using target database control file instead of recovery catalog
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=47 instance=ORCL1 device type=DISK
channel ORA_DISK_1: starting datafile copy
input datafile file number=00013 name=/u01/app/oradata/user02.dbf
output file name=+DATA/ORCL/DATAFILE/users.273.613715801 tag=TAG20171205T122439 RECID=4 STAMP=961935880
channel ORA_DISK_1: datafile copy complete, elapsed time: 00:00:01
Finished backup at 05-JAN-21
Starting Control File and SPFILE Autobackup at 05-JAN-21
piece handle=+FRA/ORCL/AUTOBACKUP/2021-01_05/s_961935881.262.961935883 comment=NONE
Finished Control File and SPFILE Autobackup at 05-JAN-21
3.将13号数据文件离线
可以只将错误的13号数据文件离线,减小影响;
RMAN> alter database datafile 13 offline;
Statement processed
4.切换13号数据文件到copy副本
RMAN> switch datafile 13 to copy;
datafile 13 switched to datafile copy "+DATA/ORCL/DATAFILE/users.273.613715801"
5.恢复13号数据文件
RMAN> recover datafile 13;
Starting recover at 05-JAN-21
using channel ORA_DISK_1
starting media recovery
media recovery complete, elapsed time: 00:00:00