Bo's Oracle Station

查看: 1127|回复: 0

删除oracle环境,保留操作系统(重启动后不必执行oracle-rhel8.sh),SELINUX要彻底禁用

[复制链接]

1005

主题

1469

帖子

1万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
12012
发表于 2020-7-26 15:05:23 | 显示全部楼层 |阅读模式
  1. #!/bin/sh
  2. vim /etc/redhat-release
  3. systemctl stop mhvtl.target
  4. systemctl disable mhvtl.target
  5. rm -rf /etc/obconfig
  6. rm -rf /etc/oracle
  7. rm -rf /etc/oragchomelist
  8. rm -rf /etc/oraInst.loc
  9. rm -rf /etc/oratab
  10. rm -rf /etc/rc.d/init.d/gcstartup
  11. rm -rf /etc/rc.d/init.d/lockgcstartup
  12. rm -rf /etc/rc.d/init.d/ohasd
  13. rm -rf /etc/rc.d/init.d/init.ohasd
  14. rm -rf /etc/rc.d/init.d/observiced
  15. rm -rf /etc/rc.d/init.d/unlockgcstartup
  16. vim /home/oracle/.bash_profile
  17. for i in {6..15}; do  dd if=/dev/zero of=/dev/raw/raw$i bs=1G count=2 ; done
  18. rm -rf /opt/mhvtl
  19. rm -rf /u01/
  20. rm  -rf   /usr/etc/ob
  21. rm -rf   /usr/local/oracle/backup
  22. reboot
复制代码


回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|手机版|Bo's Oracle Station   

GMT+8, 2024-5-3 21:23 , Processed in 0.037296 second(s), 24 queries .

快速回复 返回顶部 返回列表