11g(R1/R2) Data guard Enhancements Suresh Gandhi

Slides:



Advertisements
Similar presentations
ITEC474 INTRODUCTION.
Advertisements

INTRODUCTION TO ORACLE Lynnwood Brown System Managers LLC Backup and Recovery Copyright System Managers LLC 2008 all rights reserved.
INTRODUCTION TO ORACLE Lynnwood Brown System Managers LLC Oracle High Availability Solutions RAC and Standby Database Copyright System Managers LLC 2008.
High Availability Group 08: Võ Đức Vĩnh Nguyễn Quang Vũ
Oracle9i Data Guard Darl Kuhn Sun Microsystems
Oracle Data Guard Ensuring Disaster Recovery for Enterprise Data
1 Chapter 15 Duplicating Databases and Transporting Data.
Introduction to Data Guard NY SIG Meeting October 7th, 2003.
EIM April 19, Robin Weaver 13 Years with IBM Prior to Assignment at UNC Charlotte Range of Database Development/Data Management Projects and Products.
RMAN Restore and Recovery
Backup and Recovery (2) Oracle 10g CAP364 1 Hebah ElGibreen.
Backup and Recovery Part 1.
Chapter 5 Configuring the RMAN Environment. Objectives Show command to see existing settings Configure command to change settings Backing up the controlfile.
9 Copyright © Oracle Corporation, All rights reserved. Oracle Recovery Manager Overview and Configuration.
Backup Concepts. Introduction Backup and recovery procedures protect your database against data loss and reconstruct the data, should loss occur. The.
Agenda  Overview  Configuring the database for basic Backup and Recovery  Backing up your database  Restore and Recovery Operations  Managing your.
Oracle backup and recovery strategy
Introduction to Oracle Backup and Recovery
Using RMAN to Perform Recovery
Oracle Database High Availability Brandon Kuschel Jian Liu Source: Oracle Database 11g Release 2 High Availability An Oracle White Paper November 2010.
Database Upgrade/Migration Options & Tips Sreekanth Chintala Database Technology Strategist.
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.
13 Copyright © Oracle Corporation, All rights reserved. RMAN Complete Recovery.
Oracle Recovery Manager (RMAN) 10g : Reloaded
PPOUG, 05-OCT-01 Agenda RMAN Architecture Why Use RMAN? Implementation Decisions RMAN Oracle9i New Features.
ORACLE 10g DATA GUARD BROKER Ritesh Chhajer Sr. Oracle DBA.
5 Copyright © 2004, Oracle. All rights reserved. Using Recovery Manager.
5 Copyright © 2008, Oracle. All rights reserved. Using RMAN to Create Backups.
Chapter 7 Making Backups with RMAN. Objectives Explain backup sets and image copies RMAN Backup modes’ Types of files backed up Backup destinations Specifying.
11 Copyright © Oracle Corporation, All rights reserved. RMAN Backups.
ORACLE 10g DATAGUARD Ritesh Chhajer Sr. Oracle DBA.
16 Copyright © 2007, Oracle. All rights reserved. Performing Database Recovery.
By Lecturer / Aisha Dawood 1.  You can control the number of dispatcher processes in the instance. Unlike the number of shared servers, the number of.
15 Copyright © 2007, Oracle. All rights reserved. Performing Database Backups.
Oracle Advanced Compression – Reduce Storage, Reduce Costs, Increase Performance Session: S Gregg Christman -- Senior Product Manager Vineet Marwah.
1 Data Guard. 2 Data Guard Reasons for Deployment  Site Failures  Power failure  Air conditioning failure  Flooding  Fire  Storm damage  Hurricane.
15 Copyright © Oracle Corporation, All rights reserved. RMAN Incomplete Recovery.
11 Copyright © 2004, Oracle. All rights reserved. Dealing with Database Corruption.
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.
3 Copyright © 2006, Oracle. All rights reserved. Using Recovery Manager.
Overview of Oracle Backup and Recovery Darl Kuhn, Regis University.
18 Copyright © 2004, Oracle. All rights reserved. Backup and Recovery Concepts.
6 Copyright © 2007, Oracle. All rights reserved. Performing User-Managed Backup and Recovery.
Emil Pilecki Credit: Luca Canali, Marcin Blaszczyk, Steffen Pade.
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.
2 Copyright © 2006, Oracle. All rights reserved. Configuring Recovery Manager.
8 Copyright © 2007, Oracle. All rights reserved. Using RMAN to Duplicate a Database.
18 Copyright © 2004, Oracle. All rights reserved. Recovery Concepts.
14 Copyright © 2005, Oracle. All rights reserved. Backup and Recovery Concepts.
10 Copyright © 2007, Oracle. All rights reserved. Using RMAN Enhancements.
Agenda Data Guard Architecture & Features
13 Copyright © 2007, Oracle. All rights reserved. Using the Data Recovery Advisor.
© Puget Sound Oracle Users Group Education Is Our Passion PSOUG Education Education Is Our Passion Hands-on Workshop Series Oracle DataGuard 10gR2.
14 Copyright © 2007, Oracle. All rights reserved. Backup and Recovery Concepts.
What is Flashback? Technology that allows you to revert the database to a point in time in the past Several versions of flashback available Different types.
CERN IT Department CH-1211 Genève 23 Switzerland t Using Data Guard for hardware migration UKOUG RAC & HA SIG, Feb 2008 Miguel Anjo, CERN.
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
Maximum Availability Architecture Enterprise Technology Centre.
Oracle Database High Availability
Duplicating a Database
Performing Database Recovery
Chapter 5 The Redo Log Files.
Introduction.
Oracle Data Guard Broker Session-3
Oracle Data Guard Session-4
Presentation transcript:

