CERN IT Department CH-1211 Geneva 23 Switzerland t CERN IT Department CH-1211 Geneva 23 Switzerland t

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.
CERN - IT Department CH-1211 Genève 23 Switzerland t Backup & Recovery with RMAN LCG 3D Workshop, Bologna June 12 th, 2007 Jacek Wojcieszuk.
Backup The flip side of recovery. Types of Failures Transaction failure –Transaction must be aborted System failure –Hardware or software problem resulting.
5 Copyright © 2006, Oracle. All rights reserved. Database Recovery.
Module 12: Backup and Recovery. Overview Backup and recovery methods available in Oracle and SQL Server 2008 Types of failure Types of recovery Formulating.
Database Backup and Recovery
RMAN Restore and Recovery
Backup and Recovery Part 1.
Configuring Recovery Manager
4 Copyright © 2008, Oracle. All rights reserved. Configuring Backup Specifications.
Chapter 5 Configuring the RMAN Environment. Objectives Show command to see existing settings Configure command to change settings Backing up the controlfile.
Backup & Recovery with RMAN
9 Copyright © Oracle Corporation, All rights reserved. Oracle Recovery Manager Overview and Configuration.
1 Recovery and Backup RMAN TIER 1 Experience, status and questions. Meeting at CNAF June of 2007, Bologna, Italy Carlos Fernando Gamboa, BNL Gordon.
Backup and restore of Oracle databases: introducing a disk layer
The Oracle Recovery Manager (RMAN)
Backup Concepts. Introduction Backup and recovery procedures protect your database against data loss and reconstruct the data, should loss occur. The.
CHAPTER 18 RMAN Backups and Reporting. Introduction to RMAN Backups and Reporting The focus of this chapter is backups of: Datafiles Control files Archived.
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
1 RAL Status and Plans Carmine Cioffi Database Administrator and Developer 3D Workshop, CERN, November 2009.
Navigating the Oracle Backup Maze Robert Spurzem Senior Product Marketing Manager
IS 4510 – Database Administration Module – 2 Database Backup 10/24/20141Compiled by: Zafar Iqbal Khan.
Backup & Recovery Concepts for Oracle Database
Selling the Database Edition for Oracle on HP-UX November 2000.
Oracle Recovery Manager (RMAN) 10g : Reloaded
PPOUG, 05-OCT-01 Agenda RMAN Architecture Why Use RMAN? Implementation Decisions RMAN Oracle9i New Features.
Recovery Manager Overview Target Database Recovery Catalog Database Enterprise Manager Recovery Manager (RMAN) Media Options Server Session.
CERN IT Department CH-1211 Geneva 23 Switzerland t Experience with NetApp at CERN IT/DB Giacomo Tenaglia on behalf of Eric Grancher Ruben.
SRUTHI NAGULAVANCHA CIS 764, FALL 2008 Department of Computing and Information Sciences (CIS) Kansas State University -1- Back up & Recovery Strategies.
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.
Backup and Recovery Protects From Data Loss. Backup and Recovery Protects From Data Loss Provides for Media Recovery.
11 Copyright © Oracle Corporation, All rights reserved. RMAN Backups.
Chapter 9 Scripting RMAN. Background Authors felt that scripting was a topic not covered well Authors wanted to cover both Unix/Linux and Windows environments.
15 Copyright © 2005, Oracle. All rights reserved. Performing Database Backups.
Backup & Recovery Backup and Recovery Strategies on Windows Server 2003.
RMAN: Your New Best Friend for Backup and Recovery Ruth Gramolini ORACLE DBA Vermont Department of Taxes.
15 Copyright © 2007, Oracle. All rights reserved. Performing Database Backups.
Selling the Storage Edition for Oracle November 2000.
Mark A. Magumba Storage Management. What is storage An electronic place where computer may store data and instructions for retrieval The objective of.
17 Copyright © Oracle Corporation, All rights reserved. Recovery Catalog Creation and Maintenance.
CERN IT Department CH-1211 Geneva 23 Switzerland t Daniel Gomez Ruben Gaspar Ignacio Coterillo * Dawid Wojcik *CERN/CSIC funded by Spanish.
Continuous DB integration testing with RAT „RATCOIN”
ASM General Architecture
Backup Concepts. Introduction Backup and recovery procedures protect your database against data loss and reconstruct the data, should loss occur. The.
3 Copyright © 2006, Oracle. All rights reserved. Using Recovery Manager.
10 Copyright © Oracle Corporation, All rights reserved. User-Managed Backups.
CERN - IT Department CH-1211 Genève 23 Switzerland t High Availability Databases based on Oracle 10g RAC on Linux WLCG Tier2 Tutorials, CERN,
Overview of Oracle Backup and Recovery Darl Kuhn, Regis University.
6 Copyright © 2007, Oracle. All rights reserved. Performing User-Managed Backup and Recovery.
2 Copyright © 2006, Oracle. All rights reserved. Configuring Recovery Manager.
8 Copyright © 2007, Oracle. All rights reserved. Using RMAN to Duplicate a Database.
Maria Girone CERN - IT Tier0 plans and security and backup policy proposals Maria Girone, CERN IT-PSS.
3 Copyright © 2007, Oracle. All rights reserved. Using the RMAN Recovery Catalog.
19 Copyright © 2004, Oracle. All rights reserved. Database Backups.
3 Copyright © 2006, Oracle. All rights reserved. Installation and Administration Basics.
BMC Software Copyright 2001 Distributed Data Management Recovery Solution Petri Tumppila Presales Manager.
Control File Information The database name The timestamp of database creation The names and locations of associated datafiles and redo log files Tablespace.
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.
RMAN Maintenance.
Database recovery contd…
Recovery Catalog Creation and Maintenance
Backup and Recovery (1) Oracle 10g Hebah ElGibreen CAP364.
Database Backup and Recovery
Presentation transcript:

