Uninstall oracle 11g grid + oracle Home

 在oracle 11gR2以前的版本中,卸载CRS和oracle database时需要手工去删除部分东西,从oracle 11gR2版本开始新增deinstall命令可以卸载grid和database

  有两种方法可以删除oracle home和grid home

1.使用安装好后的$ORACLE_HOME/deinstall/deinstall命令

2.从oracle官方网站上下载的deinstall工具


Oracle官方推荐的做法是使用后者,也就是专门的删除工具。原因是内置的deinstall工具脚本中常常带有很多bug,很多时候不能完全的将其删除干净


首先下载deinstall工具,我使用的是p10404530_112030_Linux-x86-64_7of7.zip(由于安装的是11.2.0.3,所以直接下载的这个包)


没参考文档,自己直接操作的,也许可能更简化,O(∩_∩)O哈!


把该工具包分别在oracle和grid用户目录下解压,分别设置为grid和oracle用户宿主,后来想想应该不用,只用grid用户下解压应该也可以完成,下次再装一次11G RAC来试试。

1、删除oracle用户的db、ORACLE_HOME以及在grid中的服务

执行命令:

[oracle@hcn1 deinstall]$ ./deinstall -home $ORACLE_HOME
Location of logs /g01/app/oraInventory/logs/

############ ORACLE DEINSTALL & DECONFIG TOOL START ############


######################### CHECK OPERATION START #########################
## [START] Install check configuration ##


Checking for existence of the Oracle home location /u01/app/oracle/product/11.2.0/dbhome_1
Oracle Home type selected for deinstall is: Oracle Real Application Cluster Database
Oracle Base selected for deinstall is: /u01/app/oracle
Checking for existence of central inventory location /g01/app/oraInventory
Checking for existence of the Oracle Grid Infrastructure home /g01/app/11.2.0/grid
The following nodes are part of this cluster: hcn1,hcn2
Checking for sufficient temp space availability on node(s) : 'hcn1,hcn2'

## [END] Install check configuration ##


Network Configuration check config START

Network de-configuration trace file location: /g01/app/oraInventory/logs/netdc_check2013-01-15_11-16-22-PM.log

Network Configuration check config END

Database Check Configuration START

Database de-configuration trace file location: /g01/app/oraInventory/logs/databasedc_check2013-01-15_11-16-25-PM.log

Use comma as separator when specifying list of values as input

Specify the list of database names that are configured in this Oracle home [hcndb]: 

###### For Database 'hcndb' ######

RAC Database
The nodes on which this database has instances: [hcn1, hcn2]
The instance names: [hcndb1, hcndb2]
The local instance name on node: hcndb1 
The diagnostic destination location of the database: /u01/diag/rdbms/hcndb
Storage type used by the Database: ASM

The details of database(s) hcndb have been discovered automatically. Do you still want to modify the details of hcndb database(s)? [n]: y


###### For Database 'hcndb' ######

Specify the type of this database (1.Single Instance Database|2.Oracle Restart Enabled Database|3.RAC Database|4.RAC One Node Database) [3]: 3
Specify the list of nodes on which this database has instances [hcn1, hcn2]: 
Specify the list of instance names [hcndb1, hcndb2]: 
Specify the local instance name on node hcn1  [hcndb1]: 
Specify the diagnostic destination location of the database [/u01/diag/rdbms/hcndb]: 
Specify the storage type used by the Database ASM|FS [ASM]: 


Database Check Configuration END

Enterprise Manager Configuration Assistant START

EMCA de-configuration trace file location: /g01/app/oraInventory/logs/emcadc_check2013-01-15_11-17-06-PM.log 

Checking configuration for database hcndb
Enterprise Manager Configuration Assistant END
Oracle Configuration Manager check START
OCM check log file location : /g01/app/oraInventory/logs//ocm_check_2013-01-15_11-17-06-PM.log
Oracle Configuration Manager check END

######################### CHECK OPERATION END #########################


