Home > Database > Mysql Tutorial > Oracle Duplicate搭建DataGuard

Oracle Duplicate搭建DataGuard

WBOY
Release: 2016-06-07 14:54:20
Original
1145 people have browsed it

Duplicate搭建DataGuard: 源库: run{allocate channel ch1 device type disk;allocate channel ch2 device type disk;backup a

Oracle Duplicate搭建DataGuard

[日期:2015-10-16] 来源:Linux社区  作者:sysdba [字体:]

Duplicate搭建DataGuard:

源库:

run
{
allocate channel ch1 device type disk;
allocate channel ch2 device type disk;
backup as compressed  backupset database;
sql 'alter system archive log current';
release channel ch1;
release channel ch2;
}

查询出数据文件路径
select 'set newname for datafile '||FILE_ID||' to '||file_name||';' from dba_data_files;


select 'set newname for datafile '||FILE_ID||' to '||file_name||';' from dba_TEMP_files;

使用duplicate,要在备库有跟主库一样的备份目录并且有备份集在里面,在主库运行命令。

在备库上配置好pfile和standby controlfile

备库操作:
auxorcl是目标库tnsname。

rman target sys/Oracle@cai auxiliary sys/oracle@auxorcl;

run
{
set newname for datafile 1 to '/u01/app/oracle/oradata/cai/system01.dbf';
set newname for datafile 2 to '/u01/app/oracle/oradata/cai/sysaux01.dbf';
set newname for datafile 3 to '/u01/app/oracle/oradata/cai/undotbs01.dbf';
set newname for datafile 4 to '/u01/app/oracle/oradata/cai/users01.dbf';
set newname for datafile 5 to '/u01/app/oracle/oradata/cai/test.dbf';
set newname for tempfile 1 to '/u01/app/oracle/oradata/cai/temp01.dbf';
duplicate target database for standby;
}

Oracle 11gR2 在VMWare虚拟机中安装步骤

Debian 下 安装 Oracle 11g XE R2

Oracle Data Guard 重要配置参数

基于同一主机配置 Oracle 11g Data Guard

探索Oracle之11g DataGuard

Oracle Data Guard (RAC+DG) 归档删除策略及脚本

Oracle Data Guard 的角色转换

Oracle Data Guard的日志FAL gap问题

Oracle 11g Data Guard Error 16143 Heartbeat failed to connect to standby 处理方法

更多Oracle相关信息见Oracle 专题页面 ?tid=12

本文永久更新链接地址

0

MySQL 5.5主从关于‘复制过滤’的深入探究

Oracle RMAN修复逻辑坏块

相关资讯       DataGuard 

图片资讯      

本文评论   查看全部评论 (0)

评论声明

尊重网上道德,遵守中华人民共和国的各项有关法律法规

承担一切因您的行为而直接或间接导致的民事或刑事法律责任

本站管理人员有权保留或删除其管辖留言中的任意内容

本站有权在网站内转载或引用您的评论

参与本评论即表明您已经阅读并接受上述条款

最新资讯

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template