Tuesday 13 August 2013

De-installation of Oracle Grid Software 11g R2

After the installation of Oracle Grid Infrastructure ASM, it was decided that we need to change the location of the Grid Base Location and Grid Home location (due to various issues).
So, as briefly said below, we had to UNINSTALL ORACLE GRID INFRASTRUCTURE SOFTWARE. 

Environment

This is 11.2.0.1 ASM 11gR2 in Oracle Enterprise Linux 5.8

We have 3 node RAC.

SCAN address is configured in RAC.

So, after stopping the database, and cleanly removing the database, we now need to uninstall ASM CLEANLY.

So, went to Grid software Home, 

e.g. $GRID_HOME/deinstall
then ran
./deinstall

This will take some time to run, as it will connect to all the other nodes as well. It will then come to a stage, where it will ask to run some scripts, The first script will have to be run from the third node, the second node, and then the last script will have to be run from the primary node, i.e. this node where we are executing the deinstall command Those scripts will have to be executed as root user or a user with administrative privileges.

After the script is run, there will not be any processes running from the secondary nodes.

Come back to the primary node, and complete the activity, which will also delete the Oracle Homes and do a clean deletion of the Grid Base location, the Grid Home location and the Oracle Inventory in all the three nodes.


In short, one command ./deinstall (and 3 subcommands) will deinstall everything, and remove all the binaries, and will also remove the Oracle Inventory. Clever !!

I rebooted the 3 servers as well, just for a satisfaction of my mind.

Now, off for the installation of Grid Software.

No comments:

Post a Comment