Oracle10g Data Guard: Back to the Future

Similar documents
Oracle DataGuard 10gR2

Oracle Database 11g Data Guard

Oracle Data Guard in Oracle Database 10g Release 2 Business Continuity for the Enterprise. An Oracle White Paper November 2006

CO Oracle Database 11g: Data Guard Administration

Rishi Mohan Awasthi 1, Rishi Kumar 2, Raghav Garg 3 1,2,3 B.Tech, Computer Science & Engineering, IMS Engineering College, Ghaziabad

Question No: 1 Which two statements are true for Data Guard environments with multi-tenant databases?

The Right Choice for DR: Data Guard, Stretch Clusters, or Remote Mirroring. Ashish Ray Group Product Manager Oracle Corporation

ORACLE 10g/9i DATA GUARD LOGICAL STANDBY DATABASE

Copyright 2012, Oracle and/or its affiliates. All rights reserved.

CO Oracle Database 12c: Data Guard Administration

Oracle Data Guard OTN Case Study: VP BANK

for Backup & Recovery & Failover

Data Guard: Setup and Administration. By Ashok Kapur Hawkeye Technology, Inc.

Oracle Database 12c: Data Guard Administration

OTN Case Study: Amadeus Using Data Guard for Disaster Recovery & Rolling Upgrades

Oracle 11g Data Guard Manual Failover Steps

1Z Oracle Database 12c - Data Guard Administration Exam Summary Syllabus Questions

Eliminate Idle Redundancy with Oracle Active Data Guard

Maximum Availability Architecture (MAA): Oracle E-Business Suite Release 12

You'll even like your Data Guard more with Flashback

Physical Standby Design concepts and practices. Dresdner-Cetelem Kreditbank, 1. Februar 2010, Seite 1

Oracle Database 12c: Dataguard Administration

Maximum Availability Architecture on Dell PowerEdge Servers and Dell/EMC Storage over Wide Area Networks

Oracle Database 12c: Data Guard Administration LVC

Oracle 12c Dataguard Administration (32 Hours)

Maximum Availability Architecture. Oracle Best Practices for High Availability. Reducing Siebel Downtime with a Local Standby Database

How To Apply Archive Logs Manually In Standby Database Using Rman

ZDLRA High Availability for Backup and Recovery

Data Guard Deep Dive

Chapter. Data Guard Architecture

Mike Hughes Allstate Oracle Tech Lead, Oracle Performance DBA

Using Recovery Manager with Oracle Data Guard in Oracle9i. An Oracle White Paper March 2004

Disaster Recovery to the Oracle Cloud

Steps Create Physical Standby Database Oracle 9i

Disaster Recovery to the Oracle Cloud

<Insert Picture Here> Maximum Availability Architecture (MAA) Best Practices: Online Patching and Rolling Upgrades with Oracle Database

DOC ORACLE STANDBY USER MANUAL ARCHIVE

Maximum Availability Architecture: Overview. An Oracle White Paper July 2002

Flashback. A quest for zero data loss. Tommie Grove. MyDBA. January P a g e F l a s h b a c k A q u e s t f o r z e r o d a t a l o s s

Database Tables to Storage Bits: Data Protection Best Practices for Oracle Database

Oracle Active Data Guard - Overview

Oracle Data Guard Tips and Tricks Direct from Oracle Development

Zero Downtime Migrations

Copyright 2012, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 13

An Oracle White Paper April Deploying Oracle Data Guard with Oracle Database Appliance

Oracle Maximum Availability Architecture Best Practices for Oracle Multitenant

Data Guard Maximum Availability

ORACLE DATA GUARD REAL WORLD EXAMPLES AND TROUBLESHOOTING

Oracle 1Z Oracle Database 12c: Data Guard Administration. Download Full version :

Oracle Maximum Availability Architecture for Oracle Cloud

Oracle Active Data Guard

Deploying the Zero Data Loss Recovery Appliance in a Data Guard Configuration ORACLE WHITE PAPER MARCH 2018

Explore the Oracle 10g database architecture. Install software with the Oracle Universal Installer (OUI)

