linux oracle Database delete instructions
- 2020-12-07 04:33:24
- OfStack
Linux operating system to completely delete Oracle database details:
Turn off oracle server and background processes
ps -ef | grep ora
Close the database
shutdown immediate
2. Turn off the listening
lsnrctl status
If turned on, lsnrctl stop is turned off
3. Delete the file under $ORACLE_HOME
Use the dbca graphical interface to delete the database
4. Delete dbhome oraenv coraenv under /usr/local/bin
rm -f dbhome
rm -f oraenv
rm -f coraenv
5. Delete oratab and ES44en.loc under /etc
rm -f oratab
rm -f orainst.loc
Delete ORCLfmap below /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 the files in the above directory
rm -fR /u01
8. Delete oracle users and oinstall and dba
You must first delete oracle users
userdel -r oracle
groupdel oinstall
groupdel dba
Turn off oracle server and background processes
ps -ef | grep ora
Close the database
shutdown immediate
2. Turn off the listening
lsnrctl status
If turned on, lsnrctl stop is turned off
3. Delete the file under $ORACLE_HOME
Use the dbca graphical interface to delete the database
4. Delete dbhome oraenv coraenv under /usr/local/bin
rm -f dbhome
rm -f oraenv
rm -f coraenv
5. Delete oratab and ES44en.loc under /etc
rm -f oratab
rm -f orainst.loc
Delete ORCLfmap below /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 the files in the above directory
rm -fR /u01
8. Delete oracle users and oinstall and dba
You must first delete oracle users
userdel -r oracle
groupdel oinstall
groupdel dba