What is recovery catalog?

What is recovery catalog?

In the world of Oracle recovery, your Control File is the "local brain" of the database. It knows where your datafiles are and which backups you've taken recently. But local brains can be forgetful—or worse, they can be destroyed.

The RMAN Recovery Catalog is the "External Memory." It is a separate database schema that stores a permanent, centralized history of all your backups for one or many databases.


1. Why do you need it? (The "Control File" Problem)

By default, RMAN stores backup metadata in the Target Database's control file. This has two major limitations:

  1. Retention Limits: The control file has a limited amount of space. By default, it only remembers backups for 7 days (controlled by the CONTROL_FILE_RECORD_KEEP_TIME parameter). If you need to restore a backup from 30 days ago, and the record has been overwritten, RMAN won't know the backup exists.

  2. Total Loss Scenario: If you lose your database and all your multiplexed control files (e.g., a storage array failure), RMAN has no "map" to find your backups. You end up in a difficult "manual" recovery situation.

The Recovery Catalog solves both. It keeps records indefinitely and exists entirely outside the target database.


2. Key Benefits of a Catalog

A. Long-Term History

The Catalog can remember backups from months or even years ago. This is crucial for industries with strict compliance and auditing requirements.

B. Centralized Management

If you manage 50 different databases, you don't want to log into 50 different places to check backup status. A single Recovery Catalog can store the metadata for your entire fleet, giving you a "single pane of glass" view.

C. Storing RMAN Scripts

You can store your RMAN backup scripts inside the Catalog. This ensures that every server in your company uses the exact same standardized backup commands, and you don't have to manage .rcv files on the local file system of every server.

D. Data Guard Support

As we discussed in the HA Backup Strategy blog, the Catalog is essential for Data Guard. It allows RMAN to understand that a backup taken on the Standby is perfectly valid for a restore on the Primary.


3. Architecture: Where does it live?

The Recovery Catalog is simply a schema (usually named RMAN) inside a standard Oracle Database.

Critical Rule: Never put the Recovery Catalog inside the same database you are backing up. If that database dies, your "map" dies with it. Most DBAs create one small "Admin" database to host the Catalog for the whole company.


4. Side-by-Side: Control File vs. Catalog

FeatureControl File OnlyRecovery Catalog
StorageInside the Target DB.Inside a separate DB.
HistoryShort (usually 7–30 days).Permanent (until you delete it).
SetupAutomatic (Default).Manual (Requires extra DB).
Best ForTest/Dev or Small setups.Production / Enterprise / Data Guard.
ScriptingLocal shell scripts.Centralized Stored Scripts.

5. How to Set It Up

  1. Create a small database for the catalog.

  2. Create a user (e.g., RMAN_REPO) and grant the RECOVERY_CATALOG_OWNER role.

  3. Connect via RMAN and create the schema:

Bash
rman catalog rman_repo/password@catalog_db
RMAN> CREATE CATALOG;
  1. Register your production database:

Bash
rman target sys/pass@prod_db catalog rman_repo/pass@catalog_db
RMAN> REGISTER DATABASE;

6. Summary

Think of the Recovery Catalog as your Backup Insurance Policy. While you can survive without it for daily tasks, it becomes the most valuable asset you own when a "Worst Case Scenario" occurs. It provides the metadata persistence that the local control file simply wasn't designed for.

Looking for servers Rental ?

Call Our Expert :


  • (call for rental enquiries)

Email us :