deinstall oracle GI verbose information
step 1 . change current directory
cd /u01/app/11.2.0/grid/deinstall
step 2 . execute deinstall scripts
./deinstall
step 3. configuration information
[grid@rac02 deinstall]$ ./deinstall
Checking for required files and bootstrapping ...
Please wait ...
Location of logs /tmp/deinstall2016-01-14_02-23-15PM/logs/
############ ORACLE DEINSTALL & DECONFIG TOOL START ############
######################### CHECK OPERATION START #########################
## [START] Install check configuration ##
Checking for existence of the Oracle home location /u01/app/11.2.0/grid
Oracle Home type selected for deinstall is: Oracle Grid Infrastructure for a Cluster
Oracle Base selected for deinstall is: /u01/app/grid
Checking for existence of central inventory location /u01/app/oraInventory
Checking for existence of the Oracle Grid Infrastructure home /u01/app/11.2.0/grid
The following nodes are part of this cluster: rac02,rac01
Checking for sufficient temp space availability on node(s) : 'rac02,rac01'
## [END] Install check configuration ##
Traces log file: /tmp/deinstall2016-01-14_02-23-15PM/logs//crsdc.log
Enter an address or the name of the virtual IP used on node "rac02"[null]
>
192.168.1.222
The following information can be collected by running "/sbin/ifconfig -a" on node "rac02"
Enter the IP netmask of Virtual IP "192.168.1.222" on node "rac02"[255.255.255.0]
>
Enter the network interface name on which the virtual IP address "192.168.1.222" is active
>
Enter an address or the name of the virtual IP used on node "rac01"[192.168.1.222]
>
192.168.1.111
The following information can be collected by running "/sbin/ifconfig -a" on node "rac01"
Enter the IP netmask of Virtual IP "192.168.1.111" on node "rac01"[255.255.255.0]
>
Enter the network interface name on which the virtual IP address "192.168.1.111" is active
>
Enter an address or the name of the virtual IP[]
>
Network Configuration check config START
Network de-configuration trace file location: /tmp/deinstall2016-01-14_02-23-15PM/logs/netdc_check2016-01-14_02-26-03-PM.log
Network Configuration check config END
Asm Check Configuration START
ASM de-configuration trace file location: /tmp/deinstall2016-01-14_02-23-15PM/logs/asmcadc_check2016-01-14_02-26-03-PM.log
ASM configuration was not detected in this Oracle home. Was ASM configured in this Oracle home (y|n) [n]: y
Specify the ASM Diagnostic Destination [ ]: /u01/app/11.2.0/grid
Specify the diskstring [/dev/*]: /dev/oracleasm/disks/*
Specify the diskgroups that are managed by this ASM instance []: +votedisk
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: /u01/app/11.2.0/grid
The cluster node(s) on which the Oracle home deinstallation will be performed are:rac02,rac01
Oracle Home selected for deinstall is: /u01/app/11.2.0/grid
Inventory Location where the Oracle home registered is: /u01/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/deinstall2016-01-14_02-23-15PM/logs/deinstall_deconfig2016-01-14_02-23-43-PM.out'
Any error messages from this session will be written to: '/tmp/deinstall2016-01-14_02-23-15PM/logs/deinstall_deconfig2016-01-14_02-23-43-PM.err'
######################## CLEAN OPERATION START ########################
ASM de-configuration trace file location: /tmp/deinstall2016-01-14_02-23-15PM/logs/asmcadc_clean2016-01-14_02-50-26-PM.log
ASM Clean Configuration START
ASM Clean Configuration END
Network Configuration clean config START
Network de-configuration trace file location: /tmp/deinstall2016-01-14_02-23-15PM/logs/netdc_clean2016-01-14_02-50-27-PM.log
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
step 4. execute scripts on nodes rac01
/tmp/deinstall2016-01-14_02-23-15PM/perl/bin/perl -I/tmp/deinstall2016-01-14_02-23-15PM/perl/lib -I/tmp/deinstall2016-01-14_02-23-15PM/crs/install /tmp/deinstall2016-01-14_02-23-15PM/crs/install/rootcrs.pl -force -deconfig -paramfile "/tmp/deinstall2016-01-14_02-23-15PM/response/deinstall_Ora11g_gridinfrahome1.rsp"
step 5. execute scripts on nodes rac02
/tmp/deinstall2016-01-14_02-23-15PM/perl/bin/perl -I/tmp/deinstall2016-01-14_02-23-15PM/perl/lib -I/tmp/deinstall2016-01-14_02-23-15PM/crs/install /tmp/deinstall2016-01-14_02-23-15PM/crs/install/rootcrs.pl -force -deconfig -paramfile "/tmp/deinstall2016-01-14_02-23-15PM/response/deinstall_Ora11g_gridinfrahome1.rsp" -lastnode
---------------------------------------->
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 "rac01".
/tmp/deinstall2016-01-14_02-23-15PM/perl/bin/perl -I/tmp/deinstall2016-01-14_02-23-15PM/perl/lib -I/tmp/deinstall2016-01-14_02-23-15PM/crs/install /tmp/deinstall2016-01-14_02-23-15PM/crs/install/rootcrs.pl -force -deconfig -paramfile "/tmp/deinstall2016-01-14_02-23-15PM/response/deinstall_Ora11g_gridinfrahome1.rsp"
Run the following command as the root user or the administrator on node "rac02".
/tmp/deinstall2016-01-14_02-23-15PM/perl/bin/perl -I/tmp/deinstall2016-01-14_02-23-15PM/perl/lib -I/tmp/deinstall2016-01-14_02-23-15PM/crs/install /tmp/deinstall2016-01-14_02-23-15PM/crs/install/rootcrs.pl -force -deconfig -paramfile "/tmp/deinstall2016-01-14_02-23-15PM/response/deinstall_Ora11g_gridinfrahome1.rsp" -lastnode
Press Enter after you finish running the above commands
<----------------------------------------
step 6. execute scripts on each rac01 and rac02 then press "ENTER" key
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/11.2.0/grid' from the central inventory on the local node : Done
Delete directory '/u01/app/11.2.0/grid' on the local node : Done
Delete directory '/u01/app/oraInventory' on the local node : Done
Delete directory '/u01/app/grid' on the local node : Done
Detach Oracle home '/u01/app/11.2.0/grid' from the central inventory on the remote nodes 'rac01' : Done
Delete directory '/u01/app/11.2.0/grid' on the remote nodes 'rac01' : Done
Delete directory '/u01/app/oraInventory' on the remote nodes 'rac01' : Done
Delete directory '/u01/app/grid' on the remote nodes 'rac01' : Done
Oracle Universal Installer cleanup was successful.
Oracle Universal Installer clean END
## [START] Oracle install clean ##
Clean install operation removing temporary directory '/tmp/deinstall2016-01-14_02-23-15PM' on node 'rac02'
Clean install operation removing temporary directory '/tmp/deinstall2016-01-14_02-23-15PM' on node 'rac01'
## [END] Oracle install clean ##
######################### CLEAN OPERATION END #########################
####################### CLEAN OPERATION SUMMARY #######################
ASM instance was de-configured successfully from the Oracle home
Oracle Clusterware is stopped and successfully de-configured on node "rac02"
Oracle Clusterware is stopped and successfully de-configured on node "rac01"
Oracle Clusterware is stopped and de-configured successfully.
Successfully detached Oracle home '/u01/app/11.2.0/grid' from the central inventory on the local node.
Successfully deleted directory '/u01/app/11.2.0/grid' on the local node.
Successfully deleted directory '/u01/app/oraInventory' on the local node.
Successfully deleted directory '/u01/app/grid' on the local node.
Successfully detached Oracle home '/u01/app/11.2.0/grid' from the central inventory on the remote nodes 'rac01'.
Successfully deleted directory '/u01/app/11.2.0/grid' on the remote nodes 'rac01'.
Successfully deleted directory '/u01/app/oraInventory' on the remote nodes 'rac01'.
Successfully deleted directory '/u01/app/grid' on the remote nodes 'rac01'.
Oracle Universal Installer cleanup was successful.
Run 'rm -rf /etc/oraInst.loc' as root on node(s) 'rac02,rac01' at the end of the session.
Run 'rm -rf /opt/ORCLfmap' as root on node(s) 'rac02,rac01' at the end of the session.
Run 'rm -rf /etc/oratab' as root on node(s) 'rac02' at the end of the session.
Oracle deinstall tool successfully cleaned up temporary directories.
#######################################################################
############# ORACLE DEINSTALL & DECONFIG TOOL END #############
------ The End --------
思路:
1、你首先要告诉数据库各个节点的VIP地址,她会和你确认掩码、是否激活
2、如果在删除过程要处理ASM,把HOME目录、磁盘组名称、绝对路径位置给她
3、一边执行完成再到另一边执行
4、细心的注意提示
5、检查进程、删除目录和多余的信息