As many of you already know, Refreshable Clone PDBs are a great option for this scenario—and one of my favorites. One customer used this approach with a 70 TB database and had just 45 minutes of downtime.
Today, I’d like to show you another option that I also recommend to customers. This approach uses a physical standby(Data Guard): we perform a switchover, upgrade to 26ai, and then convert the database to a PDB.
It also works if you already have an on-premises 19c CDB.
I’ll do everything manually, but you may want to consider using ZDM if you’d like to automate the process.
You can use this technique to migrate to Oracle Exadata Database Service on Dedicated Infrastructure, Oracle Exadata Database Service on Cloud@Customer, Oracle Base Database Service, or another on-premises environment. Also works for MultiCloud.
There are several ways to configure a physical standby, and I recommend reviewing the MAA best practices. For this test, I’ll use a simple approach to demonstrate how it works.
Here is my on-premises Oracle Database 19c running on Linux x86-64:

I have both 19c and 26ai Oracle homes on my target server:

Let’s build the Data Guard.
Here you can find a good step-by-step from Tim Hall.

The duplicate was successful:

I configured the broker, and as you can see, the databases are in sync:

You can also do everything manually, but I recommend using the broker to make things easier.
Once the downtime begins, we will perform a database switchover. The database in the cloud will become the primary database.

The database on the target server in the cloud is now the primary database:

At this point, we have two options:
- If you want to keep your database on 19c, you can use AutoUpgrade to plug the non-CDB into a 19c CDB created through the console.
- You can upgrade to 26ai and convert the database to a PDB. I’ll show you how this option works.
Remember to always download the latest version of AutoUpgrade:
wget https://download.oracle.com/otn-pub/otn_software/autoupgrade.jar
Let’s create an AutoUpgrade configuration file:
global.global_log_dir=/home/oracle/autoupgrade/log
upg1.sid=ORCL19C
upg1.log_dir=/home/oracle/autoupgrade/log/ORCL19C_Upgrade
upg1.source_home=/u01/app/oracle/product/19.0.0/dbhome_1
upg1.target_home=/u01/app/oracle/product/23.0.0/dbhome_1
upg1.target_cdb=ORCL
upg1.target_pdb_name=ORCL19C
If you need help building your configuration file, you can use AutoUpgrade Composer or ALIS.
Let’s run AutoUpgrade in analyze mode to make sure everything is fine:
java -jar autoupgrade.jar -config upgr.cfg -mode analyze

We’re ready to run AutoUpgrade in deploy mode to upgrade the database from 19c to 26ai and convert it to a PDB:
java -jar autoupgrade.jar -config upgr.cfg -mode deploy



The database 19c has now been upgraded to 26ai and plugged into the 26ai container:

And the PDB is now visible trough the console:

You can now encrypt the tablespaces in the new PDB.
If you already have TDE configured for your on-premises databases, you just need to provide the TDE password to AutoUpgrade.
In this test, the switchover took 2 minutes, the upgrade to 26ai took 20 minutes, and the PDB conversion took 15 minutes.
