Complete removal of Oracle step "Go" under Linux

Source: Internet
Author: User

(1) Turn off Oracle services and background processes
<1> View the installed home directory and environment variables:

     echo $ORACLE _home     | grep ORA

<2> View instance Names

   as SYSDBA       Select  from V$instance;

<3> View the launched Oracle background process

       Ps–ef |grep Ora_

<4> Close Service


Ps–ef |grep Ora_ can see the background process is gone
Lsnrctl Status View Listener state


(2) Stop Oracle's Listener
(3) Delete subdirectories and files under the $oracle_home directory

   cd $ORACLE _home   pwd   /u01/app/oradata/helen

SECURECRT is a Linux tool that is connected under Windows
Xmanager is also connected to Linux tools to support graphics, where we uninstall Oracle by DBCA graphical means Xmanager
DBCA
Back to SecureCRT
(4) Delete the three files under/usr/local/bin: dbhome,oraenv,coraenv

  su root   /usr/local/bin   ll   rm dbhome   RM oraenv   RM coraenv

(5) Delete the two files under/etc: Oratab and Oralnst.loc

   CD/etc   rm-fr oratab
RM-FR Oralnst.loc

(6) Delete the Orclfmap subdirectory of the/OPT directory

   RM–RF Orclfmap

(7) Delete established users and groups Oinstall and DBAs

  su–oracle   | grp ORA   su root or WhoAmI see who   the current user is /u01 Delete all   files /etc/ Pass View user    /etc/group viewing groups

(8) Multiple exit to log back in with root

   Userdel–r Oracle    groupdel oinstall    Groupdel dba

Complete removal of Oracle step "Go" under Linux

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.