Linux Redhat 7 Perfect removal/uninstallation of Oracle 11g

Source: Internet
Author: User

One, close Oracle services and background processes
1. Review the installation's home directory and environment variables:

    1. Echo $ORACLE _home
    2. env | grep ORA

2. View the instance Name

    1. Sqlplus/as SYSDBA
    2. Select instance_name from V$instance;

3. View the Oracle background process started

ps –ef |grep ora_

4. Close the service

    1. Shutdown immediate;
    2. Ps–ef |grep ora_//can see the background process is gone
    3. Lsnrctl Status//View listener State

5. Stop Oracle's Listener

lsnrctl stop

Ii. Uninstalling Oracle
1. Delete subdirectories and files under the $oracle_home directory

    1. CD $ORACLE _home
    2. Pwd
    3. Cd/u01/app/oradata/helen
    4. RM-RF *

2. Delete the three files under/usr/local/bin: dbhome,oraenv,coraenv

    1. Su-root
    2. Cd/usr/local/bin
    3. RM-RF Dbhome
    4. RM-RF oraenv
    5. RM-RF coraenv

3. Delete two files under/etc: Oratab and Oralnst.loc

    1. Cd/etc
    2. RM-RF Oratab
    3. RM-RF Orainst.loc

4. Delete the Orclfmap subdirectory of the/OPT directory

rm –rf /opt/ORCLfmap

5. Delete established users and groups Oinstall and DBAs

    1. Su–oracle
    2. ENV | GRP ORA
    3. Su Root or WhoAmI see who the current user is
    4. RM–RF/U01 Delete all Files
    5. Cat/etc/pass Viewing users
    6. Cat/etc/group viewing groups

6. Multiple exit exit and re-login with root

    1. Userdel–r Oracle
    2. Groupdel Oinstall
    3. Groupdel DBA

Note: If you need to reinstall, you do not need to hurt Oracle users and groups

Linux Redhat 7 Perfect removal/uninstallation of Oracle 11g

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.