`
mikixiyou
  • 浏览: 1099215 次
  • 性别: Icon_minigender_1
  • 来自: 南京
博客专栏
C3c8d188-c0ab-3396-821d-b68331e21226
Oracle管理和开发
浏览量:353232
社区版块
存档分类
最新评论

Oracle 11g Grid Infrastructure 卸载

阅读更多

Oracle 11g grid infrastructure安装失败时,或者需要卸载时,不像10g的CRS组件卸载那么麻烦了。

以linux系统为例,10g手工删除CRS的操作步骤:

 

rm -f /etc/init.d/init.cssd

rm -f /etc/init.d/init.crs

rm -f /etc/init.d/init.crsd

rm -f /etc/init.d/init.evmd

rm -f /etc/rc2.d/K96init.crs

rm -f /etc/rc2.d/S96init.crs

rm -f /etc/rc3.d/K96init.crs

rm -f /etc/rc3.d/S96init.crs

rm -f /etc/rc5.d/K96init.crs

rm -f /etc/rc5.d/S96init.crs

rm -rf /etc/oracle/scls_scr

rm -f /etc/inittab.crs

cp /etc/inittab.orig /etc/inittab


 

在11g中,提供了一个卸载工具deinstall,如Linux系统下软件名称为linux.x64_11gR2_deinstall.zip。解压后可以直接使用。

第一步、使用grid用户登录操作系统,这个用户是grid infrastructure软件安装用户。

 

/home/grid/deinstall@serv2=>+ASM2$./deinstall
Location of logs /home/grid/deinstall/logs/

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

Usage:

deinstall -home <Complete path of Oracle home>
                [ -silent ]
                [ -checkonly ]
                [ -local ]
                [ -paramfile <complete path of input parameter property file> ]
                [ -params <name1=value[ name2=value ...]> ]
                [ -o <complete path of directory for saving files> ]
                [ -help | -h: Type -h or -help to get more information on each o
f the above options. ]
Specify any of the above options.

############# ORACLE DEINSTALL & DECONFIG TOOL END #############

 

第二步,使用deinstall -home /u01/app/11.2.0/grid 卸载安装了的文件

/home/grid/deinstall@serv2=>+ASM2$./deinstall -home /u01/app/11.2.0/grid
ORACLE_HOME = /u01/app/11.2.0/grid
Location of logs /home/grid/deinstall/logs/

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


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


Checking for existence of the Oracle home location /u01/app/11.2.0/grid
Oracle Home type selected for de-install is: CRS
Oracle Base selected for de-install is: /u01/app/grid
Checking for existence of central inventory location /u01/app/oraInventory
Checking for existence of the Oracle Grid Infrastructure home /u01/app/11.2.0/gr
id
The following nodes are part of this cluster: serv1,serv2

Install check configuration END

Traces log file: /home/grid/deinstall/logs//crsdc.log
Enter an address or the name of the virtual IP used on node "serv1"[serv1-vip]
 >

The following information can be collected by running ifconfig -a on node "serv1
"
Enter the IP netmask of Virtual IP "192.168.15.189" on node "serv1"[255.255.255.
0]
 >

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

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

The following information can be collected by running ifconfig -a on node "serv2
"
Enter the IP netmask of Virtual IP "192.168.15.190" on node "serv2"[255.255.255.
0]
 >

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

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


Network Configuration check config START

Network de-configuration trace file location: /home/grid/deinstall/logs/netdc_ch
eck59960.log

Network Configuration check config END

Asm Check Configuration START

ASM de-configuration trace file location: /home/grid/deinstall/logs/asmcadc_chec
k59961.log

ASM configuration was not detected in this Oracle home. Was ASM configured in th
is Oracle home (y|n) [n]: y
Specify the ASM Diagnostic Destination [ ]: /u01/app/11.2.0/grid
Specify the diskgroups that are managed by this ASM instance []: CRS

De-configuring ASM will drop all the diskgroups at cleanup time. Do you want dec
onfig tool to drop the diskgroups y|n [y]: y


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


####################### CHECK OPERATION SUMMARY #######################
Oracle Grid Infrastructure Home is: /u01/app/11.2.0/grid
The cluster node(s) on which the Oracle home exists are: (Please input nodes sep
erated by ",", eg: node1,node2,...)serv1,serv2
Oracle Home selected for de-install is: /u01/app/11.2.0/grid
Inventory Location where the Oracle home registered is: /u01/app/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: '/home/grid/deinstall/logs/deinstall_d
econfig2012-04-24_10-21-03-AM.out'
Any error messages from this session will be written to: '/home/grid/deinstall/l
ogs/deinstall_deconfig2012-04-24_10-21-03-AM.err'

######################## CLEAN OPERATION START ########################
ASM de-configuration trace file location: /home/grid/deinstall/logs/asmcadc_clea
n59962.log
ASM Clean Configuration START
ASM Clean Configuration END

Network Configuration clean config START

Network de-configuration trace file location: /home/grid/deinstall/logs/netdc_cl
ean59963.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 "serv2".


/home/grid/deinstall/perl/bin/perl -I/home/grid/deinstall/perl/lib -I/home/grid/
deinstall/crs/install /home/grid/deinstall/crs/install/rootcrs.pl -force  -delet
e -paramfile /home/grid/deinstall/response/deinstall_Ora11g_gridinfrahome1.rsp -
lastnode

Press Enter after you finish running the above commands

 

这个步骤中就是为了生成配置文件/home/grid/deinstall/response/deinstall_Ora11g_gridinfrahome1.rsp

 

第三步,使用root在节点上执行上一个步骤中生成的配置文件的perl脚本

 

/home/grid/deinstall/perl/bin/perl -I/home/grid/deinstall/perl/lib -I/home/grid/
deinstall/crs/install /home/grid/deinstall/crs/install/rootcrs.pl -force  -delet
e -paramfile /home/grid/deinstall/response/deinstall_Ora11g_gridinfrahome1.rsp -
lastnode

 

至此,卸载grid infrastructure工作结束。在/etc/init.d中也不会有ohasd相关的文件了。

 

分享到:
评论

相关推荐

    Linux下Oracle 12c的安全卸载

    ### Linux下Oracle 12c的安全卸载 在企业级应用环境中,Oracle数据库因其稳定性、安全性及高效性而被广泛采用。然而,在某些情况下,可能需要卸载Oracle 12c来解决安装过程中出现的问题或者进行版本升级。本文将...

    Oracle RAC 删除grid,oracle后重新安装 grid,oracle 软件和重建数据库

    Oracle RAC环境下的数据库操作是一项复杂的工作,尤其是涉及到删除和重新安装Grid Infrastructure及Oracle数据库的情况。这个过程通常是为了升级到企业版或者解决某些特定的技术问题。以下是对整个流程的详细解释: ...

    oracle 11G 安装所需rpm依赖包很全

    9. **网格基础设施**:Oracle 11g引入了Grid Infrastructure(GI),包括集群ware和ASM(Automatic Storage Management),它们需要额外的RPM包。 10. **客户端组件**:如ojdbc、sqlplus,这些是与Oracle数据库进行...

    Oracle11g全部安装包资源.txt

    - 这个文件包含了一套卸载工具,用于移除Oracle 11g R2的各个组件。当需要从系统中完全清除Oracle软件时,这些工具非常有用。 ### 总结 通过以上对Oracle 11g R2各个安装包的详细介绍,我们可以看到,这些文件...

    Oracle 11g 高可用性实战

    9. Grid Infrastructure: 文档中提到了Oracle网格基础设施,它整合了Oracle Clusterware和ASM,以及SCAN和SCAN监听器的概念,这些是Oracle 11g提供的简化集群安装和管理的新特性。 10. Single Client Access Name ...

    oracle11g数据库正版资源

    - Oracle 11g R2引入了Grid Infrastructure,它包含了Clusterware和ASM(Automatic Storage Management),增强了集群环境下的高可用性和性能。 2. **新特性**: - **Automatic Memory Management**:Oracle 11g ...

    LINUX下安装oracle11g所需全部rpm包

    2. **Oracle 11g的组件**:Oracle 11g数据库由多个组件构成,包括Oracle Database Server、Oracle Client、Oracle Grid Infrastructure(GI)和Oracle ASM(Automatic Storage Management)。这些组件都有对应的RPM...

    Oracle11g-rpm包-L64

    sudo rpm -ivh oracle-grid-infrastructure-11g.rpm sudo rpm -ivh oracle-database-server-11g.rpm ``` 6. **配置监听器**:安装完成后,需要配置Oracle的监听器(`lsnrctl`),以使数据库实例可以接收网络连接...

    RAC坏节点重建与卸载

    Oracle RAC(Real Application Clusters)坏节点重建与卸载是一个复杂的过程,涉及到Oracle Grid Infrastructure的多个关键组成部分,包括OCR(Oracle Cluster Registry)和集群资源管理。文档2016852.1详述了当遇到...

    Oracle_Linux_11g_依赖的rpm包.zip

    7. **Oracle Grid Infrastructure (GI)**:包括Clusterware和ASM(Automatic Storage Management),为Oracle数据库提供高可用性和灾难恢复功能。 8. **Oracle Database Server**:实际的Oracle数据库服务器组件,...

    ORACLE卸载合集文档

    此外,Oracle 10的卸载可能涉及卸载Grid Infrastructure,这是一个重要的组成部分,需谨慎操作。 4. **Oracle 11 卸载**: Oracle 11是较为成熟的一个版本,其卸载过程相对复杂,因为可能包含了RAC(Real ...

    linux 6.0下oracle 11gR2所需全部rpm包

    在Linux 6.0环境下安装Oracle 11g R2是一项技术性较强的任务,涉及到多个RPM(Red Hat Package Manager)包的管理。Oracle数据库是一个复杂的企业级数据库系统,其安装过程需要对操作系统、文件系统、网络配置以及...

    oracle11g rac集群rpm包

    总结,"oracle11g rac集群rpm包"提供了安装Oracle 11g RAC所需的全部组件,包括Grid Infrastructure和数据库软件。理解RPM包管理、RAC架构以及安装和管理流程,对于成功部署和维护Oracle RAC集群至关重要。在实际...

    Oracle_Database_11g_标准版_企业版__下载地址_详细列表

    - **Oracle Database 11g Release 2 Grid Infrastructure (11.2.0.1.0)**: 用于构建集群环境的基础架构。 - **Oracle Fusion Middleware Web Tier Utilities 11g (11.1.1.2.0)**: 中间件Web层工具。 - **Oracle ...

    oracle 11g r2 rac 安装

    3. **安装软件**:准备好Oracle 11g R2安装包和相应的Grid Infrastructure包。 **安装步骤:** 1. **安装依赖包**: 使用 `yum install` 命令安装必要的依赖软件,如binutils、gcc、glibc等。 2. **配置环境**: ...

    Oracle+11g+RAC运维培训文档

    在后续版本中,CRS 更名为 Oracle Clusterware 和 Grid Infrastructure (GI)。 #### 二、架构 **2.1 RAC 环境组成** - **硬件环境** - 主机(节点):至少包含两个主机,每个主机配置相同,至少配备两块物理网卡...

    oracle v-11.2.0.4.0 Oracle 11.2.0.4 For Windows 64bit+32bit 数据库

    Oracle 11g Release 2 (11.2.0.4) 是Oracle数据库的一个重要版本,特别适合Windows 64位和32位操作系统。这个版本提供了多种组件和服务,以满足不同用户的需求,包括数据库服务器、Grid Infrastructure、客户端、...

    redhat6.5-oracle11gR2-grid搭建RAC(个人整理-yjc)

    ### Red Hat 6.5与Oracle 11g R2 Grid 搭建RAC环境 #### 一、概述 本文档旨在详细介绍如何在Red Hat 6.5操作系统上搭建Oracle 11g R2 Grid Real Application Clusters (RAC)环境。RAC是一种集群数据库技术,它允许...

    构建最高可用Oracle数据库系统 Oracle 11gR2 RAC管理、维护与性能优化

    2.7.1安装Grid Infrastructure 2.7.2安装Database DBMS 2.7.3创建ASM磁盘组 2.7.4创建RAC数据库 2.8测试RAC 2.8.1连接方式测试 2.8.2异常情况测试 2.9虚拟机搭建RAC 2.9.1虚拟机Xen简介 2.9.2启动主机Xen...

Global site tag (gtag.js) - Google Analytics