SQL> show pdbs
CON_ID CON_NAME OPEN MODE RESTRICTED
---------- ------------------------------ ---------- ----------
2 PDB$SEED READ ONLY NO
3 ERP READ WRITE NO
4 CRM READ WRITE NO
2.unplugg pdb
SQL> alter pluggable database crm close;
Pluggable database altered.
SQL> alter pluggable database crm unplug into '/u01/app/oracle/unplugdb.xml';
Pluggable database altered.
SQL> select pdb_name,status from dba_pdbs
PDB_NAME STATUS
------------------------------ ----------
ERP NORMAL
PDB$SEED NORMAL
CRM UNPLUGGED
SQL> show pdbs;
CON_ID CON_NAME OPEN MODE RESTRICTED
---------- ------------------------------ ---------- ----------
2 PDB$SEED READ ONLY NO
3 ERP READ WRITE NO
4 CRM MOUNTED
SQL> drop pluggable database crm;
Pluggable database dropped.
SQL> show pdbs;
CON_ID CON_NAME OPEN MODE RESTRICTED
---------- ------------------------------ ---------- ----------
2 PDB$SEED READ ONLY NO
3 ERP READ WRITE NO
3.重新plugg pdb
SQL> CREATE PLUGGABLE DATABASE crm using '/u01/app/oracle/unplugdb.xml' nocopy TEMPFILE REUSE;
Pluggable database created.
SQL> show pdbs
CON_ID CON_NAME OPEN MODE RESTRICTED
---------- ------------------------------ ---------- ----------
2 PDB$SEED READ ONLY NO
3 ERP READ WRITE NO
4 CRM MOUNTED
SQL>