rac 卸载手动

1、通过root用户进入到grid的ORACLE_HOME

[root@db01]# source /home/grid/.bash_profile
[root@db01]# cd $ORACLE_HOME/crs/install/


2、执行如下两个脚本(只在其中一个节点执行,root用户)
[root@db01]# ./rootcrs.pl -verbose -deconfig -force
[root@db01]# ./crsconfig_params

3、切换到grid用户,执行deinstall 进行卸载,按照提示完成,完成后再去另一个节点按提示执行相应脚本。

[root@db01]# su - grid
[grid@db01]$ ./deinstall


[grid@vdb1 deinstall]$ ./deinstall
  2 Checking for required files and bootstrapping ...
  3 Please wait ...
  4 Location of logs /tmp/deinstall2014-08-22_09-57-47AM/logs/
  5 
  6 ############ ORACLE DEINSTALL & DECONFIG TOOL START ############
  7 
  8 
  9 ######################### CHECK OPERATION START #########################
 10 ## [START] Install check configuration ##
 11 
 12 
 13 Checking for existence of the Oracle home location /g01/grid/app/11.2.0/grid
 14 Oracle Home type selected for deinstall is: Oracle Grid Infrastructure for a Cluster
 15 Oracle Base selected for deinstall is: /g01/orabase
 16 Checking for existence of central inventory location /g01/oraInventory
 17 Checking for existence of the Oracle Grid Infrastructure home 
 18 The following nodes are part of this cluster: vdb1,vdb2
 19 Checking for sufficient temp space availability on node(s) : 'vdb1,vdb2'
 20 
 21 ## [END] Install check configuration ##
 22 
 23 Traces log file: /tmp/deinstall2014-08-22_09-57-47AM/logs//crsdc.log
 24 Enter an address or the name of the virtual IP used on node "vdb1"[vdb1-vip]
 25  > 
 26 
 27 The following information can be collected by running "/sbin/ifconfig -a" on node "vdb1"
 28 Enter the IP netmask of Virtual IP "192.168.179.182" on node "vdb1"[255.255.255.0]
 29  > 
 30 
 31 Enter the network interface name on which the virtual IP address "192.168.179.182" is active
 32  > 
 33 
 34 Enter an address or the name of the virtual IP used on node "vdb2"[vdb2-vip]
 35  > 
 36 
 37 The following information can be collected by running "/sbin/ifconfig -a" on node "vdb2"
 38 Enter the IP netmask of Virtual IP "192.168.179.184" on node "vdb2"[255.255.255.0]
 39  > 
 40 
 41 Enter the network interface name on which the virtual IP address "192.168.179.184" is active
 42  > 
 43 
 44 Enter an address or the name of the virtual IP[]
 45  > 
 46 
 47 
 48 Network Configuration check config START
 49 
 50 Network de-configuration trace file location: /tmp/deinstall2014-08-22_09-57-47AM/logs/netdc_check2014-08-22_10-01-03-AM.log
 51 
 52 Specify all RAC listeners (do not include SCAN listener) that are to be de-configured [LISTENER,LISTENER_SCAN3,LISTENER_SCAN2,LISTENER_SCAN1]:
 53 
 54 Network Configuration check config END
 55 
 56 Asm Check Configuration START
 57 
 58 ASM de-configuration trace file location: /tmp/deinstall2014-08-22_09-57-47AM/logs/asmcadc_check2014-08-22_10-01-12-AM.log
 59 
 60 ASM configuration was not detected in this Oracle home. Was ASM configured in this Oracle home (y|n) [n]: y
 61 Is OCR/Voting Disk placed in ASM y|n [n]: y
 62 
 63 Enter the OCR/Voting Disk diskgroup name []: +CRSDG
 64 Specify the ASM Diagnostic Destination [ ]: 
 65 Specify the diskstring []: /dev/*
 66 Specify the diskgroups that are managed by this ASM instance []: 
 67 
 68 
 69 ######################### CHECK OPERATION END #########################
 70 
 71 
 72 ####################### CHECK OPERATION SUMMARY #######################
 73 Oracle Grid Infrastructure Home is: 
 74 The cluster node(s) on which the Oracle home deinstallation will be performed are:vdb1,vdb2
 75 Oracle Home selected for deinstall is: /g01/grid/app/11.2.0/grid
 76 Inventory Location where the Oracle home registered is: /g01/oraInventory
 77 Following RAC listener(s) will be de-configured: LISTENER,LISTENER_SCAN3,LISTENER_SCAN2,LISTENER_SCAN1
 78 ASM instance will be de-configured from this Oracle home
 79 Do you want to continue (y - yes, n - no)? [n]: y
 80 A log of this session will be written to: '/tmp/deinstall2014-08-22_09-57-47AM/logs/deinstall_deconfig2014-08-22_09-57-55-AM.out'
 81 Any error messages from this session will be written to: '/tmp/deinstall2014-08-22_09-57-47AM/logs/deinstall_deconfig2014-08-22_09-57-55-AM.err'
 82 
 83 ######################## CLEAN OPERATION START ########################
 84 ASM de-configuration trace file location: /tmp/deinstall2014-08-22_09-57-47AM/logs/asmcadc_clean2014-08-22_10-05-45-AM.log
 85 ASM Clean Configuration START
 86 ASM Clean Configuration END
 87 
 88 Network Configuration clean config START
 89 
 90 Network de-configuration trace file location: /tmp/deinstall2014-08-22_09-57-47AM/logs/netdc_clean2014-08-22_10-05-46-AM.log
 91 
 92 De-configuring RAC listener(s): LISTENER,LISTENER_SCAN3,LISTENER_SCAN2,LISTENER_SCAN1
 93 
 94 De-configuring listener: LISTENER
 95     Stopping listener: LISTENER
 96     Warning: Failed to stop listener. Listener may not be running.
 97 Listener de-configured successfully.
 98 
 99 De-configuring listener: LISTENER_SCAN3
100     Stopping listener: LISTENER_SCAN3
101     Warning: Failed to stop listener. Listener may not be running.
102 Listener de-configured successfully.
103 
104 De-configuring listener: LISTENER_SCAN2
105     Stopping listener: LISTENER_SCAN2
106     Warning: Failed to stop listener. Listener may not be running.
107 Listener de-configured successfully.
108 
109 De-configuring listener: LISTENER_SCAN1
110     Stopping listener: LISTENER_SCAN1
111     Warning: Failed to stop listener. Listener may not be running.
112 Listener de-configured successfully.
113 
114 De-configuring Naming Methods configuration file on all nodes...
115 Naming Methods configuration file de-configured successfully.
116 
117 De-configuring Local Net Service Names configuration file on all nodes...
118 Local Net Service Names configuration file de-configured successfully.
119 
120 De-configuring Directory Usage configuration file on all nodes...
121 Directory Usage configuration file de-configured successfully.
122 
123 De-configuring backup files on all nodes...
124 Backup files de-configured successfully.
125 
126 The network configuration has been cleaned up successfully.
127 
128 Network Configuration clean config END
129 
130 
131 ---------------------------------------->
132 
133 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.
134 
135 Run the following command as the root user or the administrator on node "vdb2".
136 去执行下面脚本:
137 /tmp/deinstall2014-08-22_09-57-47AM/perl/bin/perl -I/tmp/deinstall2014-08-22_09-57-47AM/perl/lib -I/tmp/deinstall2014-08-22_09-57-47AM/crs/install /tmp/deinstall2014-08-22_09-57-47AM/crs/install/rootcrs.pl -force  -deconfig -paramfile "/tmp/deinstall2014-08-22_09-57-47AM/response/deinstall_Ora11g_gridinfrahome1.rsp"
138 
139 Run the following command as the root user or the administrator on node "vdb1".
140 
去执行下面脚本:
141 /tmp/deinstall2014-08-22_09-57-47AM/perl/bin/perl -I/tmp/deinstall2014-08-22_09-57-47AM/perl/lib -I/tmp/deinstall2014-08-22_09-57-47AM/crs/install /tmp/deinstall2014-08-22_09-57-47AM/crs/install/rootcrs.pl -force -deconfig -paramfile "/tmp/deinstall2014-08-22_09-57-47AM/response/deinstall_Ora11g_gridinfrahome1.rsp" -lastnode142 143 Press Enter after you finish running the above commands144 145 <----------------------------------------146 147 Setting the force flag to false148 Setting the force flag to cleanup the Oracle Base149 Oracle Universal Installer clean START150 151 Detach Oracle home '/g01/grid/app/11.2.0/grid' from the central inventory on the local node : Done152 153 Delete directory '/g01/grid/app/11.2.0/grid' on the local node : Done154 155 Delete directory '/g01/oraInventory' on the local node : Done156 157 Delete directory '/g01/orabase' on the local node : Done158 159 Detach Oracle home '/g01/grid/app/11.2.0/grid' from the central inventory on the remote nodes 'vdb2' : Done160 161 Delete directory '/g01/grid/app/11.2.0/grid' on the remote nodes 'vdb2' : Done162 163 Delete directory '/g01/oraInventory' on the remote nodes 'vdb2' : Done164 165 Delete directory '/g01/orabase' on the remote nodes 'vdb2' : Done166 167 Oracle Universal Installer cleanup was successful.168 169 Oracle Universal Installer clean END170 171 172 ## [START] Oracle install clean ##173 174 Clean install operation removing temporary directory '/tmp/deinstall2014-08-22_09-57-47AM' on node 'vdb1'175 Clean install operation removing temporary directory '/tmp/deinstall2014-08-22_09-57-47AM' on node 'vdb2'176 177 ## [END] Oracle install clean ##178 179 180 ######################### CLEAN OPERATION END #########################181 182 183 ####################### CLEAN OPERATION SUMMARY #######################184 ASM instance was de-configured successfully from the Oracle home185 Following RAC listener(s) were de-configured successfully: LISTENER,LISTENER_SCAN3,LISTENER_SCAN2,LISTENER_SCAN1186 Oracle Clusterware is stopped and successfully de-configured on node "vdb2"187 Oracle Clusterware is stopped and successfully de-configured on node "vdb1"188 Oracle Clusterware is stopped and de-configured successfully.189 Successfully detached Oracle home '/g01/grid/app/11.2.0/grid' from the central inventory on the local node.190 Successfully deleted directory '/g01/grid/app/11.2.0/grid' on the local node.191 Successfully deleted directory '/g01/oraInventory' on the local node.192 Successfully deleted directory '/g01/orabase' on the local node.193 Successfully detached Oracle home '/g01/grid/app/11.2.0/grid' from the central inventory on the remote nodes 'vdb2'.194 Successfully deleted directory '/g01/grid/app/11.2.0/grid' on the remote nodes 'vdb2'.195 Successfully deleted directory '/g01/oraInventory' on the remote nodes 'vdb2'.196 Successfully deleted directory '/g01/orabase' on the remote nodes 'vdb2'.197 Oracle Universal Installer cleanup was successful.198 199 200 Run 'rm -rf /etc/oraInst.loc' as root on node(s) 'vdb1,vdb2' at the end of the session.201 202 Run 'rm -rf /opt/ORCLfmap' as root on node(s) 'vdb1,vdb2' at the end of the session.203 Run 'rm -rf /etc/oratab' as root on node(s) 'vdb1' at the end of the session.204 Oracle deinstall tool successfully cleaned up temporary directories.205 #######################################################################206 207 208 ############# ORACLE DEINSTALL & DECONFIG TOOL END #############

  
4、用root删除/etc/目录下的oracle相关文件(两节点执行)

[grid@db01]$ exit
[root@db01]# rm -rf /etc/oraInst.loc

[root@db01]# rm -rf /opt/ORCLfmap

[root@db01]# rm -rf /etc/oratab


5、格式化ASM磁盘头。
[root@db01] dd if=/dev/zero count=10 bs=512 of=/dev/sde1  
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值