drop删除資料庫
1,shutdown abort
2,startup mount
3,alter system enable restricted session;
--讓oracle 處于RESTRICTED模式
alter system enable restricted session;
如果需要取消
alter system disable restricted session;
需要注意的是RESTRICTED模式以後 除了管理者都不能登入,如果需要非管理者登入,必須
GRANT restricted session to test;
4,drop database;
RAC drop database;
1.先停止所有節點執行個體(否則回報ORA-29707: inconsistent value 1 for initialization parameter cluster_database_instances with other instances)
sqlplus "/as sysdba"
shutdown immediate
2.在其中一節點操作,先關閉rac模式。
startup nomount
alter system set CLUSTER_DATABASE=FALSE scope=spfile;
shutdown immediate
3啟動mount restric 模式
startup mount restrict
4.删除資料庫
drop database;