QuestionQ155

VerifiedManage Multitenant Architecture

One of your container databases (CDBs) contains five pluggable databases (PDBs).

COMMON_USER_PREFIX -

These commands executed successfully while connected as SYS to CDB$ROOT:

SQL> CREATE USER c##dba_admin IDENTIFIED BY orcl123;  
SQL> CREATE ROLE c##role1 CONTAINER=ALL;  
SQL> GRANT CREATE VIEW TO c##role1 CONTAINER=ALL;  
SQL> GRANT c##role1 TO c##dba_admin CONTAINER=ALL;  
SQL> GRANT c##role1 to system CONTAINER=ALL;  

Which three statements are true?

Choose three
Explanation

A common role and privileges granted to it with CONTAINER=ALL apply in all existing and future PDBs. Granting that common role commonly to C##DBA_ADMIN enables the user to use its CREATE VIEW privilege in every PDB. SYSTEM is granted the DBA role by default, and the DBA role contains the relevant system privileges; SYSTEM also receives C##ROLE1 commonly, which independently supplies CREATE VIEW in every PDB. A common role can also receive local privileges that apply only in a specific PDB, so its privileges are not necessarily the same in every PDB.

Learn more

Community Discussion

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