####################### CHECK OPERATION SUMMARY #######################
Oracle Grid Infrastructure Home is: /g01/app/11.2.0/grid
The cluster node(s) on which the Oracle home deinstallation will be performed are:hcn1,hcn2
Oracle Home selected for deinstall is: /u01/app/oracle/product/11.2.0/dbhome_1
Inventory Location where the Oracle home registered is: /g01/app/oraInventory
The following databases were selected for de-configuration : hcndb
Database unique name : hcndb
Storage used : ASM
Will update the Enterprise Manager configuration for the following database(s): hcndb
No Enterprise Manager ASM targets to update
No Enterprise Manager listener targets to migrate
Checking the config status for CCR
hcn1 : Oracle Home exists with CCR directory, but CCR is not configured
hcn2 : Oracle Home exists with CCR directory, but CCR is not configured
CCR check is finished
Do you want to continue (y - yes, n - no)? [n]: y
A log of this session will be written to: '/g01/app/oraInventory/logs/deinstall_deconfig2013-01-15_11-16-14-PM.out'
Any error messages from this session will be written to: '/g01/app/oraInventory/logs/deinstall_deconfig2013-01-15_11-16-14-PM.err'

######################## CLEAN OPERATION START ########################

Enterprise Manager Configuration Assistant START

EMCA de-configuration trace file location: /g01/app/oraInventory/logs/emcadc_clean2013-01-15_11-17-06-PM.log 

Updating Enterprise Manager Database Control configuration for database hcndb
Updating Enterprise Manager ASM targets (if any)
Updating Enterprise Manager listener targets (if any)
Enterprise Manager Configuration Assistant END
Database de-configuration trace file location: /g01/app/oraInventory/logs/databasedc_clean2013-01-15_11-17-27-PM.log
Database Clean Configuration START hcndb
This operation may take few minutes.
Database Clean Configuration END hcndb

Network Configuration clean config START

Network de-configuration trace file location: /g01/app/oraInventory/logs/netdc_clean2013-01-15_11-19-23-PM.log

De-configuring Listener configuration file on all nodes...
Listener configuration file de-configured successfully.

De-configuring Naming Methods configuration file on all nodes...
Naming Methods configuration file de-configured successfully.

De-configuring Local Net Service Names configuration file on all nodes...
Local Net Service Names configuration file de-configured successfully.

De-configuring Directory Usage configuration file on all nodes...
Directory Usage configuration file de-configured successfully.

De-configuring backup files on all nodes...
Backup files de-configured successfully.

The network configuration has been cleaned up successfully.

Network Configuration clean config END

Oracle Configuration Manager clean START
OCM clean log file location : /g01/app/oraInventory/logs//ocm_clean_2013-01-15_11-17-06-PM.log
Oracle Configuration Manager clean END
Setting the force flag to false
Setting the force flag to cleanup the Oracle Base
Oracle Universal Installer clean START

Detach Oracle home '/u01/app/oracle/product/11.2.0/dbhome_1' from the central inventory on the local node : Done

Delete directory '/u01/app/oracle/product/11.2.0/dbhome_1' on the local node : Done

Delete directory '/u01/app/oracle' on the local node : Done

Detach Oracle home '/u01/app/oracle/product/11.2.0/dbhome_1' from the central inventory on the remote nodes 'hcn2' : Done

Delete directory '/u01/app/oracle/product/11.2.0/dbhome_1' on the remote nodes 'hcn2' : Done

Delete directory '/u01/app/oracle' on the remote nodes 'hcn2' : Done

Oracle Universal Installer cleanup was successful.

Oracle Universal Installer clean END


## [START] Oracle install clean ##

Clean install operation removing temporary directory '/tmp/deinstall2013-01-15_11-16-14PM' on node 'hcn1'
Clean install operation removing temporary directory '/tmp/deinstall2013-01-15_11-16-14PM' on node 'hcn2'

## [END] Oracle install clean ##


######################### CLEAN OPERATION END #########################


####################### CLEAN OPERATION SUMMARY #######################
Updated Enterprise Manager configuration for database hcndb
Successfully de-configured the following database instances : hcndb
Cleaning the config for CCR
As CCR is not configured, so skipping the cleaning of CCR configuration
CCR clean is finished
Successfully detached Oracle home '/u01/app/oracle/product/11.2.0/dbhome_1' from the central inventory on the local node.
Successfully deleted directory '/u01/app/oracle/product/11.2.0/dbhome_1' on the local node.
Successfully deleted directory '/u01/app/oracle' on the local node.
Successfully detached Oracle home '/u01/app/oracle/product/11.2.0/dbhome_1' from the central inventory on the remote nodes 'hcn2'.
Successfully deleted directory '/u01/app/oracle/product/11.2.0/dbhome_1' on the remote nodes 'hcn2'.
Successfully deleted directory '/u01/app/oracle' on the remote nodes 'hcn2'.
Oracle Universal Installer cleanup was successful.

