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下的相關檔案都刪除。 

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

相關文章

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.