作者:姿葱 | 来源:互联网 | 2023-10-12 16:10
清除Oracle11GRAC环境
清除rac环境操作
删除用户并重新创建授权
rm -rf /oracle
mkdir -p /grid/app/grid
mkdir -p /grid/app/11.2.0/grid
mkdir -p /grid/app/oraInventory
mkdir -p /oracle/app/oracle
mkdir -p /oracle/app/oracle/product/11.2.0/dbhome_1
chown -R grid:oinstall /grid/app/oraInventory
chown -R grid:oinstall /grid
chown -R grid:oinstall /grid/app/grid
chown -R oracle:oinstall /oracle/app/oracle
chmod -R 775 /grid
chmod -R 775 /oracle/app/oracle
rm -rf /etc/ora*
rm -f /etc/oraInst.loc /etc/init.d/init.ohasd
rm -f /etc/rc.d/rc0.d/K19ohasd /etc/rc.d/rc1.d/K19ohasd /etc/rc.d/rc2.d/K19ohasd/etc/rc.d/rc4.d/K19ohasd /etc/rc.d/rc6.d/K19ohasd
rm -f /etc/rc.d/rc2.d/S96ohasd /etc/rc.d/rc3.d/S96ohasd /etc/rc.d/rc5.d/S96ohasd
rm -f /usr/local/bin/dbhome /usr/local/bin/oraenv /usr/local/bin/coraenv
rm -rf /tmp/OraInstall*
rm -rf /etc/oracle/*
rm -rf /etc/init.d/init.cssd
rm -rf /etc/init.d/init.crs
rm -rf /etc/init.d/init.crsd
rm -rf /etc/init.d/init.evmd
rm -rf /etc/rc2.d/K96init.crs
rm -rf /etc/rc2.d/S96init.crs
rm -rf /etc/rc3.d/K96init.crs
rm -rf /etc/rc3.d/S96init.crs
rm -rf /etc/rc5.d/K96init.crs
rm -rf /etc/rc5.d/S96init.crs
rm -rf /etc/oracle/scls_scr
rm -rf /etc/inittab.crs
cp /etc/inittab.orig /etc/inittab
dd if=/dev/zero of=/dev/asm-ocr1 bs=1M count=256
dd if=/dev/zero of=/dev/asm-ocr2 bs=1M count=256
dd if=/dev/zero of=/dev/asm-data bs=1M count=256
dd if=/dev/zero of=/dev/asm-ocr3 bs=1M count=256
dd if=/dev/zero of=/dev/asm-arch bs=1M count=256