1 Copyright 2011, Oracle and/or its affiliates. All rights reserved.

ORACLE 11gR2 DBA. by Mr. Akal Singh ( Oracle Certified Master ) COURSE CONTENT. INTRODUCTION to ORACLE

An Oracle White Paper September Methods for Upgrading to Oracle Database 11g Release 2

ZDLRA implementation at CFM

Creation of a physical Standby Database using OEM GC

Oracle Active Data Guard

Disaster Recovery Solutions for Oracle Database Standard Edition RAC. A Dbvisit White Paper By Anton Els

Maximum Availability Architecture

Oracle MAA Blueprints for Oracle Cloud Infrastructure (OCI) Deployments

Oracle Database 11g: Data Guard Administration

Top Oracle Database 11g High Availability Best Practices

FLASHBACK RAC DATABASE TO RESTORE POINT Y. MORAN

High Performance Oracle Database in a Flash Sumeet Bansal, Principal Solutions Architect

Disaster Recovery to the Oracle Cloud

Oracle Database 11g: SQL Fundamentals I

Oracle Data Guard. Concepts and Administration 10g Release 1 (10.1)

Oracle CDC 调研报告 林子雨 北京大学计算机系数据库实验室 2006 年 11 月 10 日

Maximum Availability Architecture. Oracle Best Practices For High Availability

An Oracle White Paper September Upgrade Methods for Upgrading to Oracle Database 11g Release 2

The following is intended to outline our general product direction. It is intended for information purposes only, and may not be incorporated into

ORACLE DBA TRAINING IN BANGALORE

Enterprise Manager: Scalable Oracle Management

Maximum Availability Architecture. Oracle Best Practices For High Availability

Oracle Database Appliance: Implementing Disaster Recovery Solutions Using Oracle Data Guard

Purpose. Configuring ARCHIVELOG mode

Zero Data Loss Recovery Appliance DOAG Konferenz 2014, Nürnberg

Lesson 2 RMAN Architecture

Minimal downtime migration

Oracle Database 10g Migration to Automatic Storage Management. An Oracle White Paper August 2005

Author A.Kishore

Oracle Data Guard. Concepts and Administration 11g Release 1 (11.1) B

Oracle Data Guard Concepts and Administration. 12c Release 1(12.1)

White Paper. Increase ROI on Disaster Recovery Infrastructure. Implementing Snapshot Standby on Oracle 11g and 10g. Abstract

Disaster Recovery: Restore Database from One Server to another Server when Different Location

Oracle Database 10g: Data Guard Administration

<Insert Picture Here> Oracle MAA und RAC Best Practices und Engineered Systems

Focus On: Oracle Database 11g Release 2

Oracle Database 12c: RAC Administration Ed 1

Chapter One. Concepts BACKUP CONCEPTS

Databases Clone using ACFS. Infrastructure at your Service.

Best Practices for Disaster Recovery in Oracle Cloud Infrastructure ORACLE WHITE PAPER AUGUST 2018

Exam 1Z0-061 Oracle Database 12c: SQL Fundamentals

Oracle 1Z Upgrade Oracle9i/10g OCA to Oracle Database 11g OCP. Download Full Version :

Oracle Zero Data Loss Recovery Appliance (ZDLRA)

UNIVERSITY AUTHORISED EDUCATION PARTNER (WDP)

Oracle Database 12C: Advanced Administration - 1Z0-063

Oracle Data Guard Concepts and Administration. 12c Release 2 (12.2)

Transcription:

Oracle10g Data Guard: Back to the Future Phil Grice Principal Software Engineer Oracle Corporation Page 1 www.decus.de 1

Agenda Oracle Data Guard a Quick Introduction Potential Data Guard Configurations Data Guard Features in Oracle 10g Spotlight on Data Guard SQL Apply Summary & Q/A What is Oracle Data Guard? Oracle s disaster recovery solution for Oracle data Feature of Oracle Enterprise Edition Automates the creation and maintenance of one or more transactionally consistent copies (standby) of the production (or primary) database If the primary database becomes unavailable (disasters, maintenance), a standby database can be activated and assume the primary role Page 2 www.decus.de 2

