删除目录
rm -rf /opt/grid
rm -rf /opt/oracle
rm -rf /opt/ogrid
rm -rf /etc/ora*
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
创建目录
mkdir -p /opt/grid/products/11.2.0
mkdir -p /opt/ogrid
mkdir -p /opt/oracle/products/11.2.0
mkdir -p /opt/grid/oraInventory
chown -Rf grid.oinstall /opt/grid
chown -Rf grid.oinstall /opt/ogrid
chown -Rf oracle.oinstall /opt/oracle
需要重新启动
服务器reboot
网站题目:oracle数据库彻底清除目录脚本
链接URL:
http://kswsj.cn/article/iehgej.html