QuestionQ80

VerifiedUpgrade the Oracle Database

Consider the following setup:

  1. CDB1 is an Oracle Database 12c Release 2 database that contains the pluggable databases PDB$SEED, PDB1, and PDB2.
  2. PDB$SEED is open in READ ONLY mode.
  3. PDB1 is open in READ WRITE mode.
  4. PDB2 is in MOUNTED state.
  5. ORACLE_HOME is set to /u01/app/oracle/product/18.1.0/dbhome_1.

You run the following commands prior to upgrading the database to the current release:

Question Image

For which databases will fixup scripts be generated?

Explanation

preupgrade.jar analyzes the CDB root plus any pluggable databases that are currently open (READ WRITE or READ ONLY), because it must run SQL queries against each container to determine what fixups are needed. PDB2 is only MOUNTED, so it cannot be queried and is excluded from analysis, meaning no fixup script is produced for it. CDB1, PDB$SEED (open READ ONLY), and PDB1 (open READ WRITE) are all accessible and therefore each receive a fixup script.

Community Discussion

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