Oracle Database Backup & Recovery, Flashback* Whatever, & Data Guard

Similar documents
Oracle Database 10g: Backup and Recovery 1-2

Daniela Milanova Senior Sales Consultant

Oracle 11g Database Administration

Maximum Availability Architecture

Oracle Recovery Manager

Implementing an Enterprise Class Database Backup and Recovery Plan

Oracle Maximum Availability Architecture with Exadata Database Machine. Morana Kobal Butković Principal Sales Consultant Oracle Hrvatska

Oracle Recovery Manager 10g. An Oracle White Paper November 2003

Oracle Data Guard. Caleb Small Puget Sound Oracle Users Group Education Is Our Passion

Oracle Database 11g: Administration And Backup & Recover

Why Not Oracle Standard Edition? A Dbvisit White Paper By Anton Els

Maximum Availability Architecture. Oracle Best Practices For High Availability

Oracle Database. High Availability Overview 10g Release 2 (10.2) B

Disaster Recovery for Oracle Database

Oracle Database 11g: Administration Workshop II

Case Study: Oracle E-Business Suite with Data Guard Across a Wide Area Network

Oracle Database 10g: New Features for Administrators

ORACLE DATABASE 10G ENTERPRISE EDITION

Module 14: Scalability and High Availability

Objectif. Participant. Prérequis. Pédagogie. Oracle Database 11g - Administration Workshop II - LVC. 5 Jours [35 Heures]

Oracle Database 11g: Administration Workshop II DBA Release 2

Oracle Database 11g: Administration Workshop II DBA Release 2

DISASTER RECOVERY STRATEGIES FOR ORACLE ON EMC STORAGE CUSTOMERS Oracle Data Guard and EMC RecoverPoint Comparison

D12CBR Oracle Database 12c: Backup and Recovery Workshop NEW

Configuring Backup Settings Configuring and Managing Persistent Settings for RMAN Configuring Autobackup of Control File Backup optimization

A SURVEY OF POPULAR CLUSTERING TECHNOLOGIES

Oracle Database 11g: Administration Workshop II Release 2

Database Decisions: Performance, manageability and availability considerations in choosing a database

Agenda. Overview Configuring the database for basic Backup and Recovery Backing up your database Restore and Recovery Operations Managing your backups

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

Backup and Recovery Solutions for Exadata. Ľubomír Vaňo Principal Sales Consultant

Backup and Recovery Solutions for Exadata. Cor Beumer Storage Sales Specialist Oracle Nederland

Backing up a Large Oracle Database with EMC NetWorker and EMC Business Continuity Solutions

WHITE PAPER. Oracle Backup and Recovery Essentials NFORMATION THAT EVERY ORACLE DATABASE ADMINISTRATOR SHOULD KNOW

Oracle Data Guard OTN Case Study SWEDISH POST

SQL-BackTrack the Smart DBA s Power Tool for Backup and Recovery

VERITAS and HP A LONG-TERM COMMITMENT

<Insert Picture Here> RMAN Configuration and Performance Tuning Best Practices

Restore and Recovery Tasks. Copyright 2009, Oracle. All rights reserved.

Backup/Recovery Strategy and Impact on Applications. Jacek Wojcieszuk, CERN IT Database Deployment and Persistancy Workshop October, 2005

Rob Zoeteweij Zoeteweij Consulting

MySQL Enterprise Backup

Oracle Active Data Guard

ORACLE DATABASE HIGH AVAILABILITY STRATEGY, ARCHITECTURE AND SOLUTIONS

Oracle Database Backup-and-Recovery Best Practices and New Features

Oracle Backup and Recover 101. Osborne Press ISBN

Oracle Data Guard for High Availability and Disaster Recovery

Use RMAN to relocate a 10TB RAC database with minimum downtime. Tao Zuo tao_zuo@npd.com NPD Inc. 9/2011

Using Recovery Manager with Oracle Data Guard in Oracle Database 10g. An Oracle White Paper April 2009

<Insert Picture Here> Oracle Database Directions Fred Louis Principal Sales Consultant Ohio Valley Region

BUSINESS CONTINUITY AND DISASTER RECOVERY FOR ORACLE 11g

Oracle Maximum Availability Architecture Best Practices for Oracle Exadata (CON8392)

Customer evaluation guide Toad for Oracle v12 Database administration

