Catalog Maintenance   «Prev  Next»

Lesson 9

RMAN Recovery Catalog Maintenance in Oracle 26ai: Conclusion

Module 4 developed a controlled approach to maintaining Oracle Recovery Manager metadata. The central idea is that RMAN does not maintain one undifferentiated catalog. The target control file is always an RMAN repository. A recovery catalog, when used, is a separate database schema that stores synchronized metadata for one or more registered target databases. Backup pieces, image copies, and archived redo logs remain on their storage devices. A safe operator knows which of these layers a command reads or changes before executing it.

The module also separated four questions that legacy explanations often combine: Which repository mode is active? Which incarnation identifies the required recovery branch? Does the catalog contain the target control file's current metadata? Do recorded backup objects still exist and remain readable? Each question has a different RMAN operation, prerequisite, and verification method.

Review the Module 4 workflow

Module 4 lessons and their operational outcomes
Lesson Topic Operational outcome
1 Catalog maintenance basics Distinguish catalog lifecycle work, metadata synchronization, and backup-media maintenance.
2 Catalog-aware RMAN startup Connect securely to the intended target CDB and catalog PDB, then verify both identities.
3 NOCATALOG startup Use the target control file as the exclusive repository and understand its history boundary.
4 Database incarnations Select a verified earlier recovery branch only when the recovery destination requires it.
5 Full catalog resynchronization Transfer changed metadata from a known target control-file source and verify the result.
6 Resynchronization situations Recognize when automatic synchronization is sufficient and when a manual resynchronization is justified.
7 CHANGE Alter supported status, retention, association, or catalog metadata without confusing the operation with deletion.
8 DELETE, CROSSCHECK, and VALIDATE Separate physical removal, repository reconciliation, and file or backup integrity checks.

Establish repository mode and identity first

A catalog-aware session has two database connections. TARGET identifies the database whose files and control-file repository RMAN manages. CATALOG identifies the separate service and schema that own the recovery catalog. The catalog owner is not the target operator, and the catalog connection does not grant authority over the target. Verify the RMAN client, both Oracle Net services, the target DBID, the target DB_UNIQUE_NAME, the CDB or PDB scope, and the catalog PDB before changing metadata.

rman

CONNECT TARGET "backup_admin@prodcdb AS SYSBACKUP";
CONNECT CATALOG rco@catpdb;
REPORT SCHEMA;
SHOW ALL;

The account and service names are examples. Let RMAN request credentials rather than placing passwords in shell history, command files, process listings, or published instructions. A successful login is only the first check. Unexpected schema or configuration output is a stop condition because a valid credential can still reach the wrong database, container, or catalog.

A NOCATALOG session still has an RMAN repository. It uses the target control file exclusively. Backup, restore, recovery, LIST, REPORT, CROSSCHECK, CHANGE, DELETE, and VALIDATE remain available within their normal prerequisites. Catalog stored scripts, centralized reporting, virtual private catalogs, and catalog history beyond retained control-file records are not available.

rman NOCATALOG
CONNECT TARGET "/ AS SYSBACKUP";
REPORT SCHEMA;
LIST BACKUP SUMMARY;

Once a session has performed repository work without a catalog, exit and start a new session before making a catalog connection. Protect the control-file repository with control-file autobackups and an appropriate value for CONTROL_FILE_RECORD_KEEP_TIME. That setting influences when reusable control-file records may be overwritten; it does not create the extended centralized history that a recovery catalog can preserve.

Treat incarnation selection as recovery control

An incarnation is a branch of database history associated with an OPEN RESETLOGS event. RESET DATABASE TO INCARNATION selects an existing branch in the RMAN repository. It does not restore files, apply redo, open the database, erase the catalog, or create a new incarnation. Oracle creates a new incarnation when the recovered database opens with RESETLOGS.

LIST INCARNATION OF DATABASE PRODCDB;
RESET DATABASE TO INCARNATION verified_inc_key;

Use the incarnation key reported by LIST INCARNATION, not the database key or an assumed sequence number. An explicit reset is required when restoring or recovering to an SCN before the current reset SCN or when flashing back into an orphaned incarnation. Before changing the current branch, correlate the DBID, reset SCN, reset time, branch status, recovery destination, and required backups and archived redo. The complete restore, recovery, and OPEN RESETLOGS procedure belongs in an approved and tested runbook.

Understand resynchronization as metadata transfer

For normal RMAN operations, the mounted target control file is the initial repository source. When the target is registered and the catalog is connected, RMAN propagates changed records to the recovery catalog. This process is recovery catalog resynchronization. Automatic resynchronization is normal, so a manual command is not required after every backup.

CONNECT TARGET "backup_admin@prodcdb AS SYSBACKUP";
CONNECT CATALOG rco@catpdb;
RESYNC CATALOG;
REPORT SCHEMA;
LIST BACKUP SUMMARY;
SHOW ALL;

