在oracle 11gR2以前的版本中,卸载CRS和oracle database时需要手工去删除部分东西,从oracle 11gR2版本开始新增deinstall命令可以卸载grid和database,new oui版本中不再支持卸载,可以删除的非常干净,需要手工删除的话,deinstall命令也会有提示出来。

有两种方法可以删除oracle home和grid home

1.使用安装好后的$ORACLE_HOME/deinstall/deinstall命令

2.从oracle官方网站上下载的deinstall工具 介质名称为aix.ppc64_11gR2_deinstall.zip

下面为第一点的使用方法是交互式的

cd  $ORACLE_HOME/deinstall/

p570b@oracle$deinstall
Checking for required files and bootstrapping ...
Please wait ...
Location of logs /tmp/deinstall2010-03-05_12-32-34-PM/logs/

############ ORACLE DEINSTALL & DECONFIG TOOL START ############

######################## CHECK OPERATION START ########################
Install check configuration START

Checking for existence of the Oracle home location /grid
Oracle Home type selected for de-install is: CRS
Oracle Base selected for de-install is: /oracle
Checking for existence of central inventory location /oracle/oraInventory
Checking for existence of the Oracle Grid Infrastructure home
The following nodes are part of this cluster: p570a,p570b

Install check configuration END

Traces log file: /tmp/deinstall2010-03-05_12-32-34-PM/logs//crsdc.log
Enter an address or the name of the virtual IP used on node "p570a"[p570a-vip]
 >

The following information can be collected by running ifconfig -a on node "p570a"
Enter the IP netmask of Virtual IP "192.168.128.12" on node "p570a"[255.255.255.0]
 >

Enter the network interface name on which the virtual IP address "192.168.128.12" is active
 >

Enter an address or the name of the virtual IP used on node "p570b"[p570b-vip]
 >

The following information can be collected by running ifconfig -a on node "p570b"
Enter the IP netmask of Virtual IP "192.168.128.13" on node "p570b"[255.255.255.0]
 >

Enter the network interface name on which the virtual IP address "192.168.128.13" is active
 >

Enter an address or the name of the virtual IP[]
 >

Network Configuration check config START

Network de-configuration trace file location: /tmp/deinstall2010-03-05_12-32-34-PM/logs/netdc_check3943047409382157255.log

Network Configuration check config END

Asm Check Configuration START

ASM de-configuration trace file location: /tmp/deinstall2010-03-05_12-32-34-PM/logs/asmcadc_check8859913828659895984.log

ASM configuration was not detected in this Oracle home. Was ASM configured in this Oracle home (y|n) [n]: y
Is OCR/Voting Disk placed in ASM y|n [n]: y

Enter the OCR/Voting Disk diskgroup name []:
Specify the ASM Diagnostic Destination [ ]:
Specify the diskgroups that are managed by this ASM instance []:

######################### CHECK OPERATION END #########################

####################### CHECK OPERATION SUMMARY #######################
Oracle Grid Infrastructure Home is:
The cluster node(s) on which the Oracle home exists are: (Please input nodes seperated by ",", eg: node1,node2,...)p570a,p570b
Oracle Home selected for de-install is: /grid
Inventory Location where the Oracle home registered is: /oracle/oraInventory
ASM instance will be de-configured from this Oracle home
Do you want to continue (y - yes, n - no)? [n]: y
A log of this session will be written to: '/tmp/deinstall2010-03-05_12-32-34-PM/logs/deinstall_deconfig2010-03-05_12-33-38-PM.out'
Any error messages from this session will be written to: '/tmp/deinstall2010-03-05_12-32-34-PM/logs/deinstall_deconfig2010-03-05_12-33-38-PM.err'

######################## CLEAN OPERATION START ########################
ASM de-configuration trace file location: /tmp/deinstall2010-03-05_12-32-34-PM/logs/asmcadc_clean6608625374089856517.log
ASM Clean Configuration START
ASM Clean Configuration END

Network Configuration clean config START

Network de-configuration trace file location: /tmp/deinstall2010-03-05_12-32-34-PM/logs/netdc_clean5624344075530317905.log

De-configuring Naming Methods configuration file on all nodes...
Naming Methods configuration file de-configured successfully.

