QuestionQ104

VerifiedUsing General Overall Database Enhancements

Examine the following configuration:

  1. CDB1 is a container database.
  2. APP1_ROOT is an application container within CDB1.
  3. APP1_ROOT$SEED is the application seed in APP1_ROOT and is synchronized with APP1_ROOT.
  4. APP1_PDB1 and APP1_PDB2 are application PDBs within APP1_ROOT.
  5. APP1_USER_APP is an application installed in APP1_ROOT at version 1.0.
  6. USER1 is a common user in APP1_ROOT and all of its application PDBs, created when version 1.0 of APP1_USER_APP was installed.

You run these commands:

$ sqlplus sys/oracle@localhost:1521/cdb1 as sysdba  
  
SQL> ALTER SESSION SET CONTAINER=app1_root;  
Session altered.  
  
SQL> ALTER PLUGGABLE DATABASE APPLICATION app1_user1_app BEGIN UPGRADE '1.0' TO '2.0';  
Pluggable database altered.  
  
SQL> GRANT CREATE SESSION TO USER1;  
Grant succeeded.  
  
SQL> ALTER PLUGGABLE DATABASE APPLICATION app1_user1_app END UPGRADE TO '2.0';  
Pluggable database altered.  
  
SQL> ALTER SESSION SET CONTAINER=app1_pdb1;  
Session altered.  
  
SQL> ALTER PLUGGABLE DATABASE APPLICATION app1_userl_app SYNC;  
Pluggable database altered.  

Which two statements are true?

Choose two
Explanation

An application common user is defined within the application container, not in the CDB root. An application upgrade changes the application root, and an application PDB receives those changes only when it is synchronized. Therefore, the CREATE SESSION grant permits USER1 to connect to APP1_ROOT and to the synchronized APP1_PDB1. USER1 remains defined in APP1_PDB2 because it was created with version 1.0, but APP1_PDB2 has not received the version 2.0 grant. An application seed must also be synchronized after an application upgrade to receive the upgrade changes.

Learn more

Community Discussion

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