当前位置:数据库 > Oracle >>

Oracle常用脚本——卸载RAC

Oracle常用脚本——卸载RAC
 
[python]
#!/bin/bash  
  
# 0. env varible   
  
# 1. delete some file  
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/inittab.crs  
rm -f /etc/inittab.no_crs  
  
rm -fr /u01/crs1020/*  
rm -fr /u01/app/oracle/*  
rm -fr /etc/ora*  
  
rm -f /usr/local/bin/coraenv  
rm -f /usr/local/bin/dbhome  
rm -f /usr/local/bin/oraenv  
  
rm -fr /var/tmp/.oracle  
rm -fr /tmp/*  
  
chmod 775 /u01/crs1020  
chown oracle:oinstall /u01/crs1020  
  
# 2. deal with /etc/inittab  
cp /etc/inittab.orig /etc/inittab  
  
# 3. format the shareddisk  
# ......  

 

 
注意:不同的场景,第三步有所不同。 
CopyRight © 2022 站长资源库 编程知识问答 zzzyk.com All Rights Reserved
部分文章来自网络,