如何不使用DBCA在Oracle 11中删除数据库

网友投稿 430 2023-04-27

如何不使用DBCA在*** 11中删除数据库

如何不使用DBCA在*** 11中删除数据库

本文简短的教程,将会向你展示如何不使用DBCA(数据库配置助手)在*** 11中删除数据库。

1- 导入数据库的SID,如果没有定义的话

export ORACLE_SID=database

2- 以操作系统认证连接数据库

[***@***11 ~]$ sqlplus / as sysdba SQL*Plus: Release 11.2.0.1.0 Production on Mon Dec 1 17:38:02 2014Copyright (c) 1982, 2009, ***. All rights reserved.Connected to an idle instance.

3- 启动数据库实例

SQL> startup ORACLE instance started.Total System Global Area 3340451840 bytesFixed Size 2217952 bytesVariable Size 1828718624 bytesDatabase Buffers 1493172224 bytesRedo Buffers 16343040 bytesDatabase mounted.Database opened.

4- 关闭数据库

SQL> shutdown immediate; Database closed.Database dismounted.ORACLE instance shut down.

5- 启动独占模式

SQL> startup mount exclusive restrict ORACLE instance started. Total System Global Area 3340451840 bytesFixed Size 2217952 bytesVariable Size 1828718624 bytesDatabase Buffers 1493172224 bytesRedo Buffers 16343040 bytesDatabase mounted.

6- 删除数据库

SQL> drop database;
Database dropped. Disconnected from *** Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit ProductionWith the Partitioning, OLAP, Data Mining and Real Application Testing options

完成!

作者:M.el Khamlichi 译者:VicYu/Vic020 校对:wxy

版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。

上一篇:MongoDB 宣布收购 WiredTiger 存储引擎
下一篇:最受 Web 开发者欢迎的 NoSQL 和关系数据库
相关文章