Migrating On-Premises Databases to the Cloud Limitations
Overview
Purpose
This tutorial covers some of the limitations encountered when migrating on-premises databases to the Oracle Cloud Database Service.Time to Complete
Approximately 15 minutes.
Introduction
In this tutorial, you discover the limitations when exporting an
on-premises database holding encrypted data by using the
Transportable Tablespace mode (TTS), or when unplugging an
on-premises PDB with a COMPATIBLE value different
than the value of the DBaaS CDB into which the plugging will
occur.
Prerequisites
Before starting this tutorial, it may be helpful to have followed the Signing Up for a Database Cloud Service, Connecting to a Database Cloud Service (DBaaS) Instance Through an SSH Tunnel and Creating a Database Cloud Service (DBaaS) Instance tutorials.TTS Export and Encrypted Data
You can use Oracle Data Pump to move an on-premises 11g non-CDB to an 11g DBaaS database (non-CDB), or an on-premises 12c non-CDB or PDB to a 12c DBaaS database (non-CDB or new PDB or existing PDB).
In this particular case, you decide to move the
USERS tablespace
of the PDB1 on-premises 12c
PDB to the PDB2 of the 12c DBaaS ORCL CDB.
-
Set your session environment to the
PDB1on-premises 12c PDB. The PDB is contained into thecdb2CDB.

-
You want to perform the operation with Data Pump export in TTS mode. To perform the TTS export, you need to set the tablespace in READ ONLY mode.

-
Export the
USERStablespace of the PDB1 on-premises 12c PDB in TTS mode.
Remark: Passwords are blurred due to security rules. -

Note: Observe that the operation fails because the tablespace has encrypted columns and this operation type is not supported.
- Export the
USERStablespace of thePDB1on-premises 12c PDB in conventional mode.
Remark: File location is blurred and refer toORCLsubdirectory.

Note: Observe that the operation succeeded because the tablespace is exported with the conventional mode.
Be aware of the warning message telling you that encrypted data has been stored unencrypted in the dump file set. While the export takes place in a conventional mode, encrypted data is selected and read and therefore unencrypted.
You can use Data Pump export parameters to ensure that the data is reencrypted in the dump file. -
Set your session environment to the 12c DBaaS
ORCLCDB.

-
Import the
USERStablespace inPDB2of the 12c DBaaSORCLCDB using the conventional mode. You will be prompted to provide the password used during the export, to decrypt the encrypted data from the dump file and then reencrypt it into the database.

Unplugging and Plugging and COMPATIBLE
To plug an unplugged on-premises PDB in a DBaaS CDB, customers need to be aware of the
COMPATIBLE initialization
parameter as this is the constraining factor for the general
possibility of unplug/plug. The database release tells if you have
to run the upgrade or downgrade procedure.Run the
DBMS_PDB.CHECK_PLUG_COMPATIBILITY function to
determine whether the on-premises unplugged PDB is compatible with
the DBaaS CDB.- In this case, you decide to migrate the
PDB_CDB2on-premises PDB to the 12cORCLDBaaS CDB.
Connect to thePDB_CDB2on-premises PDB. You will check if the PDB is compatible with the 12cORCLDBaaS CDB before unplugging.

- Generate the XML file that provides the list of objects
(tablespaces, data files, parameters...) of the
PDB_CDB2on-premises PDB that will be used during the plugging operation.

If the database uses 2.02 GB of storage, it is allocated 2.10 GB.
- Connect to the 12c
ORCLDBaaS CDB.

- Run the
DBMS_PDB.CHECK_PLUG_COMPATIBILITYfunction to determine whether thePDB_CDB2on-premises PDB is compatible with the 12cORCLDBaaS CDB. Use the XML file generated in step 2.

- There are some incompatibilities. Notice that the
COMPATIBLEvalue of thePDB_CDB2on-premises PDB is NOT compatible with the 12cORCLDBaaS CDB value.

Some of the actions need to be implemented such as when PDB's version does not match CDB's version. This is the case here, mentioned in the first row. The solution is mentioned: Either upgrade the PDB or reload the components in the PDB. Another action which prevents the PDB to be opened is theCOMPATIBLEparameter mismatch. It is mentioned in the 3rd row. You have to adjust theCOMPATIBLEparameter value.
Other actions are warnings only such as instance parameters values likeSGA_TARGETorPGA_AGGREGATE_TARGET. You can open the PDB without intervention.
Summary
-
You must be aware of limitations when migrating on-premises
databases to the Cloud and using different methods such as Data
Pump export and import, unplug and plug, or RMAN.
-
In this tutorial, you learned to:
- Discover the limitations during migrating on-premises databases to the Cloud with Data Pump export
- Understand the limitations during migrating on-premises databases to the Cloud with unplugging
-
Resources
- For more detailed information about connecting to Oracle Database instances in the Oracle Database Cloud Service (DBaaS), see the documentation.
- To learn more about Oracle Database Cloud Service, visit the Database Cloud Service.
- For training on the Oracle Cloud platform-as-a-service (PaaS) Services, visit the Oracle Learning Library
- Look at these videos on working with the Oracle Database Cloud Service:
Credits
- Lead Curriculum Developer: Dominique Jeunot
- Other Contributors: James Spiller
To navigate this Oracle by Example tutorial, note the following:
- Topic List:
- Click a topic to navigate to that section.
- Expand All Topics:
- Click the button to show or hide the details for the sections. By default, all topics are collapsed.
- Hide All Images:
- Click the button to show or hide the screenshots. By default, all images are displayed.
- Print:
- Click the button to print the content. The content that is currently displayed or hidden is printed.
To navigate to a particular section in this tutorial, select the topic from the list.