This module examined recovery situations in which the first error message is only the beginning of the diagnosis: a lost datafile, an interrupted online backup, an inaccessible redo member, or a damaged inactive log group. In Oracle AI Database 26ai, the correct response depends on the files that survived, their history, the database state, and the recovery material available.
The central skill is choosing a procedure whose prerequisites match the incident. Restoring a datafile, ending backup mode, clearing a redo group, and replacing a group perform different jobs. A command that resolves one condition can be inappropriate for another condition that produces a similar startup error.
The examples used a single-instance primary container database in ARCHIVELOG mode. Administrative work must still use the correct CDB or PDB context. RAC, ASM, Data Guard, encryption, and managed services introduce additional requirements. Use the detailed lesson for the relevant procedure before adapting its commands to your environment.
The introduction to infrequent recovery situations established the starting point: distinguish an instance failure from media loss and temporary loss of access. If database files remain intact, automatic instance recovery may be sufficient after a crash. Missing or damaged files require a separate assessment.
Preserve error messages and investigate the underlying storage. An inaccessible file may still exist on a disconnected volume. Correcting access can preserve data or redo that would otherwise be discarded during an unnecessary replacement. Record any actions already taken by another administrator, especially restored datafiles or changes to the control file.
Next establish the intended endpoint. Complete recovery aims to recover all required changes. Point-in-time recovery deliberately stops earlier and excludes later changes. A missing redo sequence cannot be replaced merely by supplying a higher sequence number. Identify a reachable target from the actual recovery material.
ARCHIVELOG mode supports retention of redo, but it does not guarantee retention, readability, or sufficient logging. Enabling archiving after a failure cannot recreate overwritten history. Check usable backups, archived and online redo, repository metadata, and required encryption resources before committing to a recovery path.
The lost-datafile lesson showed that one missing user datafile does not automatically require restoring the entire database. An eligible ordinary user file can be isolated while unaffected services remain available. Recovery scope depends on the file's role, its owning container, and the actual damage.
Identify the absolute file number, pathname, tablespace, and PDB before changing availability. The same example file number can identify a critical system file in another installation. RMAN REPORT SCHEMA and container-aware file queries help establish the mapping, while the alert log and storage diagnostics explain the failure.
RESTORE retrieves the selected backup or creates an eligible replacement in the documented no-backup case. RECOVER advances the file using the applicable incremental backups and redo. Restoring an older file without applying the changes it needs does not complete the repair. Return the file or tablespace online only after successful recovery.
When restoring to a different location with RMAN, SET NEWNAME selects the destination and SWITCH updates the database's reference. A copy operation alone does not change control-file metadata. Verify the resulting pathname as well as the recovered contents.
An eligible file added after the last backup may be reconstructed from its creation if the necessary metadata and redo survive. This changes the recovery starting point. Instead of starting from a backed-up file, recovery starts from an empty replacement and reconstructs its contents.
The required history may be much longer than the redo retained since the latest database backup. File-type restrictions and insufficiently logged operations can prevent reconstruction. The documented user-managed CREATE DATAFILE method excludes SYSTEM datafiles. An empty replacement with the correct name and size is not recovered application data.
SYSTEM, active undo, SYSAUX, and temporary storage require their applicable procedures. In particular, another undo tablespace does not make required lost undo dispensable, and tempfiles are not media-recovered like permanent datafiles. The ordinary user-file example should not become a universal repair script.
The lesson on recovery after an online backup failure distinguished RMAN backups from user-managed copies that use BEGIN BACKUP. An unsuccessful RMAN backup does not, by itself, leave datafiles in that user-managed backup mode.
For an interrupted user-managed backup, establish whether the affected source files are still current. If they are known to be current and were not restored, the applicable END BACKUP procedure can resolve leftover backup mode. The database-wide form used in the mounted-CDB example requires the database to be mounted but not open.
If a file was restored, ending backup mode does not supply the changes missing from the older copy. If its history is uncertain, investigate and follow the documented recovery procedure rather than assuming that it is current. A familiar filename is not proof of file provenance.
Backup-mode cleanup and backup usability are separate outcomes. END BACKUP does not complete a partial operating-system copy, validate it, or repair storage. Review which copies or backup sets completed and whether the required redo is protected. Preserve earlier usable backups until replacement coverage is established.
This distinction also improves automation. A script should report failed copying and track completed work, not blindly end backup mode and open the database after every error. The procedure needs evidence about the files, not just a test that a view contains an ACTIVE row.
The lesson on clearing corrupt online redo log files emphasized that CLEAR reinitializes a group. It does not recover its old contents or repair unrelated datafiles. Inspect temporary access faults and surviving members before choosing to discard a group's redo.
V$LOG describes groups; V$LOGFILE describes members. A STALE or INVALID member does not independently establish the group's recovery requirements. Likewise, a null member status does not certify physical accessibility. Relate both views to the actual storage errors.
INACTIVE means that the group is no longer needed for instance recovery. Its contents may still be required to recover an older backup or an offline datafile. ARCHIVED status answers a different question, and recorded archiving does not guarantee that the archive copy remains available.
An eligible inactive archived group can be reinitialized after storage and recovery dependencies are checked. Clearing an inactive unarchived group discards history without preserving it through archiving. That may leave current datafiles usable while breaking complete recovery from an older dependent backup.
After the documented unarchived clearing operation, establish new database and control-file backup coverage immediately. A fresh usable backup gives a new recovery starting point; it cannot recreate the discarded sequence or repair the missing portion of an older recovery chain.
Offline datafiles introduce further dependencies. The exceptional UNRECOVERABLE DATAFILE choice abandons a recovery path and has consequences for the affected file and its entire tablespace. It is not a convenient repair option to append when an ordinary clear fails. Review the dedicated lesson and the data that would be abandoned.
A failed clear can also leave metadata showing that clearing began before a physical I/O error occurred. Investigate the resulting state and follow the documented failure procedure. Repeated retries against failed storage, or switching to DROP without understanding the restriction, do not restore lost redo.
The inactive archived group example applied those principles to group 4 in thread 1. The current datafiles and redo needed for instance recovery remained intact. After confirming eligibility and repairing storage access, the DBA could clear the group and open normally.
This was not a recovery method that applies only inactive logs. It restored a usable online redo structure without deliberately returning the database to an earlier point. Automatic instance recovery could still occur during normal opening after an abnormal shutdown.
None of the statements “not current,” “archived,” or “multiplexed” independently proves that all data is recoverable. A noncurrent group can remain active, archive copies can be lost, and all multiplexed members can share a failed device. Follow the evidence through to the actual recovery dependency.
If needed redo is permanently lost, assess available copies and supported alternatives, including standby or Flashback resources where their prerequisites hold. Incomplete recovery requires suitable starting material and a consistent reachable endpoint. Clearing cannot manufacture the missing changes.
The lesson on recreating online redo groups distinguished explicit DROP and ADD operations from clearing. The group 3 example required an inactive archived target, usable replacement destinations, checked recovery dependencies, and at least two valid groups remaining after the drop.
Count groups separately from members. Two copies within one group do not satisfy a requirement for two groups. If the configuration lacks sufficient remaining groups, adding appropriate capacity first or choosing another supported procedure is necessary before retirement.
Use verified replacement paths and confirm actual storage separation. Different drive letters or directory names do not necessarily represent independent failure domains. Avoid routine REUSE: an existing file deserves investigation before an operation is allowed to overwrite it.
DROP, ADD, and OPEN are separate steps. If creation fails after a successful drop, diagnose the failure rather than continuing as though replacement succeeded. A later ROLLBACK does not undo successful redo structural DDL or restore the old redo contents.
Planned resizing on a healthy open database can add replacement groups before retiring old ones. A switch changes the current group, while checkpoint progress and archiving determine other maintenance conditions. Requery the target instead of repeating switches until its status happens to resemble an example.
After replacement, verify sizes, member counts, paths, diagnostic output, and normal subsequent use. A new group may be UNUSED. Protect the updated control file and handle obsolete user-managed files deliberately; Oracle Managed Files have automatic cleanup behavior.
The recovery-status lesson organized monitoring into three questions. Use V$RECOVER_FILE and V$DATAFILE_HEADER to investigate file requirements. Use V$RECOVERY_PROGRESS and instrumented RMAN operations in V$SESSION_LONGOPS to observe work. Confirm completion from command results, diagnostic output, and the remaining database requirements.
V$RECOVER_FILE cannot reliably supply the required assessment from a restored control file or one re-created after the failure. Header inspection reads headers rather than every data block. A fuzzy flag or a difference between header SCNs is not, by itself, a complete diagnosis.
V$RECOVERY_STATUS, V$RECOVERY_FILE_STATUS, and V$RECOVERY_LOG remain documented, but their useful recovery information is process-local. They are not cross-session RMAN monitors. An empty result in a separate SQL*Plus connection does not prove that recovery has finished.
Long-operation percentages describe the reported operation rather than the whole job. Correlate session identifiers, times, units, RMAN messages, and alert-log entries. A quiet counter can reflect a stage transition, unavailable input, short operation, or error; it does not identify which explanation is correct.
Finally, verify the intended CDB and PDB open states and application access. A successful recovery command and a functioning application are related but distinct outcomes. Retain enough evidence to explain what was recovered and which recovery protections remain.
| Situation | Decision to establish | What does not prove success |
|---|---|---|
| A user datafile is missing | Select a usable backup or establish eligibility for reconstruction from creation. | An empty replacement file with the original name |
| A user-managed backup was interrupted | Determine whether affected files are current, restored, or uncertain. | Clearing backup mode without checking file history |
| One redo member failed | Preserve usable members and assess member repair. | The existence of another registered pathname |
| An inactive group is inaccessible | Check archives, remaining copies, storage, and recovery dependencies. | INACTIVE status alone |
| Unarchived redo would be discarded | Assess lost recovery coverage and offline-file consequences. | A new backup submitted but not completed |
| A redo group will be replaced | Keep sufficient valid groups and verify each replacement step. | A successful DROP followed by a failed ADD |
| Recovery appears quiet | Correlate the intended operation with command output and diagnostics. | An empty or unchanged progress query |
Several examples ended with normal OPEN because they retained the current control file and completed the applicable repair or complete recovery. Do not append RESETLOGS to every recovery script. Its use follows the actual recovery procedure, including database point-in-time recovery and applicable backup-control-file recovery.
RESETLOGS starts a new database incarnation and restarts redo sequence numbering. It does not reset database SCNs to 1, and it does not automatically invalidate every earlier backup. Recoverability across incarnations depends on the required metadata and recovery history.
Similarly, successful opening does not prove that an interrupted backup completed, that redo redundancy has been restored, or that every archive needed by retained backups remains accessible. Verify those outcomes separately and record any limitations introduced by the incident.
Before a change, record the database identity, container, instance state, affected files, and known restore history. Preserve the original errors and identify which storage resources are shared. These observations prevent an example's assumed file number or state from becoming an accidental production command.
During recovery, keep the operation's scope explicit. Restore only the intended material, observe the command result, and resolve errors before returning files or services online. A procedure should make it clear where an administrator must evaluate an outcome rather than continue unconditionally.
After recovery, check application access and the objects affected by the incident. Physical block validation, file-header checks, object validity, and business-level reconciliation answer different questions. For example, an INVALID object listing is not a physical-corruption scan or a guarantee about recovered business data.
Then restore the intended protection: member redundancy, usable backup coverage, archive retention, and accurate documentation. Review why the failure occurred and whether the same storage or scripting weakness could remove several recovery resources together. Test recovery procedures using representative failures, not just successful backup jobs.
You should now be able to explain these decisions before selecting their commands:
Review the module's recovery decisions with the Redo Log Maintenance Quiz. Relate each scenario to the surviving files and required redo before choosing an action.
The next module turns to database downtime prevention and recovery strategies, building on these diagnostic and recovery principles to plan service restoration.