Delete an Oracle database in Linux or Windows

Source: Internet
Author: User

Delete an Oracle database in a Linux operating system in detail:

1. Disable oracle server and background processes
Ps-ef | grep ora
Turn off the database
Shutdown immediate
 

2. Disable the listener.
Lsnrctl status
If it is enabled, execute lsnrctl stop to disable it.
 

3. delete the file under $ ORACLE_HOME.
Delete a database using the dbca graphic interface
 

4. Delete the three folders dbhome oraenv coraenv under/usr/local/bin.
Rm-f dbhome
Rm-f oraenv
Rm-f coraenv
 

5. Delete oratab and orainst. loc under/etc.
Rm-f oratab
Rm-f orainst. loc
 

6. Delete ORCLfmap under/opt
Rm-fR ORCLfmap
 

7. [oracle @ RedHat ~] $ Env | grep ORA
ORACLE_SID = ora10g
ORACLE_BASE =/u01/app/oracle
ORACLE_HOME =/u01/app/oralce/product/10.2.0/db_1
Delete all files in the preceding directory
Rm-fR/u01
 

8. Delete oracle users, oinstall and dba
Oracle users must be deleted first
Userdel-r oracle
Groupdel oinstall
Groupdel dba

  • 1
  • 2
  • Next Page

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.