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



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

Oracle Database 10g: Backup and Recovery 1-2

RMAN What is Rman Why use Rman Understanding The Rman Architecture Taking Backup in Non archive Backup Mode Taking Backup in archive Mode

Implementing an Enterprise Class Database Backup and Recovery Plan

MySQL Enterprise Backup

ROADMAP TO DEFINE A BACKUP STRATEGY FOR SAP APPLICATIONS Helps you to analyze and define a robust backup strategy

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

D12CBR Oracle Database 12c: Backup and Recovery Workshop NEW

Oracle Database 11g: Administration Workshop II DBA Release 2

Backup Types. Backup and Recovery. Categories of Failures. Issues. Logical. Cold. Hot. Physical With. Statement failure

Block-Level Incremental Backup

Oracle 11g DBA Training Course Content

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

Oracle 11g DBA Online Course - Smart Mind Online Training, Hyderabad. Oracle 11g DBA Online Training Course Content

Oracle Database 11g: Administration Workshop II DBA Release 2

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

Backup and Recovery 1

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

Oracle Database 11g: Administration Workshop II Release 2

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

Rob Zoeteweij Zoeteweij Consulting

ORACLE CORE DBA ONLINE TRAINING

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

Oracle Database Backups and Disaster Autodesk

Maximum Availability Architecture. Oracle Best Practices For High Availability

Virtual Infrastructure Security

Database Recovery For Newbies

High Availability Databases based on Oracle 10g RAC on Linux

Using HP StoreOnce Backup systems for Oracle database backups

An Oracle White Paper March Backup and Recovery Strategies for the Oracle Database Appliance

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

11. Oracle Recovery Manager Overview and Configuration.

Module 14: Scalability and High Availability

Feature. Database Backup and Recovery Best Practices

Lunch and Learn: Modernize Your Data Protection Architecture with Multiple Tiers of Storage Session 17174, 12:30pm, Cedar

12. User-managed and RMAN-based backups.

Oracle 12c Multitenant and Encryption in Real Life. Christian Pfundtner

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

A SURVEY OF POPULAR CLUSTERING TECHNOLOGIES

Oracle Backup & Recovery

Backup and restore of Oracle databases: introducing a disk layer

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

Near-Instant Oracle Cloning with Syncsort AdvancedClient Technologies White Paper

Oracle Database 10g: Administration Workshop II Release 2

Direct NFS - Design considerations for next-gen NAS appliances optimized for database workloads Akshay Shah Gurmeet Goindi Oracle

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

Zero Downtime Backup solution for Oracle10g

Connectivity. Alliance Access 7.0. Database Recovery. Information Paper

Oracle 11g Database Administration

ORACLE DATABASE HIGH AVAILABILITY STRATEGY, ARCHITECTURE AND SOLUTIONS

Connectivity. Alliance Access 7.0. Database Recovery. Information Paper

Strategies for Oracle Database Backup and Recovery: Case Studies. Mingguang Xu

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

11. Configuring the Database Archiving Mode.

Oracle DBA Course Contents

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

Configuring Backup Settings. Copyright 2009, Oracle. All rights reserved.

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

EMC Data Domain Boost for Oracle Recovery Manager (RMAN)

Daniela Milanova Senior Sales Consultant

Oracle vs. SQL Server. Simon Pane & Steve Recsky First4 Database Partners Inc. September 20, 2012

Oracle Database Security and Audit

Oracle Recovery Manager

ORACLE DATABASE ADMINISTRATOR RESUME

Cyber Security: Guidelines for Backing Up Information. A Non-Technical Guide

Complete Online Microsoft SQL Server Data Protection

Recover Oracle Database upon losing all Control Files

Tier0 plans and security and backup policy proposals

Contents. SnapComms Data Protection Recommendations

COURCE TITLE DURATION. Oracle Database 11g: Administration Workshop I

White Paper. Alfresco Backup and Disaster Recovery

REMOTE BACKUP-WHY SO VITAL?

What You Should Know About Cloud- Based Data Backup

