How to completely delete a single Oracle database under RHEL5

Source: Internet
Author: User

1. Shut down the database

[Oracle @ RHEL5] $ sqlplus/as sysdba

SQL> shutdown immediate;

Ii. Disable listening

[Oracle @ RHEL5] $ lsnrctl stop

3. Delete oracle_base

I switched to root here.

[Root @ RHEL5] # rm-rf/s01

3. Clear residual files

[Root @ RHEL5] # rm-f/usr/local/bin/dbhome

[Root @ RHEL5] # rm-f/usr/local/bin/oraenv

[Root @ RHEL5] # rm-f/usr/local/bin/coraenv

[Root @ RHEL5] # rm-f/etc/oratab

[Root @ RHEL5] # rm-f/etc/oraInst. loc

4. delete users and groups (if you want to recreate a group, do not delete the group, saving you the trouble of getting variables again)

[Root @ RHEL5] # userdel-r oracle

[Root @ RHEL5] # groupdel oinstall

[Root @ RHEL5] # groupdel dba

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.