SQL> alter pluggable database pdb2 close; Pluggable database altered. SQL> drop pluggable database pdb2; drop pluggable database pdb2 * ERROR at line 1: |
DROP pluggable database command
only works if the database has been unplugged. Keyword KEEP DATAFILES can also
be used in this case to preserve the datafiles. If we really want to drop a
database that has not been unplugged, we need to close this database, and then
issue drop database command with INCLUDING DATAFILES clause.
SQL> alter pluggable database pdb2 close; ---------- ---------- ----------
-------------------------------- ------------------------------ ----------
---
---------------------------------------------------------------------------
---------- ---------- ---------- -------- ---------------------- 2
4081683932 4081683932 58E4124AAF984CEBB2D69B0A98A13889 PDB$SEED READ ONLY NO
13-FEB-18 09.03.10.280 AM +08:00
2233959 796917760
8192 ENABLED
0 |
No comments:
Post a Comment