CERN IT Department CH-1211 Genève 23 Switzerland www.cern.ch/i t Recovery Exercise Wrap-up Jacek Wojcieszuk, CERN IT-DM Distributed Database Operations.

Slides:



Advertisements
Similar presentations
LA Oracle Users Group Succeeding with RMAN Tim Gorman Principal SageLogix, Inc.
Advertisements

INTRODUCTION TO ORACLE Lynnwood Brown System Managers LLC Backup and Recovery Copyright System Managers LLC 2008 all rights reserved.
ITEC474 Control File Maintenance
CERN - IT Department CH-1211 Genève 23 Switzerland t Backup & Recovery with RMAN LCG 3D Workshop, Bologna June 12 th, 2007 Jacek Wojcieszuk.
5 Copyright © 2006, Oracle. All rights reserved. Database Recovery.
Database Backup and Recovery
RMAN Restore and Recovery
Backup and Recovery Part 1.
Chapter 12 Performing Incomplete Recovery. Background Viewed as one of the more difficult chapters to write Thought it was important to put in material.
RMAN RECOVERY SCENARIOS.  1) Complete Recovery  2) Loss of System datafile  3) Loss of Non-System datafile  4) Restoring a datafile if no backups.
CHAPTER 16 User-Managed Backup and Recovery. Introduction to User Managed Backup and Recovery Backup and recover is one of the most critical skills a.
CERN IT Department CH-1211 Genève 23 Switzerland t Backup configuration best practices Jacek Wojcieszuk, CERN IT-DM Distributed Database.
Oracle’s Backup and Recovery Tool
Configuring Recovery Manager
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.
CERN - IT Department CH-1211 Genève 23 Switzerland t Oracle Data Guard for RAC migrations WLCG Service Reliability Workshop CERN, November.
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.
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
CERN IT Department CH-1211 Geneva 23 Switzerland t CERN IT Department CH-1211 Geneva 23 Switzerland t
Introduction to Oracle Backup and Recovery
Using RMAN to Perform Recovery
13 Copyright © Oracle Corporation, All rights reserved. RMAN Complete Recovery.
PPOUG, 05-OCT-01 Agenda RMAN Architecture Why Use RMAN? Implementation Decisions RMAN Oracle9i New Features.
7 Copyright © 2006, Oracle. All rights reserved. Dealing with Database Corruption.
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.
Backup & Recovery Backup and Recovery Strategies on Windows Server 2003.
11g(R1/R2) Data guard Enhancements Suresh Gandhi
RMAN: Your New Best Friend for Backup and Recovery Ruth Gramolini ORACLE DBA Vermont Department of Taxes.
CHAPTER 5 Managing Control Files and Online Redo Logs.
17 Copyright © Oracle Corporation, All rights reserved. Recovery Catalog Creation and Maintenance.
15 Copyright © Oracle Corporation, All rights reserved. RMAN Incomplete Recovery.
11 Copyright © 2004, Oracle. All rights reserved. Dealing with Database Corruption.
CERN IT Department CH-1211 Genève 23 Switzerland t Possible Service Upgrade Jacek Wojcieszuk, CERN/IT-DM Distributed Database Operations.
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.
Data & Storage Services CERN IT Department CH-1211 Genève 23 Switzerland t DSS Castor incident (and follow up) Alberto Pace.
CERN IT Department CH-1211 Genève 23 Switzerland t DM Database Monitoring Tools Database Developers' Workshop CERN, July 8 th, 2008 Dawid.
10 Copyright © Oracle Corporation, All rights reserved. User-Managed Backups.
Backup and Recovery Part 2. Online backup Online backup requirements: Backup all data files (file system copy) Backup all redo information produced during.
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 © 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.
CERN IT Department CH-1211 Geneva 23 Switzerland t Distributed Database Operations Workshop November 17 th, 2010 Przemyslaw Radowiecki CERN.
10 Copyright © 2007, Oracle. All rights reserved. Using RMAN Enhancements.
9 Copyright © 2004, Oracle. All rights reserved. Incomplete Recovery.
ASGC incident report ASGC/OPS Jason Shih Nov 26 th 2009 Distributed Database Operations Workshop.
CERN - IT Department CH-1211 Genève 23 Switzerland t Service Level & Responsibilities Dirk Düllmann LCG 3D Database Workshop September,
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.
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.
RMAN Maintenance.
Database Recovery.
Duplicating a Database
Performing Database Recovery
Database Backup and Recovery
Presentation transcript:

