Skip to content
Menu
Alex Zaballa – Oracle Tips and Guides
  • Home
  • About
Alex Zaballa – Oracle Tips and Guides
December 17, 2024February 20, 2025

Upgrade from 19c to 23ai using AutoUpgrade – Exadata Database Service on Dedicated Infrastructure (ExaDB-D) or Exadata Database Service on Cloud@Customer (ExaC@C) – Part 5 – Fallback options – target_pdb_copy_option

In case you missed the previous posts:

  • Part 1 – Refreshable Clone PDBs
  • Part 2 – Non-CDB 19c to 23ai PDB
  • Part 3 – 19c PDB to 23ai
  • Part 4 – Fallback options

In Part 3, I covered the process of performing a traditional upgrade from a 19c PDB to 23ai.
Now, I’ll demonstrate how to fallback from 23ai to 19c using AutoUpgrade with target_pdb_copy_option.
The only caveat with this technique is that it requires additional space to duplicate your PDB.

Let’s create an AutoUpgrade config file adding the parameter target_pdb_copy_option:

global.autoupg_log_dir=/u02/AutoUpgrade
global.keystore=/u02/keystore
upg1.source_home=/u02/app/oracle/product/19.0.0.0/dbhome_1
upg1.target_home=/u02/app/oracle/product/23.0.0.0/dbhome_1
upg1.sid=DB19c1
upg1.pdbs=PDBAZ
upg1.target_cdb=DB23ai1
upg1.target_pdb_copy_option=file_name_convert=NONE

file_name_convert=none means that the data files are copied and new OMF names are generated.

Let’s load the TDE encryption password for both databases:

java -jar autoupgrade.jar -config DB19c1.cfg -load_password

Let’s run the Analyze mode:

java -jar autoupgrade.jar -config DB19c1.cfg -mode analyze

As demonstrated, no manual steps are required for this test:

Let’s run the Deploy mode to start the migration:

java -jar autoupgrade.jar -config DB19c1.cfg -mode deploy

As shown below, the migration from 19c to 23ai was successful:

The PDB PDBAZ is now plugged into the 23ai CDB:

Fallback

If you encounter issues while testing the upgrade and need to revert to 19c, it will be straightforward since the original datafiles remain intact (target_pdb_copy_option).
Remember, if you make any changes to the data during testing, you will need to use OGG or Data Pump to sync it back to 19c.

java -jar autoupgrade.jar -config DB19c1.cfg -restore -jobs 101

The restore was successful, and the PDB is now back in the 19c database.:

Stay tuned for the next post.

Links to the Complete Blog Post Series on AutoUpgrade for ExaDB-D/ExaC@C:

  • Part 1 – Refreshable Clone PDBs
  • Part 2 – Non-CDB 19c to 23ai PDB
  • Part 3 – 19c PDB to 23ai
  • Part 4 – Fallback options
  • Part 5 – Target_pdb_copy_option
  • Part 6 – Create a 23ai Database with Compatible set to 19c
  • Part 7 – Downgrade
  • Part 8 – Moving to Multitenant Architecture
©2025 Alex Zaballa – Oracle Tips and Guides | Powered by WordPress and Superb Themes!