method One: Use Oracle's own Runinstaller offload:
[Email protected]/]$ Cd/opt/oracle/product/11.2.0/dbhome_1/deinstall/[[email protected] deinstall]$ export lang=en[ [Email protected] deinstall]$./deinstall
method Two: Uninstall by deleting the file: (that is, delete all files and folders under the Oracle installation directory)
# #1. Stop the database using Sql*plus [[email protected] oracle]$ sqlplus/nologsql> connect/as sysdbasql> shutdown [ Immediate]sql> exit # #2. Stop listener[[email protected] oracle]$ lsnrctl Stop # #3. Stop the HTTP service [[email Protected]/root]# service httpd Stop # #4. Use Su or log back in to root (if you want to reinstall to keep the Oracle user, save the environment variable) # #5. Remove the installation directory [[email Protected]/root]# rm-rf/u01/app/oracle/# #6. Delete the file under/usr/bin [[email protected]/root]# Rm/usr/local/bin/dbhome [[email protected]/root]# rm/usr/local/bin/oraenv[[email protected]/root]# rm/usr/local/bin/coraenv # # 7. Remove/etc/oratab [[email protected]/root]# rm/etc/oratab # #8. Remove/etc/orainst.loc [[email protected]/root ]# Rm/etc/orainst.loc # #9. Remove the Oracle User (you can reinstall it without deleting) [[email protected]/root]# userdel–r Oracle # #10. Remove the user group ( To reinstall, you can not delete it) [[[email protected]/root]# Groupdel oinstall[[email protected]/root]# Groupdel DBA # #11. Start service removal [[email protected]/root]# chkconfig--del dbora The Oracle database under your Linux system has been completely removed after reboot!!! The above is the Centos6.9+oracle 11g environment.
How to delete oracle11g Single instance under Linux