Backup Options   «Prev  Next»

Lesson 1

Oracle NOARCHIVELOG Database Recovery

Oracle AI Database 26ai supports NOARCHIVELOG mode and restoration from consistent database backups. The important limitation is how much work you can recover after a failure. An instance crash may be recoverable using surviving database files and online redo, while lost or damaged storage can require restoring the database to an earlier backed-up state.

This module introduces the files, backup requirements, and recovery decisions involved. You will learn to distinguish a restart after a crash from a restore after media loss, understand the role of consistent incremental backups, and prepare for situations where replacement storage uses different file locations.

What NOARCHIVELOG Mode Means

NOARCHIVELOG does not disable redo generation. Oracle still records changes in online redo logs. However, filled log groups can be reused without first saving archived copies. As those groups cycle, older redo is overwritten. Consequently, the online logs do not provide a permanent history of all changes since the last backup.

In ARCHIVELOG mode, archived redo can extend recovery beyond a restored backup when the required logs are available. Without that retained history, a NOARCHIVELOG recovery plan must be based on the consistent backups that actually exist. Simply retaining the current online logs does not provide equivalent protection. See Oracle's archiving-mode documentation.

For this module, database-wide operations refer to the container database, or CDB. Archiving mode is a CDB setting, not a separate setting selected independently for each pluggable database. Whole-database backup examples assume an appropriately privileged connection to the CDB root.

Instance Failure and Media Failure

Instance recovery uses surviving files

An instance failure can occur when a server loses power or the Oracle instance terminates unexpectedly. If the required persistent files survive, Oracle performs instance recovery when the database restarts. It applies online redo from the checkpoint position to reconstruct changes that were not yet reflected in the datafiles, then uses undo to roll back uncommitted work.

This process does not normally begin by restoring a backup. Its starting point is a checkpoint, not the date of the most recent backup. The contents of the System Global Area, or SGA, are lost when the instance ends. The SGA is therefore not a persistent asset that an administrator restores to recover the database. Oracle describes this process in its instance-recovery overview.

Media failure can require a database restore

Media failure means that required files have become unavailable or unusable, for example because a storage device failed. Restarting the instance cannot reconstruct missing datafiles from memory. For a NOARCHIVELOG database, plan to restore a consistent whole-database backup rather than combine arbitrary old copies of individual files with current files.

Restore means retrieving files from backups. Recover means applying changes to restored files. These are separate operations: restoring a usable backup does not automatically preserve transactions committed after its recovery point.

Files and Structures Used in Recovery

The following assets have different roles. Some support instance recovery, some supply a restore source, and others make it possible to start the instance or access its backups. The physical-file distinctions follow Oracle's storage-structure documentation.

Recovery assets and their roles
AssetRole
DatafilesHold SYSTEM, SYSAUX, undo, and application data. A consistent whole-database restore must provide a compatible set of required datafiles.
Control fileRecords database structure, file identities, checkpoints, and recovery metadata. Preserve usable copies and backups.
Online redo logsSupport instance recovery when required redo survives. They are reused in NOARCHIVELOG mode and are not backed up by RMAN.
Undo dataSupports rollback of uncommitted transactions. Undo is stored in datafiles, not in a separate administrator-created recovery file.
SPFILE or PFILEProvides initialization settings needed to start the instance.
RMAN backup pieces or image copiesSupply the files used during restoration. Retain the applicable incremental chain and metadata needed to locate it.
Encryption keys and access configurationEnable access to encrypted data, encrypted backups, and backup storage where these dependencies apply.

A separate RMAN recovery catalog is optional. However, recovery planning must account for how backups will be located if the current control file is lost. Retain the database identifier, backup locations, and relevant configuration outside the failed database's storage.

Supporting files also deserve attention. Protect password files and network configuration where they are used. Tempfiles are not RMAN backup contents and may need recreation. A block change tracking file speeds incremental backup selection but is not required to recover the database. The fast recovery area can hold backup files even when archiving is disabled; it is not exclusively an archived-log destination.

Creating a Consistent Backup

A consistent whole-database backup starts with a clean shutdown, such as SHUTDOWN IMMEDIATE, followed by startup in MOUNT state. Mounting alone does not establish consistency: a database mounted immediately after SHUTDOWN ABORT can still require instance recovery.

RMAN rejects attempts to back up active datafiles in NOARCHIVELOG mode. The relevant error is:

ORA-19602: cannot backup or copy active file in NOARCHIVELOG mode

This restriction concerns active datafiles. It does not mean every RMAN backup operation is prohibited while the database is open.

The following RMAN example establishes a level 0 incremental base. It causes a planned outage and assumes a connection to the intended training CDB, sufficient privileges, and a configured, accessible backup destination. Continue only when each preceding command succeeds.

SHUTDOWN IMMEDIATE;
STARTUP MOUNT;
BACKUP INCREMENTAL LEVEL 0 DATABASE;
ALTER DATABASE OPEN;

A normal full backup is not an incremental level 0 base. Verify control-file autobackups and protect startup configuration and keys separately as needed. This example demonstrates the backup state transition, not a complete recovery plan. See RMAN backup concepts.

Limited Recovery with Incremental Backups

RMAN can apply suitable consistent incremental backups to advance a restored NOARCHIVELOG database. Subsequent whole-database incrementals also require a clean shutdown and a mounted database. The command RECOVER DATABASE NOREDO allows incremental application without attempting archived-redo recovery.

The reachable state is limited by the available consistent backup chain. This does not provide arbitrary timestamp recovery or recreate changes missing from every backup. Oracle documents the subsequent OPEN RESETLOGS step in its NOARCHIVELOG incremental-recovery procedure.

For example, suppose a training database has a Sunday level 0 backup and a usable consistent Tuesday incremental. If storage fails on Wednesday, that chain may restore Tuesday's backed-up state. Wednesday's changes are not preserved by the chain. If the incremental is unavailable, the reachable state may be older.

The restore procedure also depends on which control files and startup files survived. A usable current control file does not always need replacement. Restoring one from backup introduces prerequisites for locating the backup and mounting the database. Later lessons will address those decisions before presenting recovery commands.

Preparing for a Recoverable Outcome

Use the recovery requirement to judge the backup strategy. If losing all changes since the latest usable consistent backup is unacceptable, plan for ARCHIVELOG operation with protected backups and the required redo. If a training or reloadable database can tolerate that loss, document both the accepted recovery point and the time needed to restore service.

Keep at least one usable backup outside the storage failure that it must survive. Check backup results and practice restoration in an isolated environment. A backup job's success message cannot establish that replacement storage, encryption keys, access credentials, and application checks will all work during a real incident.

Restoring files to another location requires more than changing a directory name. The restore plan must account for file mappings, control-file references, available storage, and permissions. This module introduces that task without requiring you to simulate failure by renaming a production database directory.

What You Will Learn in This Module

After completing this module, you will be able to:

  1. Identify the persistent data structures used in instance recovery.
  2. Identify the files and backups needed to restore a NOARCHIVELOG database.
  3. Explain the data-loss implications of media failure in NOARCHIVELOG mode.
  4. Describe a consistent whole-database restore and limited recovery using applicable incremental backups.
  5. Explain how to restore database files to another location when original storage is unavailable.

The next lesson examines the data structures used in database recovery.


SEMrush Software 1 SEMrush Banner 1