Oracle Database 12c: Advanced Administration — Question 123
You are administering a multitenant container database (COB) that contains two pluggable databases (PDBs), pdb1 and pdb2. You are connected to pdb2 as a common user with DBA privileges.
The statistics_level parameter is PDB modifiable.
As the user sys, execute the following command on pdb2:
SQL> ALTER SYSTEM SET STATISTICS_LEVEL=ALL SID='*' SCOPE=SPFILE;
Which statement is true about the result of this command?
Answer options
- A. The statistics_level parameter is set to all when any of the PDBs is reopened.
- B. The statistics_level parameter is set to all only for PDB2 when it is reopened.
- C. The statistics_level parameter is set to all when the root database is restarted.
- D. The statement is ignored because there is no SPFILE for a PDB.
Correct answer: B
Explanation
The correct answer is B because the command modifies the statistics_level parameter for pdb2 specifically, and this change will take effect when pdb2 is reopened. Option A is incorrect as it suggests the change applies to all PDBs, which is not the case. Option C is wrong since the change is specific to pdb2 and does not affect the root database. Option D is incorrect as the command executes successfully, even though the SPFILE concept applies differently within a PDB context.