© Puget Sound Oracle Users Group Education Is Our Passion PSOUG Education Education Is Our Passion Hands-on Workshop Series Oracle DataGuard 10gR2.

Slides:



Advertisements
Similar presentations
ORACLE DATABASE HIGH AVAILABILITY & ORACLE 11GR2 DATA GUARD 1 Güneş EROL.
Advertisements

ITEC474 INTRODUCTION.
INTRODUCTION TO ORACLE Lynnwood Brown System Managers LLC Backup and Recovery Copyright System Managers LLC 2008 all rights reserved.
How Oracle Database 10g Revolutionizes Availability and Enables the Grid Juan Loaiza Vice President, Systems Technologies Oracle Corporation Session id:
High Availability Group 08: Võ Đức Vĩnh Nguyễn Quang Vũ
1 Disk Based Disaster Recovery & Data Replication Solutions Gavin Cole Storage Consultant SEE.
Oracle9i Data Guard Darl Kuhn Sun Microsystems
Oracle Data Guard Ensuring Disaster Recovery for Enterprise Data
© 2015 Dbvisit Software Limited | dbvisit.com An Introduction to Dbvisit Standby.
Introduction to Data Guard NY SIG Meeting October 7th, 2003.
1 © Copyright 2010 EMC Corporation. All rights reserved. EMC RecoverPoint/Cluster Enabler for Microsoft Failover Cluster.
Data Guard SQL Apply Back to the Future! Larry M. Carpenter Senior Principal Consultant Server Technologies Oracle Corporation Session id:
Keith Burns Microsoft UK Mission Critical Database.
EIM April 19, Robin Weaver 13 Years with IBM Prior to Assignment at UNC Charlotte Range of Database Development/Data Management Projects and Products.
1© Copyright 2011 EMC Corporation. All rights reserved. EMC RECOVERPOINT/ CLUSTER ENABLER FOR MICROSOFT FAILOVER CLUSTER.
Module 14: Scalability and High Availability. Overview Key high availability features available in Oracle and SQL Server Key scalability features available.
Agenda  Overview  Configuring the database for basic Backup and Recovery  Backing up your database  Restore and Recovery Operations  Managing your.
Introduction to Oracle Backup and Recovery
Oracle Database High Availability Brandon Kuschel Jian Liu Source: Oracle Database 11g Release 2 High Availability An Oracle White Paper November 2010.
Presentation #36693 Presentation #36693 Oracle High Availability Solutions in a Nutshell Daniel T. Liu Senior Technical Consultant First American Real.
Proven Techniques for Maximizing Availability Maximum Availability Architecture Lawrence To, Shari Yamaguchi High Availability Systems Group Systems Technologies.
CERN IT Department CH-1211 Genève 23 Switzerland t Data Protection with Oracle Data Guard Jacek Wojcieszuk, CERN/IT-DM Distributed Database.
High Availability & Oracle RAC 18 Aug 2005 John Sheaffer Platform Solution Specialist
ORACLE DATABASE HIGH AVAILABILITY 1. OUTLINE I. Overview Of High Availability II. Oracle Database High Availability Architecture III. Determining Your.
1 Data Guard Basics Julian Dyke Independent Consultant Web Version - February 2008 juliandyke.com © 2008 Julian Dyke.
Building Highly Available Systems with SQL Server™ 2005 Vineet Gupta Evangelist – Data and Integration Microsoft Corp.
Presentation #32050 Presentation #32050 Implementing Oracle9i Data Guard For Higher Availability By Daniel T. Liu First American Real Estate Solutions.
Chapter Oracle Server An Oracle Server consists of an Oracle database (stored data, control and log files.) The Server will support SQL to define.
ORACLE 10g DATA GUARD BROKER Ritesh Chhajer Sr. Oracle DBA.
Clustering  Types of Clustering. Objectives At the end of this module the student will understand the following tasks and concepts. What clustering is.
Sofia, Bulgaria | 9-10 October SQL Server 2005 High Availability for developers Vladimir Tchalkov Crossroad Ltd. Vladimir Tchalkov Crossroad Ltd.
ORACLE 10g DATAGUARD Ritesh Chhajer Sr. Oracle DBA.
16 Copyright © 2007, Oracle. All rights reserved. Performing Database Recovery.
11g(R1/R2) Data guard Enhancements Suresh Gandhi
DB-2: OpenEdge® Replication: How to get Home in Time … Brian Bowman Sr. Solutions Engineer Sandy Caiado Sr. Solutions Engineer.
Oracle Data Guard: Maximum Data Protection at Minimum Cost
The protection of the DB against intentional or unintentional threats using computer-based or non- computer-based controls. Database Security – Part 2.
Daniela Anzellotti Alessandro De Salvo Barbara Martelli Lorenzo Rinaldi.
1 Data Guard. 2 Data Guard Reasons for Deployment  Site Failures  Power failure  Air conditioning failure  Flooding  Fire  Storm damage  Hurricane.
Oracle's Distributed Database Bora Yasa. Definition A Distributed Database is a set of databases stored on multiple computers at different locations and.
OSIsoft High Availability PI Replication
Marcin Blaszczyk, Zbigniew Baranowski – CERN Outline Overview & Architecture Use Cases for Our experience with ADG and lessons learned Conclusions.
14 Copyright © 2005, Oracle. All rights reserved. Backup and Recovery Concepts.
High Availability in DB2 Nishant Sinha
Ashish Prabhu Douglas Utzig High Availability Systems Group Server Technologies Oracle Corporation.
CERN - IT Department CH-1211 Genève 23 Switzerland t High Availability Databases based on Oracle 10g RAC on Linux WLCG Tier2 Tutorials, CERN,
Implementing Oracle9i Data Guard Michael New Senior Technical Consultant ThinkSpark Session id:
Overview of Oracle Backup and Recovery Darl Kuhn, Regis University.
18 Copyright © 2004, Oracle. All rights reserved. Backup and Recovery Concepts.
2 Copyright © 2007, Oracle. All rights reserved. Configuring for Recoverability.
CERN IT Department CH-1211 Genève 23 Switzerland 1 Active Data Guard Svetozár Kapusta Distributed Database Operations Workshop November.
18 Copyright © 2004, Oracle. All rights reserved. Recovery Concepts.
14 Copyright © 2005, Oracle. All rights reserved. Backup and Recovery Concepts.
Agenda Data Guard Architecture & Features
1 Copyright © 2007, Oracle. All rights reserved. Realistic Testing Setting Up the Test Environment.
14 Copyright © 2007, Oracle. All rights reserved. Backup and Recovery Concepts.
OSIsoft High Availability PI Replication Colin Breck, PI Server Team Dave Oda, PI SDK Team.
Oracle Standby Implementation Tantra Invedy. Standby Database Introduction Fail over Solution Disaster Recovery Solution if remote Ease of implementation.
1 Implementing Oracle Data Guard for the RLS database Kasia Pokorska CERN, IT-DB 30 th March 2004.
Oracle Database High Availability
Oracle 12c Data Guard – Far Sync and what’s new
Agenda Data Guard Architecture & Features
Oracle 11g -Snapshot Standby and Active Data Guard
Maximum Availability Architecture Enterprise Technology Centre.
A Technical Overview of Microsoft® SQL Server™ 2005 High Availability Beta 2 Matthew Stephen IT Pro Evangelist (SQL Server)
Oracle Database High Availability
Introduction of Week 6 Assignment Discussion
Understanding the Oracle Data Guard Architecture
Introduction.
Oracle Data Guard Broker Session-3
Presentation transcript:

