Rman Disk To Disk Backup Methods

e Storageavailable for Flash Recovery Area) and then all RMAN
There are three distinct options available for anbackups, archive logs, control file auto backups, and
installer of an Oracle database. Those availabledata file copies will automatically be written to the
storage options for database files are File Systems,specified file system or ASM group.
Oracle’s Automatic Storage ManagementThe Flash Recovery Area can also be tailored to
(ASM), or Raw Devices. Each of these storagemeet any database’s needs. It can be large
options are defined further in the Installation Guidesenough to keep full, incremental, and archive logs
for the particular operating system supported. Theavailable, as large as the database itself so a
Installation Guide should be read to determine how tocomplete backup can be done, or small enough to
take advantage of the storage option chosen.just keep archive logs around. Flash Recovery Area
File Systemsshould be taken advantage of if for nothing else than
File Systems are what most DBAs are familiar witharchive redo logs, online redo logs, and control files.
and have extensively used. For instance, File SystemsThese database structures already take up disk
can reside on disks through locally attached disksspace and thus there is no real advantage to not
internal to a server, through a Logical Volumehaving them within the Flash Recovery Area.
Manager (LVM) or Redundant Array of InexpensiveMoreover, administration of recoveries becomes
Disks (RAID) that are on some form of attachedmuch easier with added features that would not
storage device such as a Storage Area Networknormally be available.
(SAN). Regardless of the form, these file systemsIntegration of Flash Recovery Area
are mounted on the host server and when OracleArchive log destinations are directly written to the
storage is required to create objects or store dataFlash Recovery Area as well as handling online redo
Oracle will make use of physical files in some form oflogs. Also, but not shown on the figure, control files
predefined directory structure. These physical filesmay be stored in the Flash Recovery Area. Backups
can either be named by an Oracle DBA or can bethrough RMAN are also written to this area.
automatically generated by Oracle. The InstallationWhen configuring database storage, keep in mind
Guides provided by Oracle should be consulted forthat the same storage option is not required for
your particular operating system to determine howdatabase or recovery area. File Systems may be
to place database files on a File System and how toused for the database while the Flash Recovery Area
follow Oracle’s Flexible Architecture (OFA) tomight be ASM. The only unsupported file type would
ensure a reliable and manageable installation.be raw devices for the Flash Recovery Area, thus
Automatic Storage Management (ASM)another reason to stay away from raw devices.
Automatic Storage Management (ASM) isOracle Recovery Manager (RMAN)
Oracle’s proprietary storage solution forOracle Recovery Manager (RMAN) is an Oracle utility
Oracle databases that simplifies and removes mostused for backups and restores to an Oracle
of the need for traditional disk management tools. Adatabase. Its use has been widely accepted in the
DBA no longer needs to lay out or create databaseOracle community for the ease and efficient method
directory structures. ASM handles all underlying diskwith which it can be scheduled, determining backup
usage. ASM is able to manage all forms of databaseand recovery needs, as well as finding corruption
files, provide redundancy, and handle disk corruptiondown to the database block level. Under best
and failures. ASM is another Oracle instance thatpractices, the RMAN environment consists of a
communicates with a database instance throughdedicated RMAN instance, which can be directed at
Oracle Cluster Synchronization Services (CSS). One orany number of target database instances for backup
more disk devices are allocated to an ASM instanceand recovery needs.
and then placed in ASM Disk Groups that in turn areWith the reduction in cost of many disks coupled
referenced by the database instance. The Installationwith the simplicity of RMAN and the plain fact that
Guide provided by Oracle for your particular operatingmany storage vendors are unable to keep pace with
system should be read to determine how to installOracle technology, Oracle suggests that disk to disk
and configure ASM, and then enable use with an(D2D) backups should be done using the RMAN utility.
Oracle database.The intuitive nature of RMAN and the fact that
Raw DevicesRMAN is tightly integrated with the Oracle database
Raw devices are nothing more than disks that havemakes this a strategy that should be seriously
not been formatted with a file system. When data isthought of. Plus, many database need to be near real
written from Oracle it bypasses the operatingtime, which can only be accomplished if disk to disk
system file system layer and writes directly to thebackup and restores have been implemented.
partition or volume. Because of the complexity toAs noted earlier in this paper, RMAN can use the
manage, Oracle does not recommend using rawFlash Recovery Area to make backups of a target
devices. As such, this paper will not present additionaldatabase. This type of backups is inline with
information about raw devices and is merely here asOracle’s suggested strategy for full and
a placeholder to let the reader know they areincremental backups as well as the keeping of archive
available.and online redo logs. The tight integration of RMAN
Flash Recovery Areawith the Oracle kernel and its knowledge of what
Oracle’s Flash Recovery Area is an allocatedresides in the Flash Recovery Area, and what needs
disk storage location where all backup and recoveryto be backed up or recovered makes it nearly the
related files are stored. The Flash Recovery Area canonly choice for optimal management of Oracle
be pointed to a File System or Automatic Storagedatabases to circumvent disaster. There is no
Management (ASM) disk group. All database relatedcomparison when placed side by side with
files required for recovery can be backed up anduser-managed backups and no backup strategy
stored in the Flash Recovery Area. These files includeshould be considered that does not take advantage
the control file, online logs, archive logs, flashbackof RMAN in some form or fashion. For instance,
logs, control file auto backups, control file copies, dataRMAN is able to detect block-level corruption that is
file copies, and backup pieces.not available in most alternative backup solutions.
The Flash Recovery Area is tightly integrated withinRMAN also contains a catalog that keeps information
the Oracle database and is an opportunistic area forabout each backup and aids in the recovery process.
performing disk-to-disk backups. With the use ofConclusion
RMAN and the Flash Recovery Area, assuming it hasAvailability will often dictate the backup and recovery
been allocated enough storage, a powerfuldevice actually required. However, for database
mechanism can be created to provide faster, simpler,environments that need to be available as much as
and automatic recovery of an Oracle database.possible there is no comparison when confronted
Oracle also manages and keeps the Flash Recoverywith the question of tape or disk.
Area clean by storing only what is necessary andBackups in themselves do not necessarily hinder the
automatically removing obsolete files that mightavailability of a database because an Oracle database
would not be needed for a recovery scenario, arecan be continually available while hot backups are
redundant copies, or have been backed up tobeing done. The real determining factor for disk over
another storage device such as tape.tape is the recovery time. Recovering a database
The Installation Guide provided by Oracle for yourfrom tape can, very conservatively, take in excess
particular operating system should consulted toof 10 times the amount of time it would from disk.
determine how to configure the Flash RecoveryCompound this with the time required to reassemble
Area. It is as easy as setting two init.ora parameters.the individual pieces of Oracle, an Oracle database
Those being: DB_RECOVERY_FILE_DEST (locationcould be down for hours if not days depending on
of Flash Recovery Area) andhow large the database is and what pieces are
DB_RECOVERY_FILE_DEST_SIZE (Amount of diskactually going to be restored.