Oracle 11g清理Oracle/RAC环境(重装)

执行如下操作:

清除Grid或Oracle目录:

rm -fr /u01/app/11.2.0/grid/*
rm -fr /u01/app/grid/*
cd /u01/app/oracle
rm -fr diag checkpoints admin cfgtoollogs
rm -fr product/11.2.0/db_1/*

清除相关文件(或使用mv备份):

rm -rf /tmp/.oracle
rm -rf /var/tmp/.oracle
rm -rf /etc/init/oracle-ohasd.conf
rm -rf /etc/init.d/ohasd
rm -rf /etc/init.d/init.ohasd
rm -rf /etc/oraInst.loc
rm -rf /etc/oratab
rm -rf /etc/oracle

清除ASM磁盘信息:

dd if=/dev/zero of=/dev/oracleasm/disks/DISK1 bs=8192 count=128000

of=/dev/oracleasm/disks/DISK1 为共享磁盘地址

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.