- 关闭数据库:
[oracle@rac1 ~]$ sqlplus /nolog
SQL> connect / as sysdba
SQL> shutdown immediate
SQL> exit - 停止 Listener:
[oracle@rac1 ~]$ lsnrctl stop
- 依次在 Shell 下运行如下命令:
- $ORACLE_HOME/bin/localconfig delete
- rm -rf $ORACLE_HOME
- rm -rf $ORACLE_BASE
- rm -rf /etc/oraInst.loc /etc/oratab
- rm -rf /etc/oracle
- rm -rf /etc/inittab.cssd
- rm -rf /usr/local/bin/coraenv
- rm -rf /usr/local/bin/dbhome
- rm -rf /usr/local/bin/oraenv
- rm -rf /tmp/.oracle
- rm -rf /var/tmp/.oracle
- 删除相关用户和用户组:
[root@rac1 ~]# userdel oracle
[root@rac1 ~]# groupdel dba
[root@rac1 ~]# groupdel oinstall
如何在Linux 下完全卸载 Oracle 10g
最新推荐文章于 2021-04-03 06:29:32 发布