使用Active Database Duplication创建跨平台Data Guard设置 (Windows/Linux) (Doc ID 881421.1)

Using Active Database Duplication to Create Cross Platform Data Guard Setup (Windows/Linux) (Doc ID 881421.1)

APPLIES TO:

Oracle Database Cloud Exadata Service - Version N/A and later
Oracle Database Cloud Service - Version N/A and later
Oracle Database - Enterprise Edition - Version 11.1.0.6 and later
Oracle Database Cloud Schema Service - Version N/A and later
Oracle Database Exadata Express Cloud Service - Version N/A and later
Information in this document applies to any platform.

GOAL

Disclaimer:??
NOTE: In the images and/or the document content below, the user information and environment data used represents fictitious data from the Oracle sample schema(s), Public Documentation delivered with an Oracle database product or other training material.  Any similarity to actual environments, actual persons, living or dead, is purely coincidental and not intended in any manner.??For the purposes of this document, the following fictitious environment is used as an example to describe the procedure:

DB_name=ORA11GR1

DB_UNIQUE_NAMES=CHICAGO,BOSTON

This note outlines the required steps to create a physical standby database in Mixed environment using 11g RMAN Active Duplicate.  本说明概述了使用11g RMAN Active Duplicate在混合环境中创建物理备用数据库的必需步骤

You can configure cross platform (database that runs on a different platform  i,e. Linux and Windows) standby database using below Options:  您可以使用以下选项配置跨平台(在不同平台(即Linux和Windows)上运行的数据库)备用数据库

I) Using RMAN Active database duplicate command starting from 11g onwards. Backup-based duplication will only work if we have same file system structure/backup available on sbt device.  使用从11g开始的RMAN Active database duplicate命令。仅当我们在sbt设备上具有相同的文件系统结构/备份可用时,基于备份的复制才有效。
II) Take online backup using RMAN/Traditional method & restore it on standby site.  使用RMAN /传统方法进行在线备份,并将其还原到备用站点上。
II) Restore the offline backup of database.  恢复数据库的脱机备份。

Review below MOS document to check RMAN Mixed platform support:  复查下面的MOS文档以检查RMAN混合平台支持

Note 1079563.1: RMAN DUPLICATE/RESTORE/RECOVER Mixed Platform Support
<Note  413484.1>: Data Guard Support for Heterogeneous Primary and Standby Systems in Same Data Guard Configuration

SOLUTION

Environment :

Database name for both hosts:  两个主机的数据库名称
db_name=ORA11GR1

Primary database:

Database version : 11.1.0.7.0
OS Make : Linux 32bit
db_unique_name : CHICAGO

Standby Database
Database version : 11.1.0.7.0
OS Make : Windows 32bit
db_unique_name : BOSTON

1. Create parameter file & Oracle Service with the ORADIM Utility for Standby:  ORADIM创建备用参数文件与Oracle服务

a. Copy source database parameter file into %ORACLE_HOME%\database\initBOSTON.ora  将源数据库参数文件复制到 %ORACLE_HOME%\database\initBOSTON.ora
Copy source database parameter File & modify the paths & set memory related parameters accordingly:  将源数据库参数文件复制并修改路径并相应地设置与内存相关的参数

Modify the following accordingly for windows host:  为Windows主机相应地修改以下内容:

control_files
diagnostic_dest
db_recovery_file_dest

Carefully set following standby parameters for example:  仔细设置以下备用参数,例如

db_file_name_convert=‘/oracle/oradata/CHICAGO/data,‘E:\oradata\BOSTON\data‘
log_file_name_convert=‘/oracle/oradata/CHICAGO/log‘,‘E:\oradata\BOSTON\log‘

Set following Primary parameters for example:  设置以下Primary参数

db_file_name_convert=‘E:\oradata\BOSTON\data‘,‘/oracle/oradata/CHICAGO/data‘
log_file_name_convert=‘E:\oradata\BOSTON\log‘,‘/oracle/oradata/CHICAGO/log‘

b. Creating oracle service will also create password file with initial password same as primary:  创建oracle服务还将创建初始密码与primary相同的密码文件

set ORACLE_HOME=<Correct Directory>
set PATH=%PATH%:%ORACLE_HOME%/bin

oradim -new -SID BOSTON -INTPWD primarySysPassword -STARTMODE auto -PFILE "%ORACLE_HOME%\database\initBOSTON.ora"

Startup nomount the auxiliary instance:  启动nomount辅助实例

sqlplus "/ as sysdba"
SQL> startup nomount

2) Update tnsnames.ora on primary & standby systems. In this example, Chicago is Primary and Boston is Standby.  在主系统和备用系统上更新tnsnames.ora。在此示例中,Chicago is Primary and Boston is Standby

tnsnames.ora (on both systems): 在两个系统上

BOSTON =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = <Host Ip Addr>)(PORT = <Port>))
)
(CONNECT_DATA = (SERVICE_NAME = BOSTON))
)

CHICAGO =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = <Host Ip Addr>)(PORT = <Port>))
)
(CONNECT_DATA = (SERVICE_NAME = CHICAGO))
)

Make sure tnsping is working & you are able to connect to both databases using sqlplus from both the sites.  确保tnsping正常工作,并且您能够使用sqlplus从两个站点连接到两个数据库

3) Run active database duplication:

