Completely uninstall Oracle and grid software

Source: Internet
Author: User

This article mainly describes how to completely uninstall Oracle and grid software.

Operating Environment

SuSE11

Operation Steps

1. Switch Oracle user, stop Oracle Database Listener and DB instance

/as sysdba SQL> shutdown immediate; SQL> Exit

2. Switch grid user, stop ASM instance monitoring and has service under grid

-F

Description: You can use Ps-ef | Grep-e ' Oracle|grid ' | Grep-v grep to confirm if there are any processes. If so, kill them manually.

3, switch root user, delete/opt/oracle,/opt/oracrs,/opt/oraadm,/opt/orainventory directory

rm -rf/opt/ rm-rf/opt/rm -rf/opt/oraadm
root# rm-rf/opt/orainventory

4. Delete Dbhome, oraenv, coraenv files in/usr/local/bin directory

rm /usr/local/bin/ rm/usr/local/bin/rm /usr/local/bin/coraenv

5. Delete Oratab, orainst.loc files in/etc directory

rm /etc/rm /etc/orainst.loc

6. Delete the/tmp directory to install the related files generated by Oracle

rm ora*RMrm cuv*rm orainst*

7. Delete Oracle users and grid users

root# Userdel--rf grid

8. Delete DBA and Oinstall user group

root# Groupdel dbaroot# Groupdel oinstall

9. Cleaning up DG Information

root# cd/dev/ddif=/dev/zero of=./dg_ora bs=8k count=10240DD if=/dev/zero of=./dg_data bs=8k count=10240ddif=/dev/zero of=./dg_ Backup bs=8k count=10240

10. End of operation.

Completely uninstall Oracle and grid software

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.