oracle11g uninstall operation in Linux Environment ___ Applet

Source: Internet
Author: User
1. Stop the database using Sql*plus
[Oracle@oracletest oracle]$ sqlplus Log
Sql> Connect/as SYSDBA
sql> shutdown [Immediate]
Sql> exit


2. Stop Listener
[Oracle@oracletest oracle]$ Lsnrctl Stop


3. Stop HTTP Service
[root@oracletest/root]# Service httpd stop


4. Use Su or re-login to root (if you want to reinstall you can keep the Oracle users, save the input environment variables)


5. Remove the installation directory
[root@oracletest/root]# rm-rf/u01/oracle/
[root@oracletest/root]# rm-rf/u01/orainventory/


6. Delete the files under/usr/bin
[root@oracletest/root]# Rm/usr/local/bin/dbhome
[root@oracletest/root]# rm/usr/local/bin/oraenv
[root@oracletest/root]# rm/usr/local/bin/coraenv


7. Delete the/etc/oratab
[root@oracletest/root]# Rm/etc/oratab


8. Delete the/etc/orainst.loc
[root@oracletest/root]# Rm/etc/orainst.loc


9. Remove the Oracle User (to reinstall, you can not delete)
[root@oracletest/root]# userdel–r Oracle


10. Delete the user group (to reinstall, you can not delete)
[root@oracletest/root]# Groupdel Oinstall
[root@oracletest/root]# Groupdel DBA


11. Remove Startup Service
[root@oracletest/root]# chkconfig--del Dbora
After this reboot, your Linux system Oracle database has been completely removed ...


The above is the Centos5.4+oracle 11g environment.


If you want to install it again, it's best to do some backup work first.
Includes user login scripts, database automatically launches shutdown scripts, and listener scripts automatically start.
If it is possible to even save the script that created the database.

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.