可参看“Red
Hat5安装Oracle 11gR2”(http://blog.csdn.net/johnnysun2015/article/details/45022119 )这篇文章。
1. 停止Oracle数据库
SQL> showdown immediate
2. 停止监听和EM
[oracle@localhost ~]$ lsnrctl stop
[oracle@localhost ~]$ emctl stop dbconsole
3. 停止http服务
[root@localhost ~]# service httpd stop
4. 删除安装目录
[root@localhost ~]# rm -rf /u01/app/oracle
5. 将/usr/local/bin下的文件删除
[root@localhost bin]# ls
[root@localhost bin]# rm -rf
6. 将/etc/oraInst.loc删除
[root@localhost etc]# rm oraInst.loc
7. 删除oracle用户和用户组
[root@localhost ~]# userdel -r oracle
[root@localhost ~]# groupdel oinstall
[root@localhost ~]# groupdel dba
原文地址:http://blog.csdn.net/johnnysun2015/article/details/45022769