oracle11.2.0.3 使用deinstall无法删除grid,使用手动删除grid

当你无法使用deinstall删除grid的时候,使用手动的方式删除grid软件

环境:oracle 11.2.0.3 rac

aix 6.1

[@more@]

MeTalink:

How to Deinstall Oracle Clusterware Home Manually [ID 1364419.1]

Applies to:

Oracle Server - Enterprise Edition - Version 10.2.0.1 and later
Information in this document applies to any platform.

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 fails 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

Fix

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

export ORACLE_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=

## 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

举例:

使用grid用户在每个节点运行:

su -grid

$ /u01/app/11.2.0/grid/oui/bin
$./runInstaller -detachHome -silent ORACLE_HOME=/u01/app/11.2.0/grid
Starting Oracle Universal Installer...

Checking swap space: must be greater than 500 MB. Actual 16384 MB Passed
The inventory pointer is located at /etc/oraInst.loc
The inventory is located at /u01/app/oraInventory
'DetachHome' was successful.

完成之后:

如果是AIX系统,最好是清理磁盘的头部信息:

dd if=/dev/zero of=/dev/rhdiskpower0 bs=64M count=1

dd if=/dev/zero of=/dev/rhdiskpower1 bs=64M count=1

dd if=/dev/zero of=/dev/rhdiskpower2 bs=64M count=1

.......

如果是AIX系统,最好是清理磁盘的PVID信息:

chdev -l hdiskpower0 -a pv=clear execute command for root

chdev -l hdiskpower1 -a pv=clear execute command for root

chdev -l hdiskpower2 -a pv=clear execute command for root

.....

......

别忘了删除/etc/oraInst.loc文件

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

转载于:http://blog.itpub.net/28227905/viewspace-1059931/

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值