DIGITAL DATA STORAGE DIGITAL DATA STORAGE IT-Symposium 2004 Oracle Data Guard Focus Data Failures & Site Disasters: Data Protection Data Availability Data Recovery All 3 are important! Data is the core asset of the enterprise! Also addresses human errors & planned maintenances Oracle Data Guard Architecture Production Network Sync or Async Redo Shipping Broker Redo Apply Physical Backup Transform Redo to SQL Logical Open for Reports SQL Apply Additional Indexes & MVs Page 3 www.decus.de 3

DIGITAL DATA STORAGE IT-Symposium 2004 Oracle Data Guard Process Architecture Transactions Oracle Net Physical/Logical LGWR RFS MRP/ LSP Online Redo Logs Primary FAL Redo Logs Backup / Reports ARCH ARCH Archived Redo Logs Archived Redo Logs Data Guard Redo Apply:Best for DR Primary Data Guard Broker Physical Redo Apply Backup Network Redo Shipment Redo Logs Physical is a block-for-block copy of the primary database Uses the database recovery functionality to apply changes Can be opened in read-only mode for reporting/queries Can also be used for backups, offloading production database Best Solution for Disaster Recovery Page 4 www.decus.de 4

Data Guard SQL Apply Additional Indexes & Materialized Views Primary Data Guard Broker Network Transform Redo to SQL and Apply Logical Continuously Open for Reports Redo Shipment Logical is an open, independent, active database Contains the same logical information (rows) as the production database Physical organization and structure can be very different Can host multiple schemas Can be queried for reports while logs are being applied via SQL Can create additional indexes and materialized views for better query performance Agenda Oracle Data Guard a Quick Introduction Potential Data Guard configurations Data Guard Features in Oracle 10g Spotlight on Data Guard SQL Apply Summary & Q/A Page 5 www.decus.de 5

A Simple Setup (The Fire Extinguisher) Bonn Frankfurt Oracle Net Primary Physical Transport? ARCH or LGWR depending on your needs If it s LGWR then ASYNC. A you can use Bonn Frankfurt Oracle Net Primary Logical Transport? LGWR ASYNC for the least impact Page 6 www.decus.de 6

DR and Reporting Bonn Frankfurt Oracle Net Primary Transport? Frankfurt LGWR and SYNC Koln LGWR and ASYNC Physical Koln Logical Cannot Lose a Transaction Bonn Frankfurt Oracle Net Primary Transport? Frankfurt LGWR and SYNC Koln LGWR and SYNC Physical Koln Physical Page 7 www.decus.de 7

Send the REDO once, apply twice Bonn Koln Oracle Net Primary Dependent archive destination REDO sent once, applied to both dbs Notification messages sent to Logical Requires archive destination accessible to both databases. Physical Logical Bank #1 Web Site Logical Internet Users FireWall Logical FireWall Users access only the standby outside the firewall. Web Developers access only the Production DB. Physical provides extra Disaster Recovery Web Developers Production Physical Page 8 www.decus.de 8

Bank #1 Online Banking Internet Users Production Physical FireWall Users access the Production DB outside the firewall. Query Users access only the Logical Physical outside firewall provides Disaster Recovery Reporting and Query Users Logical Bank #2 Branch Banking Branch Users Production Physical Branch Users access the Production DB. Query Users access only the Logical Physical Disaster Recovery Production and Logical standby on the same server Logical Reporting and Query Users Page 9 www.decus.de 9

Agenda Oracle Data Guard a Quick Introduction Potential Data Guard Configurations Data Guard Features in Oracle 10g Spotlight on Data Guard SQL Apply Summary & Q/A Oracle Data Guard 10g Objectives Establish Data Guard as an extremely easy-to-use low-cost comprehensive reliable Disaster Recovery solution for enterprise data Page 10 www.decus.de 10

Data Guard 10g New Features General new features Real Time Apply Flashback Integration SQL Apply new features Zero Downtime Instantiation Rolling Upgrades Additional Datatypes Data Guard Broker & Enterprise Manager new features RAC integration Simplified browser-based interface focused on best practices 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 Page 11 www.decus.de 11

