删除 oracle on Centos

彻底删除oracle,所谓彻底是不影响下一次重新安装而言。
杀掉进程:
ps  -ef|grep oracle |grep -v grep |awk ‘{print $2}’|

删掉用户和组:
userdel oracle
groupdel dba
groupdel oinstall

删掉文件
rm -rf /home/oracle
rm -f /etc/oratab
rm -f /etc/oraInst.loc
rm -rf /tmp/Ora*
rm -rf /tmp/*oracle*
rm -rf /tmp/.oracle

下一次静默安装:
/home/oracle/database/runInstaller -silent -responseFile ‘/home/oracle/tmp_response_linux.rsp’

Leave a Reply

Your email address will not be published. Required fields are marked *