Database Migration from non-CDB to PDB – Migration with Data Pump
Database Migration from non-CDB to PDB – Migration with Data Pump
Upgrade your Database - NOW! Mike Dietrich's Blog About Oracle Database Upgrades… Mostly
You may have realized that there are a few techniques missing describing how to do a
Database Migration from non-CDB to PDB – Migration with Data Pump is one of
them. I will explain the most simple approach of going to Single- or Multitenant. It isn’t
the coolest – and it isn’t very fast as soon as your database has a significant size. But
it is not complex. And it allows you to move even from very old versions directly into
an Oracle 19c PDB – regardless of patch levels or source and destination platform.
PREVIOUS NEXT
Database Migration from non-CDB to PDB – The Minimal Dow… Gracias, obgrigado … Montevideo, Buenos Aires, Brasilia and …
https://mikedietrichde.com/2019/08/14/database-migration-from-non-cdb-to-pdb-migration-with-data-pump/ 1/17
2025/4/8 晚上10:09 Database Migration from non-CDB to PDB – Migration with Data Pump
Opinions certainly are my own Home Slides Hands-On Labs Videos Scripts Links Priva
as is this page.
https://mikedietrichde.com/2019/08/14/database-migration-from-non-cdb-to-pdb-migration-with-data-pump/ 2/17
2025/4/8 晚上10:09 Database Migration from non-CDB to PDB – Migration with Data Pump
Upgrade @YouTube
Export from source, import into destination – either via dump file or via
Process overview:
Upgrade yourO…Database - NOW!
Installation of O…
Database
Mike Dietrich's Blog About Oracle Database Upgrades… Mostly
Link
RSS Feed for Upgrade Well, I think I don’t need to explain Oracle Data Pump to anybody. At the end of this
your Database – NOW! blog post you will find a long list of links pointing to the documentation and various
workarounds. The big advantages of using Data Pump to migrate from a non-CDB
How do find new features
in Oracle Release Updates into a PDB are:
(RUs)?
Works with every version since Oracle 10.1.0.2
ORA-12850 when you run
AutoUpgrade? Works regardless of patch level
Does not require any upgrade
Upgrade 19c and 23ai
Workshop in London on Works across all platforms
April 9, 2025 Works regardless of encryption
Final blog post about Allows multiple transformations
datapatch cleanup and
purge? But the disadvantages of Data Pump are obvious as well as the duration depends
https://mikedietrichde.com/2019/08/14/database-migration-from-non-cdb-to-pdb-migration-with-data-pump/ 3/17
2025/4/8 晚上10:09 Database Migration from non-CDB to PDB – Migration with Data Pump
Final blog post about Or you setup a database link from destination to source, and run the import from the
datapatch cleanup and destination of the database link using the NETWORK_LINK parameter.
purge?
PREVIOUS NEXT
Database Migration from non-CDB to PDB – The Minimal Dow… Gracias, obgrigado … Montevideo, Buenos Aires, Brasilia and …
https://mikedietrichde.com/2019/08/14/database-migration-from-non-cdb-to-pdb-migration-with-data-pump/ 4/17
2025/4/8 晚上10:09 Database Migration from non-CDB to PDB – Migration with Data Pump
Upgrade your Database - NOW! Mike Dietrich's Blog About Oracle Database Upgrades… Mostly
(since 11.2)
Always EXCLUDE=STATISTICS – regather stats in destination is faster, or
transport with a STATS table from DBMS_STATS
https://mikedietrichde.com/2019/08/14/database-migration-from-non-cdb-to-pdb-migration-with-data-pump/ 5/17
2025/4/8 晚上10:09 Database Migration from non-CDB to PDB – Migration with Data Pump
NETWORK_LINK
Fallback
When you used Data Pump as a migration approach to move from non-CDB to PDB,
then I don’t expect you to force a fast fallback scenario in case of failure. The
important task is to use the VERSION parameter correctly when you export from the
destination PDB. You need to set it to the source’s release in order to export in the
format and with the contents, the (old) source will understand when you reimport.
Make sure, there’s an empty database waiting in case fallback is important. And don’t
cleanup your old source home too early.
PREVIOUS NEXT
Database Migration from non-CDB to PDB – The Minimal Dow… Gracias, obgrigado … Montevideo, Buenos Aires, Brasilia and …
https://mikedietrichde.com/2019/08/14/database-migration-from-non-cdb-to-pdb-migration-with-data-pump/ 6/17
2025/4/8 晚上10:09 Database Migration from non-CDB to PDB – Migration with Data Pump
Upgrade your Database - NOW! Mike Dietrich's Blog About Oracle Database Upgrades… Mostly
Be aware of one major pitfall: The time zone version. As typically your source
database has a lower time zone version than the destination, you can migrate
“forward” (same or higher version) but not “backwards” (lower version). Hence, in
case of fallback you most likely need to apply a DST Time Zone patch to the older
home in order to allow Data Pump to import. And make sure you follow the supported
configurations setup from MOS Note:553337.1 carefully.
Unfortunately, the fallback strategy over a NETWORK_LINK does not work. Even though the
below scenario looks promising, you’ll receive an error when you call imdp from the
lower version over the DB Link. I’d assume that the VERSION parameter does not get
propagated in a way to convince the expdp side to export in 11.2.0.4 format.
PREVIOUS NEXT
Database Migration from non-CDB to PDB – The Minimal Dow… Gracias, obgrigado … Montevideo, Buenos Aires, Brasilia and …
https://mikedietrichde.com/2019/08/14/database-migration-from-non-cdb-to-pdb-migration-with-data-pump/ 7/17
2025/4/8 晚上10:09 Database Migration from non-CDB to PDB – Migration with Data Pump
Upgrade your Database - NOW! Mike Dietrich's Blog About Oracle Database Upgrades… Mostly
Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved.
Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
ORA-39001: invalid argument value
ORA-39169: Local version of 11.2.0.4.0 cannot work with remote version of 19.0.0.0.0.
https://mikedietrichde.com/2019/08/14/database-migration-from-non-cdb-to-pdb-migration-with-data-pump/ 8/17
2025/4/8 晚上10:09 Database Migration from non-CDB to PDB – Migration with Data Pump
Things toHome
knowSlides Hands-On Labs Videos Scripts Links Priva
Related Posts
Upgrade, plug in, convert (noncdb_to_pdb.sql) – 11.2.0.4 and higher
Plugin, upgrade, convert (noncdb_to_pdb.sql) – 12.2.0.1 and higher
Clone via NON$CDB, upgrade, convert – 12.1.0.2 and higher
Migration with Data Pump
https://mikedietrichde.com/2019/08/14/database-migration-from-non-cdb-to-pdb-migration-with-data-pump/ 9/17
2025/4/8 晚上10:09 Database Migration from non-CDB to PDB – Migration with Data Pump
Share this:
Tags: CDB Components Container Database Data Pump Database Link expdp
Home Slides Hands-On Labs Videos Scripts Links Priva
Fallback impdp Issues Migrate Migration Multitenant non-CDB Options Patch
PDB Pitfalls Pluggable Database RUR Cloning Single Tenant Time Zone upgrade
Home Slides Hands-On Labs Videos Scripts Links Priva
Comments 16 Pingbacks 0
https://mikedietrichde.com/2019/08/14/database-migration-from-non-cdb-to-pdb-migration-with-data-pump/ 10/17
2025/4/8 晚上10:09 Database Migration from non-CDB to PDB – Migration with Data Pump
https://mikedietrichde.com/2019/08/14/database-migration-from-non-cdb-to-pdb-migration-with-data-pump/ 11/17
2025/4/8 晚上10:09 Database Migration from non-CDB to PDB – Migration with Data Pump
Reply
Acutely, I have Oracle EBS, DB 10.2.5, and EBS R12.1.3 on OS Redhat 5.8-
32 Bit
Home Slides Hands-On Labs Videos Scripts Links Priva
I would like to upgrade the DB to 19C on the new platform Redhat 64 Bit.
I mean will migrate to OS-64 along with upgrade the DB from 10g to 19c.
Home Slides Hands-On Labs Videos Scripts Links Priva
What is the best approach to achieve this mission?
Can we upgrade directly from 10g to 19 c via a data pump?
As per Oracle if we go with the normal upgrade, we can not upgrade from 10g
to 19c direct, only upgrade to 11g then 19c?
So, needs your advice for above mentioned, and take into your consideration
the migrate OS from 32 to 64 bit.
since the higher releases from Oracle, Db does not work with OS-32.
Thanks in advance.
Reply
https://mikedietrichde.com/2019/08/14/database-migration-from-non-cdb-to-pdb-migration-with-data-pump/ 12/17
2025/4/8 晚上10:09 Database Migration from non-CDB to PDB – Migration with Data Pump
https://mikedietrichde.com/2019/08/14/database-migration-from-non-cdb-to-pdb-migration-with-data-pump/ 13/17
2025/4/8 晚上10:09 Database Migration from non-CDB to PDB – Migration with Data Pump
while the actual database is up and running. But normally I would use
AutoUpgrade to complete this step. Only if you have really 11.2.0.1 and
Upgrade your Database - NOW! then expdp/impdp
not 11.2.0.4, Mike Dietrich'swould
Blog About
be aOracle
good Database
option toUpgrades… Mostly
avoid double-
hop upgrades.
And regarding the further steps, that is fine.
Home Slides Hands-On Labs Videos Scripts Links Priva
Cheers,
Mike
Reply
Home Slides Hands-On Labs Videos Scripts Links Priva
Lynne Ray September 15, 2023 at 23:35
Hi Mike,
I have a question for you about the information in this blog entry. If I use
datapump export/import to move/upgrade/convert my on-premises 18c non-
CDB to an Oracle Cloud Infrastructure 19c pdb, are you saying that I do not
need to make a manifest file and run the noncdb_to_pdb.sql script?
Thanks,
Lynne Ray
Reply
this isn’t something I can’t answer right away without further details.
Are you changing the OS?
Home Slides Hands-On Labs Videos Scripts Links Priva
Then you approach may not be the easiest.
What is your downtime requirement?
This
Homemakes it the decision
Slides Hands-Onmaker.
Labs Videos Scripts Links Priva
Of course, a full expdp/impdp could be a viable approach.
Cheers,
Mike
Reply
Comment *
Name * Email *
Website
https://mikedietrichde.com/2019/08/14/database-migration-from-non-cdb-to-pdb-migration-with-data-pump/ 16/17
2025/4/8 晚上10:09 Database Migration from non-CDB to PDB – Migration with Data Pump
Post Comment
Upgrade your Database – NOW! © 2025. All Rights Reserved.
PREVIOUS NEXT
Database Migration from non-CDB to PDB – The Minimal Dow… Gracias, obgrigado … Montevideo, Buenos Aires, Brasilia and …
https://mikedietrichde.com/2019/08/14/database-migration-from-non-cdb-to-pdb-migration-with-data-pump/ 17/17