Types of backups available for Oracle databases

This document will provides a summary of the existing backup policy for oracle production databases as well as recommendations for modifying the policy based on the business requirement of data availability and affordable downtime.

Following is the recovery methodology for different type of backups:



SUMMARY

The most important reason for having a Backup Policy is to prepare for the possibility of media, hardware or software failure. Should any of these failures occur, the major goal is to make the database available to users within an acceptable time, ensuring that committed data is undamaged? Oracle provides many recovery options to recover from various types of failure. Each option is dependent upon the failure and the available backup files. Hence, a good backup strategy is essential for recovery.

Following are the types of backups available for oracle databases.

1 Physical Backup

2 Logical Backup


Physical Backups:

Physical backups are backups of the physical files used in storing and recovering your database, such as datafiles, control files, and archived redo logs. You can take physical backups with either the Recovery Manager (RMAN) utility or operating system utilities.

Physical backups are of two types:

  • User Managed Backup 
  • Recovery Manager (RMAN)

User Managed Backup: In user managed backups, you directly manage the files that make up your database with a mixture of host operating system commands and SQL*Plus backup and recovery-related capabilities.

User Managed backups are of two types:

  1. HOTBACKUP 
  2. COLD BACKUP

HOTBACKUP: Hot backup is a kind of backup, which can be taken while database operation is going on. The primary requirement for hot backup is that the database should be in ARCHIVELOG mode. Business houses, which cannot afford downtime, can configure this kind of backup. While hot backup is taking place generation of archives will be more. This kind of backup is not consistent; hence a recovery has to be performed after restoration of a database from hot backup.

COLD BACKUP: Cold backup involves shutting down the database and then copying the datafiles from OS level. Business houses, which can afford downtime for cold backup, can configure this kind of backup. Cold backup is always consistent, and hence does not require recovery after restoration.

RMAN Backups: RMAN is an inbuilt oracle tool (with command-line client and Enterprise Manager GUI interfaces) that integrates with sessions running on the Oracle server to perform a range of backup and recovery activities, as well as maintaining a repository of historical data about your backups. The main advantage of this backup is that it can be taken directly on tape, as well as on disk. Backup & recovery using this utility will be faster compared to other backups.

RMAN backup are of two types:

  • Backup without Catalog
  • Backup with Catalog

Backup without Catalog: RMAN maintains metadata about the target database and its backup and recovery operations in the RMAN repository. Among other things, RMAN stores information about its own configuration settings, the target database schema, archived redo logs, and all backup files on disk or tape.
The primary store for RMAN repository data is always the control file of the target database.

Backup with Catalog: Another copy of the RMAN repository data can also be saved in the recovery catalog. Using a recovery catalog preserves RMAN repository information, if the control file is lost, making it much easier to restore and recover following the loss of the control file.

  • Logical Backups:

Logical backups contain logical data (for example, tables or stored procedures) exported from a database with an Oracle export utility and stored in a binary file, for later re-importing into a database using the corresponding Oracle import utility. In this kind of backups, downtime is not required, but less burden on database is always recommended. Logical backups are a useful supplement to physical backups in many circumstances but are not sufficient protection against data loss without physical backups.


Post a Comment