1.停库
[oracle@testdb ~]$ sqlplus / as sysdba
SQL> shutdown immediate
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> exit

2.停监听
[oracle@testdb ~]$ lsnrctl stop
LSNRCTL for Linux: Version 11.2.0.4.0 - Production on 23-DEC-2016 14:44:52
Copyright (c) 1991, 2013, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=testdb)(PORT=1521)))
The command completed successfully

3.停HTTP服务
[root@testdb ~]# service httpd stop
Stopping httpd: [ OK ]

4.用su或重新登录到root(如果重新安装可以保留oracle用户)

5.删除安装目录
[root@testdb ~]# rm -rf /u01/app/oracle/
[root@testdb ~]# rm -rf /u01/app/oraInventory/

6.删除/usr/bin下文件
[root@testdb ~]# rm -rf /usr/local/bin/dbhome
[root@testdb ~]# rm -rf /usr/local/bin/oraenv
[root@testdb ~]# rm -rf /usr/local/bin/coraenv

7.删除/etc/oratab
[root@testdb ~]# rm /etc/oratab

8.删除/etc/oraInst.loc
[root@testdb ~]# rm /etc/oraInst.loc

9.删除oracle用户(若要重新安装,可以不删除)
[root@testdb ~]# userdel -r oracle

10.删除用户组(若要重新安装,可以不删除)
[root@testdb ~]# groupdel oinstall
[root@testdb ~]# groupdel dba

11.删除启动服务
[root@testdb ~]# chkconfig
到此为止重启后,Linux系统下Oracle数据库已完全删除

最新文章

  1. 【整理】Linux下中文检索引擎coreseek4安装,以及PHP使用sphinx的三种方式(sphinxapi,sphinx的php扩展,SphinxSe作为mysql存储引擎)
  2. LinQ to entities 不能识别方法“system.string.ToString(system.String)”.因此该方法无法转换为存储表达式
  3. 从为什么String=String谈到StringBuilder和StringBuffer
  4. iMac一体机安装苹果和Win7双系统
  5. autoit UIA获取Listview的信息
  6. ecstore生成二维码
  7. Biorhythms(中国剩余定理)
  8. Coreseek:indexer crashed神秘
  9. luci 随笔
  10. 【NOIP2016提高组】 Day2 T1 组合数问题
  11. IntelliJ IDEA下Maven SpringMVC+Mybatis入门搭建例子
  12. ubuntu14.04使用root用户登录桌面
  13. 如何在已有项目中引入FineUIMvc
  14. sql注入中关于--+的一点探索
  15. Linux-共享内存通信
  16. 谨以此篇献给DJANGO学习过程中遇到的问题
  17. Codeforces Round #485 (Div. 2) C. Three displays
  18. 【bzoj 1901】Zju2112 Dynamic Rankings
  19. .NET MVC 后台接受base64的上传图片
  20. Java十进制数转二进制的方法

热门文章

  1. day03运算符、表达式、自增自减、三目运算符、程序结构、用户输入
  2. Builder模式的目的是解耦构建过程,为什么要用内部类?
  3. Context知识详解
  4. mitmproxy 使用笔记
  5. Selenium 与自动化测试 —— 《Selenium 2 自动化测试实战》读书笔记
  6. TensorFlow实现图像卷积并可视化示例
  7. 基于SpringBoot前后端分离的点餐系统
  8. document.write() 为什么会清空页面
  9. jsp + js + 前端弹出框
  10. 从0系统学Android--3.6 RecyclerView