Unmount a single-host Oracle 10.2.0.1 database in Linux AS4

Source: Internet
Author: User

1UseSQL * PLUSStop Database

1.1Stop an instance

Oracle@www.bkjia.com ~ $ Sqlplus/nolog

SQL * Plus: Release 10.2.0.1.0-Production onWednesday6Month11 17:53:02 2008

Copyright (c) 1982,200 5, oracle. All rights reserved.

SQL> conn/as sysdba

Connected.

SQL> shutdown

Database closed.

Database dismounted.

ORACLE instance shut down.

SQL> exit

1.2StopListener

Oracle@www.bkjia.com ~ $ Lsnrctl stop

2Delete an object (RootIdentity execution)

/App/oracle/product/10.2.1/db_1/bin/localconfig delete

[Root @ standby1 ~] #/App/oracle/product/10.2.0/db/bin/localconfig delete

/Etc/oracle does not exist. Creating it now.

/App/oracle/product/10.2.0/db/bin/localconfig: line 715:/etc/init. d/init.css d: No such file or directory

(Path/App/oracle/It's mine.$ ORACLE_HOME)

 

[Root @ standby1 ~] # Rm-rf/app/oracle /*

[Root @ standby1 ~] # Rm-rf/oradata /*

[Root @ standby1 ~] # Rm-f/etc/oraInst. loc/etc/oratab

[Root @ standby1 ~] # Rm-rf/etc/oracle

[Root @ standby1 ~] # Rm-f/etc/inittab.css d

[Root @ standby1 ~] # Rm-f/usr/local/bin/coraenv/usr/local/bin/dbhome/usr/local/bin/oraenv

(Where/App/oracleIt's mine.$ ORACLE_BASE,/Oradata/SavedOracleData .)

3Delete users and user groups

3.1DeleteOracleUser (to reinstall,Can not be deleted)

[Root @ standby1 ~] # Userdel-r oracle

3.2Delete User Group (To reinstall,Can be deleted)

[Root @ standby1 ~] # Groupdel oinstall

[Root @ standby1 ~] # Groupdel dba

4Delete the corresponding service

[Root @ ora920/root] # chkconfig -- del oracle

 

Select userenv ('language') from dual;

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.