Home > RAC11G. > Deinstall ORACLE 11gR2 RAC cluster installation on HP UX.

Deinstall ORACLE 11gR2 RAC cluster installation on HP UX.

June 23, 2013


While i was installing i was forced to de-install current environment. I followed the below steps and worked fine fine for me..

Deinstall can be done in two ways.

1) Automated method(Oracle recommended method)

Since 10gr2 onwards, oracle has provided scripts to remove the oracle binaries and cluster binaries automatically. offcouse this helps us as lot.  this happens in two phases.

a) De-install Oracle DB binaries.

i) go to $ORACLE_HOME/deinstall folder( you can run from any nodes, this will remove from all nodes.) run(From oracle user)


This will collect few information from us and will remove all the stuff related to ORACLEDB. for your reference i am here with attaching the output from DB node.

b) De-install ORACLE CLUSTER or CRS.

          i) run the below command from any of the node.

                   cd $CRS_HOME/deinstall


                   Above procedure will take few inputs from us related to ip. upon providing the details. it will remove most of the components except related to root.  it will prepare scripts for each node and it will ask us to execute(through root) one by one on each node. In-fact it itself gives scripts specific to each node.  Just we need to run from each node through root user.

* it is not necessary to keep all the services up and running. Oracle will stop what ever running. if it is already in down state, then it will skip those services.

Once above activity is completed, just restart the servers once.

Reference:- http://docs.oracle.com/cd/E11882_01/install.112/e10813/rem_orcl.htm

2) Manual method.

There are situations where we need to remove manually due to circumstance. In this situations we need to follow below method.

a) remove following line from inittab file.
 "h1:3:respawn:/sbin/init.d/init.ohasd run >/dev/null 2>&1 </dev/null"

b) remove the invenotry(Please check /vat/opt/oracle/oraInst.loc)
   rm -rf /appl/oraInventory
c) remove grid base.

   rm -rf /appl/grid

d) Remove temporary files.

   rm -rf /var/tmp/.oracle
   rm -rf /tmp/.oracle

e) remove the config files.

   rm -rf /var/opt/oracle

f) remove the files which are owned by root user. 
    rm /sbin/init.d/init.ohasd

   rm /sbin/init.d/ohasd
   find /etc/rc*.d -name *ohasd -exec rm {} \;

         dd if=/dev/zero of=/dev/oracle/asmdisk_ocr1 bs=1024k
dd if=/dev/zero of=/dev/oracle/asmdisk_ocr2 bs=1024k
dd if=/dev/zero of=/dev/oracle/asmdisk_ocr3 bs=1024k

    rm /etc/oratab rm /usr/local/bin/dbhome /usr/local/bin/coraenv /usr/local/bin/oraenv

Once above all done. restart both servers once…  So that you can start the installation…

Categories: RAC11G.
%d bloggers like this: