What is Oracle RMAN (Oracle Recovery Manager)? | Definition from TechTarget (2024)

By

  • Dave Raffo
  • Paul Crocetti,Executive Editor

Oracle RMAN (Oracle Recovery Manager) is a utility built into Oracle databases to automate backup and recovery; it includes features not available in third-party backup tools. RMAN was introduced in Oracle release 8.0.

Database administrators (DBAs) can use RMAN to protect data on Oracle databases rather than requiring data backup administrators to initiate them.

An Oracle database client, RMAN automates administration of backup strategies and ensures database integrity. Block-level corruption detection is provided during backup and restore. Backup techniques such as parallelization of backup/restore data streams, a backup files retention policy and a detailed history of backup operations are supported.

Oracle RMAN handles the underlying maintenance tasks that must be performed before or after any database backup or recovery. It can conduct incremental backups, block media recovery, binary compression, encrypted backups, automated database duplication and cross-platform data conversion.

How RMAN works

The RMAN environment must include a target database and the RMAN client. RMAN performs backups on the target database, and the client is the application that manages backup and recovery for the target database.

RMAN uses a media manager API to work with backup hardware. A user can log in to Oracle RMAN and command it to back up a database. RMAN will then copy the files to the directory specified by the user.

By default, RMAN creates backups on disk and generates backup sets rather than image copies. Backup sets can be written to disk or tape.

What is Oracle RMAN (Oracle Recovery Manager)? | Definition from TechTarget (1)

RMAN is the preferred method of backing up Oracle databases and is included with every copy of Oracle. However, RMAN isn't always required for Oracle backups. For example, it is possible to back up a cold database without using RMAN. A database that is not mounted can still be backed up at the file level without any database-level tools. Because RMAN was introduced in Oracle release 8.0, organizations with older database releases may not be able to use it.

RMAN backup commands allow DBAs to manage RMAN by typing a single word or short phrase. Commands are used to run a backup; convert data files; create, update and remove recovery catalog schemas; encrypt backups; initiate a flashback database; display a list of backup sets or copies; create a duplicate database; validate backup sets; and perform other tasks.

What is Oracle RMAN (Oracle Recovery Manager)? | Definition from TechTarget (2)

Important RMAN features

Backup sets. Oracle RMAN stores data in image files or backup sets, which are made up of backup pieces. A backup piece is an RMAN-specific binary file that only RMAN can create or restore. Backup pieces are grouped into a backup set, allowing DBAs to protect multiple data files, control files, server parameter files and archive logs together. RMAN can encrypt and decrypt data written to backup sets.

RMAN can also back up a copy of an image file. An image copy is an exact replica of a datafile, archive redo log file or control file. RMAN uses data sets by default, but DBAs can choose image copies through a command line.

Archived redo logs. Redo logs are another key piece of RMAN backup. A redo log stores all changes made to a database, and every Oracle database has an associated redo log. Groups of redo files can be saved off-site in an archived redo log. Archived redo logs allow restoration of a database from an inconsistent backup, which occurs when the database does not shut down normally. An inconsistent backup allows backups to occur when the database is open. Oracle RMAN can also conduct consistent backups, which occur after a database is shut down normally. A consistent backup does not require media recovery to restore the database.

Flash recovery. RMAN backups are created in the Oracle database flash recovery area (FRA) on disk. The FRA is a directory that contains online and archived redo logs, flashback logs, control files and image copies. When disk space is required for new backups, the Oracle database removes backups that are no longer needed to make room. A DBA sets policies to determine which FRA files are obsolete and can be safely deleted. Files that have been moved to tape are also candidates for removal when disk space is needed. Using a flash recovery area can save time because a DBA does not have to manually delete files to make room for new backups.

RMAN Oracle Flashback Database and Media Recovery. RMAN can restore data through Oracle Flashbacks or Media Recovery. Flashbacks enable point-in-time recovery that allows DBAs to go back to a previous time, and is used for data corruptions and user errors.

Media Recovery is used to correct media failures. Archived media files and online redo logs can update data files so they can be restored. Datafile Media Recovery can recover a single lost or damaged file; Block Media Recovery can restore a few blocks of data while the database files remain available.

