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 126.96.36.199 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:
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.
1. On the on-premises database host, invoke SQL*Plus and log in to the on-premises database as the SYS user.
[oracle@cloud ~]$ sqlplus / as sysdbaSQL*Plus: Release 188.8.131.52.0 Production on Sun Jun 4 11:47:11 2017Copyright (c) 1982, 2014, Oracle. All rights reserved. Connected to:Oracle Database 12c Enterprise Edition Release 184.108.40.206.0 - 64bit ProductionWith the Partitioning, OLAP, Advanced Analytics and Real Application Testing options SQL>
2. Close the on-premises PDB_PREM PDB.
SQL> ALTER PLUGGABLE DATABASE pdb_prem CLOSE;Pluggable database altered.Open the on-premises PDB_PREM PDB in read-only mode.
3. SQL> ALTER PLUGGABLE DATABASE pdb_prem OPEN READ ONLY;Pluggable database altered.
For further Reading : Migrate On-Premises Database to Oracle Cloud Database Using Remote Cloning
Source : Oracle Help