DBA 101 Bootcamp New DBA Series Backup 101 April 12, 20111Paper #352.

Slides:



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

ITEC474 Control File Maintenance
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.
Database Backup and Recovery
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 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.
Configuring Recovery Manager
4 Copyright © 2008, Oracle. All rights reserved. Configuring Backup Specifications.
CHAPTER 5 Managing Control Files, Online Redo Logs, and Archiving.
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
Introduction to Oracle Backup and Recovery
Using RMAN to Perform 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.
IS 4510 – Database Administration Module – 2 Database Backup 10/24/20141Compiled by: Zafar Iqbal Khan.
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.
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.
16 Copyright © 2007, Oracle. All rights reserved. Performing Database Recovery.
15 Copyright © 2007, Oracle. All rights reserved. Performing Database Backups.
A Guide to Oracle9i1 Database Instance startup and shutdown.
DBA 101 Bootcamp New DBA Series Recovery 101 April 12, 20111Paper #359.
17 Copyright © Oracle Corporation, All rights reserved. Recovery Catalog Creation and Maintenance.
Chapter 8Oracle9i DBA II: Backup/Recovery and Network Administration 1 Chapter 8 Complete Recovery with Recovery Manager.
15 Copyright © Oracle Corporation, All rights reserved. RMAN Incomplete Recovery.
Database Administration 3.Using Administration Tools.
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 © 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.
19 Copyright © 2004, Oracle. All rights reserved. Database Backups.
Control File Information The database name The timestamp of database creation The names and locations of associated datafiles and redo log files Tablespace.
Oracle 10g Administration Database Control and Storage Structures Copyright ©2006 Custom Training Institute.
TYPES OF BACKUP AND RECOVERY
RMAN Maintenance.
Database recovery contd…
RMAN Maintenance.
Backup and Recovery.
Recovery Catalog Creation and Maintenance
Backup and Recovery (1) Oracle 10g Hebah ElGibreen CAP364.
Duplicating a Database
Performing Database Recovery
Database Backup and Recovery
Presentation transcript:

DBA 101 Bootcamp New DBA Series Backup 101 April 12, 20111Paper #352

Definitions Archivelogmode Noarchivelogmode Shutdown normal Shutdown immediate Shutdown transactional Shutdown abort April 12, 20112Paper #352

Definitions cont’d Consistent Inconsistent Control Files Data Files Redo Logs Archive Logs April 12, 20113Paper #352

Definitions cont’d Physical Backup Logical Backup RMAN client Target database Recovery catalog database Recovery catalog schema April 12, 20114Paper #352

Definitions cont’d User Managed Backups Hot Backup Cold Backup Flash/Fast recovery area April 12, 20115Paper #352

User Managed Backups (Physical) YOU manage the: –Who –What –Where –When –Why –How April 12, 20116Paper #352

User Managed Backups cont’d Cold (consistent noarchivelogmode) backup –(g)v$datafile –(g)v$controlfile –Shutdown (any mode EXCEPT ABORT) –Copy datafiles and 1 copy of controlfile to “other” location. April 12, 20117Paper #352

User Managed Backups cont’d Cold (consistent archivelogmode) backup –Same as consistent noarchivelogmode AND –(g)v$archived_log –That’s it for COLD backups, any questions before we move on? April 12, 20118Paper #352

User Managed Backups cont’d Hot (inconsistent) backup –Implies archivelogmode –Same as cold consistent archivelogmode –Put tablespaces in backup mode –Copy datafile –Take tablespaces out of backup mode –Switch logfile –Backup controlfile to trace April 12, 20119Paper #352

User Managed Backups cont’d Questions to ponder: –We never backed up redo logs, why? –Why was methodology different for control file backup? –Why did we only backup 1 copy of the control file? April 12, Paper #352

User Managed Backups Logical Export (old exp command, shouldn’t be used anymore) Data Pump –Whole presentation in itself. –Look at today at 11:45 for a datapump presentation. April 12, Paper #352

Recovery Manager (RMAN) Backups What is RMAN? How do you access it? –Command line –OEM What is a repository and do I need one? April 12, Paper #352

Recovery Manager (RMAN) Backups cont’d Connecting –connect catalog –connect target / or April 12, Paper #352

Recovery Manager (RMAN) Backups cont’d Types of backups –Full –Incremental –Archivelog –Control File –Tablespace –Data File April 12, Paper #352

Recovery Manager (RMAN) Backups cont’d Full –Backup database [plus archivelog]; Incremental –Backup incremental level 0 database; –Backup incremental level 1 database; April 12, Paper #352

Recovery Manager (RMAN) Backups cont’d Archivelog –Backup archivelog all [delete input]; Controlfile –Backup current controlfile; April 12, Paper #352

Recovery Manager (RMAN) Backups cont’d Tablespace –Backup tablespace tsname; Datafile –Backup datafile number; –Backup datafile “full path”; April 12, Paper #352

Recovery Manager (RMAN) Backups cont’d Reporting –List backup –Delete backup April 12, Paper #352

Recovery Manager (RMAN) Backups cont’d Questions to ponder: –Why do a controlfile backup AFTER the database backup? –Why can’t I do a backup of my noarchivelog mode database while its running? –Repository or no repository? April 12, Paper #352

Pros/Cons User Managed: –Pros: You control all of it, control freaks, is this you? It’s easy to just copy a file from a backup place to its original place –Cons: You control all of it. You have to maintain repository of when things were backed up last, etc. April 12, Paper #352

Pros/Cons cont’d RMAN managed: –Pros: Oracle manages it all, you barely have to think about it What has been backed up is kept for you automatically. April 12, Paper #352

Pros/Cons cont’d RMAN managed: –Cons: You control freaks might not like Oracle “taking over it all” Not just being able to cp a file from a backup location to the original location, you have to get RMAN involved. April 12, Paper #352

Take home thought Backups are important but are useless if they can't be recovered, so test your recovery plan. April 12, Paper #352

Demo Do you have a playground? If not, why not? You need one We’ll look at –User managed backup, both hot and cold –Recovery Manager(RMAN) backups full, incremental, tablespace, datafile, archivelog and control file. April 12, Paper #352

Contact Info Joe Testa –Cell: – –Facebook: joseph.s.testa –Twitter: n8xct April 12, Paper #352