Detailed steps for linux to completely uninstall oracle after oracle stops the database

Source: Internet
Author: User

1. Use SQL * PLUS to stop a database
Copy codeThe Code is as follows:
$ Sqlplus/nolog

SQL> connect/as sysdba

SQL> shutdown [immediate]

SQL> exit

2. Stop Listener
Copy codeThe Code is as follows:
$ Lsnrctl stop

3. Stop the HTTP service
Copy codeThe Code is as follows:
# Service httpd stop

4. Use su or log on to the root again (if you want to reinstall it, You can retain the oracle user, saving you the need to enter environment variables)

5. Delete the installation directory

Copy codeThe Code is as follows:
# Rm-rf/u01/app/oracle/

6. delete files under/usr/bin.

Copy codeThe Code is as follows:
# Rm/usr/local/bin/dbhome

# Rm/usr/local/bin/oraenv

# Rm/usr/local/bin/coraenv

7. delete/etc/oratab

Copy codeThe Code is as follows:
# Rm/etc/oratab

8. delete/etc/oraInst. loc

Copy codeThe Code is as follows:
# Rm/etc/oraInst. loc

9. Delete the oracle user (if you want to reinstall it, You can not delete it)

Copy codeThe Code is as follows:
# Userdel-r oracle

10. Delete the user group (to reinstall it, Do not delete it)

Copy codeThe Code is as follows:
# Groupdel oinstall

# Groupdel dba

11. Delete the startup Service

Copy codeThe Code is as follows:
# Chkconfig -- del dbora

After the restart, the Oracle database in Linux has been completely deleted !!!

Related Article

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.