博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Oracle 不使用DBCA在Oracle 11中删除数据库
阅读量:4208 次
发布时间:2019-05-26

本文共 1154 字,大约阅读时间需要 3 分钟。

本博文将介绍如何不使用DBCA(数据库配置助手)在Oracle 11中删除数据库。

这里写图片描述


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

export ORACLE_SID=SIDNAME
  • 1

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

[oracle@Oracle11 ~]$ sqlplus / as sysdbaSQL*Plus: Release 11.2.0.1.0 Production on Mon Dec 1 17:38:02 2014Copyright (c) 1982, 2009, Oracle. All rights reserved.Connected to an idle instance.
  • 1
  • 2
  • 3
  • 4
  • 5

3- 启动数据库实例

SQL> startupORACLE instance started.Total System Global Area 3340451840 bytesFixed Size 2217952 bytesVariable Size 1828718624 bytesDatabase Buffers 1493172224 bytesRedo Buffers 16343040 bytesDatabase mounted.Database opened.
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10

4- 关闭数据库

SQL> shutdown immediate;Database closed.Database dismounted.ORACLE instance shut down.
  • 1
  • 2
  • 3
  • 4
  • 5

5- 启动独占模式

SQL> startup mount exclusive restrictORACLE instance started.Total System Global Area 3340451840 bytesFixed Size 2217952 bytesVariable Size 1828718624 bytesDatabase Buffers 1493172224 bytesRedo Buffers 16343040 bytesDatabase mounted.
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10

6- 删除数据库

SQL> drop database;
Database dropped.Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit ProductionWith the Partitioning, OLAP, Data Mining and Real Application Testing options
你可能感兴趣的文章
c#中 Word中的回车键
查看>>
sql中取出字符串中数字
查看>>
js下拉列表框的联动事件
查看>>
在sql中获取字符串中的数字的函数
查看>>
gridview多行footer,并且合并footer单元格
查看>>
Linq 查询 网址:
查看>>
※默认电脑系统中的小图片的路径及※默认我的电脑桌面的背景图片的路径
查看>>
ext的学习网址
查看>>
学习的网址:j-query的学习网址:
查看>>
sql脚本查询所有数据库表名
查看>>
IEnumerable的应用(即:对于所有数组的遍历,都来自IEnumerable)
查看>>
CSS-用户控件在实际应用页面的div的css
查看>>
js表格求和的方法
查看>>
T4MVC的其中解决bug的方法
查看>>
Oracle的学习网址:
查看>>
搭建你的Spring.Net+Nhibernate+Asp.Net Mvc 框架 (二)创建你的项目
查看>>
txt、excel等导入数据的网址,未总结:
查看>>
txt的连接字符串—txt文本中内容转换为datatable—及连接字符串的网址
查看>>
Entity Framework First Code 的一些网址
查看>>
linq 的查询的学习 (google 中输入 101 linq) -- select的应用
查看>>