Now that I’ve finished with Oracle AI World and the EMEA Community Tour is coming to a close, I have some free time on my hands. What better way to spend that time than to create webinars?
Webinar 26: Best Practices for Upgrading to Oracle AI Database 26ai
Webinar 27: Database Patching for DBAs – Patch smarter, not harder
Webinar 28: Patch smarter, not harder – MS Windows Special Edition
When and How
We’ll be airing the first webinar in December, and the other two will follow early next year.
Webinar
Date
Best Practices for Upgrading to Oracle AI Database 26ai
December 11 2025, 14:00 CET
Database Patching for DBAs – Patch smarter, not harder
February 12 2026, 14:00 CET
Patch smarter, not harder – MS Windows Special Edition
March 12 2026, 14:00 CET
All our webinars are free. Just sign up and we’ll send you the details.
Why
First of all, these webinars are all tech, no marketing!
You can learn how to tackle your next upgrade project to Oracle AI Database 26ai. Although it’s not yet available for all platforms, there are still important preparations that you should start today.
Furthermore, we’ll share how other customers have upgraded their mission-critical systems to the latest release and whether there are any secret underscores (spoiler: there is…).
Over the last year, we’ve made significant enhancements to AutoUpgrade that make it so much easier to patch your databases. After watching this webinar, you’ll never download patches from My Oracle Support again.
Oracle on Windows is slightly different – but don’t worry, AutoUpgrade got you covered. Use the latest enhancements to streamline your operations of Oracle AI Database on Windows.
See You
If you can’t wait, remember that you can watch all our previous webinars on demand.
At Oracle AI World, I spoke to a customer who used Data Pump as part of their CI/CD pipeline. Exporting and importing a 7 TB database took more than 36 hours.
Unloading and loading rows were generally just slow.
They were using NFS storage for the dump files.
I’ve seen far too many cases where misconfigured NFS caused slowness, so I suggested using ASM storage instead. At least, that could rule out NFS as the issue.
Here’s how to use Data Pump and ASM storage.
Export
It turned out that I already blogged about this topic. You can visit that for step-by-step instructions.
Move File
We now have a dump file on our source database. But we need to move it to the target host.
DBMS_FILE_TRANSFER
On the remote database:
I create a directory in ASM where I can store the dump file:
ASMCMD> create directory +DATA/DMPDIR
I create a user and grant privileges to connect. I’ll use this user to connect via a database link:
SQL> create user transportuser identified by ... ;
SQL> grant connect to transportuser;
I create a directory and allow my user to write to it:
SQL> create directory dmpdir as '+DATA/DMPDIR';
SQL> grant write on directory dmpdir to transportuser;
On the source database:
I create a user with the right privileges:
SQL> create user transportuser identified by ... ;
SQL> grant connect to transportuser;
SQL> grant create database link to transportuser;
SQL> grant read on directory myasmdir to transportuser;
SQL> grant execute on dbms_file_transfer to transportuser;
I connect as transportuser and create a database link to the remote database/PDB:
SQL> create database link transportlink
connect to transportuser identified by ...
using '<connect-string-to-remote-pdb>';
A closing remark:DBMS_FILE_TRANSFER is an effective means of copying the file. My wristwatch measurements show it’s slightly faster than using scp in the operating system.
ASMCMD
You could also transfer the file directly from one ASM instance to a remote one. Check out the cp command.
But I don’t recommend this approach, because you need the SYSDBA or SYSASM privilege to connect to asmcmd. Since the issue was related to a CI/CD pipeline, it’s a fully automated flow. If at all possible, I’d avoid using such a powerful privilege in my automation.
Import
Since we have the dump file on our target system, we can perform a Data Pump import. Use the same approach as described above.
Outcome
If the NFS storage indeed caused the slowness, you should see much faster times.
If that’s not the case, here are some other ideas to explore.
Use the Data Pump bundle patch. The customer told me they already did, but I’ve seen far too many cases where it wasn’t the case after all. Trust, but verify.
If you’re a frequent visitor to my blog, you’ll know I’m a big AutoUpgrade fanboy – especially the download mode, which can save you hours of downloading patches on My Oracle Support.
Recently, I was preaching to another customer, and when they finally gave in, here’s what happened:
We gave it a shot, but we keep running into errors when we try the download mode.
So, let’s see how we can solve the most common problems.
My Oracle Support
You must have an Oracle SSO account.
That account must be linked to a Customer Support Identifier (CSI) that has an active support agreement.
In that CSI, you must have the privilege to download patches. The MOS administrator in your organization can help you with that.
In User Details, select the appropriate Support Identifier, set the Patches drop-down to Download.
If AutoUpgrade tells you that your username or password is incorrect:
*Connection Failed - You entered an incorrect user name or password.*
You should ensure that you’re using the latest version of AutoUpgrade. We recently fixed a bug for passwords with certain special characters.
Network Connectivity
AutoUpgrade must connect to the following servers:
Those servers are part of a Content Delivery Network (CDN), so expect changing IP addresses. Base your firewall rules on DNS names rather than IP addresses.
InsaneDBA, aka Osman, wrote a good blog post on this topic – especially for those of you on Windows.
*SSL peer shut down incorrectly*
Check firewall settings and security groups to ensure they permit SSL traffic on the required ports.
Windows
If AutoUpgrade requires that you use an elevated command prompt (the run as administrator thing) when you use download mode, you should update to the latest version of AutoUpgrade. It no longer requires this.
I recently helped a customer get the most out of Data Pump. Here’s how it all started.
For legal reasons, we must keep a backup of our data for five years. We want to use Data Pump exports. Do you have any recommendations?
Before someone flames me, I know that an export is not a backup, but we’re not talking about disaster recovery here.
Data Pump Export
Here are some of the Data Pump export parameters I would use.
Log File
logtime=all
metrics=yes
logfile=dataexport.log
Whenever you store data for the long term, I think it’s a good idea to store relevant metadata too. So, be sure to save the log file together with the dump files, and include diagnostic information using logtime and metrics.
The dumpfile specification contains the %T wildcard, which translates into YYYYMMDD at runtime. It’s handy to have the date in the file names. Using %L allows the creation of multiple dump files.
I recommend breaking the dump files into smaller pieces using filesize. Smaller files are easier to handle and transport, and avoid some issues I’ve seen with object storage and huge files.
Content
schemas=myapp
tables=mytab
exclude=statistics
I would advise against doing a full export. It contains far too much information that you won’t need, like tablespace definitions, SQL management objects, and audit trail. A schema or table export is more suitable.
Be sure to exclude statistics. They take time to export and have no value. To narrow down the objects you export, you can also use the include parameter.
The parameters include and exclude are mutually exclusive in Oracle Database 19c. That’s no longer the case in later releases.
Compression
compression=all
compression_algorithm=high
Use compression to make the dump files smaller. I think it’s worth spending a few more CPU cycles on export and compressing as much as possible to reduce the dump file size, so use the highalgorithm.
Creating a compressed export requires the Advanced Compression Option. However, importing a compressed backup does not require the same option. Always check the license guide for up-to-date information.
If you don’t have a license for Advanced Compression Option, you can compress the dump file using OS utilities. Unless you also encrypt the dump file. Compressing an encrypted dump file gives no benefit.
Integrity
data_options=verify_stream_format
checksum=yes
Since you are storing data for long-term storage, it’s good to double-check that there’s no corruption in the data. Data Pump writes into the dump file in a streaming manner, and you can check it along the way using data_options.
I’d also recommend generating a checksum and storing that in the dump file using the checksum parameter.
You can periodically check your dump for corruption by using impdp ... verify_only=yes. It will re-calculate the dump file checksum and match that against what is stored in the dump file.
Note that checksum is a feature of Oracle Database 21c.
Usually, using the default checksum_algorithm is fine for checking data integrity. If you want to guard against someone tampering with the dump file, it’s better to use checksum_algorithm=sha512. But for proper protection of your data, use encryption.
Encryption
encryption=all
encryption_mode=password
You can encrypt the data in the dump using the encryption parameter.
I prefer using a separate passphrase to protect the dump file, instead of using the database master encryption key. If you use the latter, you also need to have a backup of the database keystore.
Using Data Pump encryption requires a license for Advanced Security Option. Always check the license guide for up-to-date information.
Miscellaneous
flashback_scn=systimestamp
parallel=<n>
Remember to make a consistent export using flashback_scn. Alternatively, export from a quiesced database or a snapshot standby.
Use whatever parallel degree that you can afford. Normally, on x86-64 architectures, the optimal setting is twice the number of physical cores.
Using OCI Object Storage
The customer also stated:
We plan on storing the dumps in OCI object storage.
In the multitenant architecture in Oracle AI Database, the container database is essential. If you create it the right way, you can avoid some difficulties later on.
Here’s my recommendation for creating container databases.
3xC
The three most important things all start with “C”. Makes it easier to remember.
Character Set
The first one is straightforward: stick with the default, AL32UTF8.
If the root container is AL32UTF8, you can plug in PDBs with any character set. You can have a mix of the classic US7ASCII, old-school European without the Euro sign in WE8ISO8859P1, Japanese JA16SJIS, and original Unicode UTF8, and whatever.
But as soon as you set the root character set to anything but AL32UTF8, all PDBs are bound to the same character set.
Remain flexible and use AL32UTF8.
Components
The number of components has a direct influence on the time it takes to upgrade and patch a database.
Any component used by a PDB must also be installed in the root container. So, install as many components as you need in root. No more than that (selectively tick checkboxes in the blue box).
Also, from a least privilege kind-of-perspective don’t install more than you need.
When you decide on a set of components to install, do that in root only. Ensure that new PDBs have none of the components installed (untick all checkboxes in the red box). This gives you the leanest PDBs. If a PDB requires a component, it’s easy to install afterward.
Compatible
The most important thing is that you have a uniform compatible setting in all your CDBs. This gives you the most flexibility.
When you plug in a PDB, it must have the same compatible setting as the root container.
If the PDB has a lower compatible setting, it will automatically and silently raise the setting to that of the root container.
If the PDB has a higher compatible setting, you won’t be able to plug it in.
Important Parameters
Once you have created a CDB, I recommend setting these parameters.
The database now throws an error if you try to create a fourth PDB.
_exclude_seed_cdb_view
By default, the CDB views do not show information about PDB$SEED. I’m not too fond of this behavior. I want to know if there is a problem with it.
alter system set "_exclude_seed_cdb_view"=false scope=both;
Records from PDB$SEED now show up in the CDB views with CON_ID=2.
Create The CDB Using DBCA
You need to use the advanced configuration in Database Configuration Assistance (DBCA) to create a CDB that matches the above recommendations.
Select Create a database.
Select Advanced configuration.
Create a Custom Database.
On the following few pages, you can make the changes you like until you reach the Database Options page.
When you reach the Database Options page, select the components you need in the root container (blue box). In the Include in PDBs list, select only the component you need in all your PDBs. Otherwise, leave them out so you get a lean PDB. You can easily add components later on.
On the Configuration Options page, on the Character sets tab, ensure that you select Use Unicode (AL32UTF8).
On the Creation Option page, click on All initialization Parameters, and select the compatible setting you use. I recommend using the default.
On the Summary page, you should Save Response File so you can create additional CDBs in silent mode.
Create Manually
After creating the first database using DBCA, you can create another using the response file and DBCA in silent mode.
Make the required changes to the response file.
Update the name of the database.
Verify the list of parameters.
Other settings.
For reference, in the appendix, you can find a sample response file that we use in our hands-on labs.
If you need to create the database with a non-default timezone file version, set the following parameter:
Back from Oracle AI World in Las Vegas – the conference formerly known as CloudWorld formerly known as OpenWorld. Badge now joins the others on my wall.
Oracle AI World is special, especially for someone like me who usually works from home. In a few days, I reunited with colleagues, customers, and friends—a very intense social event for someone used to meeting people on Zoom.
It’s also the time of the year when I get to spend time with my team.
Long days left me with sore feet from extended standing and walking.
The motto of the conference: AI is changing everything! I only had time to play with AI generated pictures.
Nine-hour time difference usually causes me jetlag, but not this time. I used the Timeshifter app, drank lots of water with electrolytes (no caffeine), got sunshine and darkness at the right times, and took Melatonin (this is not a medical endorsement, always check with your doctor). I recovered quickly. If you suffer from jetlag too, give it a shot.
Fruit and a protein bar in my bag served as emergency fuel when meals were delayed—a tip for future conferences.
First Air Canada flight—a pleasure. Flew a Boeing Dreamliner, my second favorite after the Airbus A350. As an aviation geek, I love watching planes. What’s your favorite aircraft?
While making a layover in Toronto, I saw Canada’s vast autumn forests from above on approach—a magnificent sight. I’d love to visit Canada in autumn. Any recommendations for must-see sights?
Saw a remake of The Wizard of Oz at The Sphere. What a wild ride—unbelievable. If you visit Las Vegas, catch a show there. That’s a true big screen.
So many people were doing selfies, that we had to make a selfie-with-a-selfie.
Job Done
That’s it! Celebrated an amazing conference with the team and said our goodbyes.
Moving forward, stay tuned for news on the upcoming Oracle AI World Tour 2026—coming soon to a city near you.
Next year’s conference returns to The Venetian in late October. Hope to see you there! If you have a story to share, reach out—perhaps you can present it with us.
THANKS to everyone that took part in making Oracle AI World a big success!
There are many influencers who are not affiliated with Oracle. They are certainly worth following as well. However, the assignment was to identify Oracle employees only.
Thanks to all of you out there who share knowledge with the Oracle community.
In Oracle Database 23ai, you can copy the dump files even before the export completes.
This saves time during your migration because you can start moving files to the target host while the export is in progress. Additionally, it potentially saves disk space because you can move the files away from the source host.
Which Files Can You Move
After starting the Data Pump export, you must connect to the database using:
The same user who started the export
A user with DATAPUMP_EXP_FULL_DATABASE role
Replace the job owner and name, and execute:
set serverout on
declare
l_job_owner varchar2(30) := 'DPUSER';
l_job_name varchar2(30) := 'SYS_EXPORT_FULL_01';
l_handle number;
l_stsmask integer := dbms_datapump.ku$_status_job_status;
l_job_state varchar2(30);
l_status ku$_status;
l_dump_file ku$_dumpfile;
begin
l_handle := dbms_datapump.attach(l_job_name, l_job_owner);
dbms_datapump.get_status(l_handle, l_stsmask, NULL, l_job_state, l_status);
dbms_datapump.detach(l_handle);
for i in l_status.job_status.files.first..l_status.job_status.files.last() loop
l_dump_file := l_status.job_status.files(i);
if l_dump_file.file_type = dbms_datapump.ku$_dumpfile_type_template then
continue;
end if;
if (l_dump_file.file_bytes_written = l_dump_file.file_size) then
dbms_output.put_line('DONE: ' || l_dump_file.file_name);
end if;
end loop;
end;
/
The code lists all the files that Data Pump has marked as completed. Data Pump no longer writes to those files, and you can safely start moving them to the target system.
Prerequisites
You must use multiple dump files. You do that by including %L in your DUMPFILE specification.
DUMPFILE=exp%L.dmp
You must specify a file size that allows Data Pump to rotate into multiple files when they are full. I suggest using 5G, which is also a good setting for most cloud migrations.
FILESIZE=5G
What About
The code examines the max file size and bytes written to determine if the file is full. This is not the same as the physical size of the file in the operating system. You can’t use the file size information from the file system.
What about using rsync or similar tools? I guess that could work; however, we didn’t test that.
You could query the Data Pump control table for the information:
SELECT file_name
FROM <control_table>
WHERE process_order = -21
AND file_max_size = completed_bytes
AND file_max_size <> 0
ORDER BY file_name;
However, querying the control table is not a supported approach. Use the above PL/SQL.
The other day, I helped a customer with an interesting case:
We have a 19c CDB with 100 PDBs running on old hardware. We need to upgrade and move the PDBs to a new server with Oracle Database 23ai. We would like to move the PDBs in batches.
Here’s how I would do that using AutoUpgrade and refreshable clone PDBs.
How To
In each PDB, you must create a user that you can use for the database link:
create user dblinkuser identified by dblinkuser;
grant create session to dblinkuser;
grant select_catalog_role to dblinkuser;
grant create pluggable database to dblinkuser;
grant read on sys.enc$ to dblinkuser;
Repeat this process for every source PDB.
In the target CDB, create a database link in the root container for every PDB:
create database link clonepdb1
connect to dblinkuser
identified by dblinkuser
using 'sourcehost/pdb1';
Repeat this process for each PDB and assign a unique name to the database link.
Create an AutoUpgrade config that upgrades a batch of the PDBs. In this case, PDBs 1-4:
In source_dblink you specify the name of the database link that you previously created. You must assign the right database link to the right PDB. The following number (1800) is the refresh rate in seconds. You can adjust that accordingly.
In this example, you’re using Oracle Managed Files, and FILE_NAME_CONVERT=NONE allows the target CDB to automatically generate new file names.
I recommend renaming the PDB to avoid any confusion. You can do that with target_pdb_name.
Also, limit the number of parallel processes that the target CDB can use to copy the PDB over the network. The file copy happens for all PDBs at the same time, so in this case, the target CDB should have at least 8 CPUs. Also, take the resources of the source CDB into consideration.
Run AutoUpgrade in analyze mode on the source database host. This checks the PDBs for upgrade readiness:
Instruct AutoUpgrade to move on with the upgrade even though the start_time hasn’t been reached yet:
upg> proceed -job <job-number>
AutoUpgrade now performs a final refresh to bring over the latest changes. Then, it upgrades the PDBs concurrently. It will upgrade CPU_COUNT/2 at the same time. You can tweak that using catctl_options.
Be sure to stop the source PDBs that are running in the 19c CDB.
That’s it! You’ve now moved and upgraded the first batch of PDBs. You can repeat the process with the next batch.
In One Batch
Technically, you can put all PDBs into the same configuration file and move/upgrade them all at the same time.
However, you might as well use Data Guard to build a standby database and then perform an upgrade of the entire CDB.
However, if possible, I would recommend moving/upgrading the PDBs in batches.
Final Words
AutoUpgrade and refreshable clones are a perfect match.
What would you recommend? Leave a comment and let me know what you would suggest.