Run 'rm -rf /opt/ORCLfmap' as root on node(s) 'hcn2' at the end of the session.
Oracle deinstall tool successfully cleaned up temporary directories.
#######################################################################


############# ORACLE DEINSTALL & DECONFIG TOOL END #############

按照提示用root用户执行 rm -rf /opt/ORCLfmap

执行后检查两个节点的oracle目录

[oracle@hcn1 u01]$ du -sh *
8.0K    admin
8.0K    app
492K    cfgtoollogs
16K     diag

[root@hcn2 ~]# cd /u01
[root@hcn2 u01]# du -sh *
8.0K    admin
8.0K    app
16K     cfgtoollogs
16K     diag
[root@hcn2 u01]#

相关的oracle软件安装目录已经清理

[grid@hcn1 deinstall]$ crs_stat -t
Name           Type           Target    State     Host        
------------------------------------------------------------
ora....UPDG.dg ora....up.type ONLINE    ONLINE    hcn1        
ora.DATA.dg    ora....up.type ONLINE    ONLINE    hcn1        
ora....ER.lsnr ora....er.type ONLINE    ONLINE    hcn1        
ora....N1.lsnr ora....er.type ONLINE    ONLINE    hcn1        
ora....EMDG.dg ora....up.type ONLINE    ONLINE    hcn1        
ora.asm        ora.asm.type   ONLINE    ONLINE    hcn1        
ora.cvu        ora.cvu.type   ONLINE    ONLINE    hcn1        
ora.gsd        ora.gsd.type   OFFLINE   OFFLINE               
ora....SM1.asm application    ONLINE    ONLINE    hcn1        
ora....N1.lsnr application    ONLINE    ONLINE    hcn1        
ora.hcn1.gsd   application    OFFLINE   OFFLINE               
ora.hcn1.ons   application    ONLINE    ONLINE    hcn1        
ora.hcn1.vip   ora....t1.type ONLINE    ONLINE    hcn1        
ora....SM2.asm application    ONLINE    ONLINE    hcn2        
ora....N2.lsnr application    ONLINE    ONLINE    hcn2        
ora.hcn2.gsd   application    OFFLINE   OFFLINE               
ora.hcn2.ons   application    ONLINE    ONLINE    hcn2        
ora.hcn2.vip   ora....t1.type ONLINE    ONLINE    hcn2        
ora....network ora....rk.type ONLINE    ONLINE    hcn1        
ora.oc4j       ora.oc4j.type  ONLINE    ONLINE    hcn1        
ora.ons        ora.ons.type   ONLINE    ONLINE    hcn1        
ora.scan1.vip  ora....ip.type ONLINE    ONLINE    hcn1        
[grid@hcn1 deinstall]$ 
[grid@hcn1 deinstall]$
相关的服务也已经清理


2、删除grid用户下相关的资源以及目录

[grid@hcn1 deinstall]$ ./deinstall -home $CRS_HOME
Location of logs /home/grid/deinstall/./logs/

############ ORACLE DEINSTALL & DECONFIG TOOL START ############


######################### CHECK OPERATION START #########################
## [START] Install check configuration ##


Checking for existence of the Oracle home location /g01/app/11.2.0/grid
Oracle Home type selected for deinstall is: Oracle Grid Infrastructure for a Cluster
Oracle Base selected for deinstall is: /g01/app/grid
Checking for existence of central inventory location /g01/app/oraInventory
Checking for existence of the Oracle Grid Infrastructure home /g01/app/11.2.0/grid
The following nodes are part of this cluster: hcn1,hcn2
Checking for sufficient temp space availability on node(s) : 'hcn1,hcn2'

## [END] Install check configuration ##

Traces log file: /home/grid/deinstall/./logs//crsdc.log

Network Configuration check config START

Network de-configuration trace file location: /home/grid/deinstall/./logs/netdc_check2013-01-15_11-24-47-PM.log

Specify all RAC listeners (do not include SCAN listener) that are to be de-configured [LISTENER]:

Network Configuration check config END

Asm Check Configuration START

ASM de-configuration trace file location: /home/grid/deinstall/./logs/asmcadc_check2013-01-15_11-24-55-PM.log