Flashback Database, added in Oracle 10g, allows RMAN to restore an entire database to any point in time instead of performing an incomplete recovery. This point-in-time recovery uses a Recovery Writer background process to copy changed blocks from the database buffer cache to a flashback buffer, then copies changes to flashback logs. Restoring with Flashback Database could have a small performance overhead; it is faster than first restoring data files, which is how incomplete recovery works. Flashback Database cannot recover from deletions of individual files or repair disk or tape errors; it can only recover from changes to data files made by the Oracle database.

Encrypting Backup Sets. RMAN includes three encryption modes: Transparent Encryption, Password Encryption and Dual Mode Encryption. Transparent Encryption uses an Oracle software keystore, which is a password-protected container called a wallet, to store a Transparent Data Encryption (TDE) key. The TDE enables creation and restoration of encrypted backups with no database administrator involvement. The Password Encryption and Dual Mode Encryption modes can be restored with keystore or a password.

Oracle Database 12c Release 2 rolled out in September 2016 with new RMAN features. They include the ability to perform a Flashback Database to rewind a pluggable database to a point in time, recovery of non-logged data blocks by fetching them from the primary or standby database, recovery of tables or table partitions to a different schema, enhancements to the duplicate command and cross-platform transports, and backup and recovery of sparse databases.

This was last updated in April 2017

Continue Reading About Oracle RMAN (Oracle Recovery Manager)

  • Oracle RMAN improves database backup and recovery
  • Oracle backup an important task for storage administrators
  • Level of Oracle Recovery Manager support varies by vendor
  • Using commands in Oracle Recovery Manager
  • Guidelines for the Oracle backup script process

Related Terms

data loss
Data loss is the intentional or unintentional destruction of information.Seecompletedefinition
encryption
Encryption is the method by which information is converted into secret code that hides the information's true meaning.Seecompletedefinition
encryption key management
Encryption key management is the practice of generating, organizing, protecting, storing, backing up and distributing encryption ...Seecompletedefinition

Dig Deeper on Data backup security

  • Oracle RMAN tutorial: Get started with database backupBy: BrienPosey
  • Arcserve UDP 8.0 update focuses on ransomware protectionBy: JohnnyYu
  • How to manage Oracle database upgrades and annual releasesBy: GeorgeLawton
  • Follow these steps for an Oracle-to-AWS migrationBy: KurtMarko
What is Oracle RMAN (Oracle Recovery Manager)? | Definition from TechTarget (2024)

FAQs

What is Oracle RMAN (Oracle Recovery Manager)? | Definition from TechTarget? ›

Oracle RMAN (Oracle Recovery Manager) is a utility built into Oracle databases to automate backup and recovery; it includes features not available in third-party backup tools.

What is Oracle RMAN used for? ›

Recovery Manager (RMAN) is an Oracle utility that can back up, restore, and recover database files. The product is a feature of the Oracle database server and does not require separate installation. Recovery Manager is a client/server application that uses database server sessions to perform backup and recovery.

Which commands are used for RMAN database recovery? ›

Recover your Database using an Online Backup with RMAN

Now, simply use the restore database and recover database commands as seen here: RMAN>restore database; RMAN>recover database; Again, Oracle will restore your database.

What is Oracle backup and recovery? ›

In general, the purpose of a backup and recovery strategy is to protect the database against data loss and reconstruct the database after data loss. Typically, backup administration tasks include the following: Planning and testing responses to different kinds of failures.

What does RMAN backup stand for? ›

RMAN (Recovery Manager) is a backup and recovery manager supplied for Oracle databases (from version 8) created by the Oracle Corporation. It provides database backup, restore, and recovery capabilities addressing high availability and disaster recovery concerns.

How to use RMAN to backup an Oracle database? ›

Take the following steps:
  1. Connect RMAN to the standby database (as target database) and to the recovery catalog.
  2. Execute the following RMAN commands: Copy. RESYNC CATALOG FROM DB_UNIQUE_NAME ALL; BACKUP AS BACKUPSET INCREMENTAL LEVEL 0 DATABASE PLUS ARCHIVELOG; DELETE ARCHIVELOG ALL;

How to use RMAN to restore Oracle database? ›