Redefining Oracle Database Management

Maximize Availability With Oracle Database 12c

Contents. SnapComms Data Protection Recommendations

Symantec NetBackup 7 Clients and Agents

High Availability Databases based on Oracle 10g RAC on Linux

An Oracle Technical White Paper October Oracle Data Guard 11g Data Protection and Availability for Oracle Database

Oracle Database 11g: New Features for Administrators DBA Release 2

How to Migrate your Database to Oracle Exadata. Noam Cohen, Oracle DB Consultant, E&M Computing

Deploying Active-Active Data Centers Using Oracle Database Solutions

The Future of PostgreSQL High Availability Robert Hodges - Continuent, Inc. Simon Riggs - 2ndQuadrant

An Oracle White Paper November Technical Comparison of Oracle Database 12c vs. Microsoft SQL Server Focus on High Availability

OCP: Oracle Database 12c Administrator Certified Professional Study Guide. Exam 1Z0-063

Oracle Database 11g Comparison Chart

Performing Database and File System Backups and Restores Using Oracle Secure Backup

Techniques for implementing & running robust and reliable DB-centric Grid Applications

AV-004: Administering and Programming with ORACLE

An Oracle White Paper January Oracle Active Data Guard vs Storage Remote Mirroring

Delivering Fat-Free CDP with Delphix. Using Database Virtualization for Continuous Data Protection without Storage Bloat.

ORACLE CORE DBA ONLINE TRAINING

Maximum Availability Architecture

WHITE PAPER. Oracle Backup and Recovery Essentials INFORMATION THAT EVERY ORACLE DATABASE ADMINISTRATOR SHOULD KNOW

Oracle on System z Linux- High Availability Options Session ID 252

Many DBA s are being required to support multiple DBMS s on multiple platforms. Many IT shops today are running a combination of Oracle and DB2 which

ORACLE DATABASE 11G: COMPLETE

11. Oracle Recovery Manager Overview and Configuration.

NetApp SnapManager for Microsoft Exchange

Data Integration Overview

D78850GC10. Oracle Database 12c Backup and Recovery Workshop. Summary. Introduction. Prerequisites

2009 Oracle Corporation 1

RMAN BACKUP & RECOVERY. Recovery Manager. Veeratteshwaran Sridhar

Oracle Active Data Guard Far Sync Zero Data Loss at Any Distance

Backups and Maintenance

VERITAS NetBackup 6.0 Database and Application Protection

Oracle 11g New Features - OCP Upgrade Exam

Oracle 11g: RAC and Grid Infrastructure Administration Accelerated R2

TOP FIVE REASONS WHY CUSTOMERS USE EMC AND VMWARE TO VIRTUALIZE ORACLE ENVIRONMENTS

An Oracle White Paper January A Technical Overview of New Features for Automatic Storage Management in Oracle Database 12c

Preview of Oracle Database 12c In-Memory Option. Copyright 2013, Oracle and/or its affiliates. All rights reserved.

Oracle 11g DBA Training Course Content

Integrated Application and Data Protection. NEC ExpressCluster White Paper

Why Standardize on Oracle Database 11g Next Generation Database Management. Thomas Kyte

Oracle Data Guard Fast Start Failover understood!

Near-Instant Oracle Cloning with Syncsort AdvancedClient Technologies White Paper

Transcription:

18 th Annual International zseries Oracle SIG Conference Present: Oracle Database Backup & Recovery, Flashback* Whatever, & Data Guard Tammy Bednar Tammy.Bednar@oracle.com Manager, HA Solutions & Backup / Recovery Server Technologies Oracle Corporation Ashish Ray Ashish.Ray@oracle.com Manager, HA Solutions & Data Guard Server Technologies Oracle Corporation

Agenda Recovery Manager Overview Oracle Database 10g Features Flashback * Granular Human Error Correction Data Guard Overview Enterprise Manager Integration Best Practices for HA Questions and Answers

Recovery Manager: Oracle s Backup & Recovery Utility Recovery Manager Enterprise Manager & 3 rd Party Tools Media Management Layer Network Intimate knowledge of database file formats and recovery procedures Manages and automates the backup, restore, and recovery process Creates and maintains backup policies Catalogs all backup and recovery activities Operates on-line and in parallel for fast processing Corrupt block detection during backup and restore and the ability to validate backups Integrated with Enterprise Manager & 3rd party network backup products