CERN IT Department CH-1211 Genève 23 Switzerland t Recovery Exercise Wrap-up Jacek Wojcieszuk, CERN IT-DM Distributed Database Operations Workshop November 26 th, 2009

CERN IT Department CH-1211 Genève 23 Switzerland t Teams Team 1: Carmine & Elena (a CASTOR DB) Team 2: Jason, Luca, Doris, Kamil (D3R DB) Team 3: Carlos & Przemek &... (D3R DB) Team 4: Dawid, Alexander & Gordon &... (D3R DB)

CERN IT Department CH-1211 Genève 23 Switzerland t Status 3 teams completed point-in-time recovery successfully 1 team recovered spfile and controlfile Many scaring/interesting issues encountered No time to practice block media recovery –We will try to provide more details on Twiki how to intentionally corrupt datafiles and fix corruption with RMAN, so it can try it out on your own

CERN IT Department CH-1211 Genève 23 Switzerland t Team 1 Point-in-time recovery completed But it had to be repeated due to problems with backup registration Lessons learned: –If database recovered to a different system, before starting datafile restore and recovery usually it is necessary to crosscheck and delete obsolete backup –If backup location is different than on the source system it is necessary to catalog it before starting datafile restore

CERN IT Department CH-1211 Genève 23 Switzerland t Team 2 Restore of an spfile and a controlfile completed –So the most tricky part done Everything prepared for datafile restore & recovery (which in this case would be smooth, anyway) No time to complete other steps

CERN IT Department CH-1211 Genève 23 Switzerland t Team 3 Point-in-time recovery completed after long fight –Many interesting problems. E.g: starting media recovery unable to find archive log archive log thread=1 sequence=26655 Oracle Error: ORA-01547: warning: RECOVER succeeded but OPEN RESETLOGS would get error below ORA-01194: file 1 needs more recovery to be consistent ORA-01110: data file 1: '+RECOR_DATADG1/d3r/datafile/system ' released channel: TAPE_1 released channel: TAPE_2 RMAN-00571: =========================================================== RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS =============== RMAN-00571: =========================================================== RMAN-03002: failure of recover command at 11/26/ :22:09 RMAN-06054: media recovery requesting unknown log: thread 1 seq lowscn

CERN IT Department CH-1211 Genève 23 Switzerland t Team 3 – Lessons learned It is worth to use the freshest available controlfile otherwise RMAN can have problems to find some needed backups Discrepancy between controlfile contents and the state of the database at the chosen point-in-time can cause some extra troubles that need to be addresses separately

CERN IT Department CH-1211 Genève 23 Switzerland t Team 4 Point-in-time recovery completed successfully Also few problems. E.g: starting media recovery media recovery failed released channel: t1 released channel: t2 RMAN-00571: =========================================================== RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS =============== RMAN-00571: =========================================================== RMAN-03002: failure of recover command at 11/26/ :38:05 ORA-00283: recovery session canceled due to errors RMAN-11003: failure during parse/execution of SQL statement: alter database recover if needed start until time 'NOV :00:00' using backup controlfile ORA-00283: recovery session canceled due to errors ORA-01110: data file 1: '+D3R_DATADG1/d3r/datafile/system ' ORA-01157: cannot identify/lock data file 1 - see DBWR trace file ORA-01110: data file 1: '+D3R_DATADG1/d3r/datafile/system '

CERN IT Department CH-1211 Genève 23 Switzerland t Team 4 – lessons learned If datafile location on the recovery system is different from the one on the original system or when OMF used, recovery will fail if it is not preceded with switch database to copy

CERN IT Department CH-1211 Genève 23 Switzerland t Thank you for participation