alter pluggable database PDB1 close immediate; alter pluggable database PDB1 close immediate instances=all;
alter pluggable database PDB1 unplug into '/tmp/PDB1.xml';
XML文件中包含了每个数据文件的位置,以及初始化参数等信息
drop pluggable database PDB1 keep datafiles;
set serveroutput on DECLARE compatible BOOLEAN := FALSE; BEGIN compatible := DBMS_PDB.CHECK_PLUG_COMPATIBILITY( pdb_descr_file => '/home/oracle/PDB1.xml'); if compatible then DBMS_OUTPUT.PUT_LINE('Is pluggable database compatible? YES'); else DBMS_OUTPUT.PUT_LINE('Is pluggable database compatible? NO'); end if; END; /
create pluggable database PDB1 using '/tmp/PDB1.xml' NOCOPY;
alter pluggable database PDB1 open; alter pluggable database PDB1 open instances=all;