Chinaunix首页 | 论坛 | 博客
  • 博客访问: 26778
  • 博文数量: 9
  • 博客积分: 1400
  • 博客等级: 上尉
  • 技术积分: 70
  • 用 户 组: 普通用户
  • 注册时间: 2007-03-30 08:03
文章分类
文章存档

2010年(3)

2009年(3)

2008年(3)

我的朋友
最近访客

分类: Oracle

2009-05-01 15:47:05

goal:Remove the Oracle database form Linux platfrom completely
steps:
1.shutdown Oracle server and background processes.
$env |grep ORA //查看环境变量
$sqlplus /nolog
sql>conn / as sysdba//登录
sql>select instance_name from v$instance;//查看实例名称
sql>!ps -ef | grep ora//查看后台进程
sql>shutdown immediate//停止实例
sql>!ps -ef | grep ora//查看后台进程
sql>exit
 
2.stop oracle lister
$lsnrctl status//查看监听服务状态
 
3.remove all the subdirectories and subfiles which in $ORACLE_HOME directory
$startx//图形界面删除实例(可以在命令行直接删除)
$dbca
$rm -rf /u01
 
4.delete these three files: dbhome,oraenv,coraenv in the /usr/local/bin directory
#cd /usr/local/bin
#rm coraenv
#rm oraenv
#rm dbhome
 
5.delete the two files: oratab and oralnst.loc in the /etc directory
#cd /etc
#rm oratab
#rm oraInst.loc
 
6.delete the directory: ORCLfmap and all its subfiles in the /opt directory
#cd /opt
#rm -rf ORCLlamp
 
7.delete the oracle user and groups normally it would be oinstall and dba
#cat /etc/passwd
#cat /etc/group
#userdel oracle
#groupdel oinstall
#groupdel dba
#ps-ef |grep ORA
#lsnrctl status
阅读(815) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~