11g(R1/R2) Data guard Enhancements Suresh Gandhi

Agenda What is DATA GUARD ? Types of Data Guard Databases 11g Release 1 Enhancements 11g Release 2 Enhancements Active Data guard Snapshot Standby Database More Features Rolling Upgrade and Physical Standby Q&A

High Availability & Disaster Recovery Solution Data Guard Overview Data Guard Standby Plus more High Availability & Disaster Recovery Solution

Provides ….

Data guard Databases

11G R1 Enhancements Release 1 New Features

R2 - Enhancements Release 2 New Features

R2- New Features Release 2 New Features

Active and Snapshot Standby Traditional Functionality until 10g 11g Snapshot Standby 11g Active DataGuard

Active Data Guard Benefits

Turn on Physical Standby to Active Standby Stop redo apply Database in standby mount mode Open readonly Open mode changed to read only Start the redo apply again using log file (SRL’s) Status changed to read only apply

Turn on Physical Standby to Snapshot Standby Once sync check, convert standby to snapshot Open database Read write mode Need to close database Switched back to physical standby

Additional Info – Active / Snapshot WHAT OPERATION ALLOWED IN ACTIVE DATA GUARD ? SELECT statements Complex queries Calling of stored procedures Use of database links to redirect DML to Primary Use of stored procedures to call remote stored procedures via database links Use of SET ROLE Use of ALTER SESSION and ALTER SYSTEM No Datatypes restrictions like Logical Standby Additional TEMPFILES can be created for Sorts Flashback Query : SELECT … AS OF <SCN> Additional License SOME IMPORTANT POINTS FOR SNAPSHOT STANDBY DATABASE PHYSICAL STANDBY DATABASE SHOULD BE IN FLASHBACK MODE NO REAL TIME QUERY OR DATA NO FAST START FAILOVER IN THIS MODE NO SWITCHOVER/FAILOVER UNTIL CONVERTED TO PHYSICAL STANDBY Free of Licence POINTS Configure the Flash Recovery Area Set the Retention Target Enable Flashback Database

10g Equivalent Snapshot commands Prepare the physical standby database to be activated SQL> ALTER SYSTEM SET DB_RECOVERY_FILE_DEST_SIZE=20G; SQL> ALTER SYSTEM SET DB_RECOVERY_FILE_DEST='/arch/oradata' Prepare the primary database to have the physical standby be diverged. Archive the current log file. SQL> ALTER SYSTEM ARCHIVE LOG CURRENT; Cancel Redo Apply and create a guaranteed restore point. SQL> ALTER DATABASE RECOVER MANAGED STANDBY DATABASE CANCEL; SQL> CREATE RESTORE POINT restore_pt GUARANTEE FLASHBACK DATABASE; Activate the physical standby database. SQL> ALTER DATABASE ACTIVATE STANDBY DATABASE; SQL> STARTUP MOUNT FORCE; SQL> ALTER DATABASE SET STANDBY DATABASE TO MAXIMIZE PERFORMANCE; SQL> ALTER DATABASE OPEN Revert the ac4vated database back to a physical standby database. SQL> FLASHBACK DATABASE TO RESTORE POINT restore_pt; SQL> ALTER DATABASE CONVERT TO PHYSICAL STANDBY;

