Home > Database > Mysql Tutorial > linux oracle数据库删除操作指南

linux oracle数据库删除操作指南

WBOY
Release: 2016-06-07 17:55:50
Original
1425 people have browsed it

本文将详细介绍Linux操作系统下完全删除Oracle数据库的操作方法,需要的朋友可以参考下

Linux操作系统下完全删除Oracle数据库详述:

1.关掉oracle server 和 background processes
ps -ef | grep ora
关掉数据库
shutdown immediate

2.关掉监听
lsnrctl status
如果开启的话就执行lsnrctl stop 关掉

3.把$ORACLE_HOME下面的文件删掉
用dbca图形界面把数据库删掉

4.把/usr/local/bin 下的三个文件夹 dbhome oraenv coraenv删掉
rm -f dbhome
rm -f oraenv
rm -f coraenv

5.把/etc 下面的 oratab 和orainst.loc删掉
rm -f oratab
rm -f orainst.loc

6.把/opt 下面ORCLfmap删掉
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
把上面的目录下的文件全部删掉
rm -fR /u01

8.把oracle用户和oinstall 和 dba 删掉
必须先删oracle用户
userdel -r oracle
groupdel oinstall
groupdel dba
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template