Control File Information The database name The timestamp of database creation The names and locations of associated datafiles and redo log files Tablespace.

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
1 Chapter 15 Duplicating Databases and Transporting Data.
1 Getting The Most Out of RMAN By: Charles Pfeiffer CIO, Remote Control DBA (888)
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.
Database Backup and Recovery
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.
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.
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.
7 Maintaining Redo Log Files. 7-2 Objectives Explaining the use of online redo log files Obtaining log and archive information Controlling log switches.
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.
CHAPTER 18 RMAN Backups and Reporting. Introduction to RMAN Backups and Reporting The focus of this chapter is backups of: Datafiles Control files Archived.
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.
14 Copyright © 2004, Oracle. All rights reserved. Automatic Storage Management.
Oracle Database Administration
20 Copyright © 2004, Oracle. All rights reserved. Database Recovery.
13 Copyright © Oracle Corporation, All rights reserved. RMAN Complete Recovery.
CHAPTER 2 Implementing a Database. Introduction to Creating Databases After you’ve installed the Oracle software, the next logical step is to create a.
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.
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.
16 Copyright © 2007, Oracle. All rights reserved. Performing Database Recovery.
4 Copyright © 2006, Oracle. All rights reserved. Recovering from Noncritical Losses.
9 Copyright © 2004, Oracle. All rights reserved. Flashback Database.
A Guide to Oracle9i1 Database Instance startup and shutdown.
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.
IT Database Administration SECTION 02. CREATING DATABASES Creating a Database: Overview 1. Plan the physical design and storage structures 2. Back.
Backup Concepts. Introduction Backup and recovery procedures protect your database against data loss and reconstruct the data, should loss occur. The.
Creating an Oracle Database. Considerations before creating a DB Planning for Database Creation –Select the standard database block size. –Use an undo.
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.
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.
Week 2 Lecture 2 Data Dictionary Views and Control Files.
19 Copyright © 2004, Oracle. All rights reserved. Database Backups.
13 Copyright © 2004, Oracle. All rights reserved. Optimizing Database Performance.
9 Copyright © 2004, Oracle. All rights reserved. Incomplete Recovery.
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.
IS232 Lab 7. What Is a Control File? Every Oracle Database has a control file, which is a small binary file that records the physical structure of the.
TYPES OF BACKUP AND RECOVERY
RMAN Maintenance.
RMAN Maintenance.
Recovery Catalog Creation and Maintenance
Clonedb: The quick and easy cloning solution you never knew you had.
Performing Tablespace Point-in-Time Recovery
Database Recovery.
Duplicating a Database
Performing User-Managed Backup and Recovery
Performing Database Recovery
Presentation transcript:

Control File Information The database name The timestamp of database creation The names and locations of associated datafiles and redo log files Tablespace Information Archived log information Backup information Current log sequence number Check point information

Types of Control File Backups Editable trace file: SQL> ALTER DATABASE BACKUP CONTROLFILE TO TRACE; Binary backup: SQL>ALTER DATABASE BACKUP CONTROLFILE; RMAN>BACKUP CURRENT CONTROLFILE Operating system copy when database is shut down

Recovering Control File from RMAN Autobackup RMAN>RESTORE CONTROLFILE FROM AUTOBACKUP

Recreation of a Control File from Trace Dump Edit trace dump file and open database using RESETLOGS option Use when: all existing control files have been lost. wish to change name of database wish to change maximum number of redo log file groups redo log group members archived redo log files kept datafiles instances that can concurrently access the database

Recreation of a Control File STARTUP NOMOUNT CREATE CONTROLFILE REUSE DATABASE "MYDATABASE" NORESETLOGS NOARCHIVELOG MAXLOGFILES 32 MAXLOGMEMBERS 2 MAXDATAFILES 320 MAXINSTANCES 1 MAXLOGHISTORY 120 LOGFILE GROUP 1 '/MYPATH/T_LOG1.F' SIZE 500K, GROUP 2 '/MYOTHERPATH/T_LOG.F' SIZE 500K DATAFILE '/DPATH/DBS/T_DB1.F' '/DPATH/DBS/TBS1.F', '/DPATH/DBS/TIMS.DBF' CHARACTER SET WE8DEC ;

Recovery of User-Created Binary Copy of Control File Shutdown Database Copy control file into all locations Mount database Issue RECOVER DATABASE USING BACKUP CONTROLFILE; statement

Incomplete Recovery Recovery where not all available redo is applied Performed when: Online redo logs are lost Recover from user error Needed archived redo files are missing Loss of current control file Restore database copy from backup

Enterprise Manager Recovery Create and run an RMAN script within EM Choose Database Target for recovery Choose Perform Recovery at Maintenance screen

Restoring Backup Control File Restoration from manual backup: RMAN>RESTORE CONTROLFILE; Restoration from autobackup: RMAN>RESTORE CONTROLFILE FROM AUTOBACKUP;

Recovering to Point In Time RUN { SET UNTIL TIME 'time in NLS_DATE_FORMAT'; RESTORE DATABASE; RECOVER DATABASE; } ALTER DATABASE OPEN RESETLOGS;

Cancel Based Recovery Backup database Shutdown database ( SHUTDOWN ABORT ) Restore control files Mount database ( STARTUP MOUNT ) Recover database ( RECOVER DATABASE UNTIL CANCEL USING BACKUP CONTROLFILE ) Cancel Recovery ( CANCEL ) Open database ( ALTER DATABASE OPEN RESETLOGS )

Time Based Recovery Backup database Shutdown database ( SHUTDOWN ABORT ) Restore control files Mount database ( STARTUP MOUNT ) Recover database: SQL>RECOVER DATABASE UNTIL TIME ' :12:24:30' USING BACKUP CONTROLFILE SQL> RECOVER DATABASE UNTIL CHANGE 10234; Open database ( ALTER DATABASE OPEN RESETLOGS;)

Recovery Through RESETLOGS Recovery across RESETLOGS not possible before Oracle 10g Backups now can be used from before incomplete recovery Archive logs need to be distinguishable Setting the LOG_ARCHIVE_FORMAT Include %r for incarnation number Example: ALTER SYSTEM SET LOG_ARCHIVE_FORMAT=arch_%s_%d_%r scope=both;