It is relatively simple to uninstall the Oracle software in linux. You can simply delete the relevant directories and then clean up the oracle-related files in/etc.
But it is still necessary to know how to uninstall it through tools.
1. Configure the response file first.
The following is an example of a response file:
[Root @ suk1 response] # more uninstall. rsp
#-------------------------------------------
# Response file version
RESPONSEFILE_VERSION = 2.2.1.0.0
# Oracle user group
UNIX_GROUP_NAME = oinstall
# Complete ORACLE_HOME path
ORACLE_HOME = "/opt/oracle/product/10g"
# ORACLE_HOME name
ORACLE_HOME_NAME = "OraDb10g_home1"
DEINSTALL_LIST = {"oracle. server", "10.2.0.1.0 "}
# Set dba group name
S_nameForDBAGrp = oinstall
# Set the quota group name
S_nameForOPERGrp = oinstal
#--------------------------------------------
The preceding parameters are modified based on actual conditions.
2. uninstall it under an oracle user
[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,200 5, 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.
After the command is executed, oracle deletes all related files in oracle_home and/usr/bin.
The procedure is very simple. Here is a simple record.