Completely remove Oracle__ios under Linux

Source: Internet
Author: User
Taking 9.0.4 as an example
1. Login with Oracle User
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's possible to save a script that creates a database,

2. Stop the database using Sql*plus
[oracle@ora920 oracle]$ Sqlplus/nolog
Sql> Connect/as SYSDBA
sql> shutdown [Immediate]
Sql> exit

3. Stop Listener
[oracle@ora920 oracle]$ Lsnrctl Stop

4. Stop HTTP Service
[oracle@ora920 oracle]$ $ORACLE _home/apache/apache/bin/apachectl Stop

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

6. Remove the installation directory
[root@ora920/root]# rm-rf/opt/oracle/

7. Delete the files under/usr/bin
[root@ora920/root]# Rm/usr/bin/dbhome
[root@ora920/root]# rm/usr/bin/oraenv
[root@ora920/root]# rm/usr/bin/coraenv

8. Delete the/etc/oratab
[root@ora920/root]# Rm/etc/oratab

9. Delete the/etc/orainst.loc
[root@ora920/root]# Rm/etc/orainst.loc

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

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

12. Remove Startup service
[root@ora920/root]# chkconfig--del Dbora

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.