CERN IT Department CH-1211 Geneva 23 Switzerland t CERN IT Department CH-1211 Geneva 23 Switzerland t November 17 th, 2010 How to automatically test and validate your backup and recovery strategy

CERN IT Department CH-1211 Geneva 23 Switzerland t 2 Agenda Recovery platform principles Use Cases Conclusion

CERN IT Department CH-1211 Geneva 23 Switzerland t 3 Recovery platform principles Validate tape backupsets Isolation –no use of catalog: controlfile needs to have all backup information needed –capped tnsnames.ora –no user jobs must run Automatic cleanup except otherwise configured or an error arises. Flexible and easy to customize Take advantage of a restored database: exports can be configured -> further validation Spans several Oracle homes (9i,10g,11g) and OS: solaris & linux 32 & 64 bits. Maximize recovery server: several recoveries at the same time Easy to deploy: any server can be a recovery server

CERN IT Department CH-1211 Geneva 23 Switzerland t 4 Platform Requirements Server with Linux (>RHE4) or Solaris (>8) Oracle database server target release(s) for single instance: –9i: 32 & 64 bits –10g –11gR1 & 11gR2 Perl (v5.8.5) & bash shell should be available TDP-Oracle libraries (v5.5.3) Enough storage to carry intended recoveries on SAN or NAS.

CERN IT Department CH-1211 Geneva 23 Switzerland t 5 Component view Runs anywhere: ~2600 lines of Perl & Bash

CERN IT Department CH-1211 Geneva 23 Switzerland t 6 Software layout /ORA/dbs01/syscontrol/projects/recovery bin/ recovery_wrapper. sh export_wrapper.sh recexe.pl export.pl Set of perl modules etc/ recoverydef0Definitions recoverydef export/ zexp par files for exp or expdp logs/pfile/ initTEMPLATE o ra initTEMPLATE o ra initTEMPLATE ora

CERN IT Department CH-1211 Geneva 23 Switzerland t 7 Skeleton of a recovery export Restore & Recovery

CERN IT Department CH-1211 Geneva 23 Switzerland t 8 Export sequence diagram Long Time Archive to Tape Copy to offsite server

9 Recovery Server: Installation set up Recoveries are carried out every week, for important db (cron job) : If recovery_wrapper.sh or similar not available:

10 Traces All actions are logged by Logger.pm Last successful recovery scripts are kept: $dirtobackup='/ORA/dbs03/oradata/BACKUP'; notifications

11 Important configuration options ASM configuration

12 Use Case I: user logical error. Table lost Recover a table as it was on 16 th Dec 2009 at 05:00am Do we have an export that could fit?

13 Use Case 1 cont. I Set PITR: Launch it: It will dispatch following scripts in order: Metalink ID

14 Use Case 1 cont. II job_queue_processes is already 0

15 Use Case 2: using a recovery as backup to disk RAC Public interface Interconnect interface Backup to disk. SATA disks Recovery Server

16 Use Case 2 cont. I Set-up Run restore/recover: Copy archived redo logs from production to recovery server if needed. Catalog recovered db on production and check it out! Just create recovery scripts

17 Use Case 3: PITR. Permanent use of recovery volume. RAC Public interface Interconnect interface Backup to disk. FC disks Recovery Server

18 Use Case 3 cont. I Mount volume, image location as production database: Generate recovery scripts (after setting PITR & $filelocation="/ORA/dbs03/$dbtorec"; ) or get them from repository (i.e. /ORA/dbs03/oradata/BACKUP): Restore/Recover database, but not open: On production DB (on production server): –stop instance/CRS –backup control file(s) & copy control file from recovery to production –copy spfile (& CRS files) from production volume to recovery volume –Umount production volume & mount recovery one –Open resetlogs

19 Use Case 4: Backup strategy validation RAC Public interface Interconnect interface Backup to disk. SATA disks Recovery Server

20 Use case 4 cont. I New scripts and templates introduced for VLDB backup –backup incremental level 0 … check logical database skip readonly format…; –RO tablespaces are backed up every night Retention policy changed time window to redundancy Validation possibilities: –Full restore: time/resource cost –Partial restore:

21 Use Case 4 cont. II Restore/recover the READ WRITE part of the database Before open db offline RO tablespace datafiles Once db open, restore selected RO tablespaces

22 Use Case 5: schema broken after application upgrade in a VLDB If schema is self-contained Kind of tablespace PITR but much simpler $tblpitr expdp didn’t work in some cases:

23 Use case 5 cont. I db_restore.rcv db_start.sql

24 Use case 5 cont. II Database in size: –Full: ~420Gb –Partial (recovering one schema): ~ 71Gb Partial recovery was 63% faster than Full recovery

25 Conclusion More than 3000 recoveries performed so far Recovery platform shows useful to: –Can help to estimate real restore/recover time (SLA) –Validates regularly your tape backups –Helps to test your backup strategy –Helps to test your recovery strategy Helps in a number of use cases i.e. recover from logical user errors Maximize your recovery infrastructure -> take consistent exports Total isolation from production Easy installation Open source project { –It can be adapted to different tape vendor: netbackup, EMC network backup –Add new functionality

26 Thank You !