HEL上清除Oracle10g clusterware的失败安装

实例讲解清除Oracle 10g RAC CRS的方法

在安装clusterware时如果出现报错现象,需要重新安装时,必须先清除已经安装的cluserware,否则可能会影响到下次安装。一般情况下,只需要在各节点上依次运行目录$ORA_CRS_HOME/install/下的脚本rootdelete.sh和rootdeinstall.sh即可。

我们也可以采用手工删除:

1在所有节点停止nodeapps

   srvctl stop nodeapps -n nodename


2、删除crs自动启动程序

    

        Sun:

        rm /etc/init.d/init.cssd

        rm /etc/init.d/init.crs

        rm /etc/init.d/init.crsd

        rm /etc/init.d/init.evmd

        rm /etc/rc3.d/K96init.crs

        rm /etc/rc3.d/S96init.crs

        rm -Rf /var/opt/oracle/scls_scr

        rm -Rf /var/opt/oracle/oprocd

        rm /etc/inittab.crs

        cp /etc/inittab.orig /etc/inittab

        

        Linux:

        rm /etc/oracle/*

        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 -Rf /etc/oracle/scls_scr

        rm -f /etc/inittab.crs

        cp /etc/inittab.orig /etc/inittab

        

        HP-UX:

        rm /sbin/init.d/init.cssd

        rm /sbin/init.d/init.crs

        rm /sbin/init.d/init.crsd

        rm /sbin/init.d/init.evmd

        rm /sbin/rc2.d/K960init.crs

        rm /sbin/rc2.d/K001init.crs

        rm /sbin/rc3.d/K960init.crs

        rm /sbin/rc3.d/S960init.crs

        rm -Rf /var/opt/oracle/scls_scr

        rm -Rf /var/opt/oracle/oprocd

        rm /etc/inittab.crs

        cp /etc/inittab.orig /etc/inittab

        

        HP Tru64:

        rm /sbin/init.d/init.cssd

        rm /sbin/init.d/init.crs

        rm /sbin/init.d/init.crsd

        rm /sbin/init.d/init.evmd

        rm /sbin/rc3.d/K96init.crs

        rm /sbin/rc3.d/S96init.crs

        rm -Rf /var/opt/oracle/scls_scr

        rm -Rf /var/opt/oracle/oprocd

        rm /etc/inittab.crs

        cp /etc/inittab.orig /etc/inittab

        

        IBM AIX:

        rm /etc/init.cssd

        rm /etc/init.crs

        rm /etc/init.crsd

        rm /etc/init.evmd

        rm /etc/rc.d/rc2.d/K96init.crs

        rm /etc/rc.d/rc2.d/S96init.crs

        rm -Rf /etc/oracle/scls_scr

        rm -Rf /etc/oracle/oprocd

        rm /etc/inittab.crs

        cp /etc/inittab.orig /etc/inittab


3、kill css/crs/evm进程,并reboot节点

    ps -ef | grep css/crs/evmkill -9 processid


   4、删除/tmp/.oracle或/var/tmp/.oracle

    rm -f /tmp/.oracle 或rm -f /var/tmp/.oracle


   5、删除ocr.loc

    rm -f /etc/oracle/orc.loc


6、用oracle universal installer卸载crs

7、删除crs安装目录

    rm -Rf crs_install_dir


   8、使用dd清除vote disk和ocr(裸设备)
   

       dd if=/dev/zero of=/dev/votedisk_device bs=1M count=10

       dd if=/dev/zero of=/dev/ocr_device bs=1M count=10

你可能感兴趣的:(Oracle_10G_RAC)