Oracle如何清理集群

需要按照实际情况清理。

rm -rf /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
rm -f /etc/ohasd
rm -f /etc/oraInst.loc
rm -f /etc/oratab
rm -rf /tmp/.oracle
rm -rf /tmp/ora*
rm -rf /var/tmp/.oracle
rm -rf /tmp/CVU*
rm -rf /tmp/Ora*
rm -rf /home/grid/.oracle

rm -rf /usr/app/*

mv /etc/init.d/init.ohasd /etc/init.d/init.ohasd.bak

ps -ef | grep crs
ps -ef | grep evm
ps -ef | grep css

dd if=/dev/zero of=/dev/asm-diski bs=1M count=256

重新创建目录

mkdir -p /usr/app/product/oraInventory 

chown -R grid:oinstall /usr/app/product/oraInventory 

chmod -R 775 /usr/app/product/oraInventory 

mkdir -p  /usr/app/product/grid/oraInventory 

chown -R grid:oinstall /usr/app/product/grid/oraInventory 

chmod -R 775 /usr/app/product/grid/oraInventory

mkdir -p /usr/app/product/grid/crs

mkdir -p /usr/app/product/grid/11.2.0

chown -R grid:oinstall /usr/app/product/grid/crs

chown -R grid:oinstall /usr/app/product/grid/11.2.0

chmod -R 775 /usr/app/product/grid/crs

chmod -R 775 /usr/app/product/grid/11.2.0
mkdir -p /usr/app/product/oracle

chown -R oracle:oinstall /usr/app/product/oracle

chmod -R 775 /usr/app/product/oracle
mkdir -p /usr/app/product/oracle/11.2.0/db_1

chown -R oracle:oinstall /usr/app/product/oracle/11.2.0/db_1
chmod -R 775  /usr/app/product/oracle/11.2.0/db_1

Oracle如何清理集群

上一篇:6 数据库事务


下一篇:SQL概述