1Z0-062 · Question #217
Your database is running in NOARCHIVING mode. Examine the following parameters: You execute the following command after performing a STARTUP MOUNT: SQL> ALTER DATABASE ARCHIVELOG; Which statement is…
The correct answer is C. It fails and returns an error about LOG_ARCHIVE_DEST not being set. When the parameters shown indicate no valid archive log destination is configured, Oracle cannot enable ARCHIVELOG mode and the ALTER DATABASE ARCHIVELOG command fails with an error.
Question
Your database is running in NOARCHIVING mode. Examine the following parameters:
You execute the following command after performing a STARTUP MOUNT:
SQL> ALTER DATABASE ARCHIVELOG; Which statement is true about the execution of the command?
Options
- AIt executes successfully and sets the Fast Recovery Area as the local archive destination.
- BIt executes successfully and issues a warning to set LOG_ARCHIVE_DEST while opening the
- CIt fails and returns an error about LOG_ARCHIVE_DEST not being set.
- DIt executes successfully and sets $ORACLE_HOME/dbs as the default archive destination.
How the community answered
(24 responses)- A8% (2)
- B4% (1)
- C75% (18)
- D13% (3)
Why each option
When the parameters shown indicate no valid archive log destination is configured, Oracle cannot enable ARCHIVELOG mode and the ALTER DATABASE ARCHIVELOG command fails with an error.
The Fast Recovery Area is only used as an automatic archive destination when DB_RECOVERY_FILE_DEST is explicitly configured; if it is not set in the parameters shown, Oracle cannot fall back to it.
Oracle does not issue a warning and continue when enabling ARCHIVELOG mode without a valid destination; the command either succeeds or fails outright based on the archive destination configuration.
Based on the parameters examined, LOG_ARCHIVE_DEST and DB_RECOVERY_FILE_DEST are not set to valid destinations; Oracle requires at least one mandatory archive destination to be defined before it can switch to ARCHIVELOG mode, and without one it returns an ORA error rather than proceeding.
Oracle does not silently default to $ORACLE_HOME/dbs as the archive destination in this scenario; a valid LOG_ARCHIVE_DEST or DB_RECOVERY_FILE_DEST must be defined for the mode switch to succeed.
Concept tested: Enabling ARCHIVELOG mode with required archive destination parameters
Source: https://docs.oracle.com/en/database/oracle/oracle-database/19/admin/managing-archived-redo-log-files.html
Topics
Community Discussion
No community discussion yet for this question.