© Puget Sound Oracle Users Group Education Is Our Passion PSOUG Education Education Is Our Passion Hands-on Workshop Series Oracle DataGuard 10gR2

© Puget Sound Oracle Users Group Education Is Our Passion Daniel A. Morgan

© Puget Sound Oracle Users Group Education Is Our Passion We Do Not Practice: Slow Death by PowerPoint

© Puget Sound Oracle Users Group Education Is Our Passion Discussion Oracle Data Guard Overview

© Puget Sound Oracle Users Group Education Is Our Passion Data Guard History  7.3: Custom Standby Database  8i: Automated Standby  read-only database  managed recovery  remote archiving  8i: Data Guard  Automation  Single command switch-over  Single command fail-over  Oracle Parallel Fail Safe (OPFS) Oracle8 i Oracle8 Oracle Oracle9 i Oracle 10g 2007 Oracle 11g

© Puget Sound Oracle Users Group Education Is Our Passion Data Guard History  9iR1: Data Guard  Integrated zero-data-loss capability  Data Guard Broker w/ Data Guard Manager GUI  Command Line Interface (CLI)  Switchover and Failover operations  Automatic gap resolution  Automatic Synchronization  9iR2: Data Guard  Logical standby databases  Maximum protection / availability  Enhanced Data Guard Broker  Cascaded redo log destinations Oracle8 i Oracle8 Oracle Oracle9 i Oracle 10g 2007 Oracle 11g