Real Time Apply Architecture Transactions Oracle Net An up-to-date Physical/Logical LGWR RFS MRP/ LSP Primary Online Redo Logs Redo Logs ARCH Real Time Apply ARCH Archived Redo Logs Archived Redo Logs Real Time Apply Benefits 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 Page 12 www.decus.de 12

Existing Site Recovery Tradeoffs Primary Redo Shipment Reporting on delayed data Delayed Apply Log apply may be delayed to protect from user errors but: Switchover/Failover gets delayed Reports run on old data After failing over to standby, production DB must be rebuilt Flashback A new strategy for point in time recovery Eliminate the need to restore a whole database backup Integrated seamlessly with RMAN Think of it as a continuous backup Restores just changed blocks It s fast - recover in minutes, not hours It s easy - single command restore RMAN> FLASHBACK DATABASE TIMESTAMP to_timestamp ('2003-08-15 16:00:00', 'YYYY-MM-DD HH24:MI:SS'); SQL> FLASHBACK DATABASE TO <SCN>; Page 13 www.decus.de 13

Enhanced DR with Flashback Primary Redo Shipment Real Time Apply Real Time Reporting No Delay! Flashback Log Flashback Log Primary: No reinstantiation after failover! Flashback DB removes the need to delay application of logs Flashback DB removes the need to reinstantiate primary after failover Real-time apply enables real-time reporting on standby Enterprise Manager New Features Streamlined browser-based interface that enables complete standby database lifecycle management Focus on: Ease of use Management based on best practices Pre-built integration with other HA features Page 14 www.decus.de 14

RAC Support Broker Now possible to use the Broker to create and manage configurations that contain RAC primary and RAC standby databases Data Guard Broker interfaces with Oracle Clusterware such that it has control over critical operations during specific Data Guard state transitions Switchovers, failovers, protection mode changes, state changes RAC Primary Two standby dbs Page 15 www.decus.de 15

Instance specific Example Ease of Use Switchover using Enterprise Manager is now literally two mouse clicks Page 16 www.decus.de 16

Page 17 www.decus.de 17

Page 18 www.decus.de 18

Switched! Page 19 www.decus.de 19

Agenda Oracle Data Guard a Quick Introduction Potential Data Guard configurations Data Guard Features in Oracle 10g Spotlight on Data Guard SQL Apply Summary & Q/A SQL Apply Engine Architecture Mining Group LSP Applying Group PX PX PX PX Redo SQL Log Transport Services RFS Remote Archived or REDO Logs Logical Page 20 www.decus.de 20

Data Guard SQL Apply Zero Downtime Logical Creation Faster, Easier, Bulletproof Support for more datatypes Support for wider range of applications and functionality Improved Ease of Use Rolling Upgrades Going Forward Real Time Apply Integration with Flash Back Zero Downtime Instantiation Logical standby databases easy to create Using an On-line backup! No shut down and no quiesce of the Primary No shutdown = no downtime of production system No quiesce = no wait on quiesce No dependence on Resource Manager Page 21 www.decus.de 21

Zero Downtime Instantiation 1 On-Line Backup 3 Primary 2 Restore Physical/Logical Create and Copy Logical Control File 4 Transport Service Zero Downtime Instantiation 5 6 Recovery Activation 7 Logical! Change DBNAME and DBID 8 Start SQL Apply Services Page 22 www.decus.de 22

Support for more Data Index Organized Tables More datatypes Primary database Logical standby database New Datatypes Support New Support for: LONG LONG_RAW Multi-byte CLOB NCLOB BINARY_FLOAT (New in Oracle 10g) BINARY_DOUBLE (New in Oracle 10g) Page 23 www.decus.de 23

Index-Only Tables Support IOT Support in a Logical standby database No LOB columns in the IOT No IOT with Overflow Automatically Skipping the Last Failed Transaction Logical Redo from primary Skip Failed transaction Restart SQL Apply ALTER DATABASE START STANDBY APPLY SKIP FAILED TRANSACTION; Page 24 www.decus.de 24

