(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