

Eclipsys has helped McMaster University maximize its investment in the Oracle Exadata Cloud@Customer solution. Read the story here








AI is changing how we work with databases. Tasks that used to trip up even experienced engineers can now be planned, validated, and automated. For database professionals and architects, that’s a real chance to level up.
I don’t want to keep working the way I used to. The longer I’ve spent in the Oracle space, the more I’ve wanted to bring AI into how I actually do the job, not just talk about it. Database upgrades and migrations are a big part of that. They take hours of manual, repetitive work, and many of the steps are the same every time. So I started asking myself: why not build a low-cost, automated approach around the repetitive parts?
There’s another reason this matters now. To use Oracle’s AI features fully, your databases need to be on 26ai. For mission-critical systems, that upgrade has to happen with as little downtime as possible. If you’ve spent any time supporting production databases, you know how hard it is to get a downtime window approved.
That’s what led me to Oracle AutoUpgrade. It’s a surprisingly powerful utility, and once you dig in, you realize it does much more than “upgrade a database.” Here’s what it brings to the table:
Automated pre- and post-upgrade checks and fixups. You no longer chase readiness issues by hand.
Support for single-instance, RAC and Data Guard environments.
PDB awareness. This includes out-of-place patching and moving PDBs through refreshable clones with minimal downtime.
Analyze mode. You see exactly what it will do before you commit to anything.
Fleet-scale execution. You can upgrade or patch many databases from a single config file.
Automatic fallback. It uses a guaranteed restore point if something doesn’t go as planned.
TDE awareness. It handles keystore and wallet requirements for encrypted databases.
Once I saw what AutoUpgrade could do, the next question was obvious: could I combine it with refreshable PDB clones to make PDB upgrades even less hands-on? This blog walks through exactly that. The next question was obvious: could I combine it with a refreshable pluggable clone approach to make PDB upgrades even less hands-on? That’s what this blog walks through.
In this example, I’m upgrading one pluggable database, HR_PDB, from a 19c container database into a 26ai CDB. Everything else in the source container stays on 19c for now. Only this PDB moves.
The target 26ai CDB connects back to the source through a database link called HR_CLONE, and I like this approach for a few reasons.
Everything moves over the network. The initial copy of the PDB goes across the link, and so does every change after it. There are no backup pieces to copy between servers and no files to stage by hand.
The clone stays in sync. AutoUpgrade builds a refreshable clone of HR_PDB in the target CDB. It keeps applying redo from the source, so the copy stays current while users keep working on 19c.
Downtime stays small. The slow part, copying the datafiles, happens while production is still running. When the window opens, only a final refresh and the upgrade are left to do.
Deploy, let the clone sync, then cut over when you’re ready.
Prepare the target CDB so it knows where to put the new datafiles.
Create and test the database link to the source PDB.
Build the AutoUpgrade config file.
Load the TDE keystore passwords.
Run AutoUpgrade in analyze mode.
Before I can create the link, the source side needs a user to connect as. I create a local user called dblinkuser inside HR_PDB and give it only what the clone needs:
CREATE SESSION so it can log in
CREATE PLUGGABLE DATABASE, which a remote clone requires
SELECT_CATALOG_ROLE so AutoUpgrade can read the dictionary views during its prechecks
SYS.ENC$ holds the TDE encryption key metadata for encrypted tablespaces/PDBs. When cloning a TDE-encrypted PDB over a database link (like your refreshable clone), the link user needs read access to it so the clone can pull that key info and set up encryption on the target – without it, the clone fails.
alter session set container=HR_PDB;create user dblinkuser identified by "Welcome123##";grant create session, create pluggable database,select_catalog_role to dblinkuser;grant read on sys.enc$ to dblinkuser; |
Before AutoUpgrade copies the HR PDB into the 26ai container, the target CDB needs to know where to put the new datafiles. There are two ways to set this up.
Option 1: Enable Oracle Managed Files (OMF). This is my preferred option.
If db_create_file_dest is set on the target CDB, Oracle handles file naming and placement for you:
alter system set db_create_file_dest='/u02/oradata' scope=both; |
This is the cleaner approach. With nothing to map by hand, there’s less to go wrong during the upgrade window.
Option 2: Use file_name_convert in the AutoUpgrade config.
If your standards don’t allow OMF, you can map the source paths to the target paths yourself in the config file:
upg1.target_pdb_copy_option.HR=file_name_convert=('/u01/oradata/ORCL19C/HR/','/u02/oradata/ORCLCDB/HR_PDB26/') |
The source path has to match exactly where the HR datafiles live today. You can confirm it with SELECT name FROM v$datafile; inside the source PDB.
Next, create a database link from the target CDB back to the source. AutoUpgrade uses this link to pull the PDB across.
Point the link at the HR PDB service, not the CDB root. This is a common mistake. If the link lands in the root, the clone either fails or copies the wrong container.
create database link hr_clone connect to dblinkuser identified by <password> using 'hr_pdb'; |
The dblinkuser account in the source PDB needs CREATE SESSION and CREATE PLUGGABLE DATABASE for the remote clone to work.
Validate the link.
select name from v$database@hr_clone; |
If this query returns a row, the link works. Keep in mind that v$database always returns the CDB name (ORCL19C), even when you’re connected to a PDB. To confirm the link actually lands in the HR PDB, run this as well:
SELECT sys_context('USERENV','CON_NAME') FROM dual@hr_clone; |
It should return HR_PDB. If it returns CDB$ROOT, fix the hr_pdb TNS entry so it uses the PDB service name.
Get the latest AutoUpgrade.
Always download the latest AutoUpgrade release before you start. Oracle ships fixes and new checks all the time, and the version bundled with the 26ai home is usually out of date. You can download it from MOS Doc ID 2485457.1 or directly from https://download.oracle.com/otn-pub/otn_software/autoupgrade.jar, then check which version you have:
java -jar autoupgrade_26.5.260807.jar -version |
Set up a dedicated working folder.
I give every upgrade its own folder. Logs, the keystore and the config for one upgrade stay together and never mix with another project’s:
mkdir -p /u01/Stage/autoupgrade/UPGRADE26_HR/{hr_pdb26,keystore}cd /u01/Stage/autoupgrade/UPGRADE26_HR |
The config file:
global.global_log_dir=/u01/Stage/autoupgrade/UPGRADE26_HR/hr_pdb26global.keystore=/u01/Stage/autoupgrade/UPGRADE26_HR/keystoreupg1.source_home=/u01/app/oracle/product/19.0.0/dbhome_1upg1.target_home=/u01/app/oracle/product/26.0.0/dbhome_1upg1.sid=ORCL19Cupg1.pdbs=HR_PDBupg1.target_cdb=ORCLCDBupg1.source_dblink.HR_PDB=HR_CLONE 1800upg1.target_pdb_name.HR_PDB=HR_PDBupg1.target_pdb_copy_option.HR_PDB=file_name_convert=NONEupg1.parallel_pdb_creation_clause.HR_PDB=4upg1.start_time=19/01/2038 03:14:07upg1.drop_dblink=no |
Both the source and target CDBs use TDE, so AutoUpgrade needs the keystore passwords for each one. It needs the source password to read the encrypted HR PDB, and the target password to import the encryption keys into the 26ai container. If they’re missing, the job stops partway through and waits for someone to type a password, which you don’t want in the middle of a downtime window.
AutoUpgrade has its own secure keystore for this. You load it once, before the upgrade, with -load_password.
java -jar autoupgrade.jar -config hr_pdb26.cfg -load_password |
The first time you run it, AutoUpgrade asks you to create a password for its own keystore. This keystore is written to the global.keystore location from the config file. After that, you’re taken to the TDE> prompt:
TDE> add ORCL19C # source CDB keystore passwordTDE> add ORCLCDB # target CDB keystore passwordTDE> list # confirm both entries are thereTDE> save # answer YES to create an auto-login keystoreTDE> exit |
Sample output:
[oracle@db-pri UPGRADE26_HR]$ java -jar autoupgrade_26.5.260807.jar -config hr_pdb26.cfg -load_passwordProcessing config file ...Starting AutoUpgrade Password Loader - Type help for available optionsCreating new AutoUpgrade keystore - Password requiredEnter password:Enter password again:AutoUpgrade keystore was successfully createdTDE> add ORCL19CEnter your secret/Password:Re-enter your secret/Password:TDE> add ORCLCDBEnter your secret/Password:Re-enter your secret/Password:TDE> list+----------+---------------+-----------------------+------------+------------------+|ORACLE_SID|Action Required| TDE Password| SEPS Status|Active Wallet Type|+----------+---------------+-----------------------+------------+------------------+| ORCL19C| |Keystore file not found|Not required| Open|| ORCLCDB| | Verified| Inactive| Any|+----------+---------------+-----------------------+------------+------------------+TDE> saveInvalid input - Select auto-login mode for the AutoUpgrade keystore [YES|NO|SHARED]: YESTDE>TDE> |
Before making any changes to the database, I always start with analyze mode. It runs every pre-upgrade check against the source database and reports anything that needs fixing, without changing anything. You can run it as many times as you like during business hours.
In this case, the source is the HR pluggable database in the ORCL19C container (19.32), and the target is Oracle AI Database 26ai (23.26.1).
From the staging directory, run AutoUpgrade with the config file and -mode analyze:
java -jar autoupgrade.jar -config hr_pdb26.cfg -mode analyze |
Sample output:
[oracle@db-pri UPGRADE26_HR]$ java -jar autoupgrade_26.5.260807.jar -config hr_pdb26.cfg -mode analyzeAutoUpgrade 26.5.260807 launched with default internal optionsProcessing config file ...Loading AutoUpgrade keystoreAutoUpgrade keystore is loaded+--------------------------------+| Starting AutoUpgrade execution |+--------------------------------+1 PDB(s) will be analyzedType 'help' to list console commandsupg> lsj -a 20+----+-------+---------+---------+-------+-------------+-------+----------------------------+|Job#|DB_NAME| STAGE|OPERATION| STATUS| START_TIME|UPDATED| MESSAGE|+----+-------+---------+---------+-------+-------------+-------+----------------------------+| 101|ORCL19C|PRECHECKS|EXECUTING|RUNNING|Jan.-19 03:14| 6s ago|Loading database information|+----+-------+---------+---------+-------+-------------+-------+----------------------------+Total jobs 1The command lsj is running every 20 seconds. PRESS ENTER TO EXIT+----+-------+---------+---------+-------+-------------+-------+----------------+|Job#|DB_NAME| STAGE|OPERATION| STATUS| START_TIME|UPDATED| MESSAGE|+----+-------+---------+---------+-------+-------------+-------+----------------+| 101|ORCL19C|PRECHECKS|EXECUTING|RUNNING|Jan.-19 03:14| 0s ago|Executing Checks|+----+-------+---------+---------+-------+-------------+-------+----------------+Total jobs 1The command lsj is running every 20 seconds. PRESS ENTER TO EXIT+----+-------+---------+---------+-------+-------------+-------+----------------+|Job#|DB_NAME| STAGE|OPERATION| STATUS| START_TIME|UPDATED| MESSAGE|+----+-------+---------+---------+-------+-------------+-------+----------------+| 101|ORCL19C|PRECHECKS|EXECUTING|RUNNING|Jan.-19 03:14| 3s ago|Executing Checks|+----+-------+---------+---------+-------+-------------+-------+----------------+Total jobs 1The command lsj is running every 20 seconds. PRESS ENTER TO EXITJob 101 completed------------------- Final Summary --------------------Number of databases [ 1 ]Jobs finished [1]Jobs failed [0]Please check the summary report at:/u01/Stage/autoupgrade/UPGRADE26_HR/hr_pdb26/cfgtoollogs/upgrade/auto/status/status.html/u01/Stage/autoupgrade/UPGRADE26_HR/hr_pdb26/cfgtoollogs/upgrade/auto/status/status.log[oracle@db-pri UPGRADE26_HR]$ cat /u01/Stage/autoupgrade/UPGRADE26_HR/hr_pdb26/cfgtoollogs/upgrade/auto/status/status.log========================================== Autoupgrade Summary Report==========================================[Date] Wed Sep 23 11:58:31 EDT 2026[Number of Jobs] 1==========================================[Job ID] 101==========================================[DB Name] ORCL19C[Version Before Upgrade] 19.32.0.0.0[Version After Upgrade] 23.26.1.0.0------------------------------------------[Stage Name] PRECHECKS[Status] SUCCESS[Start Time] 2026-09-23 11:57:42[Duration] 0:00:48[Log Directory] /u01/Stage/autoupgrade/UPGRADE26_HR/hr_pdb26/ORCL19C/101/prechecks[Detail] /u01/Stage/autoupgrade/UPGRADE26_HR/hr_pdb26/ORCL19C/101/prechecks/orcl19c_preupgrade.log Check passed and no manual intervention needed------------------------------------------[oracle@db-pri UPGRADE26_HR]$ |
Now execute the deploy; this step creates a PDB in the target environment.
java -jar autoupgrade.jar -config hr_pdb26.cfg -mode deploy |
Note: AutoUpgrade creates HR_PDB in ORCLCDB as a refreshable clone. The job then waits for start_time. Leave this console session open.
Sample output:
[oracle@db-pri UPGRADE26_HR]$ java -jar autoupgrade_26.5.260807.jar -config hr_pdb26.cfg -mode deployAutoUpgrade 26.5.260807 launched with default internal optionsProcessing config file ...Loading AutoUpgrade keystoreAutoUpgrade keystore is loaded+--------------------------------+| Starting AutoUpgrade execution |+--------------------------------+1 PDB(s) will be processedType 'help' to list console commandsupg> Copying remote database 'HR_PDB' as 'HR_PDB' for job 103Remote database 'HR_PDB' created as PDB 'HR_PDB' for job 103upg> lsj -a 20+----+-------+----------+---------+-------+-------------+-------+---------------------------+|Job#|DB_NAME| STAGE|OPERATION| STATUS| START_TIME|UPDATED| MESSAGE|+----+-------+----------+---------+-------+-------------+-------+---------------------------+| 103|ORCL19C|REFRESHPDB|EXECUTING|RUNNING|Jan.-19 03:14| 0s ago|Starts in 5,953,926 minutes|+----+-------+----------+---------+-------+-------------+-------+---------------------------+Total jobs 1 |
Check the clone on the target:
[oracle@db-pri ~]$ sqlplus / as sysdbaSQL*Plus: Release 23.26.1.0.0 - Production on Thu Sep 24 11:07:04 2026Version 23.26.1.0.0Copyright (c) 1982, 2025, Oracle. All rights reserved.Connected to:Oracle AI Database 26ai Enterprise Edition Release 23.26.1.0.0 - ProductionVersion 23.26.1.0.0SQL> show pdbs CON_ID CON_NAME OPEN MODE RESTRICTED---------- ------------------------------ ---------- ---------- 2 PDB$SEED READ ONLY NO 3 ORCLPDB1 MOUNTED 4 FIN_PDB26 MOUNTED 5 HR_PDB MOUNTEDSQL> |
Refresh status:
1 select pdb_name, status, refresh_mode, refresh_interval, last_refresh_scn 2* from dba_pdbs where pdb_name = 'HR_PDB'SQL> /PDB_NAME STATUS REFRES REFRESH_INTERVAL LAST_REFRESH_SCN---------- ---------- ------ ---------------- ----------------HR_PDB REFRESHING MANUAL 15771445SQL> |
Note: For this testing, I will add a user called HR and add a timestamp to validate.
On the source: add a marker row.
alter session set container=HR_PDB;create table hr.refresh_test (id number, note varchar2(50), ts timestamp default systimestamp);insert into hr.refresh_test (id, note) values (1, 'refresh 1');commit; |
On Target: Force Refresh
alter session set container=HR_PDB;alter pluggable database refresh; |
Sample output:
|
|
On the source:
|
|
On the source:
insert into hr.refresh_test (id, note) values (3, 'refresh 3 - auto');commit; |
Start the cutover from the AutoUpgrade console:
To log in, run: java -jar autoupgrade_26.5.260807.jar -config hr_pdb26.cfg -mode deploy.
upg> proceed -job 103 |
AutoUpgrade then does four things:
Runs a final refresh
Turns off refresh mode
Upgrades HR_PDB to 26ai
Runs the post-upgrade fixups
Sample output:
Upgrade Steps:

Validate that all data moved to the target.
SQL> l 1* select * from hr.refresh_test order by idSQL> / ID NOTE TS--- ------------------------- ------------------------------ 1 refresh 1 24-SEP-26 11.18.59.254741 AM 2 refresh 2 24-SEP-26 11.26.24.375131 AM 99 final before cutover 24-SEP-26 11.26.35.522607 AMSQL> |
Validate registry.
SQL> select comp_id, version, status from dba_registry;COMP_ID VERSION STATUS--------------- ------------------------------ -----------CATALOG 23.0.0.0.0 VALIDCATPROC 23.0.0.0.0 VALIDRAC 23.0.0.0.0 OPTION OFFJAVAVM 23.0.0.0.0 VALIDXML 23.0.0.0.0 VALIDCATJAVA 23.0.0.0.0 VALIDAPS 23.0.0.0.0 VALIDXDB 23.0.0.0.0 VALIDOWM 23.0.0.0.0 VALIDCONTEXT 23.0.0.0.0 VALIDSDO 23.0.0.0.0 VALIDXOQ 23.0.0.0.0 VALIDOLS 23.0.0.0.0 VALIDDV 23.0.0.0.0 VALID14 rows selected. |
Upgrades are a normal part of a DBA’s work. At the moment, many customers want to move to 26ai and try what it offers, and the first thing they usually ask is how to get there with as little downtime as possible.
Pairing AutoUpgrade with a refreshable PDB clone answers that question well. The PDB is copied and kept in sync while production is still running. TDE keys are handled through AutoUpgrade’s keystore. The cutover happens when you decide, not when a script decides. By the time the downtime window opens, most of the work is already done.
A lot of what we used to do by hand is now automated by AutoUpgrade: the prechecks, the fixups, the clone, the refresh and the upgrade itself. That leaves more time for planning, testing and validating the application, which is where a DBA’s attention should go.
If you’re planning a move to 26ai, start with a single PDB like this one, run analyze mode early, and let the clone do the heavy lifting.
For more information, check out our Oracle Database Services, or contact us today, and one of our experts will be in touch.
