This article shows how to use the remote cloning method to copy a pluggable database (PDB) from your on-premises Oracle Database 12c database to a PDB in a database-as-a-service (DBaaS) container database (CDB) in an Oracle Database Cloud Service deployment.

This article was written by Skant Gupta and Joel Perez in Oracle OTN

Note: You can use this method only if the on-premises platform is little endian; the on-premises release is Oracle Database 12.1.0.2 or higher; and the on-premises database and Oracle Database Cloud Service database have compatible database character sets and national character sets.

To copy an Oracle Database 12c PDB to a PDB in an Oracle Database Cloud Service deployment using the remote cloning method, you perform these tasks:

  1. On the on-premises database host, prepare the on-premises PDB by invoking SQL*Plus, closing the on-premises PDB, and then reopening the PDB in read-only mode.
  2. Create a new instance of Oracle Database Cloud Service.
  3. Connect to the Oracle Database Cloud Service compute node, invoke SQL*Plus, and create a database link that enables a connection to the on-premises database.
  4. On the Oracle Database Cloud Service compute node, execute the CREATE PLUGGABLE DATABASE command to clone the on-premises PDB.
  5. On the Oracle Database Cloud Service compute node, open the new PDB by executing the ALTER PLUGGABLE DATABASE OPEN command.
  6. Optionally, on the on-premises database host, invoke SQL*Plus and set the on-premises PDB back to read-write mode.

The following sections provide a step-by-step demonstration of the tasks required to remotely clone an on-premises Oracle Database PDB into a new PDB in a DBaaS CDB.

In this example, the on-premises database is on a Linux host.

Prepare the On-Premises PDB

  1. On the on-premises database host, invoke SQL*Plus and log in to the on-premises database as the SYS user.
  2. Close the on-premises PDB_PREM PDB.
  3. Open the on-premises PDB_PREM PDB in read-only mode.

For further Reading : Migrate On-Premises Database to Oracle Cloud Database Using Remote Cloning

Leave a Reply