最新下载
热门教程
- 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环境下文件不会自动删除
相关文章
- 语音转文字软件推荐 高效实用且转换迅速的语音识别工具 06-18
- Kimi企业版功能介绍:团队协作、文档搜索与API接入范围 06-18
- 静态图片转动态图片的软件推荐|功能全面的GIF与动态图制作工具合集 06-18
- 免费高清热门漫画APP排行榜 漫画大全APP下载推荐 06-18
- 屠龙争霸新手如何玩 06-18
- 照片修复软件推荐 免费与功能全面的照片修复工具精选 06-18