A deliberate full resynchronization is useful after relevant work occurred while the catalog was unavailable, when catalog-aware and NOCATALOG operations alternate, when high archived-log volume risks control-file record reuse, or when structural, incarnation, RMAN configuration, or Data Guard metadata requires prompt catalog visibility. Confirm that the target is mounted or open, the correct catalog is connected, the target is registered, and the snapshot control-file location is writable.

RESYNC CATALOG transfers records from a known control-file source. It does not scan storage for unrecorded backup pieces, test every backup block, or reconstruct history already overwritten in the source. Use CATALOG for eligible files that exist on storage but are not recorded. Use CROSSCHECK for recorded objects whose accessibility is uncertain. Use VALIDATE when readability or corruption is the question.

Oracle 26ai adds resynchronization savepoints and documented physical-standby support for full resynchronization from a standby control file. These features improve resilience and Data Guard flexibility, but they do not remove the need to verify the source member, shared DBID, distinct DB_UNIQUE_NAME, snapshot control file, and expected catalog changes.

Respect CDB, PDB, and Data Guard scope

Multitenant scope is part of command correctness. Connect to the CDB root with an appropriately privileged common user for whole-CDB work. A direct PDB connection deliberately narrows the operation and does not silently authorize database-wide maintenance. Full recovery-catalog resynchronization is a CDB-root operation. Archived-log deletion also requires a root connection and cannot be performed while connected directly to a PDB.

PDB incarnations have their own repository records and syntax. RESET PLUGGABLE DATABASE ... TO INCARNATION selects a PDB branch for an applicable PDB recovery or flashback workflow; it is not interchangeable with RESET DATABASE TO INCARNATION for the entire CDB. Similarly, a direct PDB validation checks that PDB's scope, while VALIDATE DATABASE from the root covers the CDB. Record the connection container with every command transcript so later reviewers can interpret the scope accurately.

Physical databases in a Data Guard configuration share a DBID but have distinct DB_UNIQUE_NAME values. Therefore, the DBID alone does not establish which member RMAN reached. Verify the database role, service destination, and unique name before a resynchronization or maintenance command. Oracle 26ai can perform a full resynchronization from a physical standby control file under documented conditions, including use of RESYNC CATALOG FROM DB_UNIQUE_NAME. A runbook must also define the primary fallback when the standby source cannot be used.

Backup association and backup accessibility are different. A backup remains associated with the Data Guard member that created it. SBT backups are generally accessible through correctly configured media-management channels across members, while disk backups are normally accessible only from their creating database. If a crosscheck or deletion cannot reach a file, first verify the associated member, device type, channel, and storage path. Do not use FORCE as a shortcut around wrong-member or media-manager configuration.

Choose maintenance commands by their effects

RMAN commands for catalog and backup maintenance
Operational question Command Primary effect
Should an existing backup, copy, or archived log become tracked? CATALOG Adds recognized file metadata to the RMAN repository.
Should supported status, retention, or association metadata change? CHANGE Updates selected metadata or uncatalogs a record.
Is a recorded object accessible through its device type? CROSSCHECK Changes repository status to AVAILABLE or EXPIRED.
Should a selected physical backup or copy be removed? DELETE Removes the object and coordinates repository metadata.
Is a file or backup set readable and free from detected corruption? VALIDATE Reads the selected object and records integrity findings.
Which backups are no longer required by retention policy? REPORT OBSOLETE Reports policy candidates without deleting them.

CHANGE ... UNAVAILABLE preserves a record but excludes its object from restore selection. CHANGE ... AVAILABLE returns an accessible object to eligible status. CHANGE ... UNCATALOG removes metadata without deleting the physical file. KEEP and NOKEEP alter retention-policy exemptions. None of these actions is a physical integrity test.

Status and retention terms that must remain distinct
Term Meaning Decision boundary
AVAILABLE RMAN expects the recorded object to be accessible. It may still be obsolete under the retention policy.
EXPIRED A crosscheck did not find the object through the checked device type. Investigate storage access before removing its record.
UNAVAILABLE An operator deliberately excluded the record from recovery selection. It is not proof that the physical object is absent.
OBSOLETE The retention policy no longer requires the backup. Review recovery and archival requirements before deletion.
DELETED The target control-file repository records that deletion occurred. Verify both the repository and expected physical outcome.

Separate deletion, reconciliation, and validation

A safe cleanup begins with inventory and storage access, not with DELETE FORCE. CROSSCHECK can mark an inaccessible record EXPIRED, but a temporary tape-library outage, missing mount, credential problem, or incorrect channel can produce that result. Investigate the condition, restore access when possible, and crosscheck again. Use DELETE EXPIRED only for records whose expired state is confirmed.

CROSSCHECK BACKUP;
LIST EXPIRED BACKUP;
SHOW RETENTION POLICY;
REPORT OBSOLETE;
VALIDATE DATABASE;