© Puget Sound Oracle Users Group Education Is Our Passion Data Guard History  10gR1: Data Guard  Real-time apply  Recovery through OPEN RESETLOGS  Simplified configuration with VALID_FOR attribute  Standby redo log support on logical standby databases  Improved redo transmission security  Improved support for RAC  Zero downtime instantiation of logical standby databases  10gR2: Data Guard  Fast-start Failover  Flashback Database across Data Guard switchovers  Asynchronous Redo Transmission  Faster Redo Apply failover Oracle8 i Oracle8 Oracle Oracle9 i Oracle 10g 2007 Oracle 11g

© Puget Sound Oracle Users Group Education Is Our Passion Fast Start Failover  Fast-start failover: Automatically, quickly, and reliably fail over to a designated, synchronized standby database  After a fast-start failover occurs, the old primary database is automatically reconfigured as a new standby database upon reconnection to the configuration.  Maintain uptime and increase the availability, as well as the robustness of disaster recovery.  Less need for manual intervention.

© Puget Sound Oracle Users Group Education Is Our Passion Flashback Database across Switchovers  It is now possible to flash back the primary and standby databases to an SCN or a point in time prior to a switchover operation. When you use this feature of Flashback Database on a physical standby database, the standby role is preserved. On a logical standby database, the role of the standby database is changed to what it was at the target SCN or time.

© Puget Sound Oracle Users Group Education Is Our Passion Asynchronous Redo Transmission  Asynchronous redo transmission using the log writer process ( LGWR ASYNC ) has been improved to reduce the performance impact on the primary database. During asynchronous redo transmission, the network server (LNSn) process transmits redo data out of the online redo log files on the primary database and no longer interacts directly with the log writer process.  Allows the log writer process to write redo data to the current online redo log file and continue processing the next request without waiting for interprocess communication or network I/O to complete.

© Puget Sound Oracle Users Group Education Is Our Passion Discussion Data Guard Concepts

© Puget Sound Oracle Users Group Education Is Our Passion Causes of Data Loss Source: Disaster Recovery Journal Natural disasters 3% Software corruption 4% Computer viruses 7%Human errors 36% Hardware & system errors 49%

© Puget Sound Oracle Users Group Education Is Our Passion Fault Tolerance Real Application Clusters Continuous Availability for all Applications Data Guard Guaranteed Zero Data Loss Flashback Guaranteed Zero Data Loss System Maintenance Planned Downtime Database Maintenance Dynamic Reconfiguration Capacity on Demand without Interruption Online Redefinition Adapt to Change Online ASM Mirroring Storage Failure Protection Human Error Site Failures Storage/Net Failures Unplanned Downtime System Failures

