My Oracle Support Banner

Example for Cloning PDB from NON-CDB via Dblink (Doc ID 1928653.1)

Last updated on DECEMBER 15, 2019

Applies to:

Oracle Database - Enterprise Edition - Version 12.1.0.2 and later
Oracle Database Cloud Schema Service - Version N/A and later
Oracle Database Exadata Cloud Machine - Version N/A and later
Oracle Cloud Infrastructure - Database Service - Version N/A and later
Oracle Database Backup Service - Version N/A and later
Information in this document applies to any platform.

Goal

This article provides an example by going through the the steps how to clone PDB from NON-CDB.

 

Solution

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Goal
Solution
 Step 1 Open non-cdb:<NON-CDB DB NAME> in read write mode
 Step 2 Connect to non-cdb:<NON-CDB DB NAME> and create the user that the database link connects with at the remote source
 Step 3 Open the non-cdb:<NON-CDB DB NAME> database in read-only mode
 Step 4 Open the CDB database in read-write mode
 Step 5 Create database link in CDB to the above non-cdb using above defined connecting user
 Step 6 In the CDB create the PDB as the clone of the NON-CDB
 Step 7 Run the noncdb_to_pdb.sql script in the newly created PDB
 Step 8 Open the PDB
 Known issues


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.