Backup & Recovery Concepts for Oracle Database

Slides:



Advertisements
Similar presentations
Introduction to Oracle
Advertisements

INTRODUCTION TO ORACLE Lynnwood Brown System Managers LLC Backup and Recovery Copyright System Managers LLC 2008 all rights reserved.
Oracle9i Database Administrator: Implementation and Administration 1 Chapter 2 Overview of Database Administrator (DBA) Tools.
CERN - IT Department CH-1211 Genève 23 Switzerland t Backup & Recovery with RMAN LCG 3D Workshop, Bologna June 12 th, 2007 Jacek Wojcieszuk.
Session - 15 RECOVERY CONTROL - 1 Matakuliah: M0184 / Pengolahan Data Distribusi Tahun: 2005 Versi:
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.
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 (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.
Backup & Recovery with 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
Navigating the Oracle Backup Maze Robert Spurzem Senior Product Marketing Manager
Oracle Database High Availability Brandon Kuschel Jian Liu Source: Oracle Database 11g Release 2 High Availability An Oracle White Paper November 2010.
Backup & Recovery 1.
13 Copyright © Oracle Corporation, All rights reserved. RMAN Complete Recovery.
Oracle Recovery Manager (RMAN) 10g : Reloaded
PPOUG, 05-OCT-01 Agenda RMAN Architecture Why Use RMAN? Implementation Decisions RMAN Oracle9i New Features.
Chapter Oracle Server An Oracle Server consists of an Oracle database (stored data, control and log files.) The Server will support SQL to define.
SRUTHI NAGULAVANCHA CIS 764, FALL 2008 Department of Computing and Information Sciences (CIS) Kansas State University -1- Back up & Recovery Strategies.
11 Copyright © Oracle Corporation, All rights reserved. RMAN Backups.
11 Copyright © Oracle Corporation, All rights reserved. RMAN Backups.
Backup & Recovery Backup and Recovery Strategies on Windows Server 2003.
15 Copyright © 2007, Oracle. All rights reserved. Performing Database Backups.
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
Mark A. Magumba Storage Management. What is storage An electronic place where computer may store data and instructions for retrieval The objective of.
A Guide to Oracle9i1 Database Instance startup and shutdown.
Backup and Recovery Overview Supinfo Oracle Lab. 6.
Chapter 8Oracle9i DBA II: Backup/Recovery and Network Administration 1 Chapter 8 Complete Recovery with Recovery Manager.
INTRODUCTION TO DBS Database: a collection of data describing the activities of one or more related organizations DBMS: software designed to assist in.
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.
Database Storage Structures
14 Copyright © 2005, Oracle. All rights reserved. Backup and Recovery Concepts.
Backup Concepts. Introduction Backup and recovery procedures protect your database against data loss and reconstruct the data, should loss occur. The.
10 Copyright © Oracle Corporation, All rights reserved. User-Managed Backups.
Chapter 1Oracle9i DBA II: Backup/Recovery and Network Administration 1 Chapter 1 Backup and Recovery Overview MSCD642 Backup and Recovery.
3 Copyright © 2005, Oracle. All rights reserved. Creating an Oracle Database.
Overview of Oracle Backup and Recovery Darl Kuhn, Regis University.
Backing Up and Restoring Databases by Using the SQL Server 2000.
12 Copyright © Oracle Corporation, All rights reserved. User-Managed Complete Recovery.
18 Copyright © 2004, Oracle. All rights reserved. Backup and Recovery Concepts.
Oracle Architecture - Structure. Oracle Architecture - Structure The Oracle Server architecture 1. Structures are well-defined objects that store the.
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.
18 Copyright © 2004, Oracle. All rights reserved. Recovery Concepts.
14 Copyright © 2005, Oracle. All rights reserved. Backup and Recovery Concepts.
6 Copyright © Oracle Corporation, All rights reserved. Backup and Recovery Overview.
14 Copyright © 2007, Oracle. All rights reserved. Backup and Recovery Concepts.
Oracle Standby Implementation Tantra Invedy. Standby Database Introduction Fail over Solution Disaster Recovery Solution if remote Ease of implementation.
Database recovery contd…
Database Administration
Backup and Recovery.
Recovery Catalog Creation and Maintenance
Backup and Recovery (1) Oracle 10g Hebah ElGibreen CAP364.
Maximum Availability Architecture Enterprise Technology Centre.
Performing Database Recovery
ISYS366, Oracle Disk Internals
Database administration
Database Backup and Recovery
Presentation transcript:

Backup & Recovery Concepts for Oracle Database CIS 764 Mustafa Mohammed November 25, 2008

Contents Basics of Backup & Recovery. Different types of failure that can occur. What Information should be backed up? Logical backup-Exports & Imports. Why do we use Logical backup? Advantages & Disadvantages of Logical Backup.

Basics of Backup and Recovery Def:- A backup is a representative copy of data. It includes important parts of database such as the control file, redo logs and data-files. Purpose:- It protects data from application error and safeguards against unexpected data loss, by providing a way to restore original data. Backups are divided into two types: - Physical Backup - Logical Backup

Physical backups are copies of physical database files. To restore a Physical backup is to reconstruct it and make it available to the Oracle server. To recover a restored backup, data is updated using redo records from the transaction log. Logical backups contain data that is exported using SQL commands and stored in a binary file. These are used as to supplement physical backups.

Different types of failure that can occur Instance failure: Usually connected with an Oracle process failure Media failure: Disk failure, storage array controller failure etc Block Corruption: Usually caused by bugs in Oracle software Human error: In most cases accidentally deleted/updated data Database user or DB Statement failure: a statement which is not of a valid SQL construction. Disaster: Fire, flood, earthquake, plane crash etc.

What Information should we backup? When developing a backup strategy , a DBA must decide the type of information to be backed up. The basic backup types include: - Online Database Backup - Offline Database Backup - Whole Database Backup - Tablespace Backup - Data-file Backup - Control File Backup

Logical Backup- Exports & Imports These are utilities that allow us to make exports and imports of data objects( such as tables). Exp/Imp allows transferring data across DB’s that reside on different hardware platforms or on different Oracle versions. Exp/Imp can be used in four modes: - Full Export: The EXP_FULL_DATABASE and IMP_FULL_DATABASE are used to perform full export. - Tablespace: use the tablespaces export parameter for a tablespace export. - User: This mode can be used to export and import all objects that being to a user. - Table: Specific tables can be exported/imported with table export mode.

Sample Syntax for Full DB Exp/Imp $ exp file=full.dmp log=fulldb.log full=Y $ imp file=full.dmp log=fulldb.log

Why do we use Logical Backup? It makes transferring DB easy when migrating from one OS to another; say from NT to Solaris as it is platform independent. We achieve this by exporting from NT and importing into Solaris. Simplifies the task of upgrading Oracle versions. Ex: upgrading from 9i to 10g , we first perform Oracle “Exp” on 9i DB and then upgrade the Server to 10g including DB upgrade. To take objects from one DB to another DB or from one user to another. For large database’s LB provides an incremental export which is performed on weekdays and a complete export on weekends.

Advantages & Disadvantages of Logical Backup Enables to copy objects from 1 schema to another within a database. Enables to copy objects across the DB’s running either in the same server or in the different servers. DISADV:- LB is very slow when compared with PB as it is done by file level at OS level whereas in LB, we need to make selections from each table. Import is much slower(8-10 times) since it is DDL+DML which eventually involves more I/O operations.

QUESTIONS?

References Backup and Recovery in Oracle—“Oracle site” November 25 2008 http://download-uk.oracle.com/docs/cd/B19306_01/server.102/b14220/backrec.htm Backup and Recovery concepts -- Wikipedia: The Free Encyclopedia November 25 2008 <http://en.wikipedia.org/wiki/Backup_and_Recovery> Backup and Recovery Overview and Configuration in Oracle9i <http://pd.acm.org/sks_course.cfm?crs=66137_eng>