Automatic Storage Management (ASM) instance is detected in this Oracle home /g01/app/11.2.0/grid.
ASM Diagnostic Destination : /g01/app/grid
ASM Diskgroups : +BACKUPDG,+DATA,+SYSTEMDG
ASM diskstring : /dev/asm*
Diskgroups will be dropped
De-configuring ASM will drop all the diskgroups and it's contents at cleanup time. This will affect all of the databases and ACFS that use this ASM instance(s).
 If you want to retain the existing diskgroups or if any of the information detected is incorrect, you can modify by entering 'y'. Do you  want to modify above information (y|n) [n]: y
Specify the ASM Diagnostic Destination [/g01/app/grid]: 
Specify the diskstring [/dev/asm*]: 
Specify the diskgroups that are managed by this ASM instance [+BACKUPDG,+DATA,+SYSTEMDG]: 

De-configuring ASM will drop the diskgroups at cleanup time. Do you want deconfig tool to drop the diskgroups y|n [y]: y


######################### CHECK OPERATION END #########################


####################### CHECK OPERATION SUMMARY #######################
Oracle Grid Infrastructure Home is: /g01/app/11.2.0/grid
The cluster node(s) on which the Oracle home deinstallation will be performed are:hcn1,hcn2
Oracle Home selected for deinstall is: /g01/app/11.2.0/grid
Inventory Location where the Oracle home registered is: /g01/app/oraInventory
Following RAC listener(s) will be de-configured: LISTENER
ASM instance will be de-configured from this Oracle home
Do you want to continue (y - yes, n - no)? [n]: y
A log of this session will be written to: '/home/grid/deinstall/./logs/deinstall_deconfig2013-01-15_11-24-37-PM.out'
Any error messages from this session will be written to: '/home/grid/deinstall/./logs/deinstall_deconfig2013-01-15_11-24-37-PM.err'

######################## CLEAN OPERATION START ########################
ASM de-configuration trace file location: /home/grid/deinstall/./logs/asmcadc_clean2013-01-15_11-25-17-PM.log
ASM Clean Configuration START
ASM Clean Configuration END

Network Configuration clean config START

Network de-configuration trace file location: /home/grid/deinstall/./logs/netdc_clean2013-01-15_11-27-18-PM.log

De-configuring RAC listener(s): LISTENER

De-configuring listener: LISTENER
    Stopping listener: LISTENER
    Listener stopped successfully.
    Unregistering listener: LISTENER
    Listener unregistered successfully.
Listener de-configured successfully.

De-configuring Naming Methods configuration file on all nodes...
Naming Methods configuration file de-configured successfully.

De-configuring Local Net Service Names configuration file on all nodes...
Local Net Service Names configuration file de-configured successfully.

De-configuring Directory Usage configuration file on all nodes...
Directory Usage configuration file de-configured successfully.

De-configuring backup files on all nodes...
Backup files de-configured successfully.

The network configuration has been cleaned up successfully.

Network Configuration clean config END


---------------------------------------->

The deconfig command below can be executed in parallel on all the remote nodes. Execute the command on  the local node after the execution completes on all the remote nodes.

Run the following command as the root user or the administrator on node "hcn2".

/home/grid/deinstall/./perl/bin/perl -I/home/grid/deinstall/./perl/lib -I/home/grid/deinstall/./crs/install /home/grid/deinstall/./crs/install/rootcrs.pl -force  -deconfig -paramfile "/home/grid/deinstall/response/deinstall_Ora11g_gridinfrahome1.rsp"

Run the following command as the root user or the administrator on node "hcn1".

/home/grid/deinstall/./perl/bin/perl -I/home/grid/deinstall/./perl/lib -I/home/grid/deinstall/./crs/install /home/grid/deinstall/./crs/install/rootcrs.pl -force  -deconfig -paramfile "/home/grid/deinstall/response/deinstall_Ora11g_gridinfrahome1.rsp" -lastnode

Press Enter after you finish running the above commands

<----------------------------------------

根据提示先后在节点2和节点1上执行上述命令:

