Linux下用靜默方式刪除oracle軟體

來源:互聯網
上載者:User

在linux下卸載Oracle軟體比較簡單,可以簡單的把相關目錄刪除掉,然後清理一下/etc下oracle相關的檔案就可以。  

但還是有必要瞭解一下如何通過工具來卸載。  

1、首先配置回應檔  

如下是一個回應檔例子:  

[root@suk1 response]# more uninstall.rsp   

#-------------------------------------------  

#回應檔的版本  

RESPONSEFILE_VERSION=2.2.1.0.0  

#oracle使用者組  

UNIX_GROUP_NAME=oinstall  

#ORACLE_HOME的完整路徑  

ORACLE_HOME="/opt/oracle/product/10g"  

#ORACLE_HOME名稱  

ORACLE_HOME_NAME="OraDb10g_home1"  

DEINSTALL_LIST={"oracle.server","10.2.0.1.0"}  

#設定dba組名  

s_nameForDBAGrp=oinstall  

#設定oper組名  

s_nameForOPERGrp=oinstal  

#--------------------------------------------  

以上參數根據實際情況休修改。  

2、在oracle使用者下卸載  

[oracle@suk1 database]$ ./runInstaller -silent -deinstall -removeallfiles -removeAllPatches "REMOVE_HOMES={$ORACLE_HOME}" -responseFile /soft/database/response/uninstall.rsp  

Starting Oracle Universal Installer...  

Checking installer requirements...  

Checking operating system version: must be RedHat-3, SUSE-9, redhat-4, UnitedLinux-1.0, asianux-1 or asianux-2  

Passed  

All installer requirements met.  

Preparing to launch Oracle Universal Installer from /tmp/OraInstall2007-11-06_06-07-45PM. Please wait ...[oracle@suk1 database]$ Oracle Universal Installer, Version 10.2.0.1.0 Production  

Copyright (C) 1999, 2005, Oracle. All rights reserved.  

Starting deinstall  

Deinstall in progress (Tue Nov 06 18:07:58 CST 2007)  

WARNING:The directory: /opt/oracle/product/10g will be deleted after deinstall.  

Click on "Yes" to continue.   

Click on "No" to perform deinstall without deleting the directory.   

Click on "Cancel" to go back to "Inventory Dialog".  

Configuration assistant "Oracle Database Configuration Assistant" succeeded   

Configuration assistant "Oracle Net Configuration Assistant - Deinstall Script" failed   

.......................................................................................... 100% Done.  

Deinstall successful  

End of install phases.(Tue Nov 06 18:08:50 CST 2007) 

End of deinstallations 

Please check ’/opt/oracle/oraInventory/logs/silentInstall2007-11-06_06-07-45PM.log’ for more details. 

命令執行完後,oracle會把oracle_home和/usr/bin下的相關檔案都刪除。 

步驟很簡單,這裡也簡單記錄一下。

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.