QuestionQ4

VerifiedUsing General Overall Database Enhancements

Examine this configuration:

  1. CDB1 is a container database.
  2. DEFAULT_SHARING is set to METADATA.
  3. APP_ROOT is an application root within CDB1.
  4. APP_PDB1 is an application PDB within APP_ROOT.
  5. COMPANYAPP is an application in APP_ROOT.
  6. EMP is a common table created in APP_ROOT and in all its application PDBs when version 1.0 of COMPANYAPP was installed.

You run these commands:

Question Image

What will be the result, and why?

Explanation

A metadata-linked common table has separate data in each container, while its metadata changes are propagated to application PDBs during synchronization. Adding SAL NUMBER NOT NULL without a default requires the table receiving the change to be empty; existing rows cannot be assigned a valid value for the mandatory column. Therefore, synchronization fails rather than adding NULL or zero values. Changing DEFAULT_SHARING later does not alter the sharing attribute of an existing common object.

Learn more

Community Discussion

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