手動解除安裝oracle軟體

simplewp發表於2012-09-21
我的oracle版本:10g.2.1,系統:rhel-server-6.0-i386

解除安裝Oracle軟體可以選擇執行安裝包下的runInstaller解除安裝軟體,但是不徹底,最好手動解除安裝;

手動解除安裝過程:
1)關閉資料庫;
2)刪除/etc/ora*
[oracle@simple ~]$ ls /etc/ora*
/etc/oraInst.loc  /etc/oratab

[root@simple oracle]# rm -f /etc/ora*
[root@simple oracle]# ls /etc/ora*
ls: cannot access /etc/ora*: No such file or directory

3)刪除/usr/local/bin/oraenv ,dbhome,coraenv
root@simple oracle]# ls /usr/local/bin/oraenv /usr/local/bin/dbhome /usr/local/bin/coraenv
/usr/local/bin/coraenv  /usr/local/bin/dbhome  /usr/local/bin/oraenv
[root@simple oracle]# rm -f  /usr/local/bin/oraenv /usr/local/bin/dbhome /usr/local/bin/coraenv
[root@simple oracle]# ls /usr/local/bin/oraenv /usr/local/bin/dbhome /usr/local/bin/coraenv
ls: cannot access /usr/local/bin/oraenv: No such file or directory
ls: cannot access /usr/local/bin/dbhome: No such file or directory
ls: cannot access /usr/local/bin/coraenv: No such file or directory

4)刪除安裝目錄$ORACLE_BASE
[root@simple oracle]# rm -rf $ORACLE_BASE
[root@simple oracle]# ls $ORACLE_BASE
ls: cannot access /u01/app/oracle: No such file or directory

5)如果不打算重新安裝,可以將相關的使用者和組,服務等刪除;



詳細過程參考oracle官方文件。



來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/27009266/viewspace-744694/,如需轉載,請註明出處,否則將追究法律責任。

相關文章