Detailed steps for linux to completely uninstall oracle after oracle stops the database
- 2021-10-27 09:43:22
- OfStack
1. Stop the database using SQL*PLUS
$ 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 back in to root (if you want to reinstall, you can keep oracle users and save entering environment variables)
5. Remove 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 the/etc/oratab
# rm /etc/oratab
8. Delete/etc/oraInst. loc
# rm /etc/oraInst.loc
9. Remove oracle users (do not remove them if you want to reinstall them)
# userdel In fact, in fact, the r oracle
10. Delete the user group (to reinstall, do not delete it)
# groupdel oinstall
# groupdel dba
11. Delete the startup service
# chkconfig --del dbora
After restarting here, the Oracle database under the Linux system has been completely deleted! ! !