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