Database Backup and Recovery

Slides:



Advertisements
Similar presentations
INTRODUCTION TO ORACLE Lynnwood Brown System Managers LLC Backup and Recovery Copyright System Managers LLC 2008 all rights reserved.
Advertisements

Oracle Architecture. Instances and Databases (1/2)
ITEC474 Control File Maintenance
DBA 101 Bootcamp New DBA Series Backup 101 April 12, 20111Paper #352.
1 Chapter 15 Duplicating Databases and Transporting Data.
Harvard University Oracle Database Administration Session 10 Database Backups.
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.
Advanced Databases DBA: Backups 1. Advanced Databases Agenda Define backup Discuss Backup Terminology Explain various backup and restore options in Oracle.
INTRODUCTION TO ORACLE Lynnwood Brown President System Managers LLC Data Loading & Backup And Recovery Lecture 5 Copyright System Managers LLC 2003 all.
RMAN Restore and Recovery
Backup and Recovery (2) Oracle 10g CAP364 1 Hebah ElGibreen.
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.
Harvard University Oracle Database Administration Session 11 Database 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.
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.
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
Navigating the Oracle Backup Maze Robert Spurzem Senior Product Marketing Manager
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.
IS 4510 – Database Administration Module – 2 Database Backup 10/24/20141Compiled by: Zafar Iqbal Khan.
Backup & Recovery Concepts for Oracle Database
Oracle Database Administration
20 Copyright © 2004, Oracle. All rights reserved. Database 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.
SRUTHI NAGULAVANCHA CIS 764, FALL 2008 Department of Computing and Information Sciences (CIS) Kansas State University -1- Back up & Recovery Strategies.
M ODULE 3 D ATABASE M ANAGEMENT Section 5 Database Backup and Recovery 1 ITEC 450 Fall 2012.
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.
11 Copyright © Oracle Corporation, All rights reserved. RMAN Backups.
15 Copyright © 2005, Oracle. All rights reserved. Performing Database Backups.
Backup & Recovery Backup and Recovery Strategies on Windows Server 2003.
16 Copyright © 2007, Oracle. All rights reserved. Performing Database Recovery.
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.
9 Copyright © 2004, Oracle. All rights reserved. Flashback Database.
The protection of the DB against intentional or unintentional threats using computer-based or non- computer-based controls. Database Security – Part 2.
7202ICT – Database Administration
A Guide to Oracle9i1 Database Instance startup and shutdown.
17 Copyright © Oracle Corporation, All rights reserved. Recovery Catalog Creation and Maintenance.
Advanced Databases DBA: Security and Backups Guide to Oracle 10g 1.
IT Database Administration Section 09. Backup and Recovery Backup: The available options Full Consistent (cold) Backup Database shutdown, all files.
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.
Overview of Oracle Backup and Recovery Darl Kuhn, Regis University.
12 Copyright © Oracle Corporation, All rights reserved. User-Managed Complete Recovery.
6 Copyright © 2007, Oracle. All rights reserved. Performing User-Managed Backup and Recovery.
2 Copyright © 2007, Oracle. All rights reserved. Configuring for Recoverability.
2 Copyright © 2006, Oracle. All rights reserved. Configuring Recovery Manager.
16 Copyright © 2005, Oracle. All rights reserved. Performing Database Recovery.
8 Copyright © 2007, Oracle. All rights reserved. Using RMAN to Duplicate a Database.
3 Copyright © 2007, Oracle. All rights reserved. Using the RMAN Recovery Catalog.
7 Copyright © Oracle Corporation, All rights reserved. Instance and Media Recovery Structures.
19 Copyright © 2004, Oracle. All rights reserved. Database Backups.
9 Copyright © 2004, Oracle. All rights reserved. Incomplete Recovery.
Control File Information The database name The timestamp of database creation The names and locations of associated datafiles and redo log files Tablespace.
Database recovery contd…
Backup and Recovery.
Recovery Catalog Creation and Maintenance
Backup and Recovery (1) Oracle 10g Hebah ElGibreen CAP364.
Performing Database Recovery
Database Backup and Recovery
Presentation transcript:

Database Backup and Recovery

Log Files Captures all database transactions (changes) in order to roll a database forward after a tape recovery. Log files should be stored on a separate drive from the data files Log files in Oracle can be multiplexed

Log Modes No Archive Log Mode Archive Log Mode Also called circular logging When the final redo log file in a set fills up the first redo log file is overwritten Prevents guaranteed point in time recovery Archive Log Mode The on-line redo logs are archived and numbered before they overwritten Allows point-in-time recovery of the database

Backup Modes Hot backup Cold backup allows backup of the database while the database is running and available to users. performance degrades during the backup period takes longer than a cold backup Cold backup requires database shutdown before backup begins physical files are backed up while shutdown database is unavailable to users during backup period faster than a hot backup

Oracle Backup Options Off-line physical backup On-line physical backup is a cold backup technique copies data files, log files, init files, and control files after shutdown On-line physical backup is a hot backup technique temporarily sets tablespaces into backup mode Logical Backup exports all or part of the database by creating SQL scripts necessary to recreate the objects

Off-line physical backup Shut down the database Backup the data files Backup the control files Backup the online redo log files or the archive log files Backup the initialization and password files Restart the database

On-line physical backup Requires the DB to be in Archive Log Mode For each tablespace Set the tablespace into a backup state Backup the datafiles for that tablespace Restore the tablespace to its normal state Backup the archived redo log files Stop the archiving process Note which files are in the arch log directory Restart the archiving process Delete the archived redo log files Backup the control file using the “Alter database backup controlfile command” Backup the initialization and password files

Logical Backup Essentially creates SQL scripts that will recreate database objects Use Oracle Export Utility to create .dmp file Use Oracle Import Utility to selectively import database objects from the .dmp file Can perform Complete database backup User (schema) backup Individual table backup Used in conjunction with a recovery server to recover selected objects (not entire database)

Backup Types Complete (Full) Cumulative (Differential) Incremental copy all database and related files delete the archive log files Cumulative (Differential) copy blocks that have changed since last full backup or copy all archive log files generated since last full backup Incremental copy blocks that have change since the last partial backup copy all log files generated since last partial backup Complete (Copy) copy all target data Don’t include the set in backup set logic

Oracle Files Overview 343 342 341 1 2 A B C PW Password File Files open when instance is running PW 343 342 341 Password File Data files (for tablespace data) 1 2 A B C Archive Log Files Init. ora Initialization File Control Files On-line redo log files