[root@hcn2 u01]# 
[root@hcn2 u01]# /home/grid/deinstall/./perl/bin/perl -I/home/grid/deinstall/./perl/lib -I/home/grid/deinstall/./crs/install /home/grid/deinstall/./crs/install/rootcrs.pl -force  -deconfig -paramfile "/home/grid/deinstall/response/deinstall_Ora11g_gridinfrahome1.rsp"
Using configuration parameter file: /home/grid/deinstall/response/deinstall_Ora11g_gridinfrahome1.rsp
Network exists: 1/192.168.100.0/255.255.255.0/eth0, type static
VIP exists: /192.168.100.172/192.168.100.172/192.168.100.0/255.255.255.0/eth0, hosting node hcn1
VIP exists: /hcn2-vip/192.168.100.174/192.168.100.0/255.255.255.0/eth0, hosting node hcn2
GSD exists
ONS exists: Local port 6100, remote port 6200, EM port 2016
CRS-2613: Could not find resource 'ora.registry.acfs'.
CRS-4000: Command Stop failed, or completed with errors.
CRS-2791: Starting shutdown of Oracle High Availability Services-managed resources on 'hcn2'
CRS-2673: Attempting to stop 'ora.crsd' on 'hcn2'
CRS-2790: Starting shutdown of Cluster Ready Services-managed resources on 'hcn2'
CRS-2673: Attempting to stop 'ora.asm' on 'hcn2'
CRS-2677: Stop of 'ora.asm' on 'hcn2' succeeded
CRS-2792: Shutdown of Cluster Ready Services-managed resources on 'hcn2' has completed
CRS-2677: Stop of 'ora.crsd' on 'hcn2' succeeded
CRS-2673: Attempting to stop 'ora.ctssd' on 'hcn2'
CRS-2673: Attempting to stop 'ora.evmd' on 'hcn2'
CRS-2673: Attempting to stop 'ora.asm' on 'hcn2'
CRS-2673: Attempting to stop 'ora.mdnsd' on 'hcn2'
CRS-2677: Stop of 'ora.evmd' on 'hcn2' succeeded
CRS-2677: Stop of 'ora.mdnsd' on 'hcn2' succeeded
CRS-2677: Stop of 'ora.ctssd' on 'hcn2' succeeded
CRS-2677: Stop of 'ora.asm' on 'hcn2' succeeded
CRS-2673: Attempting to stop 'ora.cluster_interconnect.haip' on 'hcn2'
CRS-2677: Stop of 'ora.cluster_interconnect.haip' on 'hcn2' succeeded
CRS-2673: Attempting to stop 'ora.cssd' on 'hcn2'
CRS-2677: Stop of 'ora.cssd' on 'hcn2' succeeded
CRS-2673: Attempting to stop 'ora.crf' on 'hcn2'
CRS-2677: Stop of 'ora.crf' on 'hcn2' succeeded
CRS-2673: Attempting to stop 'ora.gipcd' on 'hcn2'
CRS-2677: Stop of 'ora.gipcd' on 'hcn2' succeeded
CRS-2673: Attempting to stop 'ora.gpnpd' on 'hcn2'
CRS-2677: Stop of 'ora.gpnpd' on 'hcn2' succeeded
CRS-2793: Shutdown of Oracle High Availability Services-managed resources on 'hcn2' has completed
CRS-4133: Oracle High Availability Services has been stopped.
Successfully deconfigured Oracle clusterware stack on this node
[root@hcn2 u01]# 

