exam questions

Exam 1z0-082 All Questions

View all questions & answers for the 1z0-082 exam

Exam 1z0-082 topic 1 question 28 discussion

Actual exam question from Oracle's 1z0-082
Question #: 28
Topic #: 1
[All 1z0-082 Questions]

Your database instance is started with a PFILE.
Examine these parameters:

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;
What is the outcome?

  • A. The value is changed only in the PFILE and takes effect at the next instance startup
  • B. The value is changed for the current instance and in the PFILE
  • C. It fails because the SCOPE clause is missing
  • D. Change is applied to the current instance, but does not persist after instance restart
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
adoptc94
Highly Voted 3 years, 10 months ago
Correct Answer: D, the change is applied in memory only, the change does not persist as the database can't write to the pfile The default SCOPE option, when you start the instance using a PFILE, is MEMORY (as well as the only scope option you can use with a pfile). If scope is omitted the default scope option is used instead. The SCOPE clause is optional and not mandatory when changing the value of a parameter! A is wrong, as the pfile is a read only file for the database so it can't write to it. Changes to the pfile have to be done manually by changing it directly using f.e. vi on unix systems. B is wrong, same reason as for why answer A is wrong C is wrong, as mentioned above, when omitted the scope clause defaults to MEMORY when using a pfile. Not related to that question but the more you know: When starting the database using a spfile you have three options for the scope (MEMORY, SPFILE and BOTH). Default value is BOTH.
upvoted 23 times
Ekos
3 years, 7 months ago
yes, agree. D is the correct answer
upvoted 1 times
...
...
antonica
Most Recent 4 months ago
Sorry corect is a. I tested. And If you started your instance with a server parameter file, you can use the ALTER SYSTEM command to change the values of the initialization parameters in the server parameter file. Specify the SCOPE=SPFILE option to change the values in the server parameter file only. Specify SCOPE=BOTH to change values in memory and in the server parameter file. This option is valid only for dynamic parameters. SCOPE=BOTH is the default if the instance has been started with a server parameter file.
upvoted 1 times
...
nautil2
10 months ago
Selected Answer: D
A - FALSE; DB_CACHE_SIZE is a dynamic parameter, its change is applied immediately to the instance B - FALSE; when starting db instance with PFILE, no parameter changes can be written to PFILE C - FALSE; for dynamic parameters and starting db instance with PFILE, SCOPE=MEMORY is a default /implicit option, so it can be omitted. Change is applied to current instance. D - TRUE; see C
upvoted 1 times
...
musafir
12 months ago
Selected Answer: D
D is correct since it's PFILE If a server parameter file (spfile) was used to start up the database, then BOTH is the default. If a parameter file (pfile) was used to start up the database, then MEMORY is the default, as well as the only scope you can specify. https://docs.oracle.com/en/database/oracle/oracle-database/19/sqlrf/ALTER-SYSTEM.html#GUID-2C638517-D73A-41CA-9D8E-A62D1A0B7ADB
upvoted 1 times
...
auwia
1 year ago
Selected Answer: B
When you execute the "ALTER SYSTEM" command to modify a parameter, the default behavior is to change the value for the current instance and also update the value in the server parameter file (in this case: PFILE) to make it persistent across instance restarts.
upvoted 1 times
auwia
1 year ago
I was wrong, correct answer is D.
upvoted 1 times
...
...
canijho
1 year, 4 months ago
All answer are wrong. Tested: a) The change is applied immediately. Database cannot write into the PFILE (init.ora). b) Database cannot write into the PFILE (init.ora). c) It does not fail: SQL> ALTER SYSTEM SET DB_CACHE_SIZE=1024M; System altered. Mon Feb 27 13:01:09 2023 ALTER SYSTEM SET db_cache_size=1024M SCOPE=BOTH; SQL> show parameter db_cache_size NAME TYPE VALUE ------------------------------------ ----------- ------------------------------ db_cache_size big integer 1G d) Default SCOPE option is BOTH (as shown in the alert.log). The change persist after instance restart (validated).
upvoted 1 times
canijho
1 year, 4 months ago
Correct answer should be B regarding SPFILE, but not PFILE.
upvoted 1 times
...
...
raferen10
1 year, 7 months ago
Selected Answer: D
Spfile (server parameter file)-> default scope both Pfile(texto parameter file) -> default scope memory (and only avalable). Database can't write un text parameter file.
upvoted 1 times
...
Juv07
1 year, 7 months ago
Selected Answer: D
right answer : D
upvoted 1 times
...
Xhost
2 years ago
Selected Answer: B
The right answer is B! Default is SCOPE=BOTH
upvoted 2 times
...
Franky_T
2 years, 2 months ago
Selected Answer: D
A is wrong. PFILES are static and any changes made to the system does not update the text (p)file. B is wrong. Issue as with point A. C is wrong. Statement without the scope parameter does not fail. Easy to test. D is correct. PFILE based instances change parameters by default happen in memory and as with points A and B, will not modify the PFILE.
upvoted 2 times
...
ryuah
2 years, 6 months ago
D is correct
upvoted 1 times
...
brolem
2 years, 10 months ago
Per adoptc94's final notes, in 19c "When starting the database using a spfile you have three options for the scope (MEMORY, SPFILE and BOTH). Default value is BOTH.". As the default is both, when SCOPE is not used, the change will be applied to both MEMORY and the SPFILE.
upvoted 3 times
dirk1
2 years, 8 months ago
Yes, the default is SCOPE=BOTH if a server parameter file was used to start up the instance, and the default is MEMORY if a text initialization parameter file was used to start up the instance.
upvoted 1 times
...
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago