重新配置 11gR2 Grid Infrastructure

在Grid Infrastructure安装完毕前需要执行root.sh,但是在执行的过程中经常容易出现错误,并且需要修复该错误才能得以继续。11gR2版本中我们可以直接通过执行脚本rootcrs.pl来重新配置Grid Infrastructure,而无需先卸载Grid Infrastructure,然后修复故障后进行再次安装。下面描述了rootcrs.pl的用法以。该命令主要是用于对crs进行维护与管理,包括patch,upgrade,downgrade,deconfig等等
 
命令位置:$GRID_HOME/crs/install
[root@rac1 install]# ./rootcrs.pl -h
Unknown option: h
Usage:
      rootcrs.pl [-verbose] [-upgrade | -patch] [-hahome ]
                 [-paramfile ] 
                 [-deconfig | -downgrade] [-force] [-lastnode]
                 [-downgrade] [-oldcrshome ] [-version ]  
                 [-unlock [-crshome ]]

      Options:
       -verbose    Run this script in verbose mode
       -upgrade    Oracle HA is being upgraded from previous version
       -patch      Oracle HA is being upgraded to a patch version
       -hahome     Complete path of Oracle Clusterware home
       -paramfile  Complete path of file specifying HA parameter values
       -lastnode   Force the node this is executing on to be considered the
                   last node of the install and perform actions associated
                   with configurig the last node
       -downgrade  Downgrade the clusterware
       -version    For use with downgrade; special handling is required if
                   downgrading to 9i. This is the old crs version in the format
                   A.B.C.D.E (e.g 11.1.0.6.0).
       -deconfig   Remove Oracle Clusterware to allow it to be uninstalled or reinstalled.
       -force      Force the executon of steps in delete that cannot be verified 
                   to be safe
       -unlock     Unlock CRS home 
       -crshome    Complete path of crs home. Use with unlock option.
       -oldcrshome For use with downgrade. Complete path of the old crs home.

      If neither -upgrade nor -patch is supplied, a new install is performed

      To see the full manpage for this program, execute:
        perldoc rootcrs.pl     
重新配置Grid Infrastructure不会移除已经复制的二进制文件,仅仅是恢复到配置crs之前的状态,下面是其步骤   

1、使用root用户登录,并执行下面的命令(所有节点,但最后一个节点除外)  

[root@rac1 install]# /u01/app/grid/crs/install/rootcrs.pl -verbose -deconfig -force   

2、同样使用root用户在最后一个节点执行下面的命令。该命令将清空ocr 配置和voting disk    

[root@rac1 install]# /u01/app/grid/crs/install/rootcrs.pl -verbose -deconfig -force -lastnode   

3、清空所有的ASM磁盘组,使得ASM重新作为候选磁盘 

[root@rac1 install]#  dd if=/dev/zero of=/dev/sdb1 bs=1024 count=100   

[root@rac1 install]#  /etc/init.d/oracleasm deletedisk DATA /dev/sdb1   

[root@rac1 install]#  /etc/init.d/oracleasm createdisk DATA /dev/sdb1
---------------------------------------------------------------------------------------------------------------------------------

pxboracle@live.com
2014.5.11 10:07
share you knowledge with the world.
 

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/12798004/viewspace-1158378/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/12798004/viewspace-1158378/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值