DATGUARD – Still More Features

More Features – RMAN Active database Duplication Steps Create a pfile with only db_name=stby Create directory structure for datafile locations Create directory structure for dump locations Create a password file (must match with target) Listener & Tnsnames entries for new standby database Startup nomount with pfile Run the rman command in other box Log File  RMAN> run { allocate channel prmy1 type disk; allocate channel prmy2 type disk; allocate channel prmy3 type disk; allocate channel prmy4 type disk; allocate auxiliary channel repstby type disk; duplicate target database for standby from active database spfile parameter_value_convert 'emrep','repstby' set db_unique_name='repstby' set db_file_name_convert='C:\','F:\' set log_file_name_convert='C:\','F:\' ; } The FAILGROUP_TYPE column in both the V$ASM_DISK and V$ASM_DISK_STAT views specifies failure group type. The value for this column is REGULAR for regular failure groups and QUORUM for quorum failure groups.

More Features – Redo Compression Requires Advanced Compression features Compress redo as it is transmitted data Automatically compress the data as it only resolves gaps Helpful and useful in bandwidth constrained locations Syntax:- LOG_ARCHIVE_DEST_2=‘Service=stby Async compression=ENABLE’

More Features – Heterogenous database support Oracle 10g Dataguard support mixed environments 32bit and 64 bit configuration Oracle 11G Dataguard supports mixed Windows/Linux in same configuration Only Physical Standby Same Endianess required on all platforms Metalink : 413484.1

More Features: Lost Write Detection Due to hardware or storage issues lost writes can happen while transmission and blocks may be stale. Very hard to diagnose in such of case of corruption Feature:- Compares version of Blocks Between Standby blocks and redo stream Version discrepancy can be either standby or primary If Primary Database block corruption is detected  Resolved Using standby failover and Restore data consistency New Initialization parameter ALTER System set db_lost_write_protect = NONE/TYPICAL/FULL 5% impact but increase protection

More Features: Automatic Block recovery 11g R2 automatically recovers corrupted blocks from standby copies of blocks Automatic Block Media Recovery also automatically repair corrupted blocks discovered in the physical standby databases Reduce recovery time in block corruption cases instead of restoring from tape or disks RMAN command RECOVER BLOCK can be used for manual recovery and its check for all suitable or consistent blocks across several copies of backups or Clause can be added RECOVER BLOCK … EXCLUDE STANDBY then wont check in standby Automatic block recovery is applicable only in physical corruptions like When checksum is invalid Block contains all zeros Block header is fractured

More Features: Redo Flush Yes, Redo can be flushed Can be done when the primary is in mount mode To avoid minimal loss of data and allowed failover to be performed without data loss Syntax:- ALTER System FLUSH Redo to <target DB Name>

More Features: Sync with Primary New command ALTER SESSION SYNC WITH PRIMARY WAIT FOR STANDBY TO BE SYNCHRONIZED WITH PRIMARY FAILS IF REDO APPLY OR REDO TRANSPORT IS OFF REPORT TRANSPORT AND APPLY LAGS

More Features: STANDBY_MAX_DATA_DELAY

More Features: ROLE Based services Services can be created and start based on the database ROLE, viz a new addition sys_context (Database ROLE) In R2 services can be attached via srvctl Service can failover when using Cluster or Oracle restart 11gR1 to use triggers based on Database role Example Trigger

Rolling Upgrade : Transient Logical Standby Physical standby must be converted to Logical Standby and uses Flashback as fall out plan Downtime for upgrade is only the SWITCHOVER TIME

Finally, Monitoring Views GAP_STATUS , additional column in v$archive_dest – GAP or NO GAP V$dataguard_stats for transport/apply lag V$REDO_DEST_RESP_HISTOGRAM Useful when need to analyse network latencies by checking transport lag V$STANDBY_EVENT_HISTOGRAM

Thank you! Q & A Internal