卸载grid软件

在安装grid的时候,由于某种原因需要将grid软件卸载重新装,在网上搜集到如下信息:

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

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

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

2、从oracle官方网站上下载的deinstall工具 介质名称为aix.ppc64_11gR2_deinstall.zip

直接执行第一种方法,进入到 $ORACLE_HOME/deinstall/下,执行deinstall

cd  $ORACLE_HOME/deinstall/

./deinstall



Checking for required files and bootstrapping ...
Please wait ...
Location of logs /tmp/deinstall2010-03-05_12-32-34-PM/logs/
############ ORACLE DEINSTALL & DECONFIG TOOL START ############
######################## CHECK OPERATION START ########################
Install check configuration START
Checking for existence of the Oracle home location /grid
Oracle Home type selected for de-install is: CRS
Oracle Base selected for de-install is: /oracle
Checking for existence of central inventory location /oracle/oraInventory
Checking for existence of the Oracle Grid Infrastructure home
The following nodes are part of this cluster: p570a,p570b
Install check configuration END
Traces log file: /tmp/deinstall2010-03-05_12-32-34-PM/logs//crsdc.log
Enter an address or the name of the virtual IP used on node "p570a"[p570a-vip]
 >
The following information can be collected by running ifconfig -a on node "p570a"
Enter the IP netmask of Virtual IP "192.168.128.12" on node "p570a"[255.255.255.0]
 >
Enter the network interface name on which the virtual IP address "192.168.128.12" is active
 >
Enter an address or the name of the virtual IP used on node "p570b"[p570b-vip]
 >
The following information can be collected by running ifconfig -a on node "p570b"
Enter the IP netmask of Virtual IP "192.168.128.13" on node "p570b"[255.255.255.0]
 >
Enter the network interface name on which the virtual IP address "192.168.128.13" is active
 >
Enter an address or the name of the virtual IP[]
 >
Network Configuration check config START
Network de-configuration trace file location: /tmp/deinstall2010-03-05_12-32-34-PM/logs/netdc_check3943047409382157255.log
Network Configuration check config END
Asm Check Configuration START
ASM de-configuration trace file location: /tmp/deinstall2010-03-05_12-32-34-PM/logs/asmcadc_check8859913828659895984.log
ASM configuration was not detected in this Oracle home. Was ASM configured in this Oracle home (y|n) [n]: y
Is OCR/Voting Disk placed in ASM y|n [n]: y
Enter the OCR/Voting Disk diskgroup name []:
Specify the ASM Diagnostic Destination [ ]:
Specify the diskgroups that are managed by this ASM instance []:
######################### CHECK OPERATION END #########################
####################### CHECK OPERATION SUMMARY #######################
Oracle Grid Infrastructure Home is:
The cluster node(s) on which the Oracle home exists are: (Please input nodes seperated by ",", eg: node1,node2,...)p570a,p570b
Oracle Home selected for de-install is: /grid
Inventory Location where the Oracle home registered is: /oracle/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-03-05_12-32-34-PM/logs/deinstall_deconfig2010-03-05_12-33-38-PM.out'
Any error messages from this session will be written to: '/tmp/deinstall2010-03-05_12-32-34-PM/logs/deinstall_deconfig2010-03-05_12-33-38-PM.err'
######################## CLEAN OPERATION START ########################
ASM de-configuration trace file location: /tmp/deinstall2010-03-05_12-32-34-PM/logs/asmcadc_clean6608625374089856517.log
ASM Clean Configuration START
ASM Clean Configuration END
Network Configuration clean config START
Network de-configuration trace file location: /tmp/deinstall2010-03-05_12-32-34-PM/logs/netdc_clean5624344075530317905.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
---------------------------------------->
Run the following command as the root user or the administrator on node "p570a".
/tmp/deinstall2010-03-05_12-32-34-PM/perl/bin/perl -I/tmp/deinstall2010-03-05_12-32-34-PM/perl/lib -I/tmp/deinstall2010-03-05_12-32-34-PM/crs/install /tmp/deinstall2010-03-05_12-32-34-PM/crs/install/rootcrs.pl -force  -delete -paramfile /tmp/deinstall2010-03-05_12-32-34-PM/response/deinstall_Ora11g_gridinfrahome1.rsp
Press Enter after you finish running the above commands
<----------------------------------------
enter
Oracle Universal Installer clean START
Detach Oracle home '/grid' from the central inventory on the local node : Done
Delete directory '/oracle/oraInventory' on the local node : Done
The Oracle Base directory '/oracle' will not be removed on local node. The directory is not empty.
Detach Oracle home '/grid' from the central inventory on the remote nodes 'p570a' : Done
Could not remove listed directories based on '/tmp/OraInstall2010-03-05_12-41-42-PM/installRemoveDirFile.lst' from nodes 'p570a'. [PRKC-1083 : Failed to remove listed directory in "/tmp/OraInstall2010-03-05_12-41-42-PM/installRemoveDirFile.lst" to any of the
given nodes "p570a ".
Error on node p570a:null]
Delete directory '/oracle/oraInventory' on the remote nodes 'p570a' : Done
The Oracle Base directory '/oracle' will not be removed on node 'p570a'. The directory is not empty.
Oracle Universal Installer cleanup completed with errors.
Oracle Universal Installer clean END
Oracle install clean START
Clean install operation removing temporary directory '/tmp//install' on node 'p570b'
Clean install operation removing temporary directory '/tmp//install' on node 'p570a'
Oracle install clean END
Moved default properties file /tmp/deinstall2010-03-05_12-32-34-PM/response/deinstall_Ora11g_gridinfrahome1.rsp as /tmp/deinstall2010-03-05_12-32-34-PM/response/deinstall_Ora11g_gridinfrahome1.rsp1
######################### CLEAN OPERATION END #########################
####################### CLEAN OPERATION SUMMARY #######################
ASM instance was de-configured successfully from the Oracle home
Oracle Clusterware was already stopped and de-configured on node "p570b"
Oracle Clusterware is stopped and successfully de-configured on node "p570a"
Oracle Clusterware is stopped and de-configured successfully.
Successfully detached Oracle home '/grid' from the central inventory on the local node.
Failed to delete directory '/grid' on the local node.
Successfully deleted directory '/oracle/oraInventory' on the local node.
Successfully detached Oracle home '/grid' from the central inventory on the remote nodes 'p570a'.
Failed to delete directory '/grid' on the remote nodes 'p570a'.
Successfully deleted directory '/oracle/oraInventory' on the remote nodes 'p570a'.
Oracle Universal Installer cleanup completed with errors.
Run'rm -rf /etc/oraInst.loc'as root on node(s) 'p570b,p570a' at the end of the session.
Oracle install successfully cleaned up the temporary directories.

    执行 提示


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

安装提示执行,删除的非常干净,然后在这上面重新安装grid和database时,能够成功安装。

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/31546994/viewspace-2213269/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/31546994/viewspace-2213269/

  • 1
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值