De-configuring Local Net Service Names configuration file on all nodes...
Local Net Service Names configuration file de-configured successfully.

De-configuring Directory Usage configuration file on all nodes...
Directory Usage configuration file de-configured successfully.

De-configuring backup files on all nodes...
Backup files de-configured successfully.

The network configuration has been cleaned up successfully.

Network Configuration clean config END

---------------------------------------->

Run the following command as the root user or the administrator on node "p570a".

/tmp/deinstall2010-03-05_12-32-34-PM/perl/bin/perl -I/tmp/deinstall2010-03-05_12-32-34-PM/perl/lib -I/tmp/deinstall2010-03-05_12-32-34-PM/crs/install /tmp/deinstall2010-03-05_12-32-34-PM/crs/install/rootcrs.pl -force  -delete -paramfile /tmp/deinstall2010-03-05_12-32-34-PM/response/deinstall_Ora11g_gridinfrahome1.rsp

Press Enter after you finish running the above commands

<----------------------------------------

enter
Oracle Universal Installer clean START

Detach Oracle home '/grid' from the central inventory on the local node : Done

Delete directory '/oracle/oraInventory' on the local node : Done

The Oracle Base directory '/oracle' will not be removed on local node. The directory is not empty.

Detach Oracle home '/grid' from the central inventory on the remote nodes 'p570a' : Done

Could not remove listed directories based on '/tmp/OraInstall2010-03-05_12-41-42-PM/installRemoveDirFile.lst' from nodes 'p570a'. [PRKC-1083 : Failed to remove listed directory in "/tmp/OraInstall2010-03-05_12-41-42-PM/installRemoveDirFile.lst" to any of the given nodes "p570a ".
Error on node p570a:null]
Delete directory '/oracle/oraInventory' on the remote nodes 'p570a' : Done

The Oracle Base directory '/oracle' will not be removed on node 'p570a'. The directory is not empty.

Oracle Universal Installer cleanup completed with errors.

Oracle Universal Installer clean END

Oracle install clean START

Clean install operation removing temporary directory '/tmp//install' on node 'p570b'
Clean install operation removing temporary directory '/tmp//install' on node 'p570a'

Oracle install clean END

Moved default properties file /tmp/deinstall2010-03-05_12-32-34-PM/response/deinstall_Ora11g_gridinfrahome1.rsp as /tmp/deinstall2010-03-05_12-32-34-PM/response/deinstall_Ora11g_gridinfrahome1.rsp1

######################### CLEAN OPERATION END #########################

####################### CLEAN OPERATION SUMMARY #######################
ASM instance was de-configured successfully from the Oracle home
Oracle Clusterware was already stopped and de-configured on node "p570b"
Oracle Clusterware is stopped and successfully de-configured on node "p570a"
Oracle Clusterware is stopped and de-configured successfully.
Successfully detached Oracle home '/grid' from the central inventory on the local node.
Failed to delete directory '/grid' on the local node.
Successfully deleted directory '/oracle/oraInventory' on the local node.
Successfully detached Oracle home '/grid' from the central inventory on the remote nodes 'p570a'.
Failed to delete directory '/grid' on the remote nodes 'p570a'.
Successfully deleted directory '/oracle/oraInventory' on the remote nodes 'p570a'.
Oracle Universal Installer cleanup completed with errors.

Run'rm -rf /etc/oraInst.loc'as root on node(s) 'p570b,p570a' at the end of the session.

Oracle install successfully cleaned up the temporary directories.

按照提示来做即可,删除的非常干净,然后在这上面重新安装grid和database时,能够成功安装。

参考文档:metalinkHow To Deinstall Oracle Home In 11GR2? [ID 883743.1]

