Starting backup at 06-NOV-14
using target database control file instead of recovery catalog
allocated channel: ORA_DISK_1
channel ORA_DISK_1: sid=159 devtype=DISK
channel ORA_DISK_1: starting datafile copy
input datafile fno=00005 name=/u01/oracle/oradata/jadl10g/example01.dbf
output filename=/u01/oracle/flash_recovery_area/JADL10G/datafile/o1_mf_example_b5pbo2pc_.dbf tag=TAG20141106T160034 recid=10 stamp=862934437
channel ORA_DISK_1: datafile copy complete, elapsed time: 00:00:03
Finished backup at 06-NOV-14
RMAN> recover copy of datafile 5; ---改命令就是对上面的数据文件做增量的修改,
Starting recover at 06-NOV-14
using channel ORA_DISK_1
no copy of datafile 5 found to recover
Finished recover at 06-NOV-14
数据文件从一个路径迁移到新的路径
数据文件从文件系统到ASM
数据文件从ASM到文件系统
实施以上需求的办法:
set newname for datafile ‘...‘ to ‘...‘;
restore ...
switch datafile all;
recover ....
将数据文件迁移到ASM:
SQL> select name from v$asm_diskgroup;
vi a.rman
run{
sql ‘alter tablespace a1 offline immediate‘;
set newname for datafile 7 to ‘+DB‘;
restore datafile 7;
switch datafile all; ---交换文件
recover datafile 7;
slq ‘alter tablespace a1 online‘;
}
在rman执行该脚本;
12c是比较特殊的:
alter database datafile 13 move ‘/u01/......‘;----移动到新的路径