使用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
使用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 Servic ...
- 使用Oracle 11g新特性 Active Database Duplication 搭建Dataguard环境
Duplication Database 介绍 Duplicate database可以按照用途分为2种: duplicate database(复制出一个数据库) duplicate standby ...
- .NET Core 跨平台 串口通讯 ,Windows/Linux 串口通讯,flyfire.CustomSerialPort 的使用
目录 1,前言 2,安装虚拟串口软件 3,新建项目,加入 flyfire.CustomSerialPort 4,flyfire.CustomSerialPort 说明 5,开始使用 flyfire.C ...
- 跨平台的EVENT事件 windows linux
#ifndef _HIK_EVENT_H_ #define _HIK_EVENT_H_ #ifdef _MSC_VER #include <Windows.h> #define hik_e ...
- 跨平台的EVENT事件 windows linux(转)
#ifndef _HIK_EVENT_H_ #define _HIK_EVENT_H_ #ifdef _MSC_VER #include <Windows.h> #define hik_e ...
- Oracle11g Active Data Guard搭建、管理
说明:參考网络众多人的笔记及思路,加上自己亲身实践之后的整理笔记.仅供參考. Data Guard与RAC不同的是.在普通情况下.Standby仅仅有一个节点处于活动状态,全部的应用都连接到主serv ...
- 在物理 Data Guard 中对异构主备系统的支持 (文档 ID 1602437.1)
Data Guard中主数据库与物理备用数据库(Redo Apply)之间可以有什么差别?本说明针对重做应用和 Oracle Data Guard 12 发行版 1 进行了更新.它适用于 Oracle ...
- 使用duplicate target database ... from active database复制数据库
使用duplicate target database ... from active database复制数据库 source db:ora11auxiliary db:dupdb 1.修改监听文件 ...
- RMAN 'Duplicate From Active Database' Feature in Oracle11g (Doc ID 452868.1)
RMAN 'Duplicate From Active Database' Feature in Oracle11g (Doc ID 452868.1) APPLIES TO: Oracle Data ...
随机推荐
- springboot中实现kafa指定offset消费
kafka消费过程难免会遇到需要重新消费的场景,例如我们消费到kafka数据之后需要进行存库操作,若某一时刻数据库down了,导致kafka消费的数据无法入库,为了弥补数据库down期间的数据损失,有 ...
- 【Canvas】311- 解决 canvas 在高清屏中绘制模糊的问题
点击上方"前端自习课"关注,学习起来~ 一.问题分析 使用 canvas 绘制图片或者是文字在 Retina 屏中会非常模糊.如图: 因为 canvas 不是矢量图,而是像图片一样 ...
- 用span写一个特殊样式的1
用span写一个如下样式的 1 span { display: inline-block; width: 17px; height: 17px; background: var(--themeColo ...
- 剑指Offer-41.和为S的连续正数序列(C++/Java)
题目: 小明很喜欢数学,有一天他在做数学作业时,要求计算出9~16的和,他马上就写出了正确答案是100.但是他并不满足于此,他在想究竟有多少种连续的正数序列的和为100(至少包括两个数).没多久,他就 ...
- javascript基础(001)-js加减乘除注意事项(含类型转换)
一,加减乘除注意事项: 1.任意类型'+'字符串都被强转字符串 2.数字和布尔类型'+'undefined 结果为 NaN (Not a Number) 3.'-','*','/'操作会尝试把数据转为 ...
- [ASP.NET Core 3框架揭秘] 依赖注入[2]:IoC模式
正如我们在<依赖注入:控制反转>提到过的,很多人将IoC理解为一种"面向对象的设计模式",实际上IoC不仅与面向对象没有必然的联系,它自身甚至算不上是一种设计模式.一般 ...
- Nginx配置实例-动静分离实例:搭建静态资源服务器
场景 Nginx入门简介和反向代理.负载均衡.动静分离理解: https://blog.csdn.net/BADAO_LIUMANG_QIZHI/article/details/102790862 U ...
- MySql事务的简单使用
4个特性 原子性:一个事务中的所有操作,要么全部完成,要么全部不完成,不会结束在中间某个环节.事务在执行过程中发生错误,会被回滚(rollback)到事务开始前的状态 一致性:在事务开始前和事务结束以 ...
- web 自动化遇到 shadowDOM 节点你会操作吗?
本文转载自: http://www.lemfix.com/topics/971 近期有同学在做web自动化的时候,发现页面上有些元素,在selenium中无法通过xpath来定位,各种原因找了半天,都 ...
- JavaScript中常用的字符串方法
1. charAt(x) charAt(x)返回字符串中x位置的字符,下标从 0 开始. //charAt(x) var myString = 'jQuery FTW!!!'; console.log ...