[root@hcn1 ~]# 
[root@hcn1 ~]# /home/grid/deinstall/./perl/bin/perl -I/home/grid/deinstall/./perl/lib -I/home/grid/deinstall/./crs/install /home/grid/deinstall/./crs/install/rootcrs.pl -force  -deconfig -paramfile "/home/grid/deinstall/response/deinstall_Ora11g_gridinfrahome1.rsp" -lastnode
Using configuration parameter file: /home/grid/deinstall/response/deinstall_Ora11g_gridinfrahome1.rsp
Network exists: 1/192.168.100.0/255.255.255.0/eth0, type static
VIP exists: /192.168.100.172/192.168.100.172/192.168.100.0/255.255.255.0/eth0, hosting node hcn1
GSD exists
ONS exists: Local port 6100, remote port 6200, EM port 2016
CRS-2613: Could not find resource 'ora.registry.acfs'.
CRS-4000: Command Stop failed, or completed with errors.
CRS-2613: Could not find resource 'ora.registry.acfs'.
CRS-4000: Command Delete failed, or completed with errors.
CRS-2673: Attempting to stop 'ora.crsd' on 'hcn1'
CRS-2790: Starting shutdown of Cluster Ready Services-managed resources on 'hcn1'
CRS-2673: Attempting to stop 'ora.oc4j' on 'hcn1'
CRS-2673: Attempting to stop 'ora.asm' on 'hcn1'
CRS-2677: Stop of 'ora.asm' on 'hcn1' succeeded
CRS-2677: Stop of 'ora.oc4j' on 'hcn1' succeeded
CRS-2792: Shutdown of Cluster Ready Services-managed resources on 'hcn1' has completed
CRS-2677: Stop of 'ora.crsd' on 'hcn1' succeeded
CRS-2673: Attempting to stop 'ora.ctssd' on 'hcn1'
CRS-2673: Attempting to stop 'ora.evmd' on 'hcn1'
CRS-2673: Attempting to stop 'ora.asm' on 'hcn1'
CRS-2677: Stop of 'ora.evmd' on 'hcn1' succeeded
CRS-2677: Stop of 'ora.asm' on 'hcn1' succeeded
CRS-2673: Attempting to stop 'ora.cluster_interconnect.haip' on 'hcn1'
CRS-2677: Stop of 'ora.ctssd' on 'hcn1' succeeded
CRS-2677: Stop of 'ora.cluster_interconnect.haip' on 'hcn1' succeeded
CRS-2673: Attempting to stop 'ora.cssd' on 'hcn1'
CRS-2677: Stop of 'ora.cssd' on 'hcn1' succeeded
CRS-2613: Could not find resource 'ora.drivers.acfs'.
CRS-4000: Command Modify failed, or completed with errors.
CRS-2672: Attempting to start 'ora.cssdmonitor' on 'hcn1'
CRS-2676: Start of 'ora.cssdmonitor' on 'hcn1' succeeded
CRS-2672: Attempting to start 'ora.cssd' on 'hcn1'
CRS-2672: Attempting to start 'ora.diskmon' on 'hcn1'
CRS-2676: Start of 'ora.diskmon' on 'hcn1' succeeded
CRS-2676: Start of 'ora.cssd' on 'hcn1' succeeded
CRS-4611: Successful deletion of voting disk +SYSTEMDG.
ASM de-configuration trace file location: /home/grid/deinstall/./logs/asmcadc_clean2013-01-15_11-32-25-PM.log
ASM Clean Configuration START
ASM Clean Configuration END

ASM with SID +ASM1 deleted successfully. Check /home/grid/deinstall/./logs/asmcadc_clean2013-01-15_11-32-25-PM.log for details.

CRS-2613: Could not find resource 'ora.drivers.acfs'.
CRS-4000: Command Delete failed, or completed with errors.
CRS-2791: Starting shutdown of Oracle High Availability Services-managed resources on 'hcn1'
CRS-2673: Attempting to stop 'ora.ctssd' on 'hcn1'
CRS-2673: Attempting to stop 'ora.cluster_interconnect.haip' on 'hcn1'
CRS-2673: Attempting to stop 'ora.mdnsd' on 'hcn1'
CRS-2677: Stop of 'ora.mdnsd' on 'hcn1' succeeded
CRS-2677: Stop of 'ora.cluster_interconnect.haip' on 'hcn1' succeeded
CRS-2677: Stop of 'ora.ctssd' on 'hcn1' succeeded
CRS-2673: Attempting to stop 'ora.cssd' on 'hcn1'
CRS-2677: Stop of 'ora.cssd' on 'hcn1' succeeded
CRS-2673: Attempting to stop 'ora.crf' on 'hcn1'
CRS-2677: Stop of 'ora.crf' on 'hcn1' succeeded
CRS-2673: Attempting to stop 'ora.gipcd' on 'hcn1'
CRS-2677: Stop of 'ora.gipcd' on 'hcn1' succeeded
CRS-2673: Attempting to stop 'ora.gpnpd' on 'hcn1'
CRS-2677: Stop of 'ora.gpnpd' on 'hcn1' succeeded
CRS-2793: Shutdown of Oracle High Availability Services-managed resources on 'hcn1' has completed
CRS-4133: Oracle High Availability Services has been stopped.
Successfully deconfigured Oracle clusterware stack on this node
[root@hcn1 ~]# 

执行完上面的操作后,uninstall程序会继续执行后面的操作

Press Enter after you finish running the above commands

<----------------------------------------

Remove the directory: /home/grid/deinstall/. on node: hcn2
Setting the force flag to false
Setting the force flag to cleanup the Oracle Base
Oracle Universal Installer clean START

Detach Oracle home '/g01/app/11.2.0/grid' from the central inventory on the local node : Done

