如何卸载grid软件
这篇文章给大家分享的是有关如何卸载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
Checkingforrequiredfilesandbootstrapping...Pleasewait...Locationoflogs/tmp/deinstall2010-03-05_12-32-34-PM/logs/############ORACLEDEINSTALL&DECONFIGTOOLSTART####################################CHECKOPERATIONSTART########################InstallcheckconfigurationSTARTCheckingforexistenceoftheOraclehomelocation/gridOracleHometypeselectedforde-installis:CRSOracleBaseselectedforde-installis:/oracleCheckingforexistenceofcentralinventorylocation/oracle/oraInventoryCheckingforexistenceoftheOracleGridInfrastructurehomeThefollowingnodesarepartofthiscluster:p570a,p570bInstallcheckconfigurationENDTraceslogfile:/tmp/deinstall2010-03-05_12-32-34-PM/logs//crsdc.logEnteranaddressorthenameofthevirtualIPusedonnode"p570a"[p570a-vip]>Thefollowinginformationcanbecollectedbyrunningifconfig-aonnode"p570a"EntertheIPnetmaskofVirtualIP"192.168.128.12"onnode"p570a"[255.255.255.0]>EnterthenetworkinterfacenameonwhichthevirtualIPaddress"192.168.128.12"isactive>EnteranaddressorthenameofthevirtualIPusedonnode"p570b"[p570b-vip]>Thefollowinginformationcanbecollectedbyrunningifconfig-aonnode"p570b"EntertheIPnetmaskofVirtualIP"192.168.128.13"onnode"p570b"[255.255.255.0]>EnterthenetworkinterfacenameonwhichthevirtualIPaddress"192.168.128.13"isactive>EnteranaddressorthenameofthevirtualIP[]>NetworkConfigurationcheckconfigSTARTNetworkde-configurationtracefilelocation:/tmp/deinstall2010-03-05_12-32-34-PM/logs/netdc_check3943047409382157255.logNetworkConfigurationcheckconfigENDAsmCheckConfigurationSTARTASMde-configurationtracefilelocation:/tmp/deinstall2010-03-05_12-32-34-PM/logs/asmcadc_check8859913828659895984.logASMconfigurationwasnotdetectedinthisOraclehome.WasASMconfiguredinthisOraclehome(y|n)[n]:yIsOCR/VotingDiskplacedinASMy|n[n]:yEntertheOCR/VotingDiskdiskgroupname[]:SpecifytheASMDiagnosticDestination[]:SpecifythediskgroupsthataremanagedbythisASMinstance[]:#########################CHECKOPERATIONEND################################################CHECKOPERATIONSUMMARY#######################OracleGridInfrastructureHomeis:Theclusternode(s)onwhichtheOraclehomeexistsare:(Pleaseinputnodesseperatedby",",eg:node1,node2,...)p570a,p570bOracleHomeselectedforde-installis:/gridInventoryLocationwheretheOraclehomeregisteredis:/oracle/oraInventoryASMinstancewillbede-configuredfromthisOraclehomeDoyouwanttocontinue(y-yes,n-no)?[n]:yAlogofthissessionwillbewrittento:'/tmp/deinstall2010-03-05_12-32-34-PM/logs/deinstall_deconfig2010-03-05_12-33-38-PM.out'Anyerrormessagesfromthissessionwillbewrittento:'/tmp/deinstall2010-03-05_12-32-34-PM/logs/deinstall_deconfig2010-03-05_12-33-38-PM.err'########################CLEANOPERATIONSTART########################ASMde-configurationtracefilelocation:/tmp/deinstall2010-03-05_12-32-34-PM/logs/asmcadc_clean6608625374089856517.logASMCleanConfigurationSTARTASMCleanConfigurationENDNetworkConfigurationcleanconfigSTARTNetworkde-configurationtracefilelocation:/tmp/deinstall2010-03-05_12-32-34-PM/logs/netdc_clean5624344075530317905.logDe-configuringNamingMethodsconfigurationfileonallnodes...NamingMethodsconfigurationfilede-configuredsuccessfully.De-configuringLocalNetServiceNamesconfigurationfileonallnodes...LocalNetServiceNamesconfigurationfilede-configuredsuccessfully.De-configuringDirectoryUsageconfigurationfileonallnodes...DirectoryUsageconfigurationfilede-configuredsuccessfully.De-configuringbackupfilesonallnodes...Backupfilesde-configuredsuccessfully.Thenetworkconfigurationhasbeencleanedupsuccessfully.NetworkConfigurationcleanconfigEND---------------------------------------->Runthefollowingcommandastherootuserortheadministratoronnode"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.rspPressEnterafteryoufinishrunningtheabovecommands<----------------------------------------enterOracleUniversalInstallercleanSTARTDetachOraclehome'/grid'fromthecentralinventoryonthelocalnode:DoneDeletedirectory'/oracle/oraInventory'onthelocalnode:DoneTheOracleBasedirectory'/oracle'willnotberemovedonlocalnode.Thedirectoryisnotempty.DetachOraclehome'/grid'fromthecentralinventoryontheremotenodes'p570a':DoneCouldnotremovelisteddirectoriesbasedon'/tmp/OraInstall2010-03-05_12-41-42-PM/installRemoveDirFile.lst'fromnodes'p570a'.[PRKC-1083:Failedtoremovelisteddirectoryin"/tmp/OraInstall2010-03-05_12-41-42-PM/installRemoveDirFile.lst"toanyofthegivennodes"p570a".Erroronnodep570a:null]Deletedirectory'/oracle/oraInventory'ontheremotenodes'p570a':DoneTheOracleBasedirectory'/oracle'willnotberemovedonnode'p570a'.Thedirectoryisnotempty.OracleUniversalInstallercleanupcompletedwitherrors.OracleUniversalInstallercleanENDOracleinstallcleanSTARTCleaninstalloperationremovingtemporarydirectory'/tmp//install'onnode'p570b'Cleaninstalloperationremovingtemporarydirectory'/tmp//install'onnode'p570a'OracleinstallcleanENDMoveddefaultpropertiesfile/tmp/deinstall2010-03-05_12-32-34-PM/response/deinstall_Ora11g_gridinfrahome1.rspas/tmp/deinstall2010-03-05_12-32-34-PM/response/deinstall_Ora11g_gridinfrahome1.rsp1#########################CLEANOPERATIONEND################################################CLEANOPERATIONSUMMARY#######################ASMinstancewasde-configuredsuccessfullyfromtheOraclehomeOracleClusterwarewasalreadystoppedandde-configuredonnode"p570b"OracleClusterwareisstoppedandsuccessfullyde-configuredonnode"p570a"OracleClusterwareisstoppedandde-configuredsuccessfully.SuccessfullydetachedOraclehome'/grid'fromthecentralinventoryonthelocalnode.Failedtodeletedirectory'/grid'onthelocalnode.Successfullydeleteddirectory'/oracle/oraInventory'onthelocalnode.SuccessfullydetachedOraclehome'/grid'fromthecentralinventoryontheremotenodes'p570a'.Failedtodeletedirectory'/grid'ontheremotenodes'p570a'.Successfullydeleteddirectory'/oracle/oraInventory'ontheremotenodes'p570a'.OracleUniversalInstallercleanupcompletedwitherrors.Run'rm-rf/etc/oraInst.loc'asrootonnode(s)'p570b,p570a'attheendofthesession.Oracleinstallsuccessfullycleanedupthetemporarydirectories.
执行提示
Run'rm-rf/etc/oraInst.loc'asrootonnode(s)'p570b,p570a'attheendofthesession.
安装提示执行,删除的非常干净,然后在这上面重新安装grid和database时,能够成功安装。
感谢各位的阅读!关于“如何卸载grid软件”这篇文章就分享到这里了,希望以上内容可以对大家有一定的帮助,让大家可以学到更多知识,如果觉得文章不错,可以把它分享出去让更多的人看到吧!
声明:本站所有文章资源内容,如无特殊说明或标注,均为采集网络资源。如若本站内容侵犯了原著者的合法权益,可联系本站删除。