|
唐sir: 做冷克隆,异地恢复run块如下写法,备份集很大的情况下,单通道很慢(见帖子底部),请教这种情况怎么增加通道分配的参数?
查阅了文档 https://docs.oracle.com/html/E10643_07/rcmsynta004.htm,最后部分是用[size=11.6188px]DB_FILE_NAME_CONVERT,但我这里直接用db_create_file_dest。
尝试过如下写法,不对。
run {[size=11.6188px]ALLOCATE AUXILIARY CHANNEL c1 DEVICE TYPE disk;
[size=11.6188px] [size=11.6188px]ALLOCATE AUXILIARY CHANNEL c2 DEVICE TYPE disk;
[size=11.6188px] duplicate target database to orcl
.
.
release channel c1;
release channel c2;
}
[size=11.6188px] 或者补上闪回区,也不对
[size=11.6188px] run {[size=11.6188px]ALLOCATE AUXILIARY CHANNEL c1 DEVICE TYPE disk [size=11.6188px] TO '%F' [size=11.6188px];
[size=11.6188px] [size=11.6188px]ALLOCATE AUXILIARY CHANNEL c2 DEVICE TYPE disk [size=11.6188px] TO '%F'[size=11.6188px] [size=11.6188px];
[size=11.6188px] duplicate target database to orcl
.
.
release channel c1;
release channel c2;
}
rman auxiliary /
run{
duplicate target database to orcl
backup location '/u01/backup/rman'
nofilenamecheck
spfile
set memory_max_target='4294967296'
set memory_target='4294967296'
set db_unique_name= 'orcl'
set
control_files='/u01/app/oracle/oradata/orcl/control01.ctl','/u01/app/oracle/oradata/orcl/control02.ctl'
set
db_create_file_dest='/u01/app/oracle/oradata/orcl'
set
db_create_online_log_dest_1='/u01/app/oracle/oradata/orcl'
set
db_create_online_log_dest_2='/u01/app/oracle/fast_recovery_area'
set
audit_file_dest='/u01/app/oracle/admin/orcl/adump'
set
db_recovery_file_dest_size='20480000000'
set
db_recovery_file_dest='/u01/app/oracle/fast_recovery_area';
}
|
|