Bo's Oracle Station

查看: 1645|回复: 0

请教冷克隆时通道分配的写法

[复制链接]

81

主题

181

帖子

781

积分

高级会员

Rank: 4

积分
781
发表于 2018-5-28 22:20:55 | 显示全部楼层 |阅读模式
唐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';
}

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|手机版|Bo's Oracle Station   

GMT+8, 2024-12-4 16:27 , Processed in 0.041330 second(s), 25 queries .

快速回复 返回顶部 返回列表