可參看“Red Hat5安裝Oracle 11gR2”(http://www.Bkjia.com/database/201410/346710.html )這篇文章。
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