© Puget Sound Oracle Users Group Education Is Our Passion Data Guard Acronyms  ARC0Archiver  DMONData Guard Monitor  FALFetch Archive Log  LCR:Logical Change Record  LGWRLog Writer backend process  LSP:Logical Standby Process aka SQL Apply (logical)  MRPManaged Recovery Process aka Redo Apply (physical)  RFSRemote File Server (receives undo)  TAFTransparent Application Failover

© Puget Sound Oracle Users Group Education Is Our Passion A Complete High-Availability Solution  Recovery Manager (RMAN)  Flashback Database / Query / Table  Streams Replication  Grid Control  Real Application Clusters (RAC)  Data Guard Data Guard is one part of a complete HA solution

© Puget Sound Oracle Users Group Education Is Our Passion What is Data Guard?  Real-time replication  Primarily intended for replication between data centers  Utilizes Log Miner to read redo logs  Ships redo to remote site via Advanced Queuing  Most often applies changes to a standby database  Can cascade changes from standby-to-standby  Built by the same team that wrote RMAN, Streams, and Change Data Capture

© Puget Sound Oracle Users Group Education Is Our Passion Why Data Guard?  High Availability (HA) Disaster Preparation  Replication between geographically separated data centers  Transparent Application Failover (TAF)  Remove backup process overhead from primary production systems  Rolling hardware and operating system upgrades and system maintenance  Rolling database upgrades and patching  Production mirror for reporting  System migration (for example to ASM)

© Puget Sound Oracle Users Group Education Is Our Passion What is a Standby Database  A copy of a production database that you can use for disaster protection. You can update the standby database with archived redo logs from the production database in order to keep it current. If a disaster destroys the production database, you can activate the standby database and make it the new production database.  You can maintain the standby data in one of the following modes :  For physical standby databases  Redo Apply  Open read-only mode  For logical standby databases  Open read/write mode  A Standby Database is NOT Data Guard

© Puget Sound Oracle Users Group Education Is Our Passion Types of Standby Databases  There are two types of standby databases  Physical standby database  block-for-block identical with the primary database  Synchronized with the primary database by application of redo data  Logical standby database  Shares the same schema definition  Synchronized with the primary database by transforming the data in the redo received from the primary database into SQL statements that are executed

© Puget Sound Oracle Users Group Education Is Our Passion Oracle Data Guard Architecture Network Broker Production Database Logical Standby Database Open for Reports SQL Apply Transform Redo to SQL Additional Indexes & MVs Physical Standby Database Backup Redo Apply Sync or Async Redo Shipping

© Puget Sound Oracle Users Group Education Is Our Passion Database Protection Modes  Maximum Protection  No Data Loss and No data divergence  Arch_dest: mandatory, lgwr, sync, affirm  Primary db shutdown when unable to access stdby  Maximum Availability  Arch_dest: mandatory, lgwr, sync, affirm  Protection auto lowered when stdby is unavailable  Maximum Performance  Arch_dest: lgwr/arch, sync/async, mandatory/optional  Minimal performance impact

© Puget Sound Oracle Users Group Education Is Our Passion Protection Modes and Requirements Protection ModeRedo Transport Standby Redo Log Files Needed? Used with Fast- Start Failover? MAXPROTECTION SYNCYesNo MAXAVAILABILITYSYNCYes MAXPERFORMANCEASYNC or SYNC Yes for ASYNCNo

© Puget Sound Oracle Users Group Education Is Our Passion Data Guard Services  Log transport services  Configurable using ARCH or LGWR  Used by Data Guard and Streams  Log apply services  Redo Apply (Physical Standby)  Recovers the redo data received from the primary database and applies the redo to the physical standby database.  SQL Apply (Logical Standby)  Transforms the data in the redo received from the primary database into SQL statements and then executes the SQL statements on the standby database.  Role-management services  what do it do?

© Puget Sound Oracle Users Group Education Is Our Passion

Discussion Data Guard Architecture Physical Standby

