Delete Oracle in linux. 1. log on with an oracle user. If you want to install Oracle again, you 'd better back up the data first. The script includes the user's login script, the script for automatic database startup and shutdown, and the script for automatic Listener startup. If it is possible to save the database creation Script 2. Use SQL * PLUS to stop the database [root @ test ~] $ Sqlplus/nolog SQL> connect/as sysdba SQL> shutdown [immediate] SQL> exit 3. Stop Listener [root @ test ~] $ Lsnrctl stop 4. stop the HTTP service [root @ test ~] $ ORACLE_HOME/Apache/bin/apachectl stop 5. use su or log on to the root again (if you want to reinstall, You can retain oracle users, saving you the need to enter environment variables) 6. delete the installation directory [root @ test ~] # Rm-rf/opt/oracle/7. delete the file under/usr/bin [root @ test ~] # Rm/usr/bin/dbhome [root @ test ~] # Rm/usr/bin/oraenv [root @ test ~] # Rm/usr/bin/coraenv 8. delete/etc/oratab [root @ test ~] # Rm/etc/oratab 9. set/etc/oraInst. delete [root @ ora920/root] # rm/etc/oraInst. loc 10. delete an oracle user (if you want to reinstall it, Do not delete it) [root @ test ~] # Userdel-r oracle 11. Delete the user group (to reinstall it, Do not delete it) [root @ test ~] # Groupdel oinstall [root @ test ~] # Groupdel dba 12. Delete the startup service [root @ test ~] # Chkconfig -- del dbora