Step 1: Let's create PDB1 for demo
> create pluggable database pdb1
admin user pdb1_admin identified by password
role = (dba)
default tablespace pdb1_ts datafile '/mnt/san_storage/oradata/orcl12c/pdb1/pdb1_ts_datafile1.dbf' size 50M autoextend on
file_name_convert = ('/oradata/orcl12c/pdbseed','/oradata/orcl12c/pdb1');
Step 2: Open the PDB1
> alter pluggable database pdb1 open;
Step 3: For Moving PDB1, first close the PDB1
> alter pluggable database pdb1 close;
Step 4: Unplug the database
> alter pluggable database pdb1 unplug into 'mnt/san_storage/oradata/orcl12c/pdb1/pdb1.xml';
Step 5: Drop the database PDB1 keeping the datafiles;
> drop pluggable database pdb1 keep datafiles;
Step 6: Now plug PDB1 to the new CDB
> connect cdb$root of new CDB as sysdba
> create pluggable database pdb1_new using '/mnt/san_storage/oradata/orcl12c/pdb1/pdb1.xml' nocopy tempfile reuse;
Note : We can give new pdb name while using xml file or we can use the same name.
Step 7: Open newely plugged PDB1_NEW in the new CDB.
> alter pluggable database pdb1_new open;