This module connected the everyday work of creating backups with the decisions needed during a database recovery. In Oracle AI Database 26ai, Recovery Manager (RMAN) coordinates physical backup, restore, and recovery. Reliable operation depends on more than a command that completes: you need the correct target, usable backup storage, sufficient recovery metadata and redo, appropriate credentials, and evidence that the recovered application works.
The ten lessons form a practical progression. You began with RMAN's architecture and interactive client, prepared a recovery catalog, created and executed scripts, examined filename and channel settings, and then selected recovery procedures for different failures. Use this conclusion to connect those topics and identify which detailed lesson to revisit before adapting an example to your environment.
By the end of the module, you should be able to explain the following decisions:
The introduction to Recovery Manager established the basic architecture. The client submits commands; database server sessions perform backup and restore work through channels. The target database supplies the files being protected. The target control file stores recovery metadata, and an optional recovery catalog extends that repository. Actual backup pieces remain on disk or another configured storage system.
These responsibilities help locate a failure. An unreadable command file is a client-side problem. A channel unable to create a disk backup piece points toward server-side storage access. An unavailable catalog is a repository problem. Treating all three as a generic RMAN failure makes troubleshooting slower and encourages changes at the wrong layer.
Keep established capabilities separate from release-specific changes. Backup sets, image copies, incremental backups, validation, and channels remain core concepts; they were not all introduced in 26ai. Automatic block repair in a suitable licensed Active Data Guard configuration is also distinct from an administrator requesting RMAN block media recovery. Neither eliminates the need for retained backups and a tested recovery plan.
Using RMAN interactively begins with a distinction that remains important during incidents: launching the client does not start the database. A target connection chooses the database on which later commands act. Verify the Oracle home, instance or service, reported identity, administrative privilege, and CDB/PDB context before issuing consequential commands.
A root connection supports whole-CDB operations. A direct PDB connection has a narrower scope and its own restrictions. Local operating-system authentication also depends on the configured environment and administrative groups. A familiar service alias is insufficient evidence when several installations or containers exist. Keep passwords out of shared command files and use the site's approved interactive or unattended authentication method.
Once the target context is established, these inspection commands provide a useful starting point:
SHOW ALL;
REPORT SCHEMA;
LIST BACKUP SUMMARY;
The results describe configuration, database structure, and recorded backups. They do not create protection or prove that every recorded backup can be read. Save enough context with the output that another administrator can identify the target and the time of the inspection.
The recovery catalog lesson separated owner preparation, catalog creation, target registration, and ongoing synchronization. A catalog is a schema in a hosting database. Preparing its owner and privileges precedes CREATE CATALOG; registering the intended target is a later operation. Check the DBID and container rather than relying only on a displayed database name.
The catalog stores recovery history and can hold RMAN scripts. It does not contain the target's physical backup payload. Likewise, RESYNC CATALOG refreshes metadata; it does not recreate missing backup pieces or automatically replicate independent catalogs. Plan repository history and physical backup retention together.
Protect the catalog host independently and retain its recovery instructions outside the systems that may fail together. Record its backup locations and authentication dependencies. Oracle's recovery catalog guide provides the supported administration procedures. A catalog improves recoverability only when its own availability has been considered.
Creating backup scripts introduced three separate artifacts. A command file contains RMAN statements on the client filesystem. A stored script contains RMAN statements in the recovery catalog. A wrapper or scheduler supplies the executable, environment, authentication, log destination, and execution time. Review each layer for its own purpose.
For a catalog-stored script, the body belongs inside the braces of CREATE SCRIPT. Execute that script within RUN. The following illustrates the relationship after connecting to the intended registered CDB-root target and an open recovery catalog:
CREATE SCRIPT module3_full_backup {
BACKUP DATABASE PLUS ARCHIVELOG;
}
PRINT SCRIPT module3_full_backup;
RUN { EXECUTE SCRIPT module3_full_backup; }
This backup example assumes an appropriate ARCHIVELOG target, reviewed automatic channels and destinations, sufficient space, and authorized execution. Use a name that does not already exist when creating it. Printing the script supports review; the final command performs the backup. Oracle documents the forms in CREATE SCRIPT and EXECUTE SCRIPT.
An RMAN stored script is not a PL/SQL stored procedure. Naming it as a Scheduler procedure action does not make it executable by that mechanism. Schedule a tested RMAN invocation through the site's established scheduler or a properly configured Enterprise Manager job. Put branching and orchestration in the surrounding automation when needed; do not assume that RMAN command files are general-purpose programs with arbitrary loops.
The FORMAT lesson distinguished output naming from backup representation. A filename suffix does not turn an RMAN backup into a TAR archive or select compression. For disk backups, a directory in the template must be accessible to the target database server. The location of the client command file or message log is a separate concern.
A useful template such as /backup/rman/db_%d_%T_%U.bkp combines database name, date, and a unique component. For backup pieces, %U expands to %u_%p_%c; using only a date or only the set identifier can omit distinctions between pieces or copies. Control-file autobackups have separate format configuration and require %F in a custom format. See Oracle's FORMAT reference.
Choose channels and backup-set organization for measured workloads. FILESPERSET limits input files in a set; it does not specify channel count or piece size. More channels can create contention when storage is already saturated. A recognizable filename helps operations, but repository records and validation establish what a backup contains and whether it remains usable.
Executing backup scripts carried the reviewed commands into a repeatable job. Use the intended RMAN executable, an explicit command file, a distinct log, and a known execution identity. Check syntax first, then verify runtime behavior under the same account and environment that the scheduler will use.
CHECKSYNTAX verifies parsing without performing the backup. It does not establish credentials, storage access, or recovery coverage. Capture the process exit status promptly and inspect the complete log. If a job stops partway through, some backups may already exist: a RUN block does not roll them back as a transaction. Inspect the actual outcome before retrying or cleaning up files.
Keep incremental strategy explicit. Level 0 supplies an incremental baseline. Differential level 1 uses changes since the latest level 0 or level 1; cumulative level 1 uses changes since level 0. An ordinary full backup does not replace that baseline relationship. Retain the necessary backup chain and redo for the intended endpoint, and test how long its recovery takes.
Deletion requires its own policy. An expired record reflects an availability check; an obsolete backup is no longer needed under applicable retention rules. Those meanings are different. Archived-log deletion must also account for required copies and standby needs. Avoid adding cleanup to a working starter script before those requirements are understood.
The control-file character-set lesson corrected a misleading legacy association. The CHARACTER SET clause of CREATE CONTROLFILE describes the existing database character set during reconstruction. It can help recovery interpret names before the database opens. It does not convert stored text or migrate the database to Unicode.
First consider an intact multiplexed control-file copy or an appropriate binary backup. Exceptional reconstruction requires an accurate file inventory, reviewed SQL, suitable backups, and the correct recovery branch. A trace produced by ALTER DATABASE BACKUP CONTROLFILE TO TRACE contains reconstruction statements; it is not a binary backup. A snapshot control file serves another purpose again: supporting a consistent metadata view for RMAN operations.
Actual encoding migration needs assessment, conversion, and application validation through a supported migration procedure. Preserve the existing character-set value in recovery documentation rather than guessing it during an outage. Oracle's CREATE CONTROLFILE reference explains the clause's limited role.
Command-line database recovery began with diagnosis. An interrupted instance, a lost datafile, unavailable storage, and unwanted application changes are different incidents. Instance recovery may be sufficient when files and redo remain intact. Media recovery advances files using required changes, often after restoring a backup.
Restore copies files from backup; recover applies the changes needed for the selected endpoint. Complete recovery with the current control file normally permits a normal open after successful recovery. Database point-in-time recovery and recovery with a restored backup control file require RESETLOGS. Never select RESETLOGS merely to bypass an unexplained error.
Choose a historical endpoint before both restore and recovery when following a point-in-time procedure. A backup newer than the desired endpoint cannot simply be recovered backward using redo. Record the intended data-loss boundary and verify the application implications. Keep these alternatives separate in the runbook so an operator does not execute several scenario examples consecutively.
Tablespace recovery narrowed the scope to affected permanent datafiles. A non-system application tablespace can be taken offline, restored, recovered, and returned online while its PDB remains open. Verify the PDB when using a tablespace name that may exist in several containers. SYSTEM and active undo require their applicable procedures.
Temporary files have different handling: RMAN does not back up, restore, or recover tempfiles. They are recreated as required. Explicit archived-log staging is also distinct from applying redo. Retrieving log files to a directory does not complete media recovery. A direct PDB connection has restrictions on explicit archived-log restoration, even though recovery can retrieve logs it needs.
For relocation, plan the new filename before restore and update the recorded datafile reference with SWITCH before recovery. For an earlier tablespace state, use the documented tablespace point-in-time recovery procedure, including its auxiliary environment and dependency checks. Adding a stop condition to an ordinary complete-recovery example is insufficient.
Database recovery with Enterprise Manager connected the underlying commands to a graphical workflow. Cloud Control can prepare and monitor user-directed recovery for supported managed targets. Its release, database plug-in, and configuration determine the available interface. Retain command-line knowledge for situations in which the management system is unavailable.
Review scope, endpoint, credentials, destinations, and generated job details before submission. Afterward, inspect recovery output and verify service readiness. A submitted job, a successful restore phase, and a recovered application are separate milestones. Oracle 26ai desupports Data Recovery Advisor and its failure-advice commands; consult the desupport notice rather than reproducing an older automated repair wizard.
A protected database using Recovery Appliance still needs verified identity, catalog access, configured restore channels, usable credentials, and a tested recovery procedure. The appliance integration and protection policy belong to the site's design. A generic disk script cannot establish those dependencies by itself. Keep appliance configuration separate from the general RMAN concepts summarized here.
For any storage design, ask what happens when the database host and its usual documentation are unavailable together. Retain independently accessible recovery instructions, database identifiers, backup locations, and required key-management procedures. Assign responsibility for keeping that information current. The recovery point objective describes acceptable data loss; the recovery time objective describes the desired restoration time. Measure both in rehearsals.
| Stage | Evidence to retain | Remaining question |
|---|---|---|
| Syntax check | Parser result and reviewed script version | Will the environment support execution? |
| Backup execution | Target identity, exit status, full log, and piece records | Can the required backup content still be read? |
| Restore validation | Results from reading selected backups | Can the full recovery chain reach the intended endpoint? |
| Recovery rehearsal | Restore/recovery logs, elapsed time, and application checks | Are the tested procedure and dependencies still current? |
Use this progression when reviewing a backup service with another administrator. If evidence stops at a scheduler launch message, investigate whether RMAN ran at all. If validation succeeds but required redo is missing, the recovery goal remains unproven. If recovery succeeds but application connections fail, investigate the remaining service dependencies before declaring the incident closed.
Before continuing, explain how you would distinguish a failed backup job from an unreadable backup and from an incomplete recovery. Then describe which resources your team would need if the target control files or catalog host became unavailable. These questions test how the module's individual commands fit into a usable operational plan.
Use the quiz to review the module, then compare your answers with the Oracle 26ai lessons above. Evaluate any older examples against the current distinctions between scripts, repositories, control files, and recovery scope.
Recovery Manager Enhancements - QuizThe next module examines Oracle backup strategies. Carry forward the same discipline: choose a recovery goal, build protection around it, and verify the outcome with evidence.