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.
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
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)- A72% (26)
- B3% (1)
- C17% (6)
- D8% (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.
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.
The `ALTER SYSTEM SET` command does not modify the PFILE; it only changes the parameter in memory for the current instance.
While the value is changed for the current instance, it is not written to the PFILE when a PFILE is in use.
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
Community Discussion
No community discussion yet for this question.