Rolling Upgrades In Oracle 10g, SQL Apply provides the starting point for performing rolling upgrades of the Oracle RDBMS software and database with minimal interruption of service By utilizing a Logical standby database customers can upgrade one database while running on the original production database and then run in a mixed version environment before returning to the original, but upgraded, configuration! Original Setup Production Version X Node One Node Two Logical Version X Initial Data Guard Setup with all databases at Version X Applications running on Node One, the Production. Reporting and Query Applications running on the Logical standby Page 25 www.decus.de 25

Upgrade the Logical Production Version X Node One Node Two Logical Version X+1 Stop Redo shipping to the Logical on Node Two. Archive logs stack up on Node One. Upgrade Logical Test General reporting and queries on the upgraded logical standby Applications still running on Node One, the Production. Run In Mixed Environment Production Version X Node One Node Two Logical Version X+1 Re-enable Redo Shipping to the Logical on Node Two Stacked Archive logs automatically sent to resynchronize the Logical (Bring it up to date) Applications still running on Node One, the Production. Reporting and Query Applications running on upgraded Logical standby Page 26 www.decus.de 26

Switch Over Applications Logical Version X Node One Node Two Production Version X+1 Switch over databases from Node One to Node Two. Original Production is now a Logical. Redo Shipping to Node One is stopped. Archive logs stack up on Node Two. Applications running on Node Two, the Upgraded Production. Upgrade Node One Logical Version X+1 Node One Node Two Production Version X+1 Upgrade the Logical database on Node One. Applications still running on Node Two, the Upgraded Production. Page 27 www.decus.de 27

Re-Enable Redo Shipping Logical Version X+1 Node One Node Two Production Version X+1 Re-enable Redo Shipping to the Logical on Node One Stacked Archive logs automatically sent to resynchronize the Logical (Bring it up to date) Applications still running on Node Two, the Production. Reporting and Query Applications running on upgraded Logical standby Switch Back to Original Setup Production Version X+1 Node One Node Two Logical Version X+1 Initial Data Guard Setup with all databases at Version X+1 Applications running on Node One, the Production. Reporting and Query Applications running on the Logical standby Page 28 www.decus.de 28

SQL Apply and Oracle 10g Improving upon a great foundation! Creating Logical databases is a snap! Querying up-to-date data with Real-Time Apply! Supporting more and more Applications! Moving forward to Rolling Upgrades! Agenda Oracle Data Guard a Quick Introduction Potential Data Guard configurations Data Guard Features in Oracle 10g Spotlight on Data Guard SQL Apply Summary & Q/A Page 29 www.decus.de 29

10g Beta Testimonial Airbus The Airbus global procurement process requires highly available and very powerful database systems. We've been testing Oracle Data Guard 10g since July 2003 and we are very excited with the new features in Data Guard. We expect to have the highest degrees of data availability and data protection with Data Guard, which will help us achieve our business continuity goals throughout our organization. Thomas Brunken IT Project Manager Airbus Deutschland GmbH Infrastructure Design & Projects www.airbus.com Maximum Availability Architecture Best Practices on: General Data Guard configuration Redo data transport mechanisms Protection modes Switchover/Failover Media recovery SQL Apply configuration Network configuration Integration with other HA technologies White papers 1 : MAA detailed Media Recovery Site/Network configuration Fast-Start Checkpointing SQL Apply Best Practices Role Management 1. Ref. http://otn.oracle.com/deploy/availability/htdocs/maa.htm for latest updates Page 30 www.decus.de 30

Resources Maximum Availability Architecture white papers: http://otn.oracle.com/deploy/availability/htdocs/maa.htm HA Portal on OTN: http://otn.oracle.com/deploy/availability Data Guard home page on OTN: http://otn.oracle.com/deploy/availability/htdocs/odg_overview.html Oracle Consulting Services: http://otn.oracle.com/consulting Q & A Q U E S T I O N S A N S W E R S Page 31 www.decus.de 31

Page 32 www.decus.de 32