%rman
RMAN> connect target sys/<PASSWORD>@chicago; # Primary
RMAN> connect auxiliary sys/<PASSWORD>@boston; # Standby: tnsname used by primary
RMAN> run {
allocate channel prmy1 type disk;
allocate channel prmy2 type disk;
allocate channel prmy3 type disk;
allocate auxiliary channel stby1 type disk;
duplicate target database for standby from active database nofilenamecheck;
}

You can then configure this environment for Data Guard.  然后,您可以为Data Guard配置此环境
For compatibility matrix check   有关兼容性矩阵
Note 413484.1: Data Guard Support for Heterogeneous Primary and Physical Standbys in Same Data Guard Configuration

REFERENCES

NOTE:413484.1 - Data Guard Support for Heterogeneous Primary and Physical Standbys in Same Data Guard Configuration
NOTE:1079563.1 - RMAN DUPLICATE/RESTORE/RECOVER Mixed Platform Support

原文地址:https://www.cnblogs.com/zylong-sys/p/12041602.html

时间: 2024-10-24 01:49:48

使用Active Database Duplication创建跨平台Data Guard设置 (Windows/Linux) (Doc ID 881421.1)的相关文章

使用Data Guard迁移到RAC (Doc ID 273015.1)

Migrating to RAC using Data Guard (Doc ID 273015.1) APPLIES TO: Oracle Database Cloud Exadata Service - Version N/A and laterOracle Database Cloud Service - Version N/A and laterOracle Database - Enterprise Edition - Version 9.2.0.1 to 9.2.0.8 [Relea

oracle 11g RMAN:Active Database Duplication for standby database 创建dg 命令解读

基于生产的duplicate 复制,如果事先没有手动配置pfile(设定内存,进程,dg相关配置参数,数据库相关路径参数)则会出现各种参数无法转换的问题: 因为duplicate 会从生产自动拷贝pfile,控制文件,密码文件过来,如果主库和备库环境不一样(数据库软件路径,数据文件存储路径) 如果没在duplicate的命令中完整指定新环境备库的各种参数涉及路径,及转换参数,就会默认使用从主库拷贝过来的spfile中的参数设置(会忽略oracle 自定义的的缺省配置:比如adr 缺省会放在ORA

Oracle Active Database Duplication

Active Database Duplication 简介---------Active database duplication功能是从11g开始引入的一个新功能,它是对比以前版本中的基于备份集的复制数据库功能. 下面简单的回顾一下关于ORACLE Duplicate Database功能,Duplicate database可以按照用途分为2种,一种是duplicate database,第二种是duplicate standby database,本文主要介绍duplicate data

跨平台的EVENT事件 windows linux

#ifndef _HIK_EVENT_H_ #define _HIK_EVENT_H_ #ifdef _MSC_VER #include <Windows.h> #define hik_event_handle HANDLE #else #include <pthread.h> typedef struct { bool state; bool manual_reset; pthread_mutex_t mutex; pthread_cond_t cond; }event_t; #

跨平台的EVENT事件 windows linux(转)

#ifndef _HIK_EVENT_H_ #define _HIK_EVENT_H_ #ifdef _MSC_VER #include <Windows.h> #define hik_event_handle HANDLE #else #include <pthread.h> typedef struct { bool state; bool manual_reset; pthread_mutex_t mutex; pthread_cond_t cond; }event_t; #

Oracle11g Active Data Guard搭建、管理

说明:參考网络众多人的笔记及思路,加上自己亲身实践之后的整理笔记.仅供參考. Data Guard与RAC不同的是.在普通情况下.Standby仅仅有一个节点处于活动状态,全部的应用都连接到主server. 仅仅有当server发生问题时,才考虑切换到备用server. 在Oracle 11g曾经版本号中的的Data Guard物理备用数据库.能够以仅仅读的方式打开数据库.但此时MediaRecovery利用日志进行数据同步的过程就停止了,假设物理备用数据库处于恢复的过程中数据库就不能打开查询.

Oracle 11g Data Guard 物理备库快速配置指南(上)

缘起 最近做了10g和11g的物理备库配置实验,发现 Data Guard 其实很容易,但是缺少好文档.我是参考官方文档做的实验,觉得它写的不是很清楚的. Google 出来两个pdf文档,读了觉得比官方文档强很多.翻译下,也许会对某些朋友有用.翻译的同时我也好更熟悉下这两个文档.好久没翻译过英文了,可以顺便练练手. 原文档下载地址(墙外): Configure Dataguard 11gR2 Physical Standby Part 1 Configure Dataguard 11gR2 P

Duplicate From Active Database

RMAN 'Duplicate From Active Database' Feature in 11G (文档 ID 452868.1) 转到底部 APPLIES TO: Oracle Database - Enterprise Edition - Version 11.1.0.6 and laterInformation in this document applies to any platform. PURPOSE The scope of this bulletin is to dis

Oracle 11g Data Guard 使用duplicate from active database 创建 standby database

用这种方式来搭建DG ,主库的停机时间很少,只需要重启一下,使参数生效.也可以用这种方法进行DB迁移.DG搭建好,然后把备库激活就可以了. 这样整个迁移中宕机时间也比较短. Oracle 11g的pyhsical standby 支持open read only 下的apply和Real-time query. 因此就有了physical standby 稳定和logical standby 的报表查询功能. Oracle: 11.2.0.1 OS: redhat 5.5 Primary IP: