← Oracle administration: recovery, performance, and production
04 / 19 · 130 MIN

Selective recovery and isolated rehearsals

Choose recovery scope and protect valid later work.

Concept and mechanism

An incorrect change does not automatically require rewinding the entire CDB. First establish error time, affected objects, and cross-system dependencies. PITR can remove valid later changes within recovered scope, making reconciliation and approval part of the decision.

Flashback offers alternatives when prerequisites and available history permit; Flashback Database uses mechanisms distinct from undo-based historical queries. A restore point is not a universal recovery promise. Also distinguish EXPIRED, associated with failed location during crosscheck, from OBSOLETE, associated with retention policy.

An unavailable mount does not turn a required backup into unnecessary data. Investigate accessibility before making destructive retention decisions.

Guided application

In a fictional case, a feeder changed positions while other payments have already committed. The DBA assesses localized recovery, a consistent point, and possible replay of later events. For encrypted backups, confirm mode: transparent encryption depends on the appropriate keystore; dual mode permits that keystore or the encryption password.

To improve RMAN duration, measure reading, processing, and writing; adding channels to a saturated destination may not help. A rehearsal copy needs isolated paths and integrations, controlled jobs, and protected data. Final validation includes both database state and absence of unexpected external effects.

Document rehearsal limits before extrapolating results to production and retain evidence of the chosen recovery point.

Choose the object and point

An incorrect update at 10:15 affects positions for one fund. At 10:30, valid movements exist in other objects. Before selecting a mechanism, identify exact tables, partitions, dependencies and target point.

Flashback Table depends on undo and cannot cross certain structural changes such as TRUNCATE. If the point predates available undo or the object was purged, assess table recovery from RMAN backups. TSPITR operates on a tablespace and can include more objects than those affected.

Minimize impact without hiding dependencies. Also record who decides reconciliation of later movements; recovering a technical state and accepting a business state are related but distinct decisions.

Prepare the auxiliary and import

RECOVER TABLE builds an auxiliary database and exports recovered objects. Do not size the auxiliary only from the desired table’s 300 MB: the process needs supporting files and dump space. Confirm backups of SYSTEM, SYSAUX, undo and object/dependency tablespaces, including PDB-specific requirements.

Define AUXILIARY DESTINATION and the Data Pump location according to capacity and authorized access. If the owner requires review before import, NOTABLEIMPORT separates that stage. An existing dump filename can cause failure; use execution identifiers and retain artifacts needed for diagnosis.

This flow is not supported directly on a physical standby merely because spare CPU exists.

Accept remapped data and metadata

To compare with current POSITIONS, recover under a review name or schema and check REMAP TABLE limitations. The new schema must exist before the flow. Rows being present does not establish import of named indexes and constraints; inventory dependent objects and define rebuilding or validation.

A recovered partition appears as a separate table, not an automatic exchange into the original table. Plan integration after comparison and approval. If recovery produced the dump but import failed, diagnose that stage before repeating everything: the retained dump permits manual import.

Do not delete useful results to obtain a clean log; record which stages completed and which remain pending.

Tablespaces and objects that disappear

Before TSPITR, check self-containment with DBMS_TTS.TRANSPORT_SET_CHECK and inspect TRANSPORT_SET_VIOLATIONS. Relationships outside the set need explicit resolution; successful backup reading does not prove object independence. Record temporary relationship changes so they can be restored afterward.

A table created at 11:00 in the tablespace did not exist at the 10:00 target and can be lost by rewind. TS_PITR_OBJECTS_TO_BE_DROPPED helps identify later objects; preserve those that must return through planned export/import. If impact cannot be isolated or required work reconstructed, the decision is not ready merely because the command is syntactically valid.

Flashback, ROWID and database history

Flashback Table requires row movement; an application reusing stored ROWIDs needs analysis because those physical identifiers may no longer refer to the same rows. Flashback Drop depends on recycle-bin presence without a guaranteed fixed duration.

After Flashback Database, READ ONLY opening allows state inspection before deciding on RESETLOGS and new writes. An SCN alone can be ambiguous across incarnations after history branches; record the intended branch. For TO BEFORE RESETLOGS, compare RESETLOGS_CHANGE# and OLDEST_FLASHBACK_SCN and recheck the window after mounting.

None of these steps should be replaced by naming conventions or the assumption that an event from today necessarily remains covered.

Worked exercise: four acceptance stages

In the fictional case, at 10:14 POSITIONS contains P1=120 and P2=80. The 10:15 error changes P2 to 800. At 10:20, valid P3=50 arrives.

Recovery to 10:14 produces P1=120 and P2=80; total 200 confirms that state but does not include P3. The current table totals 970. The business proposal corrects P2 while preserving P3, producing 250 subject to reference checks and owner approval.

Stage A: confirm point and objects. B: recover into a review schema with controlled import. C: compare rows, metadata and dependencies.

D: perform approved reconciliation and validate 250 and all three references. A historical copy does not automatically provide that merge. This is a tabletop case; this expansion executed no RECOVER TABLE, TSPITR or Flashback.

SYNTHETIC EXERCISE
10:14 P1=120; P2=80; total=200
10:15 P2=800 (error)
10:20 P3=50 (valid); current total=970
Historical target 10:14: P1=120; P2=80; total=200
Proposal requiring approval: P1=120; P2=80; P3=50; total=250
A confirm point/objects
B recover into review area
C compare data/metadata/dependencies
D reconcile and validate references/totals
IN PRACTICE

Error at 01:10, discovered at 01:40: discovery time alone does not identify a point before the error.

Common pitfalls

PITR without reconciliation; EXPIRED as age; channels as capacity; clone with active production jobs.

Related topics: Containers, services, and resources · PDB lifecycle and isolation · Backup and recovery evidence

Take this idea with you

Recover the necessary scope and separately validate historical state, metadata and business reconciliation.

Create account

References

Oracle® is a registered trademark of Oracle and/or its affiliates. bigsavant.com is an independent preparation platform and is not affiliated with, associated with, sponsored, authorised or endorsed by Oracle. Content and questions are original, are not official exam questions, and completing our tests does not award or guarantee any certification. Names are used only to identify the subject. All other trademarks belong to their respective owners.