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;