在oracle 11gR2以前的版本中,卸载CRS和oracle database时需要手工去删除部分东西,从oracle 11gR2版本开始新增deinstall命令可以卸载grid和database,new oui版本中不再支持卸载,可以删除的非常干净,需要手工删除的话,deinstall命令也会有提示出来。
[grid@rac1 ~]$ cd /oracle/app/grid/product/11.2.0/deinstall/

[grid@rac1 deinstall]$ ./deinstall

Checking for required files and bootstrapping ...
Please wait ...
Location of logs /tmp/deinstall2010-08-02_12-50-24-PM/logs/
>>##  DEINSTALL & DECONFIG TOOL START >>##

>>>>#### CHECK OPERATION START >>>>####
Install check configuration START

Checking for existence of the Oracle home location /oracle/app/grid/product/11.2.0
Oracle Home type selected for de-install is: CRS
Oracle Base selected for de-install is: /oracle/app/oracle
Checking for existence of central inventory location /oracle/app/oraInventory
Checking for existence of the Oracle Grid Infrastructure home /oracle/app/grid/product/11.2.0
The following nodes are part of this cluster: rac1,rac2
Install check configuration END
Traces log file: /tmp/deinstall2010-08-02_12-50-24-PM/logs//crsdc.log
Network Configuration check config START
Network de-configuration trace file location: /tmp/deinstall2010-08-02_12-50-24-PM/logs/ne
tdc_check3727611104686472502.log
Network Configuration check config END
Asm Check Configuration START
oracle客户端卸载步骤
ASM de-configuration trace file location: /tmp/deinstall2010-08-02_12-50-24-PM/logs/asmcadc_check3719702873382016900.log
Automatic Storage Management (ASM) instance is detected in this Oracle home /oracle/app/grid/product/11.2.0.
ASM Diagnostic Destination : /oracle/app/oracle
ASM Diskgroups : +CRS
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 incorrec
t, you can modify by entering 'y'. Do you  want to modify above information (y|n) [n]: y
Specify the ASM Diagnostic Destination [/oracle/app/oracle]:
Specify the diskgroups that are managed by this ASM instance [+CRS]:
De-configuring ASM will drop all 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: /oracle/app/grid/product/11.2.0
The cluster node(s) on which the Oracle home exists are: (Please input nodes seperated by ",", eg: node1,node2,...)rac1,rac2
Oracle Home selected for de-install is: /oracle/app/grid/product/11.2.0
Inventory Location where the Oracle home registered is: /oracle/app/oraInventory
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: '/tmp/deinstall2010-08-02_12-50-24-PM/logs/deinstall_deconfig2010-08-02_12-52-52-PM.out'
Any error messages from this session will be written to: '/tmp/deinstall2010-08-02_12-50-24-PM/logs/deinstall_'
>>>>#### CLEAN OPERATION START >>>>####ASM de-configuration trace file location: /tmp/deinstall2010-08-02_12-50-24-PM/logs/asmcadc_clean2327220596251819051.log
ASM Clean Configuration START
ASM Clean Configuration END
Network Configuration clean config START
Network de-configuration trace file location: /tmp/deinstall2010-08-02_12-50-24-PM/logs/ne
tdc_clean8273718125405356927.log
De-configuring Naming Methods configuration file on
Naming Methods configuration file de-configured successfully.
De-configuring Local Net Service Names configuration file on
Local Net Service Names configuration file de-configured successfully.
De-configuring Directory Usage configuration file on
Directory Usage configuration file de-configured successfully.
De-configuring backup files on
Backup files de-configured successfully.
The network configuration has been cleaned up successfully.
Network Configuration clean config END

-
--------------------------------------->
Run the following command as the root user or the administrator on node "rac1".
/tmp/deinstall2010-08-02_12-50-24-PM/perl/bin/perl -I/tmp/deinstall2010-08-02_12-50-24-PM/perl/lib -I/tmp/deinstall2010-08-02_12-50-24-PM/crs/install /tmp/deinstall2010-08-02_12-50-24-PM/crs/install/rootcrs.pl -force  -delete -paramfile /tmp/deinstall2010-08-02_12-50-24-PM/response/deinstall_Ora11g_gridinfrahome1.rsp -lastnode
Press Enter after you finish running the above commands
<----------------------------------------
enter
Oracle Universal Installer clean START
Detach Oracle home '/oracle/app/grid/product/11.2.0' from the central inventory on the local node : Done

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。

发表评论