How to Deinstall Oracle Clusterware Home Manually

Posted feiyun8616

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了How to Deinstall Oracle Clusterware Home Manually相关的知识,希望对你有一定的参考价值。

GOAL

In 11gR2, deinstall is the recommended tool to deinstall an Oracle Clusterware(Grid Infrastructure) home, however it does not apply to certain scenarios or failures in some cases. 

This notes provides instruction to manually remove current/active clusterware home.

Before removing current/active clusterware home, it‘s necessary to deconfigure Grid Infrastructure, refer to note 1377349.1 for steps. 

To remove pre-upgrade clusterware home after successful upgrade to newer GI version, refer to note 1346305.1

SOLUTION

Before removing current/active clusterware home, it‘s necessary to deconfigure Grid Infrastructure, refer to note 1377349.1 for steps

To remove a home, as clusterware user execute the following on any node:

export ORACLE_HOME=<clusterware-home>

## detach ORACLE_HOME
$ORACLE_HOME/oui/bin/runInstaller -detachHome -silent ORACLE_HOME=$ORACLE_HOME

## confirm $ORACLE_HOME is removed from central inventory:
$ORACLE_HOME/OPatch/opatch lsinventory -all   

## remove files in ORACLE_HOME manually on all nodes
/bin/rm -rf $ORACLE_HOME               ##>> if grid user fails to remove all files, switch to root user 

unset ORACLE_HOME

If it fails for any reason, as clusterware user execute the following on all nodes:

export ORACLE_HOME=<clusterware-home>

## detach ORACLE_HOME
$ORACLE_HOME/oui/bin/runInstaller -detachHome -silent -local ORACLE_HOME=$ORACLE_HOME

## confirm $ORACLE_HOME is removed from central inventory:
$ORACLE_HOME/OPatch/opatch lsinventory -all   

## remove files in ORACLE_HOME manually
/bin/rm -rf $ORACLE_HOME               ##>> if grid user fails to remove all files, switch to root user 

unset ORACLE_HOME

以上是关于How to Deinstall Oracle Clusterware Home Manually的主要内容,如果未能解决你的问题,请参考以下文章

How to deploy Oracle 12c Release 2 Grid and RAC Database on RHEL 7.x

oracle 11g RAC手动卸载grid,no deinstall

linux下删除oracle11g单实例的方法

How to Install Oracle JAVA 8 on Debian 9 / Debian 8

How To Use DBLink In Oracle Forms 6i

Learn How To Create Trigger In Oracle Forms