Oracle Database 10 g Time Navigation: Human-Error Correction Magnus Lubeck DBA/Systems Analyst CERN, IT-DB Group Session id: 40109 Tammy Bednar Sr. Product.

Slides:



Advertisements
Similar presentations
ITEC474 INTRODUCTION.
Advertisements

Chris Ruel * Image used without permission.
17 Copyright © 2005, Oracle. All rights reserved. Performing Flashback.
How Oracle Database 10g Revolutionizes Availability and Enables the Grid Juan Loaiza Vice President, Systems Technologies Oracle Corporation Session id:
High Availability Group 08: Võ Đức Vĩnh Nguyễn Quang Vũ
Data Guard SQL Apply Back to the Future! Larry M. Carpenter Senior Principal Consultant Server Technologies Oracle Corporation Session id:
System Administration Accounts privileges, users and roles
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.
RMAN Restore and Recovery
Chapter 12 Performing Incomplete Recovery. Background Viewed as one of the more difficult chapters to write Thought it was important to put in material.
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.
Oracle backup and recovery strategy
Director Product Management
Introduction to Oracle Backup and Recovery
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.
Oracle Database High Availability Brandon Kuschel Jian Liu Source: Oracle Database 11g Release 2 High Availability An Oracle White Paper November 2010.
Simplify your Job – Automatic Storage Management Angelo Session id:
Backup & Recovery Concepts for Oracle Database
Proven Techniques for Maximizing Availability Maximum Availability Architecture Lawrence To, Shari Yamaguchi High Availability Systems Group Systems Technologies.
Oracle Recovery Manager (RMAN) 10g : Reloaded
Oracle Recovery Manager (RMAN) 10g : Reloaded Tammy Bednar Sr. Product Manager Oracle Corporation Session id:
7 Copyright © 2006, Oracle. All rights reserved. Dealing with Database Corruption.
Chapter Oracle Server An Oracle Server consists of an Oracle database (stored data, control and log files.) The Server will support SQL to define.
Andrew Mendelsohn Senior Vice President Database Oracle Corporation.
Database Technical Session By: Prof. Adarsh Patel.
Sofia, Bulgaria | 9-10 October SQL Server 2005 High Availability for developers Vladimir Tchalkov Crossroad Ltd. Vladimir Tchalkov Crossroad Ltd.
1 Oracle Database 11g – Flashback Data Archive. 2 Data History and Retention Data retention and change control requirements are growing Regulatory oversight.
ORACLE
11g(R1/R2) Data guard Enhancements Suresh Gandhi
Oracle Database 10g RMAN and ATA Storage in Action Paul Tsien Oracle Corporation Bob Ng EMC Corporation Session id:
1 Oracle Flashback Technologies COUG Presentation – Feb 2010 Feb 25, 2010 Ray Smith
9 Copyright © 2004, Oracle. All rights reserved. Flashback Database.
1099 Why Use InterBase? Bill Todd The Database Group, Inc.
1 Copyright © 2004, Oracle. All rights reserved. Introduction.
Backup and Recovery Overview Supinfo Oracle Lab. 6.
6 Copyright © 2006, Oracle. All rights reserved. Flashback.
User-mode I/O in Oracle 10g with ODM and DAFS Jeff Silberman Systems Architect Network Appliance Session id: Margaret Susairaj Server Technologies.
7 Copyright © 2005, Oracle. All rights reserved. Managing Undo Data.
Oracle 9i Release 2, A new set of tips, tricks and Techniques. Steve George Sr. Delivery Manager – Oracle University Oracle Corporation Session id: #32681.
10 Copyright © 2004, Oracle. All rights reserved. Recovering from User Errors.
14 Copyright © 2005, Oracle. All rights reserved. Backup and Recovery Concepts.
Ashish Prabhu Douglas Utzig High Availability Systems Group Server Technologies Oracle Corporation.
The Self-managing Database: Proactive Space and Schema Object Management Amit Ganesh Director, Data, Space and Transaction Processing Oracle Corporation.
Transactions, Roles & Privileges Oracle and ANSI Standard SQL Lecture 11.
© 2006 Northgate Information Solutions plc and its associated companies. All rights reserved. Slide 1.
18 Copyright © 2004, Oracle. All rights reserved. Backup and Recovery Concepts.
Session id: Darrell Hilliard Senior Delivery Manager Oracle University Oracle Corporation.
2 Copyright © 2006, Oracle. All rights reserved. Configuring Recovery Manager.
18 Copyright © 2004, Oracle. All rights reserved. Recovery Concepts.
14 Copyright © 2005, Oracle. All rights reserved. Backup and Recovery Concepts.
11 Copyright © 2007, Oracle. All rights reserved. Using Flashback Technology.
Introduction to Core Database Concepts Getting started with Databases and Structure Query Language (SQL)
6 Copyright © Oracle Corporation, All rights reserved. Backup and Recovery Overview.
13 Copyright © 2007, Oracle. All rights reserved. Using the Data Recovery Advisor.
What is the Flashback Database? Improves a database’s availability Useful alternative to traditional restoration methods Contains Flashback logs Archived.
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.
23 Copyright © 2004, Oracle. All rights reserved. Preferring the Past: Flashback.
10 Copyright © 2007, Oracle. All rights reserved. Managing Undo Data.
Oracle Database High Availability
Maximum Availability Architecture Enterprise Technology Centre.
A Technical Overview of Microsoft® SQL Server™ 2005 High Availability Beta 2 Matthew Stephen IT Pro Evangelist (SQL Server)
Performing Flashback.
Oracle Database High Availability
Introduction of Week 6 Assignment Discussion
Performing Tablespace Point-in-Time Recovery
Performing Tablespace Point-in-Time Recovery
Oracle 12R2 Database Flashback Technologies
Presentation transcript:

Oracle Database 10 g Time Navigation: Human-Error Correction Magnus Lubeck DBA/Systems Analyst CERN, IT-DB Group Session id: Tammy Bednar Sr. Product Manager Oracle Corporation

Time Navigation and Human Error Correction noitcerroC Correction Correction Correction Correction

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  Oracle Database 10g is a breakthrough release for human error correction Human Errors Other Downtime

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

Flashback Error Correction  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 Order Database Customer

Flashback Database  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’ “Rewind” button for the Database Data FilesFlashback Log New Block Version Disk Write Old Block Version

Flashback Drop  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. Drop table emp; Emp Mistake was made Emp Recycle bin Flashback Table emp before drop;

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

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 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

Database Mission  Determine what transaction removed Order ID 2453  Recover the corruption fast!

Order ID 2453 & line item data

The Order ID data is removed from the database

Using the ‘VERSIONS BETWEEN’ syntax, you can find the operations and transactions executed for Order 2453

After manually executing the SQL statements, Order 2453 & its line items have been inserted back into the database!

Flashback Transaction Query Provides the SQL statements to ‘undo’ the offending operation

CERN  Magnus Lubeck, DBA/Systems analyst  CERN is the world biggest particle physics research center. In operation for 50 years!  In our physics research we collect enormous amounts of data, of which some is stored in ORDBMS  Oracle 10G beta testing and evaluation is an important activity for CERN to support the physics community by understanding and request new features.  10 people in our Oracle beta test team, focusing on different areas 6 miles

Testbed setup SAN  General purpose for – RAC testing – Oracle 10G testing  The setup – Five dual CPU servers (four connected to SAN) – Gbit interconnect – Plenty of disk – A set up workstations to run applications  Not a setup for Benchmarks, but for proof of concept

Testing Flashback Features  The Flashback features is a subset of the beta testing performed at CERN  The Human Error Correction testing, in order of appearance – the one hour approach – Install Sofware + DB instance – Setting up the recovery area – Flashback table – Flashback transaction query – Flashback database

CERN – Testing FB features RMAN Repository Flashback Table Database Instances SCN Flashback Database Flashback Transaction Query Configure Flash Recovery Area Software Installation Timeline PreparationsTesting

Summary of CERN Flashback testing  Flashback Table/Drop – Easy to get back dropped tables – Nice to be able to query dropped tables  Flashback Transaction Query – Diagnosability – Accountability  Flashback database – Fast recovery  Flash Recovery Area – Organizes & manages backups  Future use of FB features

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  Flashback is Easy – Single command instead of complex procedure Correction Time = Error Time + f(DB_SIZE)

Flashback for All Users END USER Flashback Query Flashback Versions Query DEVELOPER Flashback Versions Query Flashback Transaction Query Flashback Table DATABASE ADMIN Flashback Database Flashback Drop SYSTEM ADMIN Data Guard

Next Steps High Availability Sessions from Oracle 11:00 AM How Oracle Database 10G Revolutionizes Availability and Enables the Grid 3:30 PM Oracle Recovery Manager (RMAN) 10G: Reloaded 5:00 PM Proven Techniques for Maximizing Availability 8:30 AM Oracle Database 10G - RMAN and ATA Storage in Action 11:00 AM Oracle Data Guard: Maximum Data Protection at Minimum Cost 1:00 PM Oracle Database 10G Time Navigation: Human-Error Correction 4:30 PM Data Guard SQL Apply: Back to the Future Wednesday in Moscone Room 304Tuesday in Moscone Room 304 For More Info On Oracle HA Go To

Next Steps High Availability Sessions from Oracle 8:30 AM -- Moscone Room 304 Oracle Database 10G Data Warehouse Backup and Recovery: Automatic, Simple, Reliable 8:30 AM -- Moscone Room 104 Building RAC Clusters over InfiniBand Thursday For More Info On Oracle HA Go To Real Application Clusters Data Guard Database Backup & Recovery Flashback Recovery LogMiner, Online Redefinition, and Cross Platform Transportable Tablespaces Database HA Demos All Four Days In The Oracle Demo Campground

Reminder – please complete the OracleWorld online session survey Thank you.

A Q & Q U E S T I O N S A N S W E R S