QuestionQ10

VerifiedUsing General Overall Database Enhancements

Examine the following configuration:

  1. CDB1 is a container database.
  2. COMMON_USER_PREFIX is set to an empty string.
  3. PDB1 is a pluggable database within CDB1.
  4. APP1_ROOT is an application container within CDB1.
  5. APP1_PDB1 is an application PDB in APP1_ROOT.

You run these commands:

$ sqlplus sys/oracle@localhost:1521/cdb1 as sysdba  
SQL> CREATE ROLE role1 CONTAINER=CURRENT;  

What is true?

Explanation

CONTAINER=CURRENT specifies creation of a local role. A local role can be created only while connected to the target PDB; it cannot be created in CDB$ROOT. An empty COMMON_USER_PREFIX affects common-role naming restrictions but does not change this container requirement.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!