How to delete oracle11g Single instance under Linux

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.