QuestionQ84

VerifiedManage Multitenant Architecture

Review these commands, executed in the root container of a multitenant container database (CDB) that contains multiple pluggable databases (PDBs):

SQL> CREATE USER c##a_admin IDENTIFIED BY orcl123;  
SQL> CREATE ROLE c##role1 CONTAINER=ALL;  
SQL> GRANT CREATE VIEW TO C##roleI CONTAINER=ALL;  
SQL> GRANT c##role1 TO c##a_admin CONTAINER=ALL;  
SQL> REVOKE c##role1 FROM c##a_admin;  

What is the outcome of the revoke command?

Explanation

A role granted commonly with CONTAINER=ALL cannot be revoked using the default CONTAINER=CURRENT scope. Because omitting the CONTAINER clause on REVOKE defaults to CURRENT, the common role grant must instead be revoked with CONTAINER=ALL; otherwise the revoke fails.

Learn more

Community Discussion

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