© Puget Sound Oracle Users Group Education Is Our Passion PSOUG Lab Topology Public Network Production Data Center 1 Public Network 10/100 Ethernet Switch Standby Data Center 2 GigEthernet Switches Separate Storage End Users Connecting Directly or Through An Application Server

© Puget Sound Oracle Users Group Education Is Our Passion Oracle Data Guard: Architecture LGWR Primary database transactions Online redo logs ARC0 FAL RFS MRP or LSP Archived redo logs ARC0 Standby database Reports (MRP only) Standby redo logs Archived redo logs Backup Oracle net

© Puget Sound Oracle Users Group Education Is Our Passion Standby Redo Logs Redo from primary database RFS ARC0 Standby redo logs Archived redo logs MRP/LSP Standby database

© Puget Sound Oracle Users Group Education Is Our Passion Physical Standby Database Public Network Production Data Center 1 Public Network Standby Data Center 2 Redo transport Redo apply Redo stream End Users Connecting Directly or Through An Application Server To Either or Both

© Puget Sound Oracle Users Group Education Is Our Passion Logical Standby Database Public Network Production Data Center 1 Public Network Standby Data Center 2 End Users Connecting Directly or Through An Application Server To Either or Both Transform redo into SQL and execute Reports

© Puget Sound Oracle Users Group Education Is Our Passion Redo records LCR LCR : Shared pool Transaction groups Transactions sorted in dependency order Log Mining Apply processing Logical change records not grouped into transactions Transactions to be applied Reader Preparer Builder Analyzer CoordinatorApplier Data files Redo data from primary database SQL Apply Process: Architecture

© Puget Sound Oracle Users Group Education Is Our Passion Real Time Apply  Redo data is applied to the standby database as soon as it is received from the primary database  In Oracle9i Data Guard this apply has to wait till an archivelog is created on the standby database  For Redo Apply: ALTER DATABASE RECOVER MANAGED STANDBY DATABASE USING CURRENT LOGFILE  For SQL Apply: ALTER DATABASE START LOGICAL STANDBY APPLY IMMEDIATE  When real time apply is enabled, RECOVERY_MODE column in V$ARCHIVE_DEST_STATUS displays “ MANAGED REAL TIME APPLY ”

© Puget Sound Oracle Users Group Education Is Our Passion Real-Time Apply RFS Standby redo log files MRP or LSP ARC0 Primary database Standby database Archived redo log files

© Puget Sound Oracle Users Group Education Is Our Passion Real-Time Apply Architecture Physical Logical Standby Database MRP/ LSP RFS Standby Redo Logs ARCH Archived Redo Logs Archived Redo Logs Primary Database Transactions LGWR Online Redo Logs ARCH Oracle Net Real Time Apply

© Puget Sound Oracle Users Group Education Is Our Passion Real Time Apply – Benefits  Standby databases now more closely synchronized with the primary  More up-to-date, real-time reporting  Faster switchover and failover times  Reduces planned and unplanned downtime  Better Recovery Time Objective (RTO) for DR

© Puget Sound Oracle Users Group Education Is Our Passion Discussion Data Guard Configurations

© Puget Sound Oracle Users Group Education Is Our Passion Data Guard Role Transitions  Switchover  Planned role reversal  Used for OS or hardware maintenance  Failover  Unplanned role reversal  Use in emergency  Zero or minimal data loss depending on choice of data protection mode  Role-transition operations are not automatically invoked

© Puget Sound Oracle Users Group Education Is Our Passion Maximum Availability Architecture RAC production database RAC physical standby database Oracle Application Server Oracle Application Server WAN traffic manager Clients Data Guard RAC logical standby database

© Puget Sound Oracle Users Group Education Is Our Passion The “Black Line” Determine Configuration Build Primary Data Center Build Failover Data Center Activate Replication