Recovery Manager Request backup at database, tablespace, or datafile level Incremental backups (up to 4 levels) Backup to tape through third party media manager software Comprehensive reporting Stored scripts that automate backup and recovery procedures Automatic parallelization of backup, restore, and recovery Backups can be restricted to limit reads per file, per second to avoid interfering with OLTP work No generation of extra redo during online database backups Proxy Copy Backup Accelerator allows fast copy technology at the storage subsystem level Backup information Server-Managed Backup Recovery Catalog Database Database Full or Incremental Backups Restores & Recovery DIGITAL DATA STORAGE DIGITAL DATA STORAGE DIGITAL DATA STORAGE DIGITAL DATA STORAGE Tape

Flash Recovery Area Unified storage location for all recovery files and recovery related activities in an Oracle Database. Centralized location for control files, online redo logs, archive logs, flashback logs, backups A flash recovery area can be defined as file system or ASM disk group A single recovery area can be shared by more than one database Minimize the number of initialization parameters to set when you create a database Define a database area and flash recovery area location Oracle creates and manages all files using OMF Database Area Flash Recovery Area

Flash Recovery Area Space Management Archive Logs & Database File Backups Flash Recovery Area Disk limit is reached and a new file needs to be written into the Flash Recovery Area Oracle delete files that are no longer required on disk. Space Pressure occurs RMAN updates list of files that may be deleted 1 2 Backup Files to be deleted Warning Issued to user

Change Tracking File 1011001010110 0001110100101 1010101110011 Change Tracking File Flash Recovery Area Optimizes incremental backups Track which blocks have changed since last backup Integrated change tracking file Changed blocks are tracked as redo is generated RMAN backup automatically uses changed block list

Incrementally Updated Backups It all starts with an image copy of the datafile Perform incremental backup SCN 1365 Merge the incremental backup into the image copy. SCN 1365 Recovery Area Database Area Recovery Area Image copy is available for database recovery Optimized Incremental Backup The image copy is now updated with block changes Eliminate the need to perform a whole database backup. Reduce the time required for media recovery since the image copy is updated with the latest block changes.

Eliminate Shrinking Backup Window Syndrome! Database Area Nightly Flash Recovery Apply Area Validated Incremental Two Independent Disk Systems Weekly Archive To Tape Fully automatic disk based backup and recovery Set it and Forget it Nightly incremental backup rolls forward recovery area backup Changed blocks are tracked in production DB Full scan is never needed Dramatically faster (20x) Blocks validated to prevent corruption of backup copy Use low cost ATA disk array for recovery area

Oracle Backup The Lowest Cost Tape Backup Manager File Systems Linux, Unix Windows, Filers Databases RMAN Oracle Backup Supports popular tape libraries & drives Oracle Backup is ideal for customers seeking a low cost alternative to complex backup products Best integrated end-to-end backup of Oracle Databases Media manger for RMAN backup and recovery of Oracle9i and 10g databases to tape Fastest Database Backup on the market Backup Oracle Home, App Server and other file systems Oracle Backup includes: Centralized management of network backups Scalability to low 100 s of servers, 10 s of millions of files Easy management through Enterprise Manager Bundled with Oracle Database replaces LSSV Single vendor support

Human Error Estimated to be the biggest single cause of downtime Need to quickly determine what happened and fix it Localized damage Needs surgical detection and repair Example removed wrong person named Smith Widespread damage Requires drastic action to avoid long downtime Example batch job deletes this month s orders Analysis and correction using traditional recovery is slow and complex Restore database to point in time and extract data Human Errors Oracle Database 10g is a breakthrough release for human error correction Other Downtime

Flashback Time Navigation Flashback Query Query all data at point in time Select * from Emp AS OF 2:00 P.M. where Tx 3 Tx 2 Tx 1 Flashback Versions Query See all versions of a row between two times See transactions that changed the row Select * from Emp VERSIONS BETWEEN 2:00 PM and 3:00 PM where Flashback Transaction Query See all changes made by a transaction Select * from FLASHBACK_TRANSACTION_QUERY where xid = 000200030000002D ;

How Does Flashback Time Navigation Work? Leverages Oracle s unique multi-version read consistency architecture The data image is saved in the undo tablespace (or Rollback Segments) before being modified Flashback Query uses the data saved in the undo tablespace to recreate an image of the data as it existed at a time in the past. Oracle s Automatic Undo Management feature allows administrators to specify how long they wish to retain the undo data DBAs can control how far back a Flashback Query can go

