oracle dataguard详细,ORACLE11G搭建dataguard详细步骤(物理standby所有操作总结)
序言:
DATAGUARD是通过建立一个PRIMARY和STANDBY组来确立其参照关系;STANDBY一旦创建,DATAGUARD就会通过将主数据库(PRIMARY)的REDO传递给STANDBY数据库,然后在STANDBY中应用REDO实现数据库的同步。
1、安装环境
项目列表primary库standby库操作系统:
都是centos6.4
都是centos6.4
oracle软件版本:
oracle 11.2.0.1.0
oracle 11.2.0.1.0
IP地址:
192.168.121.217
192.168.121.218
db_unique_name:
pdunq
pdunq_dg
?
2.3 准备参数文件
2.3.2 修改pfile
[oracle@powerlong5 ~]$ rman target sys/syspl1758@PD1 auxiliary /
Recovery Manager: Release 11.2.0.1.0 - Production on Sat Feb 7 19:08:16 2015
Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
connected to target database: POWERDES (DBID=3391761643)
connected to auxiliary database: POWERDES (not mounted)
RMAN> run {
allocate auxiliary channel c1 device type disk;
allocate auxiliary channel c2 device type disk;
duplicate target database for standby nofilenamecheck dorecover;
release channel c1;
release channel c2;
}
2> 3> 4> 5> 6> 7>
using target database control file instead of recovery catalog
allocated channel: c1
channel c1: SID=767 device type=DISK
allocated channel: c2
channel c2: SID=1150 device type=DISK
Starting Duplicate Db at 07-FEB-15
contents of Memory Script:
{
set until scn 10903678943;
restore clone standby controlfile;
}
executing Memory Script
executing command: SET until clause
Starting restore at 07-FEB-15
channel c1: starting datafile backup set restore
channel c1: restoring control file
channel c1: reading from backup piece /oracle/app/oracle/flash_recovery_area/PDUNQ/backupset/2015_02_07/o1_mf_ncsnf_TAG20150207T182252_bfct20tb_.bkp
channel c1: piece handle=/oracle/app/oracle/flash_recovery_area/PDUNQ/backupset/2015_02_07/o1_mf_ncsnf_TAG20150207T182252_bfct20tb_.bkp tag=TAG20150207T182252
channel c1: restored backup piece 1
channel c1: restore complete, elapsed time: 00:00:01
output file name=/oracle/data_ora/powerdes/control01.ctl
output file name=/oracle/app/oracle/flash_recovery_area/powerdes/control02.ctl
Finished restore at 07-FEB-15
contents of Memory Script:
{
sql clone 'alter database mount standby database';
}
executing Memory Script
sql statement: alter database mount standby database
contents of Memory Script:
{
set until scn 10903678943;
set newname for datafile 1 to
"/home/oradata/pwerdes/system01.dbf";
set newname for datafile 2 to
"/home/oradata/pwerdes/sysaux01.dbf";
set newname for datafile 3 to
"/home/oradata/pwerdes/undotbs01.dbf";
set newname for datafile 4 to
"/home/oradata/pwerdes/users01.dbf";
set newname for datafile 6 to
"/home/oradata/pwerdes/plas01.dbf";
set newname for datafile 7 to
"/home/oradata/pwerdes/pl01.dbf";
set newname for datafile 8 to
"/home/oradata/pwerdes/help01.dbf";
set newname for datafile 9 to
"/home/oradata/pwerdes/adobelc01.dbf";
set newname for datafile 10 to
"/home/oradata/pwerdes/sms01.dbf";
restore
clone database
;
}
executing Memory Script
executing command: SET until clause
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
Starting restore at 07-FEB-15
channel c1: starting datafile backup set restore
channel c1: specifying datafile(s) to restore from backup set
channel c1: restoring datafile 00001 to /home/oradata/pwerdes/system01.dbf
channel c1: restoring datafile 00002 to /home/oradata/pwerdes/sysaux01.dbf
channel c1: restoring datafile 00003 to /home/oradata/pwerdes/undotbs01.dbf
channel c1: restoring datafile 00004 to /home/oradata/pwerdes/users01.dbf
channel c1: restoring datafile 00006 to /home/oradata/pwerdes/plas01.dbf
channel c1: restoring datafile 00007 to /home/oradata/pwerdes/pl01.dbf
channel c1: restoring datafile 00008 to /home/oradata/pwerdes/help01.dbf
channel c1: restoring datafile 00009 to /home/oradata/pwerdes/adobelc01.dbf
channel c1: restoring datafile 00010 to /home/oradata/pwerdes/sms01.dbf
channel c1: reading from backup piece /oracle/app/oracle/flash_recovery_area/PDUNQ/backupset/2015_02_07/o1_mf_nnndf_TAG20150207T182252_bfcsvxoz_.bkp
channel c1: piece handle=/oracle/app/oracle/flash_recovery_area/PDUNQ/backupset/2015_02_07/o1_mf_nnndf_TAG20150207T182252_bfcsvxoz_.bkp tag=TAG20150207T182252
channel c1: restored backup piece 1
channel c1: restore complete, elapsed time: 00:04:05
Finished restore at 07-FEB-15
contents of Memory Script:
{
switch clone datafile all;
}
executing Memory Script
datafile 1 switched to datafile copy
input datafile copy RECID=3 STAMP=871067691 file name=/home/oradata/pwerdes/system01.dbf
datafile 2 switched to datafile copy
input datafile copy RECID=4 STAMP=871067691 file name=/home/oradata/pwerdes/sysaux01.dbf
datafile 3 switched to datafile copy
input datafile copy RECID=5 STAMP=871067691 file name=/home/oradata/pwerdes/undotbs01.dbf
datafile 4 switched to datafile copy
input datafile copy RECID=6 STAMP=871067691 file name=/home/oradata/pwerdes/users01.dbf
datafile 6 switched to datafile copy
input datafile copy RECID=7 STAMP=871067691 file name=/home/oradata/pwerdes/plas01.dbf
datafile 7 switched to datafile copy
input datafile copy RECID=8 STAMP=871067691 file name=/home/oradata/pwerdes/pl01.dbf
datafile 8 switched to datafile copy
input datafile copy RECID=9 STAMP=871067691 file name=/home/oradata/pwerdes/help01.dbf
datafile 9 switched to datafile copy
input datafile copy RECID=10 STAMP=871067692 file name=/home/oradata/pwerdes/adobelc01.dbf
datafile 10 switched to datafile copy
input datafile copy RECID=11 STAMP=871067692 file name=/home/oradata/pwerdes/sms01.dbf
contents of Memory Script:
{
set until scn 10903678943;
recover
standby
clone database
delete archivelog
;
}
executing Memory Script
executing command: SET until clause
Starting recover at 07-FEB-15
starting media recovery
archived log for thread 1 with sequence 302 is already on disk as file /oracle/app/oracle/flash_recovery_area/archivelog/1_302_870804216.dbf
archived log file name=/oracle/app/oracle/flash_recovery_area/archivelog/1_302_870804216.dbf thread=1 sequence=302
media recovery complete, elapsed time: 00:00:00
Finished recover at 07-FEB-15
Finished Duplicate Db at 07-FEB-15
released channel: c1
released channel: c2
RMAN> exit
3.7 standby上修改参数文件
3.8 启动数据库
4,检查看到归档没有过来
4.1,查看alert日志
[oracle@powerlong5="" trace]$="" tail="" -f="" oracle="" app="" diag="" rdbms="" pdunq_dg="" powerdes="" trace="" alert_powerdes.log=""
mrp0="" started="" with="" pid="41," os="" id="21243" >mrp0:="" background="" managed="" standby="" recovery="" process="" (powerdes)
="" logmerger="" process
sat="" feb="" 07="" 20:12:18="" 2015
managed="" not="" using="" real="" time="" apply
parallel="" media="" 4="" slaves
waiting="" for="" all="" non-current="" orls="" to="" be="" archived...
all="" have="" been="" archived.
media="" waiting="" thread="" 1="" sequence="" 303
completed:="" alter="" database="" recover="" disconnect="" from="" session
select="" sequence#,to_char(first_time,'yyyy-mm-dd="" hh24:mi:ss')="" first_time,to_char(next_time,'yyyy-mm-dd="" next_time="" >primary="" :4.2,去tnsnames.ora里面修改配置primary和standby都保持一致,OK,dataguard搭建完成。
oracle dataguard详细,ORACLE11G搭建dataguard详细步骤(物理standby所有操作总结)相关推荐
- oracle11g dataguard windows,Oracle11g 搭建DataGuard(笔记)
本文参考网络部分资料编写,作为参考笔记 环境: WINDOWS2003+Oralcle11.2.0.1 建议使用 虚拟机来模拟,这样主备两边的环境完全一样. 假设主库的机器名为PRIMARY , IP ...
- dataguard mysql_ORACLE 11G 搭建dataguard详细步骤(所有操作总结)
序言: DATAGUARD是通过建立一个PRIMARY和STANDBY组来确立其参照关系. STANDBY一旦创建,DATAGUARD就会通过将主数据库(PRIMARY)的REDO传递给STANDBY ...
- oracle dg只读,DG -- READ ONLY模式打开物理Standby
物理Standby 概念 DG通过REDO应用来维护物理Standby数据库. 通常在物理Standby没有执行REDO应用操作的时候,可以将物理Standby数据库以READ ONLY模式打开,如 ...
- Oracle11gR2下搭建DataGuard主备同步详解
Oracle11gR2下搭建DataGuard主备同步详解 一 前言: 本文主要流程基于blog.itpub.net上博友oracle_zsx所著文章:<手把手教你安装Data Guard> ...
- ORACLE 11G 搭建dataguard详细步骤(所有操作总结)
序言: DATAGUARD是通过建立一个PRIMARY和STANDBY组来确立其参照关系. STANDBY一旦创建,DATAGUARD就会通过将主数据库(PRIMARY)的REDO传递给STANDBY ...
- ORACLE11G 将dataguard的rman备份恢复到测试环境的单机oracle中的详细过程
2019独角兽企业重金招聘Python工程师标准>>> ORACLE11G 将dataguard的rman备份恢复到测试环境的单机oracle中的详细过程 原创 2015年08月21 ...
- mysql导入500g_【案例】Oracle数据库500G~3T大小迁移 详细方法步骤
天萃荷净 Oracle研究中心案例分析:运维DBA反映在做Oracle数据库500G~3T大小的数据进行迁移,涵盖单机.dataguard.rac迁移. 本站文章除注明转载外,均为本站原创: 转载自l ...
- zookeeper单机和集群搭建过程详细步骤
文章目录: ▶ 单机环境搭建 ▶ 设置zookeeper为开机服务 ▶ 集群环境搭建 单机环境搭建 要求: 依赖Java环境 单机搭建过程: 进入到/opt目录下,创建zookeeper 文件夹 cd ...
- CentOS服务器上搭建Gitlab安装步骤、中文汉化详细步骤、日常管理以及异常故障排查
CentOS服务器上搭建Gitlab安装步骤.中文汉化详细步骤.日常管理以及异常故障排查 参考文章: (1)CentOS服务器上搭建Gitlab安装步骤.中文汉化详细步骤.日常管理以及异常故障排查 ( ...
最新文章
- PHP系统编程--01.多进程与多线程
- [搜索]一种分词方法的实现
- SQL基础【六、and与or】
- bzoj3895: 取石子(博弈论,记忆化搜索)
- wampserver的mysql启动与环境变量设置
- realvnc 6 教程 linux,CentOS 6下VNC的安装与配置
- activiti流程变量
- Spring Cloud Alibaba系列教程-03-搭建生产可用的Nacos集群
- Sql server备份数据库不执行
- 微信朋友圈点赞和评论测试用例
- No ip domain-lookup和Logging synchronous和Exec-timeout 0 0
- 【Proteus】动态数码管显示
- 智慧工地给工地装上“最强大脑”
- 海康服务器装win7系统,详解win7旗舰版系统必须重装的四种情况
- BI神器Power Query(7)-- PQ从文本文件导入数据(1/2)
- HM下载调试_ubuntu20
- c++ vector 一部分_巴博斯制定奔驰C级(W204)全套改装方案,运动范er十足
- linux应急处理方法,Linux系统下6个常见紧急情况的应急处理方法
- 新手小白入门必看!如何批量注册Twitter账号?
- 1. Perface
热门文章
- echarts 地图3d+地图下钻
- C++_OpenCV不通过SDK打开摄像头
- 调整matlab颜色栏字体大小
- MyBatis 框架基础
- SpringMVC 框架基础
- 主机支持php的curl扩展,[Windows技术] 使服务器支持PHP curl函数:开启CURL扩展的方法...
- 游戏设计的艺术:一本透镜的书——第二十二章 其他玩家往往会形成社区
- Homekit智能家居一智能吸顶灯
- 充电好快!小米20000mAh移动电源评测
- python设置桌面歌词_Python点阵字玩转动态歌词