nerdexam
Oracle

1Z0-062 · Question #321

Your database instance is started with a PFILE. You want to increase the size of the buffer cache. Free memory is available to increase the size of the buffer cache. You execute the command: SQL>…

The correct answer is A. Change is applied to the current instance, but does not persist after instance restart. This question assesses the understanding of how ALTER SYSTEM SET commands affect database parameters when the instance is started using a PFILE.

Managing the Database Instance

Question

Your database instance is started with a PFILE. You want to increase the size of the buffer cache. Free memory is available to increase the size of the buffer cache. You execute the command:

SQL> ALTER SYSTEM SET DB_CACHE_SIZE=1024M; Which is the outcome?

Exhibit

1Z0-062 question #321 exhibit

Options

  • AChange is applied to the current instance, but does not persist after instance restart.
  • BThe value is changed only in the PFILE and takes effect at the next instance startup.
  • CThe value is changed for the current instance and in the PFILE.
  • DIt fails because the SCOPE clause is missing.

How the community answered

(36 responses)
  • A
    72% (26)
  • B
    3% (1)
  • C
    17% (6)
  • D
    8% (3)

Why each option

This question assesses the understanding of how `ALTER SYSTEM SET` commands affect database parameters when the instance is started using a PFILE.

AChange is applied to the current instance, but does not persist after instance restart.Correct

When an Oracle database instance is started using a PFILE (parameter file), `ALTER SYSTEM SET` commands only modify the parameter value in the current running instance's memory. These changes are not written back to the PFILE, meaning they are temporary and will not persist after the database instance is restarted.

BThe value is changed only in the PFILE and takes effect at the next instance startup.

The `ALTER SYSTEM SET` command does not modify the PFILE; it only changes the parameter in memory for the current instance.

CThe value is changed for the current instance and in the PFILE.

While the value is changed for the current instance, it is not written to the PFILE when a PFILE is in use.

DIt fails because the SCOPE clause is missing.

The command `ALTER SYSTEM SET DB_CACHE_SIZE=1024M;` is syntactically valid and will execute successfully even without an explicit `SCOPE` clause, defaulting to `SCOPE=BOTH` (which is in-memory only for PFILE) or `SCOPE=MEMORY` for some parameters.

Concept tested: Oracle instance parameter modification with PFILE

Source: https://docs.oracle.com/en/database/oracle/oracle-database/19/sqlrf/ALTER-SYSTEM.html#GUID-26C78625-780C-4A73-A656-A8334469213B

Topics

#PFILE#SPFILE#Dynamic Parameter Changes#Buffer Cache

Community Discussion

No community discussion yet for this question.

Full 1Z0-062 Practice