Flashback Query A Time Machine for Your Data Mistake Delete from Emp where Ename= Smith ; Flashback Query allows viewing data as it was before a mistake Query data at a time of your choosing Standard SQL interface simplifies deployment Self-service means faster, cheaper, and easier Flashback Query is a fast operation to enable self service Correction Insert into Emp select * from Emp AS OF yesterday where Ename= Smith ;

Build Self Error Correcting Application Oracle Collaboration Suite utilizes Flashback Query s built in functionality! Oh no! I ve deleted an important email.

Flashback Versions Query Provides a way to audit the rows of a table and retrieve information about the transactions that changed the rows. Retrieve all committed versions of the rows that exist or ever existed between the time the query was issued and a point in time in the past Use the transaction ID to perform transaction mining using LogMiner or Flashback Transaction Query to obtain additional information about the transaction.

Flashback Versions Query View data changes over time Fast and online access to data changes Utilizes the database undo and requires no additional overhead You control how far back in time data can be accessed

Flashback Transaction Query Provides a way for you to view changes made to the database at the transaction level When used in conjunction with Flashback Versions Query, it allows you to easily recover from user or application errors. Benefits Increase online diagnosability of problems in your database Perform analysis and audits of transactions Fast recovery at the transaction level

Flashback Transaction Query View Transaction Details View all objects affected by a single transaction Using the UNDO SQL, quickly recover from the erroneous transaction

Flashback Error Correction Customer Order Database Recovery at all levels Database Level Flashback Database restores the whole database to time Uses Flashback Logs Table Level Flashback Table restores rows in a set of tables to time Uses UNDO in database Flashback Drop restores a dropped table or a index Recycle bin for DROPs Row Level Flashback Query restores rows to time

Flashback Database Disk Write New Block Version Old Block Version 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 Replay log to restore DB to time It s fast - recover in minutes, not hours It s easy - single command restore Flashback Database to 2:05 PM Data Files Flashback Log Rewind button for the Database

Flashback Database versus Classic Point-In-Time Recovery Recovery is 100 times faster with Flashback 700 600 627 Time (minutes) 500 400 300 200 100 0 250 114 51 2 3 4 6 10 100 1,000 10,000 Restore Recovery Flashback Database Size (GB)

Flashback Drop Recycle bin Mistake was made Emp Drop table emp; Flashback Table emp to before drop; Emp Quickly recover dropped objects Provides self-service recovery Eliminate the need for TSPITR Virtual Recycle Bin Objects remain in the recycle bin until you permanently drop them with the PURGE command or recover them with the Flashback Table command. Objects will remain in the recycle bin until there is no room in the tablespace for new rows or updates to existing rows or until the tablespace needs to be extended Objects are purged in the order they were dropped.

Flashback Table Recover a table or tables to a specific point in time without restoring a backup Provides a way for users to easily and quickly recover from accidental modifications without DBA involvement In-place and online recovery of a table to a point in time in the past Eliminate traditional restores and clone instances to recover a table or tables to a specific point in time Data in the tables and all associated objects (indexes, constraints, triggers, etc.) are restored

Revolution in Recovery Flashback Revolutionizes Recovery Operates on just the changed data Time to correct error equals time to make error Minutes instead of hours Correction Time = Error Time + f(db_size) Flashback is Easy Single command instead of complex procedure

What is Oracle Data Guard? Oracle s disaster recovery solution for Oracle data Feature of Oracle Database Enterprise Edition (EE) 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

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

Data Guard Configuration Primary Site Standby Site A Broker Standby Site B Primary Database Standby Database Standby Database Managed as a single configuration Primary and standby databases can be Real Application Clusters or single-instance Oracle Up to nine standby databases supported in a single configuration

Oracle Data Guard Architecture Production Database Network Sync or Async Redo Shipping Broker Redo Apply Physical Standby Database Backup DIGITAL DATA STORAGE DIGITAL DATA STORAGE Transform Redo to SQL Logical Standby Database Open for Reports SQL Apply Additional Indexes & MVs

Data Guard Redo Apply Primary Database Data Guard Broker Physical Standby Database Redo Apply Backup Network DIGITAL DATA STORAGE Redo Shipment Standby Redo Logs Physical Standby Database 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

