首页 > 数据库技术 > 详细

Oracle 12C -- 删除PDB

时间:2015-10-31 15:30:26      阅读:241      评论:0      收藏:0      [点我收藏+]
删除PDB
SQL> select con_id,pdb_name,status from cdb_pdbs;                                          

    CON_ID PDB_NAME                       STATUS
---------- ------------------------------ ---------
         3 PDB1                           NORMAL
         2 PDB$SEED                       NORMAL
         4 P4                             NORMAL
         5 PDB_TEST                       NORMAL

SQL> select con_id,dbid,name,open_mode from v$pdbs;

    CON_ID       DBID NAME                           OPEN_MODE
---------- ---------- ------------------------------ ----------
         2 1258043702 PDB$SEED                       READ ONLY
         3 3749525766 PDB1                           READ ONLY
         4 2192587015 P4                             READ ONLY
         5  255759235 PDB_TEST                       READ WRITE

SQL> alter pluggable database pdb_test close;

Pluggable database altered.

SQL> drop pluggable database pdb_test ;    
drop pluggable database pdb_test
*
ERROR at line 1:
ORA-65179: cannot keep datafiles for a pluggable database that is not unplugged

SQL> drop pluggable database pdb_test including datafiles;

Pluggable database dropped.

SQL> select con_id,pdb_name,status from cdb_pdbs;

    CON_ID PDB_NAME                       STATUS
---------- ------------------------------ ---------
         3 PDB1                           NORMAL
         2 PDB$SEED                       NORMAL
         4 P4                             NORMAL

SQL> 

 

Oracle 12C -- 删除PDB

原文:http://www.cnblogs.com/abclife/p/4925564.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!