The commands above represent review points, not one copy-and-run cleanup block. DELETE OBSOLETE applies the backup retention policy, while archived-log deletion follows its own configured policy. A successful DELETE normally removes selected media, marks target control-file records DELETED, and removes corresponding recovery-catalog rows when a catalog is used. FORCE has override semantics and belongs only in a specifically approved exception.

VALIDATE reads database files, recovery files, archived logs, control files, or backup sets according to its scope. It checks physical corruption by default, while CHECK LOGICAL adds logical intrablock checks. It does not reconcile catalog rows with storage, remove missing-file records, or prove application consistency. Review the complete RMAN error stack, diagnostic files, and V$DATABASE_BLOCK_CORRUPTION. Validation strengthens evidence but does not replace an isolated restore and recovery test.

Use a recovery catalog for documented operational value

A recovery catalog is optional for many RMAN operations, but it can add significant value. It centralizes metadata for multiple targets, retains history beyond reusable control-file records, supports catalog stored scripts and centralized reporting, and provides a secondary metadata repository. Data Guard environments also use the catalog to coordinate metadata for members that share a DBID but have different DB_UNIQUE_NAME values.

The catalog is not a substitute for the backups it describes, and it must not become a circular dependency. Protect the catalog database with an independent RMAN plan that uses its own control file as the repository. Retain control-file autobackups, archived redo when point-in-time recovery is required, multiple protected backup generations, and copies in separate failure domains. A Data Pump export can supplement physical catalog backups, but it does not replace them or a tested catalog recovery procedure.

Keep the catalog schema compatible with the RMAN clients that use it. Review Oracle's compatibility, privilege, edition, backup, and change-control prerequisites before UPGRADE CATALOG. Oracle 26ai catalog maintenance mode is specifically for controlling schema connections during an upgrade. It is not required for routine backups, reports, resynchronization, crosscheck, deletion, or validation.

Apply one repeatable operational model

  1. Identify the requested outcome and choose the command by effect, not by a remembered legacy syntax.
  2. Verify the RMAN executable, target service, database name, DBID, DB_UNIQUE_NAME, role, and container scope.
  3. Verify whether the session uses the target control file alone or also connects to the intended recovery catalog.
  4. Capture read-only inventory with appropriate LIST, REPORT, SHOW, and schema commands.
  5. Confirm storage access, device type, channels, retention policies, recovery objectives, Data Guard needs, and required approvals.
  6. Execute the narrowest supported RMAN operation and preserve its complete output and error stack.
  7. Repeat the relevant inventory checks and verify the intended repository, storage, or validation result.
  8. Escalate unexpected status, missing history, corruption, or partial deletion instead of hiding it with a forceful command.
  9. Use scheduled restore and recovery rehearsals to test the complete recovery path and measure recovery objectives.

Preserve evidence that matches the operation

Minimum evidence for RMAN catalog maintenance
Operation Before execution After execution
Connect Approved services, accounts, privilege, expected DBID, unique name, role, and container. Connection messages plus read-only schema and configuration checks.
Select an incarnation Incarnation list, recovery destination, branch history, and usable backup and redo inventory. Current-incarnation listing and the complete restore and recovery transcript.
Resynchronize Known control-file source, registration, snapshot location, catalog compatibility, and connection identity. Complete message stack and comparisons of schema, incarnation, backup, log, and configuration records.
Change metadata Exact keys, handles, tags, current status, physical state, and intended recovery effect. Updated listing and confirmation that required objects remain eligible for recovery.
Crosscheck or delete Storage access, channels, retention and log policies, candidate inventory, and approval for destructive scope. Full RMAN output, repository listing, physical-storage verification, and investigation of partial failures.
Validate Selected files or keys, device type, channel capacity, workload window, and expected diagnostic locations. Error stack, trace and alert evidence, corruption-view results, and escalation or restore-test actions.

Evidence must show more than a zero process exit status. For a resynchronization, success means that the intended metadata categories reached the correct catalog. For deletion, it means that the approved objects and records changed while required recovery paths remained intact. For validation, it means that RMAN read the requested scope and that every warning and corruption finding was evaluated. Operational evidence turns a maintenance command into an auditable recovery-control activity.

This model makes rare operations more reliable. Repository maintenance often happens during incidents, storage migrations, retention changes, or recovery preparation, when assumptions are costly. Protected credentials, deterministic scope, peer review, logs, and rehearsed runbooks provide better safeguards than memory or an old command example.

Module 4 learning outcomes

After completing the module, you should be able to:

Continue to recovery catalog functions

Module 4 concentrated on connections, repository modes, incarnation selection, synchronization, status changes, deletion, reconciliation, and validation. The next module expands the catalog's operational functions, including reporting, listing, stored scripts, and recovery-catalog views.

Continue to Recovery Catalog Functions

RMAN syntax

Recovery Manager Syntax
Recovery Manager Syntax

Recovery Catalog Maintenance - Quiz

Click the Quiz link below to review your understanding of the information presented in this module.
Recovery Catalog Maintenance - Quiz

SEMrush Software 9 SEMrush Banner 9