The safer, easier way to help you pass any IT exams. Exam : 1Z Upgrade Oracle9i/10g/11g OCA to Oracle Database 12c OCP.

VMware Backup & Recovery

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

Snapshot Technology: Improving Data Availability and Redundancy

Oracle Data Guard for High Availability and Disaster Recovery

Data Backup Options for SME s

Oracle Database Disaster Recovery Using Dell Storage Replication Solutions

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

MapGuide Open Source Repository Management Back up, restore, and recover your resource repository.

How To Backup A Database

DB2 9 for LUW Advanced Database Recovery CL492; 4 days, Instructor-led

LOGGING OR NOLOGGING THAT IS THE QUESTION

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

VERITAS NetBackup 6.0 Database and Application Protection

BrightStor ARCserve Backup

HP LeftHand SAN Solutions

RMAN BACKUP & RECOVERY. Recovery Manager. Veeratteshwaran Sridhar

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

Oracle 10g Feature: RMAN Incrementally Updated Backups

Oracle Backup and Recovery Best Practices Dell Compellent Storage Center. Dell Compellent Technical Best Practices

Considerations when Choosing a Backup System for AFS

Considerations when Choosing a Backup System for AFS

Transcription:

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

Outline Backup and recovery overwiew Current backup strategy overview Future improvements Exemplary recovery scenarios Consequences for applications J. Wojcieszuk, CERN 2

Types of failures Instance Failure Usually connected with an Oracle process failure Media Failure Disk failure, storage array controller failure etc. Block Corruption Usually caused by bugs in Oracle software Human error In most cases accidentally deleted/updated data Database user or DBA Disaster Fire, flood, earthquake, plane crash etc. J. Wojcieszuk, CERN 3

Backup options and tools Physical backups Cold (off-line) backups database only Require downtime Do not provide flexibility for point in time recovery (PITR) Hot (on-line) backups erent types of backups: full, incremental (cumulative, differential), archivelogs erent scopes: full database, tablespace(s) or datafile(s) Do not require database downtime Can be used to recover full database, single/multiple tablespace(s)/datafile(s) or a corrupted block Database can be recovered to any point in time within assumed backup retention period All backups mentioned above Can be performed with Oracle Recovery Manager (RMAN) Can be send to disk or tapes Logical backups Logical copy of data in the database Support for different granularity Can be taken either with legacy Export/Import tools or with Data Pump (10g) Standby database (Data Guard) Standby database (Data Guard) Physical or logical J. Wojcieszuk, CERN 4

How hot backups are possible SGA User Server proc. Backup proc. Tapes or disks DBWR LGWR system Db file RedoLog Db file Db file Db file RedoLog Log archiver Archived redo logs J. Wojcieszuk, CERN 5

erent types of RMAN hot backups database backup Incremental backups (different levels 0-4) 0 Cumulative, differential Can be used to update a full backup Archivelog backups Tablespace(s), datafile(s) ) backups erential incremental Cumulative incremental J. Wojcieszuk, CERN 6

Currently used backup strategy Strategy Backups to tapes only backup monthly or weekly depending on the database Daily incremental differential backups Backups of archivelogs every 10, 20 or 60 minutes (depending on the database) 2 most recent full backups kept on tapes Backups validation on regular basis Advantages Relatively simple solution Even in case of disaster only up to 60 minutes of transactions can be lost Disadvantages Tapes are much slower then disks so database recovery time can be an issue Tapes are less reliable then disks J. Wojcieszuk, CERN 7

Future improvements disk backups (1) Are rather difficult to implement in case of databases running on single-node node disk servers Nowadays are more and more popular thanks to getting cheaper disk k space make better use of available resources Much easier to maintain with Oracle 10g thanks to the Flash Recovery Area feature Storage Area Network J. Wojcieszuk, CERN 8

Future improvements disk backups (2) Backups to disk: One full database backup at the beginning of database existence Block change tracking Daily incremental backups used to update the full database backup Archived redo logs Additionally backups to tapes for disaster recovery: Monthly full backups Weekly incremental cumulative Daily incremental differential Hourly archivelog backups 2 most recent full backups subsequent incremental and archivelog backups kept to allow point in time recovery Regular, automated test recoveries Elements of backup policy that should be agreed with experiments: Backup frequency Backup retention J. Wojcieszuk, CERN 9