© Puget Sound Oracle Users Group Education Is Our Passion Oracle Data Dictionary (1 of 2) SQL> SELECT object_name 2 FROM dba_objects 3 WHERE object_name LIKE '%LOGSTDBY%'; DBA_LOGSTDBY_EVENTS DBA_LOGSTDBY_HISTORY DBA_LOGSTDBY_LOG DBA_LOGSTDBY_NOT_UNIQUE DBA_LOGSTDBY_PARAMETERS DBA_LOGSTDBY_PROGRESS DBA_LOGSTDBY_SKIP DBA_LOGSTDBY_SKIP_TRANSACTION DBA_LOGSTDBY_UNSUPPORTED DBMS_INTERNAL_LOGSTDBY DBMS_LOGSTDBY DBMS_LOGSTDBY_LIB GV$LOGSTDBY GV$LOGSTDBY_PROCESS GV$LOGSTDBY_PROGRESS GV$LOGSTDBY_STATE GV$LOGSTDBY_STATS GV$LOGSTDBY_TRANSACTION GV_$LOGSTDBY GV_$LOGSTDBY_PROCESS GV_$LOGSTDBY_PROGRESS GV_$LOGSTDBY_STATE GV_$LOGSTDBY_STATS GV_$LOGSTDBY_TRANSACTION LOGSTDBY$APPLY_MILESTONE LOGSTDBY$APPLY_PROGRESS LOGSTDBY$EVENTS LOGSTDBY$EVENTS_IND LOGSTDBY$HISTORY LOGSTDBY$PARAMETERS LOGSTDBY$PLSQL LOGSTDBY$SCN LOGSTDBY$SKIP LOGSTDBY$SKIP_SUPPORT LOGSTDBY$SKIP_TRANSACTION LOGSTDBY_LOG LOGSTDBY_SUPPORT LOGSTDBY_UNSUPPORTED_TABLES V$LOGSTDBY V$LOGSTDBY_PROCESS V$LOGSTDBY_PROGRESS V$LOGSTDBY_STATE V$LOGSTDBY_STATS V$LOGSTDBY_TRANSACTION V_$LOGSTDBY V_$LOGSTDBY_PROCESS V_$LOGSTDBY_PROGRESS V_$LOGSTDBY_STATE V_$LOGSTDBY_STATS V_$LOGSTDBY_TRANSACTION

© Puget Sound Oracle Users Group Education Is Our Passion Oracle Built-in Packages SQL> SELECT DISTINCT object_name, overload 2 FROM all_arguments 3 WHERE package_name = 'DBMS_DRS‘ 4 ORDER BY 1,2; OBJECT_NAME OVERLOAD CANCEL_REQUEST DELETE_REQUEST DG_BROKER_INFO DO_CONTROL 1 DO_CONTROL 2 DO_CONTROL_RAW 1 DO_CONTROL_RAW 2 DUMP_META GETMIV GET_PROPERTY GET_PROPERTY_OBJ GET_RESPONSE GET_RESPONSE_RAW PING READYTOFAILOVER SLEEP STATECHANGERECORDED

© Puget Sound Oracle Users Group Education Is Our Passion Identifying Destination Settings SQL> SELECT DEST_ID,VALID_TYPE,VALID_ROLE,VALID_NOW 2 FROM V$ARCHIVE_DEST; DEST_ID VALID_TYPE VALID_ROLE VALID_NOW ONLINE_LOGFILE ALL_ROLES YES 2 STANDBY_LOGFILE STANDBY_ROLE YES 3 ALL_LOGFILES ALL_ROLES UNKNOWN 4 ALL_LOGFILES ALL_ROLES UNKNOWN 5 ALL_LOGFILES ALL_ROLES UNKNOWN 6 ALL_LOGFILES ALL_ROLES UNKNOWN 7 ALL_LOGFILES ALL_ROLES UNKNOWN 8 ALL_LOGFILES ALL_ROLES UNKNOWN 9 ALL_LOGFILES ALL_ROLES UNKNOWN 10 ALL_LOGFILES ALL_ROLES UNKNOWN 11 ALL_LOGFILES ALL_ROLES YES 11 rows selected.

© Puget Sound Oracle Users Group Education Is Our Passion

Closing Remarks