Delete directory '/g01/app/11.2.0/grid' on the local node : Done

Delete directory '/g01/app/oraInventory' on the local node : Done

Delete directory '/g01/app/grid' on the local node : Done

Detach Oracle home '/g01/app/11.2.0/grid' from the central inventory on the remote nodes 'hcn2' : Done

Delete directory '/g01/app/11.2.0/grid' on the remote nodes 'hcn2' : Done

Delete directory '/g01/app/oraInventory' on the remote nodes 'hcn2' : Done

Delete directory '/g01/app/grid' on the remote nodes 'hcn2' : Done

Oracle Universal Installer cleanup was successful.

Oracle Universal Installer clean END


## [START] Oracle install clean ##

Clean install operation removing temporary directory '/tmp/deinstall2013-01-15_11-24-37PM' on node 'hcn1'
Clean install operation removing temporary directory '/tmp/deinstall2013-01-15_11-24-37PM' on node 'hcn2'

## [END] Oracle install clean ##


######################### CLEAN OPERATION END #########################


####################### CLEAN OPERATION SUMMARY #######################
ASM instance was de-configured successfully from the Oracle home
Following RAC listener(s) were de-configured successfully: LISTENER
Oracle Clusterware is stopped and successfully de-configured on node "hcn2"
Oracle Clusterware is stopped and successfully de-configured on node "hcn1"
Oracle Clusterware is stopped and de-configured successfully.
Successfully detached Oracle home '/g01/app/11.2.0/grid' from the central inventory on the local node.
Successfully deleted directory '/g01/app/11.2.0/grid' on the local node.
Successfully deleted directory '/g01/app/oraInventory' on the local node.
Successfully deleted directory '/g01/app/grid' on the local node.
Successfully detached Oracle home '/g01/app/11.2.0/grid' from the central inventory on the remote nodes 'hcn2'.
Successfully deleted directory '/g01/app/11.2.0/grid' on the remote nodes 'hcn2'.
Successfully deleted directory '/g01/app/oraInventory' on the remote nodes 'hcn2'.
Successfully deleted directory '/g01/app/grid' on the remote nodes 'hcn2'.
Oracle Universal Installer cleanup was successful.


Run 'rm -rf /etc/oraInst.loc' as root on node(s) 'hcn1,hcn2' at the end of the session.

Oracle deinstall tool successfully cleaned up temporary directories.
#######################################################################


############# ORACLE DEINSTALL & DECONFIG TOOL END #############

[grid@hcn1 deinstall]$ 

按提示用root账号执行"rm -rf /etc/oraInst.loc",剩下检查grid目录的工作就不再列举了。

简单记录下操作的过程


如果有MOS账号,可以参考下:

How To Deinstall/Uninstall Oracle Home In 11gR2 [ID 883743.1]



















  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
在AIX上卸载Oracle数据库软件,可以按照以下步骤进行操作: 1. 停止Oracle数据库服务: - 使用root用户登录到AIX系统。 - 打开终端窗口,并使用root用户执行以下命令停止Oracle数据库服务: ``` # su - oracle $ dbshut ``` 2. 卸载Oracle软件: - 在终端窗口中,使用root用户执行以下命令以启动Oracle Universal Installer(OUI): ``` # cd <Oracle_Inventory_directory>/oui/bin # ./runInstaller ``` 其中,<Oracle_Inventory_directory>是Oracle Inventory目录的路径。 - 在OUI界面中,选择“Uninstall Products”,然后点击“Next”。 - 选择要卸载的Oracle软件,并点击“Next”。 - 在“Summary”页面上,确认要卸载的软件实例和位置,并点击“Remove”开始卸载过程。 - 等待卸载过程完成。 3. 删除Oracle Inventory目录: - 使用root用户执行以下命令来删除Oracle Inventory目录: ``` # rm -rf <Oracle_Inventory_directory> ``` 其中,<Oracle_Inventory_directory>是Oracle Inventory目录的路径。 4. 删除其他相关文件和目录: - 使用root用户执行以下命令来删除其他与Oracle数据库软件相关的文件和目录: ``` # rm -rf <ORACLE_HOME> # rm -rf /etc/oratab ``` 其中,<ORACLE_HOME>是Oracle数据库软件的安装目录。 请注意,在执行卸载操作之前,确保已经备份了重要的数据和配置文件。此外,你还可以参考Oracle官方文档或联系Oracle支持获取更详细的卸载指南。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值