Steps to cleanup failed CRS installation on Solaris

Hi All,

One can have nightmares ( and also Night outs :)) installing Oracle 10g CRS especially when final root.sh fails script fails.

The same case has happened with me and I had to clean out my failed CRS installation 8 times due to different problems while I was installing oracle 10g CRS on Sun Solaris Ultra SPARC 64 bit machine.

So, I had almost mastered cleaning up failed CRS installation on Solaris and thought that I would like to share this experience with you people.

The most common place where CRS installation fails is running of root.sh in the end and by that time OCR and voting disks are identified and stamped by oracle OUI

NEVER DEINSTALL FAILED CRS INSTALLATION FROM OUI ON ANY PLATFORM

Goto the Cluster home of each node where binaries are present and go to the following location

$ORA_CRS_HOME/install

run the following scripts in the order on all the nodes one at a time

First run rootdelete.sh
then run rootdeinstall.sh

Now In solaris go to /var/opt directory and delete oracle folder on all the nodes
Go to /var/tmp directory and delete .oracle directory on all the nodes
Go to /tmp directory and delete .oracle directory on the nodes
Go to $ORACLE_BASE and delete oraInventory directory on all the nodes
Go to cluster home and remove all the files and folders from cluster home on all the nodes

Finally Reformat the OCR and Voting Disk partition as root user fire the following commands for ocr and votind disk locations

dd if=/dev/zero of=/dev/rdsk/ocr (ocr location) bs= count=1

dd if=/dev/zero of=/dev/rdsk/vot(votind disk location) bs= count=1

After doing this you are ready to reinstall the CRS again on the same machine

If OCR/Voting disk is not formatted in proper manner the OUI screen will not accept the same partition path when you run the OUI again particularly while specifying path for OCR and Voting disk. In that case u will have to delete the partition and recreate it at the OS level using format command.

In case of any Queries you can leave a comment.

4 Responses to “Steps to cleanup failed CRS installation on Solaris”

  1. Do you do the same CRSVcleanup steps for AIX just like for Solaris?

  2. Hi Zimbi the same document should work for most Unix systems. Only the location for /var/opt may be replaced by /etc.

    So in AIX,HP UX you have oratab directory in /etc/oratab

  3. Excellent arcticle. Right on the money of what I was looking for.

  4. I installed CRS during Oracle 11gr1 installation, since it wasn’t successful, had to de-install CRS. Without researching much about how to clean the CRS installation, I went ahead and de-install CRS via Oracle OUI. So, I have no access to rootdelete.sh and rootdeinstall.sh. How do remove all the files created thru CRS installation? Any list of file locations etc…?

    Thanks for your help!

Leave a Reply


Close
E-mail It