nerdexam
Oracle

1Z0-052 · Question #252

In your database, you may be forced to perform a recovery using the RESETLOGS option during which the redo logs would be reset to sequence number 1. You want to avoid the overwriting of old log…

The correct answer is F. arch_%t_%s_%r.arc. Including the resetlogs identifier (%r) in the archive log filename format guarantees filenames remain unique across RESETLOGS operations, preventing new sequence-1 logs from overwriting previously archived logs.

Performing Backup and Recovery

Question

In your database, you may be forced to perform a recovery using the RESETLOGS option during which the redo logs would be reset to sequence number 1. You want to avoid the overwriting of old log files. Which archived log file name format ensures this?

Options

  • A%t_%s.dbf
  • Barch_%t.arc
  • Carch_%d.arc
  • Darch_%t_%d.arc
  • Earch_%d_%s_.dbf
  • Farch_%t_%s_%r.arc

How the community answered

(22 responses)
  • A
    5% (1)
  • B
    5% (1)
  • E
    14% (3)
  • F
    77% (17)

Why each option

Including the resetlogs identifier (%r) in the archive log filename format guarantees filenames remain unique across RESETLOGS operations, preventing new sequence-1 logs from overwriting previously archived logs.

A%t_%s.dbf

The format %t_%s.dbf includes thread and sequence but omits the resetlogs ID, so after RESETLOGS a new sequence-1 archive log would overwrite the old sequence-1 archive log.

Barch_%t.arc

The format arch_%t.arc includes only the thread number with no sequence or resetlogs ID, producing the same filename for every log switch and causing constant overwriting.

Carch_%d.arc

The format arch_%d.arc uses only the static DBID, which never changes, so every archived log generated would share an identical filename.

Darch_%t_%d.arc

The format arch_%t_%d.arc combines thread and DBID but omits the sequence number, so multiple archive logs within a single incarnation collide on the same filename.

Earch_%d_%s_.dbf

The format arch_%d_%s_.dbf includes DBID and sequence but lacks %r, so after RESETLOGS the restarted sequence numbers produce filenames that collide with those from the previous incarnation.

Farch_%t_%s_%r.arcCorrect

The format arch_%t_%s_%r.arc combines thread number (%t), log sequence number (%s), and the resetlogs incarnation identifier (%r). After a RESETLOGS operation the sequence number resets to 1, but the resetlogs ID changes to a new value, so every filename produced in the new incarnation is distinct from any filename produced in a prior incarnation. This guarantees no old archived log file is ever overwritten, regardless of how many RESETLOGS operations occur.

Concept tested: Oracle archive log naming with resetlogs identifier %r

Source: https://docs.oracle.com/en/database/oracle/oracle-database/19/bradv/configuring-rman-client-basic.html

Topics

#archived log naming#RESETLOGS#archive format parameters#log sequence reset

Community Discussion

No community discussion yet for this question.

Full 1Z0-052 Practice