Data Guard SQL Apply Additional Indexes & Materialized Views Primary Database Data Guard Broker Transform Redo to SQL and Apply Logical Standby Database Network Continuously Open for Reports Redo Shipment Standby Redo Logs Logical Standby Database 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

Standby Databases Are Not Idle Read-Only / Read-Write Standby Server Reporting Tape Backups Standby database can be used to offload the primary database, increasing the ROI

Protection from Human Errors and Data Corruptions Primary Site Optional Delayed Apply Standby Site Data Changes Application of changes received from the primary can be delayed at standby to allow for the detection of user errors and prevent standby to be affected Administrators may choose not to configure any delay if both primary and standby are affected, then they can be simply flashed back [10g] The apply process also revalidates the log records to prevent application of any log corruptions

Switchover and Failover Primary and Standby role transitions Switchover Planned role reversal No database reinstantiation required Used for maintenance of OS or hardware Failover Unplanned failure (e.g. disasters) of primary Primary database must be reinstantiated / flashed back [10g] Initiated using simple SQL / GUI interface Data Guard automates the processes involved

Flexible Data Protection Modes Protection Mode Risk of Data Loss Redo Shipment Maximum Protection Maximum Availability Zero Data Loss Double Failure Protection Zero Data Loss Single Failure Protection Synchronous redo shipping to 2 sites Synchronous redo shipping Maximum Performance Minimal data loss usually 0 to few seconds Asynchronous redo shipping Balance cost, availability, performance, and transaction protection

Automatic Resynchronization Network connectivity problems may occur Data Guard automatically resynchronizes standbys after network connectivity restored Implicit ARCH process idling away on the primary pings all standbys on a regular basis to see if they are missing any redo data If so it sends them the missing redo data Explicit Gap discovered during apply process in physical standby Based on FAL_SERVER and FAL_CLIENT settings, primary notified, and it sends missing redo data

Enhanced DR with Flashback Database Primary Database Redo Shipment Real Time Apply Standby Database 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 for logical standbys

SQL Apply Rolling Database Upgrades Upgrade Clients A Version X Redo B Version X 1 Initial SQL Apply Config Logs Queue 2 A X B X+1 Upgrade node B to X+1 Patch Set Upgrades Major Release Upgrades Upgrade A Redo B A Redo B Cluster Software & Hardware Upgrades X+1 X+1 X X+1 4 Switchover to B, upgrade A 3 Run in mixed mode to test

RAC Primary Two standby dbs

Example Ease of Use Switchover using Enterprise Manager is now literally two mouse clicks

Switched!

Data Guard Customers 3% 6% 6% 7% 8% 4% 3% 9% 11% 16% 12% 15% Financial Hi-Tech Manufacturing Government Healthcare/Pharma/Bio-Tech Insurance Other Education Energy Telecom Retail Services

Data Guard Technical Case Studies ADT Security Services - Using Data Guard SQL Apply Across a Wide Area Network Amadeus - Using Data Guard for Disaster Recovery & Rolling Database Upgrades Fannie Mae - Supporting 835 transactions per second & Zero Data Loss Protection in Oracle Database 10g First American Real Estate Solutions - Using Oracle9i Data Guard and Planning ahead for Data Guard in Oracle Database 10g Ohio Savings Bank - Maximum Availability Architecture & Zero Data Loss with Oracle Database 10g Oracle Global IT - Oracle E-Business Suite with Data Guard over a WAN Swedish Post - SQL Apply VP Bank -SQL Apply Ref. http://www.oracle.com/technology/deploy/availability/htdocs/ha_casestudies.html for latest updates

Oracle s Integrated HA Solution Set Feature Integration Grid Clusters Automatic Storage Management Flashback RMAN & Flash Recovery Area H.A.R.D Data Guard Online Reconfiguration Rolling Upgrades Online Redefinition Best Practices Blueprint

MAA Best Practice Publications Best Practices on: RAC/ Data Guard configuration Redo data transport mechanisms Instance Recovery Switchover/Failover Media recovery SQL Apply configuration Network configuration Integration of 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

Q U E S T I O N S A N S W E R S For more information on Oracle database High Availability, Disaster Protection, Backup & Recovery, and Storage Management technology http://otn.oracle.com/deploy/availability/