1. Log in with oracle user.
If you want to reinstall, you'd better do some backup work first.
Include user login script, database automatic startup and shutdown script and listener automatic startup script.
If possible, even save the script to create the database.
2. Stop the database with SQL*PLUS.
[Oracle @ ehaohai Oracle]$ sqlplus/nolog
SQL> connects as sysdba.
SQL> Shutdown [Immediately]
SQL> exit
Stop listening
[oracle@ehaohai oracle]$ lsnrctl stopped.
4. Stop the HTTP service
[Oracle @ ehaohai Oracle] $ $ Oracle _ home/Apache/Apache/bin/apachectl stop.
5. Use su or log in to root again (if you want to reinstall, you can keep the oracle user and save the input of environment variables).
6. Delete the installation directory
[root @ ehaohai/root]# RM-RF/opt/Oracle/
7. Delete the files under /usr/bin.
[root @ ehaohai/root]# RM/usr/bin/dbhome
[root @ ehaohai/root]# RM/usr/bin/oraenv
[root @ ehaohai/root]# RM/usr/bin/Cora env
8. Delete /etc/oratab.
[root @ ehaohai/root]# RM/etc/oratab
9. Delete/etc/orainst.loc.
[root @ ehaohai/root]# RM/etc/orainst . loc
10. Delete the oracle user (if you want to reinstall, you don't need to delete it).
[root @ ehaohai/root]# userdel–r Oracle
1 1. Delete the user group (you don't need to delete it if you want to reinstall it).
[root @ ehaohai/root]# group del oinstall
[root @ ehaohai/root]# group del DBA
12. Delete the startup service
[root @ ehaohai/root]# chkconfig-del dbora