最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
手动删除数据库 drop database
时间:2026-06-18 09:07:54 编辑:袖梨 来源:一聚教程网
简单过程如下,10g版本以上,数据库要处于mount状态,RESTRICTED 模式下

sys@STANDBY3(dtydb5)> shutdown
数据库已经关闭。
已经卸载数据库。
ORACLE 例程已经关闭。
sys@STANDBY3(dtydb5)> startup mount;
ORACLE 例程已经启动。
Total System Global Area 3140026368 bytes
Fixed Size 2230600 bytes
Variable Size 771753656 bytes
Database Buffers 2348810240 bytes
Redo Buffers 17231872 bytes
数据库装载完毕。
sys@STANDBY3(dtydb5)> drop database;
drop database
*
第 1 行出现错误:
ORA-12719: 操作要求数据库处于 RESTRICTED 模式下
sys@STANDBY3(dtydb5)> alter system enable restricted session;
系统已更改。
sys@STANDBY3(dtydb5)> drop database;
数据库已删除。
说明:
1,10g以上才能有drop database命令
2,The DROP DATABASE command deletes these files from operating system.
* Datafiles
* Online Redo Log Files
* Controlfiles
* SPFILE (if it exists)
The DROP DATABASE command does not delete the following files:
* init.ora (text version of the Oracle initialization file)
* password file
* entries in listener files
* entries in oratab file
3,win NT环境下文件不会自动删除
相关文章
- 小米ax6000路由器怎么设置穿墙(小米ax6000路由器设置穿墙方法) 08-21
- excel工具栏如何还原 08-21
- OpenClaw请求超时llm request timed out的三种解决方案及完整排查流程实用指南 08-21
- 蜘蛛纸牌如何更改游戏难度 08-21
- 蜘蛛纸牌有什么初级玩法 08-21
- excel怎样设置高亮显示重复数据 08-21