Linux下卸載ORACLE的多種方法(參考使用)

第一種
# cd /u01/app/oracle/product/11.2.0/client_1/deinstall/
# ./deinstall
# rm -rf /u01/app/oracle
# rm -rf /etc/oratab
# rm -rf /etc/oraInst.loc

第二種
1. 運行 $ORACLE_HOME/bin/localconfig delete
2. rm -rf $ORACLE_BASE/*
3. rm -f /etc/oraInst.loc /etc/oratab
4. rm -rf /etc/oracle
5. rm -f /etc/inittab.cssd
6. rm -f /usr/local/bin/coraenv /usr/local/bin/dbhome /usr/local/bin/oraenv
7. rm –rf /opt/ORCLfmap

第三種
1.刪除$ORACLE_BASE/product/oraInventory目錄;
2.刪除$ORACLE_BASE/product目錄;
3.刪除/etc/oratab文件;
4.刪除/tmp/目錄下與"ora"關鍵字相關的文件;
5.刪除/opt/目錄下與Oracle相關的內容;
6./usr/local/bin/下的幾個文件可以暫不刪除。注意在下次安裝Oracle運行root.sh腳本提示覆蓋文件時選擇"y";
7.重新啓動操作系統,完成卸載。

第四種
Use DBCA to remove the databases.
Use OUI to remove the installation
Physically remove all the instation from your $ORACLE_HOME and later $ORACLE_HOME itself.
You may want to edit oratab and remove the entries too.

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章