Delete Oracle in linux

Source: Internet
Author: User

Delete Oracle in linux. 1. log on with an oracle user. If you want to install Oracle 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 database creation Script 2. Use SQL * PLUS to stop the database [root @ test ~] $ Sqlplus/nolog SQL> connect/as sysdba SQL> shutdown [immediate] SQL> exit 3. Stop Listener [root @ test ~] $ Lsnrctl stop 4. stop the HTTP service [root @ test ~] $ ORACLE_HOME/Apache/bin/apachectl stop 5. use su or log on to the root again (if you want to reinstall, You can retain oracle users, saving you the need to enter environment variables) 6. delete the installation directory [root @ test ~] # Rm-rf/opt/oracle/7. delete the file under/usr/bin [root @ test ~] # Rm/usr/bin/dbhome [root @ test ~] # Rm/usr/bin/oraenv [root @ test ~] # Rm/usr/bin/coraenv 8. delete/etc/oratab [root @ test ~] # Rm/etc/oratab 9. set/etc/oraInst. delete [root @ ora920/root] # rm/etc/oraInst. loc 10. delete an oracle user (if you want to reinstall it, Do not delete it) [root @ test ~] # Userdel-r oracle 11. Delete the user group (to reinstall it, Do not delete it) [root @ test ~] # Groupdel oinstall [root @ test ~] # Groupdel dba 12. Delete the startup service [root @ test ~] # 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.