Oracle Database Recovery Steps
  1. Start the RMAN client and connect to the target database as a user to check if there are any connection issues. ...
  2. Identify the files to restore. ...
  3. Preview backups for recovery. ...
  4. Validate the backups to see if they are usable. ...
  5. Provide passwords for the encrypted backup.
Sep 28, 2022

How do I check my RMAN recovery progress? ›

Monitor the progress of backups and restores by querying the view V$SESSION_LONGOPS . RMAN uses two types of rows in V$SESSION_LONGOPS : detail and aggregate rows. Detail rows describe the files being processed by one job step, while aggregate rows describe the files processed by all job steps in an RMAN command.

How do I run RMAN commands? ›

To execute RMAN commands through a pipe:
  1. Start RMAN by connecting to a target database (required) and specifying the PIPE option. ...
  2. Connect to the target database and put the desired commands on the input pipe by using DBMS_PIPE. ...
  3. Read the RMAN output from the output pipe by using DBMS_PIPE.

How to check backup in RMAN command? ›

To check the current control file, use the following command: RMAN> backup validate current control file; Just as a datafile can be validated for a backup operation, a backup of a datafile can be validated for a restore. To check if a backup is valid and available for a restore operation, use the restore ?.

How many types of backup are there in RMAN? ›

RMAN lets you perform full backups (with the database online or offline), incremental backups on the block level, and backups of online redo logs and control files.

What is Oracle recoverer process? ›

The recoverer process (RECO) is a background process used with the distributed database configuration that automatically resolves failures involving distributed transactions. The RECO process of a node automatically connects to other databases involved in an in-doubt distributed transaction.

What is the difference between restore and recover in Oracle RMAN? ›

Restore is putting back the copy of the object (datafile, controlfile, spfile, archivelog) to a specific location. Recover is applying all of the transactions located in the online or offline (archived) redo and online undo segments to bring the database to a consistent state.

What is the purpose of the RMAN? ›

Oracle RMAN is used to run a backup, restore, and recover operation of an Oracle database. RMAN is also required when it runs an incremental backup.

Where are RMAN backups stored? ›

RMAN backups are created in the Oracle database flash recovery area (FRA) on disk. The FRA is a directory that contains online and archived redo logs, flashback logs, control files and image copies.

What is the benefit of RMAN in Oracle? ›

Faster backups and restores compared to backups without RMAN. RMAN is the only native backup tool which supports incremental backups. Oracle 19c has got further optimized incremental backup which has resulted in improvement of performance during backup and recovery time.

What are the benefits of RMAN backup? ›

7.2 Benefits of Using RMAN

Provides proper security for Backups. You can be 100% sure your database has been backed up. Control file and Spfile of the database can be configured to be automatically backed up by RMAN. It contains detail of the backups taken etc.

What does RMAN do when a database is registered? ›

After registering the physical standby database, RMAN also performs a full resynchronization using the standby control file. The primary benefit of this feature is that you can avoid connecting to a primary database to perform a full resynchronization.

What is the purpose of RMAN catalog? ›

RMAN recovery catalog Is another database which is out of your normal databases or which is on a separate server and which will save only the details of your backups in terms of metadata of the backup. Whenever you trigger the backup, RMAN will Update the information in the control file.

What is the difference between Oracle Data Guard and RMAN? ›

Oracle Data Guard is a high availability and disaster recovery solution that enables you to create and maintain one or more standby databases for your primary database. RMAN is a powerful backup and recovery tool that can work seamlessly with Data Guard to protect your data from failures and corruptions.

Top Articles
Latest Posts
Article information

Author: Kelle Weber

Last Updated:

Views: 6109

Rating: 4.2 / 5 (73 voted)

Reviews: 88% of readers found this page helpful

Author information

Name: Kelle Weber

Birthday: 2000-08-05

Address: 6796 Juan Square, Markfort, MN 58988

Phone: +8215934114615

Job: Hospitality Director

Hobby: tabletop games, Foreign language learning, Leather crafting, Horseback riding, Swimming, Knapping, Handball

Introduction: My name is Kelle Weber, I am a magnificent, enchanting, fair, joyous, light, determined, joyous person who loves writing and wants to share my knowledge and understanding with you.