snapshot standby database】的更多相关文章

快照备库接收和归档主库发送来的redo,但是不会应用:切换成physical standby之后会自动开启redo apply.快照standby不可以参加主备切换:在最大保护性模式下,如果只有一个备库,则不可以将备库转成snapshot standby. 将Physical Standby Database转换成Snapshot Standby Database 1.停止redo apply SQL> alter database recover managed standby databas…
Oracle 11g是Data Guard的重要里程碑版本.在11g中,Active DataGuard.Advanced Compression等特性大大丰富了Data Guard的功能和在实践领域应用的广度.其中,除了传统的Physical Standby和Logical Standby,11g推出了新的Standby类型——Snapshot Standby. Standby的实质是“同步更新”,无论是Physical Standby还是Logical Standby,都是依照主库Prima…
3.Snapshot Standby行为研究 下面我们分析一下Snapshot Standby的工作性质和行为性质.我们在主库方向研究当前状态. --主库日志情况 SQL> select group#, sequence#, archived, status from v$log; GROUP#  SEQUENCE# ARCHIVED STATUS ---------- ---------- -------- ---------------- 1         98 YES      INAC…
[20180423]flashback tablespace与snapshot standby.txt --//缺省建立表空间是打开flashback on,如果某个表空间flashback off,在dg启动snapshot standby时注意,可能"回不来",--//通过测试说明问题. 1.环境:SCOTT@book> @ ver1PORT_STRING                    VERSION        BANNER--------------------…
在Oracle 11g中,data guard最吸引人的,除了active data guard的实时查询特性(即可以以只读方式打开物理standby数据库的同时MRP进程能继续做recover),快照备用数据库这个特性也是不错,比较适用于快速部署一个临时的与线上环境相同的测试数据库.它是通过还原点(restore point)和闪回数据库的原理(flashback database),可以以读/写方式打开物理备用数据库,对数据库进行修改,之后再根据还原点,恢复到物理备用数据库. 操作相当简单,…
INTRODUCTION Snapshot standby database是ORACLE 11g的新特性.允许Physical standby短时间的使用read write模式. Snapshot standby是由Physical standby 全新转换而来,可以独立于primary 处理事务,同时能够不断地从primary接受redo data,归档redo data以备后用维护保护. Snapshot Standby Database的特性: (1)  Snapshot standb…
Applies to: Oracle Server - Enterprise Edition - Version 11.1.0.6 to 11.2.0.4 [Release 11.1 to 11.2]Information in this document applies to any platform.GoalStep by step guide on how to create a physical standby database using RMAN DUPLICATE FROM ACT…
作者:david_zhang@sh [转载时请以超链接形式标明文章] http://www.cnblogs.com/david-zhang-index/p/5042640.html参照文档:https://azure.microsoft.com/en-us/documentation/articles/virtual-machines-configuring-oracle-data-guard/?cdn=disable#implement-the-physical-standby-databas…
http://neeraj-dba.blogspot.com/2011/10/ora-10456-cannot-open-standby-database.html   Once while starting my standby database i found that database is not opening in normal mode. It throws the error-10456 :cannot standby database.  On performing some…
Oracle Standby Database 实现方案  From: http://wanow.blog.hexun.com/4672755_d.html 字号:大 中 小 版本:V20060328.01.01 Standby Database的工作原理 1. Oracle 与 High Availability, Disaster Recovery 及 Data Duplicate 相关功能的产品概述 Oracle 的 High Availability 功能,Oracle 是从下面几个方面…
primary database db_name=zwc, db_unique_name=zwc standby database db_name=zwc, db_unique_name=standby on primary database [oracle@vmdb12c ~]$ sqlplus sys/oracle@zwc as sysdba SQL*Plus: Release 12.1.0.1.0 Production on Thu Sep 26 16:12:10 2013 Copyrig…
通过合理的设置,对于Primary的绝大数操作,都是可以传递到Physical Standby,datafile的操作是通过STANDBY_FILE_MANAGEMENT参数来控制的,但是即使STANDBY_FILE_MANAGEMENT设置为auto,对于rename操作,standby还是忽略的. If you do not rename the corresponding datafile at the standby system, and then try torefresh the…
1.物理standby failover 切换 故障转移时在一些糟糕的事情发生时执行的计划外事件,需要将生产库移动到DR站点.有意思的是,这时候人们通常忙来忙去,试图弄明白发生了什么,需要做些什么才能使数据库恢复过来.客户打来电话询问系统核实才能恢复,高级管理人员在走廊徘徊,追究是谁范了错误.对于DBA来说,没有什么事情比时空的备用站点更可怕,并且在需要备用站点前,我们也不知道它是否奏效.如果故障转移失败,DBA们将会失去奖金,甚至职业生涯因此中断. 所以我们在系统建立初期,就要有周密的后援计划…
文档操作依据来自官方网址:https://docs.oracle.com/cd/E11882_01/server.112/e41134/scenarios.htm#SBYDB4888 闪回FAILOVER失败的物理备库的前提: 1.物理备库FAILOVER前设置db_recovery_file_dest_size足够大 2.物理备库AILOVER前设置db_recovery_file_dest路径 3.开启物理备库闪回数据库 The following steps assume that a f…
Cause ALTER SYSTEM FLUSH REDO TO STANDBY failed because redo apply is not active at the target database. Action Start redo apply at the standby database and reissue the ALTER SYSTEM FLUSH REDO TO STANDBY statement, or reissue the ALTER SYSTEM FLUSH R…
1.停止Standby select process, status from v$managed_standby; --查看备库是否在应用日志进行恢复 alter database recover managed standby database cancel; shutdown immediate;   2.切换到只读模式 -----由shutdown模式切换到只读模式------- startup nomount; alter database mount standby database…
1.Environment Item Primary database standby database Platform Redhat 5.4 Redhat 5.4 Hostname gc1 gc2 Database Oracle 11.2.0.1.0 Oracle 11.2.0.1.0 ORACLE_SID PROD standby DB_UNIQUE_NAME primary standby 2.Preparing the PrimaryDatabase for Standby Datab…
Step 1: Create the Incremental Backup RMAN> BACKUP DEVICE TYPE DISK INCREMENTAL FROM SCN 750983 DATABASE FORMAT '/tmp/incr_for_standby/bkup_%U'; Step 2: Make the Incremental Backup Accessible at the Standby Database ftp or scp copy 增量备份到 standby 端 St…
说明 Logical standby 数据库是通过Physical standby数据库转换的.本Logical standby是通过之前创建的Physical standby转换的. Physical standby搭建可参考下列链接: http://www.cnblogs.com/zhenxing/p/5260693.html 逻辑DG支持的数据类型 在从物理DG转换为逻辑DG前,先需要确定逻辑DG支持的数据类型和支持哪些DDL操作,可参考下列链接: http://docs.oracle.c…
http://www.oracle-ckpt.com/dataguard_troubleshoot_snapper/ ######sample primay scripts: spool dg_Primary_output.log set feedback off set trimspool on set line 500 set pagesize 50 column name for a30 column display_value for a60 column ID format 99 co…
创建之前要对DG的环境有一个总体的规划和了解.                                                   规划 IP 192.168.3.161 192.168.3.162 SID ITID ITID DB_UNIQUE_NAME Itid1 Itid2 DATA BASE SOFTWARE /u01/app/oracle/product/11.2.0/dbhome_1 /u01/app/oracle/product/11.2.0/dbhome_1 DA…
-------physical standby database: real-time apply 须要配置 standby redo log: 启用实时应用, 日志应用服务会直接应用接收的redo 数据,而不须要等待当前standby redo log 归档 对于failover 和switchover 的时间会大大的减小,由于在failover or switchover 时standby redo log 已经被应用到备库. ALTER DATABASE RECOVER MANAGED S…
搭建DG最后一步打开时报错如下:   SQL> alter database open read only; alter database open read only * ERROR at line 1: ORA-10458: standby database requires recovery ORA-01152: file 1 was not restored from a sufficiently old backup ORA-01110: data file 1: '/data/ora…
ORA-16009错误处理 问题描述: 主备在做Switchover切换时,在切换后的备库报如下错误: Wed Jul 22 04:49:02 2015 Errors in file /u01/app/oracle/admin/orcl/bdump/orcl_arc0_8755.trc: ORA-16009: remote archive log destination must be a STANDBY database 解决办法: 查看主库log_archive_dest_2 参数,结果此参…
环境:RHEL 6.5 + Oracle 11.2.0.4 三.监控DG的状态 3.1监控DG备库的状态 3.2监控主库传输日志链路的状态 四.备库切换为snapshot standby 4.1备库切换为snapshot standby后测试 4.2开始读写测试 五.备库还原为physical standby 5.1备库还原为physical standby 5.2验证数据还原到切换前状态 三.监控DG的状态 3.1 监控DG备库的状态 在备库查询v$dataguard_stats视图信息: -…
Oracle 10g/11g下如何将物理Standby库临时激活用于测试 在实际运营环境中, 我们经常碰到类似这样的需求: 譬如想不影响现网业务评估DB补丁在现网环境中运行的时间, 或者是想在做DB切换前想连接Standby DB做实际业务运行的测试. 如果在9i版本的时候, 想做到这样, 在不搭建新测试环境的前提下, 可以将Standby DB激活后进行测试, 但是激活后的Standby DB将不能再用于容灾, 必须重建Standby DB; 在10g以及11g之后, 可以利用新特性很好的解决…
一.什么是data guard及data guard的工作原理 Data Guard 是一个集合,由一个primary数据库(生产数据库)及一个或多个standby数据库(最多9个)组成.组成Data Guard的数据库通过 Oracle Net连接,并且有可能分布于不同地域.只要各库之间可以相互通信,它们的物理位置并没有什么限制,至于操作系统就更无所谓了(某些情况 下),只要支持oracle就行了. 1. Primary  数据库 前面提到,Data Guard包含一个primary数据库即被…
1.使用快照先决条件:主备库开启闪回功能 2.把备库转为快照库 DGMGRL> convert database satest to SNAPSHOT STANDBY; Converting database "satest" to a Snapshot Standby database, please wait... Database "satest" converted successfully 3.把快照库转回物理备库 DGMGRL> conver…
规划:主库:db_name=dbking               db_unique_name=dbkingpri               备库:db_name=dbking               db_unique_name=dbkingstd 1.修改dbking库为归档模式2.修改dbking库为force logging模式    修改后结果如下:SQL> select name,open_mode,log_mode,force_logging from v$databas…
在实际运营环境中,我们经常碰到类似这样的需求,譬如想不影响现网业务评估DB补丁在现网环境中运行的时间,或者是想在做DB切换前想连接Standby DB做实际业务运行的测试,如果在9i版本的时候,想做到这样,在不搭建新测试环境的前提下,可以将Standby DB激活后进行测试,但是激活后的Standby DB将不能再用于容灾,必须重建Standby DB.在10g以及11g之后,可以利用新特性很好的解决这个问题,激活的Standby DB可以闪回到激活前的状态,继续参与容灾,而不需要重建. 下面简…