oracle 11gR2 新增deinstall命令来卸载grid和database相关推荐

  1. Oracle 11gr2 RAC安装笔记(五)安装 Database 软件

    1.上传Oracle软件到/storage目录并解压: su - oracle unzip linux.x64_11gR2_database_1of2.zip unzip linux.x64_11gR ...

  2. 在oracle 11gr2 grid独占模式下,如何使oracle数据库实例伴随OHAS的启动而启动?

    这里有一台装有oracle 11gr2的虚拟机,其中的grid是以独占模式存在的,提供了ASM服务,数据库的数据文件都是存放在+DATA上面的.由于在安装的时候选择了独占模式,所以在ohas伴随系统启 ...

  3. oracle数据库7个安装包,Oracle 11gR2(11.2.0.4)安装包(7个)作用说明

    在之前使用Oracle10G的时候,官网下载的数据库安装包只有两个文件,解压合并后为完整的安装包. 后来因为检查出多个Oracle漏洞,需要现场Oracle数据库版本需要升级到11.2.0.4,下载的 ...

  4. 玩转oracle 11g(12):卸载

    从 Oracle 11gR2 开始,Oracle 推荐使用 deinstall 来完全卸载 Oracle 数据库. 使用 Oracle Universal Install(OUI) 的图形方式来卸载 ...

  5. oracle客户端没有deinstall.bat,Oracle数据库11gR2的卸载 - deinstall

    从Oracle 11gR2开始,Oracle推荐使用deinstall来卸载Oracle数据库.使用Oracle Universal Install(OUI) 的图形方式来卸载Oracle数据库软件了 ...

  6. oracle 11g RAC无法采用deinstall自动卸载grid,手动卸载,超级棒!

    oracle 11g RAC无法采用deinstall自动卸载grid,手动卸载,超级棒! 1.root用户下计入到grid用户的ORACLE_HOME [root]# cd /u01/app/11. ...

  7. oracle++卸载grid,GRID卸载及重新安装

    由于之前错误安装或者其他问题需要重新安装GRID,出现以下报错 安装orace grid infrastructure 提示"[INS-40404] The installer has de ...

  8. deinstall 卸载grid_oracle 11g RAC手动卸载grid,no deinstall   .

    oracle 11g RAC手动卸载grid,no deinstall 1.通过root用户进入到grid的ORACLE_HOME [root@db01]# source /home/grid/.ba ...

  9. 一步一步搭建 oracle 11gR2 rac+dg之grid安装(四)

    一步一步在RHEL6.5+VMware Workstation 10上搭建 oracle 11gR2 rac + dg 之grid安装 (四) 本章目录结构: 这一步也比较重要,主要是安装ASM,如果 ...

最新文章

  1. 下一代防火墙信息收集(概念篇)
  2. c#string倒数第二位插入字符_【转载】C#中string类使用Substring方法截取字符串
  3. 考研重庆邮电大学计算机跨专业,重庆邮电大学计算机考研难度
  4. 通过Qos 策略来对P2P限速
  5. 欧亚马 java折叠车_如何选择欧亚马折叠车?
  6. 宇宙第一 IDE Visual Studio 2019 支持 C++ 和 Python 了!
  7. Java并发(五)线程池使用番外-分析RejectedExecutionException异常
  8. 大型网站架构系列:负载均衡详解
  9. Carrot2 in action_初试身手—融入自己的中文分词器
  10. 小爱音箱mini系统故障怎么办_Win7蓝牙连接小爱音箱mini的详细教程
  11. 从管理的角度如何提高团队工作效率?
  12. 基于Python OpenCV的车牌识别智能计费系统设计
  13. 小区物业管理系统计算机科学技术,智能化小区物业管理系统关键技术研究
  14. 如何调用EasyCVR平台的登录、播放地址、录像回看接口?
  15. 一个压长定式衍生出的一个角部攻防
  16. 一般3d模型代做多少钱_3D打印模型一般需要多少钱?
  17. 统筹在项目中的重要性
  18. SEO现状:网络营销之SEO骗子多(转)
  19. spring aop Null return value from advice does not match primitive return type for总结
  20. 云客Drupal源码分析之数据库Schema及创建数据表

热门文章

  1. flask 定义数据库关系(一对多) --
  2. P2286 [HNOI2004]宠物收养场
  3. 指令篇: 查看系统版本信息___uname
  4. Nginx rewrite使用
  5. beaglebone black 联网
  6. 线程高级应用-心得9-空中网的三道面试题,考察应试者的线程掌握的深度
  7. bcb 如何在DLL中捕捉系统级异常
  8. Ubuntu 18.04 搭建 gitlab服务器记录
  9. 云服务器一直显示关机中,云服务器一直提示关机中
  10. android studio tree,Git 、Sourse Tree 和 Android Studio配置遇到的问题