Documente Academic
Documente Profesional
Documente Cultură
Overview
Purpose
This tutorial covers the steps required to clone a pluggable database (PDB) from a container database (CDB) into the same CDB.
Time to Complete
Approximately 15 minutes
Introduction
You can copy a source PDB from a CDB and plug the copy into the same CDB or into another CDB. This capability is suitable for the following
situations:
You want to test the application patch of your production PDB. You first clone your production application in a cloned PDB, patch the cloned
PDB, and test it.
You want to diagnose performance issues or perform performance regression tests on your application. Because you cannot perform this
operation in parallel with the production in the same database, you clone the PDB into another CDB.
Scenario
In this tutorial, you will use SQL*Plus to perform a PDB cloning operation within the same CDB.
Note: If you want to clone a PDB from a CDB into another CDB, you identify the source CDB by creating a database link to it from the CDB
in which you want to create the clone.
Prerequisites
Ensure that you have enough disk space to hold a complete clone of the PDB.
Install Oracle Database 12c.
Create one CDB with one PDB in it.
ORACLE_HOME: /u01/app/oracle/product/12.1.0
TNS Listener port: 1521
Container databases:
SID: cdb1
SID: cdb2
Pluggable databases (in cdb1):
pdb1
pdb2
In this section, you prepare the source PDB to be cloned and the target new PDB to be created.
. oraenv
sqlplus / as sysdba
2. Open the PDB that you want to clone in READ ONLY mode.
exit
connect system/oracle@localhost:1521/pdb1_clone;
show con_name
connect / as sysdba
http://www.oracle.com/webfolder/technetwork/tutorials/obe/db/12c/r1/pdb/pdb_clone/pdb_clone.html 2/3
10/10/2017 Cloning Pluggable Databases
Perform the following steps to reset your environment prior to repeating the activities covered in this OBE or starting another OBE.
Summary
Resources
To learn more about pluggable databases, refer to additional OBEs in the Oracle Learning Library
Credits
http://www.oracle.com/webfolder/technetwork/tutorials/obe/db/12c/r1/pdb/pdb_clone/pdb_clone.html 3/3