当前位置:  数据库>oracle

Oracle 11g Grid Infrastructure 卸载

    来源: 互联网  发布时间:2017-04-26

    本文导语: Oracle 11g grid infrastructure安装失败时,或者需要卸载时,不像10g的CRS组件卸载那么麻烦了。 以linux系统为例,10g手工删除CRS的操作步骤: rm -f /etc/init.d/init.cssdrm -f /etc/init.d/init.crsrm -f /etc/init.d/init.crsdrm -f /etc/init.d/init.evmdrm -f /etc/rc2....

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
                [ -silent ]
                [ -checkonly ]
                [ -local ]
                [ -paramfile ]
                [ -params ]
                [ -o ]
                [ -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相关的文件了。

更多Oracle相关信息见 专题页面


    
 
 
 
本站(WWW.)旨在分享和传播互联网科技相关的资讯和技术,将尽最大努力为读者提供更好的信息聚合和浏览方式。
本站(WWW.)站内文章除注明原创外,均为转载、整理或搜集自网络。欢迎任何形式的转载,转载请注明出处。












  • 相关文章推荐
  • Oracle 2010年7月更新修复Enterprise Manager Grid Control安全漏洞
  • Oracle 12c发布简单介绍及官方下载地址
  • 在linux下安装oracle,如何设置让oracle自动启动!也就是让oracle那个服务自动启动,不是手动的
  • oracle 11g最新版官方下载地址
  • HTML标签参考手册 iis7站长之家
  • Oracle 数据库(oracle Database)Select 多表关联查询方式
  • 虚拟机装Oracle R12与Oracle10g
  • Oracle数据库(Oracle Database)体系结构及基本组成介绍
  • Oracle 数据库开发工具 Oracle SQL Developer
  • 如何设置让Oracle SQL Developer显示的时间包含时分秒
  • Oracle EBS R12 支持 Oracle Database 11g
  • Oracle 10g和Oracle 11g网格技术介绍
  • SCO unix下安装oracle,但没有光盘,请大家推荐一个oracle下载站点(unix版本的)。谢谢!!!!
  • oracle中如何把表中具有相同值列的多行数据合并成一行
  • 请问大家用oracle数据库, 用import oracle.*;下的东西么? 还是用标准库?
  • Oracle 数据库(oracle Database)性能调优技术详解
  • Linux /$ORACLE_HOME $ORACLE_HOME
  • ORACLE日期相关操作
  • Linux系统下Oracle的启动与Oracle监听的启动
  • ORACLE数据库常用字段数据类型介绍
  • 请问在solaris下安装ORACLE,用root用户和用oracle用户安装有什么区别么?
  • Oracle 12c的九大最新技术特性介绍
  • 网间Oracle的连接,远程连接Oracle服务器??


  • 站内导航:


    特别声明:169IT网站部分信息来自互联网,如果侵犯您的权利,请及时告知,本站将立即删除!

    ©2012-2021,