首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 数据库 > 其他数据库 >

怎么卸载oracle数据库(linux)

2012-11-12 
如何卸载oracle数据库(linux)步骤1 以oracle 用户登录SuSE Linux 操作系统。步骤2 在命令窗口中执行如下命

如何卸载oracle数据库(linux)
步骤1 以oracle 用户登录SuSE Linux 操作系统。
步骤2 在命令窗口中执行如下命令,停止Oracle 数据库和监听服务。如果有其他使用数据库服
务的程序,也建议停止,例如网管系统。
> lsnrctl stop
> sqlplus / as sysdba
> shutdown immediate
步骤3 重新以root 用户登录SuSE Linux 操作系统。
步骤4 在命令窗口中执行如下命令,删除Oracle 文件。
# rm -rf /opt/oracle
# rm -rf /etc/ora*
# rm -rf /usr/local/bin/*oraenv
# rm -rf /usr/local/bin/dbhome
# rm -rf /var/tmp/.oracle
# rm -rf /tmp/.oracle
# rm -rf /tmp/*oracle*
# rm -rf /tmp/Oracle*
# rm -rf /tmp/*OraInstall*
步骤5 在命令窗口中执行如下命令,删除oracle 用户和dba 用户组。
# userdel oracle
# groupdel dba
步骤6 重新启动SuSE Linux 操作系统。
# sync;sync;sync;sync;sync;sync;
# shutdown -r -t time now

热点排行