How to uninstall oracle11g and oracle11g

Source: Internet
Author: User

How to uninstall oracle11g and oracle11g

  • Oracle 11g R2 x64
  • Redhat5 (rhel x64)
1. Use SQL * PLUS to stop a database
[oracle@OracleTest oracle]$ sqlplus logSQL> connect / as sysdbaSQL> shutdown [immediate]SQL> exit
2. Stop Listener
[oracle@OracleTest oracle]$ lsnrctl stop
3. Stop the HTTP service
[root@OracleTest /root]# service httpd stop
4. Use su or log on to the root again (if you want to reinstall it, You can retain the oracle user, saving you the trouble of entering environment variables) 5. Delete the installation directory
[root@OracleTest /root]# rm -rf /u01/oracle/[root@OracleTest /root]# rm -rf /u01/oraInventory/
6. delete 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/etc/oratab
[root@OracleTest /root]# rm /etc/oratab
8. delete/etc/oraInst. loc
[root@OracleTest /root]# rm /etc/oraInst.loc
9. Delete the oracle user (if you want to reinstall it, You can not delete it)
[root@OracleTest /root]# userdel –r oracle
10. Delete the user group (to reinstall it, Do not delete it)
[root@OracleTest /root]# groupdel oinstall[root@OracleTest /root]# groupdel dba
11. Delete the startup Service
[root@OracleTest /root]# chkconfig --del dbora

After the restart, your Oracle Database in Linux has been completely deleted !!!

The above is the CentOS5.4 + Oracle 11g environment.

If you want to install it 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 script for creating a database.

Copyright Disclaimer: This article is an original article by the blogger and cannot be reproduced without the permission of the blogger.

Related Article

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.