B&R improvements pros and cons Advantages Much shorter recovery time then in case of tape backups Transfers between disks are usually an order of magnitude faster then transfers from tapes to disks In case of emergency database can be started almost immediately directly from the disk backup (after recovery of recent transactions from archivelogs) Tape backups necessary only for disaster and point in time recovery Load on the tape system will decrease due to less often archivelog backups Block change tracking will decrease database load But: disk space consumption will double J. Wojcieszuk, CERN 10

Failure and recovery scenarios (1) Broken disk No transaction loss and no downtime thanks to disk mirroring Broken controller in a storage array No transaction loss and no downtime thanks to mirroring between 2 independent storage arrays Disaster Service downtime Recovery of the database from tape backups with average speed of 50 GB/hour Up to 60 minutes of transactions can be lost (depending on the database) 18.OCT 25.OCT 28.OCT Cum. 18.OCT 25.OCT 28.OCT J. Wojcieszuk, CERN 11

Failure and recovery scenarios (2) Failure of both storage arrays used by a database Service interruption Currently used tape backups: Recovery time proportional to database size, age of the most recent full backup and number of transactions Backups needed: full backup n incremental backups m archivelogs Up to 60 minutes of transactions lost (depending on the database) Disk backups: Recovery time proportional to database size and number of transactions (usually 5-10 times shorter then in case of tape backups) Backups needed full: backup m archivelogs) For really big and critical databases it is possible to recover recent transactions from archived redo logs and startup of the database from backup copy (database can be back in productions in less then 1 hour) Up to 60 minutes of transactions can be lost 18.OCT 25.OCT 28.OCT J. Wojcieszuk, CERN 12

Handling human errors Erroneously deleted/updated data Flashback query e.g: INSERT INTO employee (SELECT * FROM employee AS OF TIMESTAMP to_timestamp( 18-OCT-05 08:50','DD-MON-YY HH24:MI')); Flashback transaction query e.g: SELECT operation, undo_sql FROM flashback_transaction_query WHERE table_name = EMPLOYEES AND start_timestamp >= to_timestamp( 18-OCT-05 08:50','DD- MON-YY HH24:MI'); More information: https://edms.cern.ch/document/673184 Accidentally dropped table: Accidentally dropped table: Point in time recovery Recovery from a logical backup J. Wojcieszuk, CERN 13

B&R strategies impact on applications (1) Downtime and data loss Mirroring and B&R strategies minimize probability of unscheduled downtime and data loss Unfortunately they are still possible and appropriate handling on applications level is vital E.g. applications shouldn t corrupt part of data they are able to access in case of unavailability of the other part Applications should be able to deal with transaction loss in case of disaster The only possible workaround would be deployment of a standby database which means doubling hardware and maintenance effort and decreased performance Human errors Human errors Applications should minimize probability of human errors Users should react quickly to their mistakes Recovery of table erroneously cleared 3 hour ago is usually much simpler and much faster that of one cleared last week J. Wojcieszuk, CERN 14

B&R strategies impact on applications (2) Backup frequency: Affects amount of data that can be lost during disaster (e.g. more frequent archivelog backups == smaller data loss) Has impact on recovery time (more frequent full/incremental backups == shorter time to recovery) Frequent backups are most expensive in terms of resources (CPU, disk/tape space) We need feedback from application managers regarding desired backup frequency Backup retention Affects data safety Affects possibility to perform point in time recovery Affects resource (tape space) consumption We need feedback from application managers regarding desired backup retention Read-only data All the data that is not going to change in the future should be placed in a separate tablespace and declared as read-only Read-only tablespaces can be ommited during subsequent full backups Declaring data as read only decreases probability of accidental deletes/updates J. Wojcieszuk, CERN 15

Questions & Answers J. Wojcieszuk, CERN 16