标签:
基于生产的duplicate 复制,如果事先没有手动配置pfile(设定内存,进程,dg相关配置参数,数据库相关路径参数)则会出现各种参数无法转换的问题;
这些个存放目录:闪回区目录,adr目录,审计日志目录, Oracle-managed 数据文件目录 等等,一定要注意啊
------------这里解释使用类上述命令执行后的日子输出,来理解使用上述命令初始化备库的原理:
$rman target sys/sys@chicago auxiliary sys/sys@boston
connected to target database: CHICAGO (DBID=761464750)
connected to auxiliary database: CHICAGO (not mounted)
RMAN> run {
allocate channel prmy1 type disk;
allocate channel prmy2 type disk;
allocate channel prmy3 type disk;
allocate channel prmy4 type disk;
allocate auxiliary channel stby type disk;
duplicate target database for standby from active database
spfile
parameter_value_convert ‘chicago‘,‘boston‘
set db_unique_name=‘boston‘
set db_file_name_convert=‘/chicago/‘,‘/boston/‘
set log_file_name_convert=‘/chicago/‘,‘/boston/‘
set control_files=‘/u01/app/oracle/oradata/control01.ctl‘
set log_archive_max_processes=‘5‘
set fal_client=‘boston‘
set fal_server=‘chicago‘
set standby_file_management=‘AUTO‘
set log_archive_config=‘dg_config=(chicago,boston)‘
set log_archive_dest_2=‘service=chicago ASYNCvalid_for=(ONLINE_LOGFILE,PRIMARY_ROLE) db_unique_name=chicago‘
;
}
oracle 11g RMAN:Active Database Duplication for standby database 创建dg 命令解读
标签:
原文地址:http://blog.csdn.net/lixora/article/details/42591587