Bom dia,
Sei que já faz um tempinho que não atualizo o blog, mas estou no meio de uma migração de 10g para 11g junto com uma consolidação que está tomando bastante tempo.
Este script ajuda enquanto você está fazendo instalação do Oracle 11gr2 RAC e dá algo de errado e você tem que remover o software em ambiente Linux.
###############################################################
#!/bin/bash
# Author : Rodrigo Mufalani
# Date : March 16th, 2011
# From : Mufalani
# To : XXXXXXXXXX
# Purpose : Cleanup RAC 11g failed install
###############################################################
clear
echo “********************************”
echo “*** Removendo Oracle Rac 11g ***”
echo “********************************”
rm -f /etc/init.d/init.cssd
rm -f /etc/init.d/init.crs
rm -f /etc/init.d/init.crsd
rm -f /etc/init.d/init.evmd
rm -f /etc/rc2.d/K96init.crs
rm -f /etc/rc2.d/S96init.crs
rm -f /etc/rc3.d/K96init.crs
rm -f /etc/rc3.d/S96init.crs
rm -f /etc/rc5.d/K96init.crs
rm -f /etc/rc5.d/S96init.crs
rm -f /etc/rc2.d/S96ohasd
rm -f /etc/rc2.d/K96ohasd
rm -f /etc/rc3.d/S96ohasd
rm -f /etc/rc3.d/K96ohasd
rm -f /etc/rc5.d/S96ohasd
rm -f /etc/rc5.d/K96ohasd
rm -f /etc/inittab.crs
rm -rf /u01/app
rm -rf /u01/grid
rm -rf /u01/lost+found
rm -rf /u01/oraInventory
rm -rf /u01/tmp
rm -f /etc/oraInst.loc
rm -f /etc/oratab
rm -rf /etc/oracle
cp /etc/inittab.orig /etc/inittab
echo ” ”
echo “********************************************”
echo “*** Reconfigurando pastas Oracle Rac 11g ***”
echo “********************************************”
mkdir -p /u01/app/product/11.2.0/db_1
mkdir -p /u01/grid/product/11.2.0/grid_1
mkdir -p /u01/tmp
chown -R oracle.oinstall /u01
chmod -R 775 /u01
############################ END ###############################
Espero que este script possa ajudar!!!
Att,
Rodrigo Mufalani