Environment: Centos

Oracle 10.2.0.0
Users involved: root oracle

A

Steps for deleting oracle software and instance:

1、 Oracle user logs in to sqlplus to stop the database: shutdown immediate

2、 Oracle user stops listening service: lsnrctl stop

3、 Root user
Delete the ora * file in/tmp
Delete the OR * file under/opt
Delete the oraInst.loc and oratab files in/etc
(These two files are generated by executing the $ORACLE_HOME/root.sh script when installing Oracle.)
Delete the coraenv dbhome、oraenv
(These three files are generated by executing the $ORACLE_BASE/oraInventory/orainstRoot.sh script when installing Oracle.)

Delete admin flash_recovery_area、oradata、oraInventory
(Remember not to delete the default directory of the oracle user here. The oracle user will be used when the oracle software is reinstalled next time.)

Special attention should be paid not to delete the default directory of oracle users under $ORACLE_BASE. The oracle user should be used when reinstalling the oracle software next time.

B

Delete the oracle instance without deleting the oracle software

1、 dbca, Delete Instance

After DBCA, ¥ ORACLE_HOME remains

admin flash_recovery_area oradata oraInventory product

Admin flash_recovery_area oradata

Don't worry about the oraInventory product (script directory), which will be used by products, etc

[ oracle@mult3 oracle]$ dbca

-bash: /u01/app/oracle/product/10.2.0.1/db/bin/dbca: No such file or directory

Delete the above two files admin oradata, but delete the product file, and the DBCA command will not work!