1. Use SQL * PLUS to stop a database
$ Sqlplus/nolog
SQL> connect/as sysdba
SQL> shutdown [immediate]
SQL> exit
2. Stop Listener
$ Lsnrctl stop
3. Stop the HTTP service
# Service httpd stop
4. Use su or log on to the root again (if you want to reinstall it, You can retain the oracle user, saving you the need to enter environment variables)
5. Delete the installation directory
# Rm-rf/u01/app/oracle/
6. delete files under/usr/bin.
# Rm/usr/local/bin/dbhome
# Rm/usr/local/bin/oraenv
# Rm/usr/local/bin/coraenv
7. delete/etc/oratab
# Rm/etc/oratab
8. delete/etc/oraInst. loc
# Rm/etc/oraInst. loc
9. Delete the oracle user (if you want to reinstall it, You can not delete it)
# Userdel-r oracle
10. Delete the user group (to reinstall it, Do not delete it)
# Groupdel oinstall
# Groupdel dba
11. Delete the startup Service
# Chkconfig -- del dbora
After the restart, the Oracle database in Linux has been completely deleted !!!