ITPub博客

首页 > 数据库 > Oracle > RAC解决单节点报 CRS-4047: No Oracle Clusterware components configured.

RAC解决单节点报 CRS-4047: No Oracle Clusterware components configured.

原创 Oracle 作者:muxinqing 时间:2014-02-20 12:30:13 0 删除 编辑

 

[root@linux1 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      
#对于执行root.sh失败时,我们可以通过该命令以-deconfig 参数来清除crs的配置信息,然后根据log修复故障或使用patch之后再重新执行root.sh
#对于该命令的patch,upgrade,downgrade用法再此不作详细介绍
#重新配置Grid Infrastructure并不会移除已经复制的二进制文件,仅仅是回复到配置crs之前的状态,下面是其步骤 
   
a、使用root用户登录,并执行下面的命令(所有节点,但最后一个节点除外) 
  # perl $GRID_HOME/crs/install/rootcrs.pl -verbose -deconfig -force 
     
b、同样使用root用户在最后一个节点执行下面的命令。该命令将清空ocr 配置和voting disk   
  # perl $GRID_HOME/crs/install/rootcrs.pl -verbose -deconfig -force -lastnode 

[root@his2 bin]# ./crsctl check crs  检查服务状态
CRS-4047: No Oracle Clusterware components configured.
CRS-4000: Command Check failed, or completed with errors.
[root@his2 bin]# ./crsctl stat res -t
CRS-4047: No Oracle Clusterware components configured.
CRS-4000: Command Status failed, or completed with errors.
[root@his2 bin]# ./crs_stat -t
CRS-0184: Cannot communicate with the CRS daemon.

/app/grid/product/11.2.0/grid/crs/install/rootcrs.pl -deconfig -force 重置crs注册表
Using configuration parameter file: /app/grid/product/11.2.0/grid/crs/install/crsconfig_params
Network exists: 1/192.168.20.0/255.255.255.0/eth0, type static
VIP exists: /his1-vip/192.168.20.6/192.168.20.0/255.255.255.0/eth0, hosting node his1
VIP exists: /his2-vip/192.168.20.7/192.168.20.0/255.255.255.0/eth0, hosting node his2
GSD exists
ONS exists: Local port 6100, remote port 6200, EM port 2016
ACFS-9200: Supported
CRS-2673: Attempting to stop 'ora.registry.acfs' on 'his2'
CRS-2677: Stop of 'ora.registry.acfs' on 'his2' succeeded
CRS-2791: Starting shutdown of Oracle High Availability Services-managed resources on 'his2'
CRS-2673: Attempting to stop 'ora.crsd' on 'his2'
CRS-2790: Starting shutdown of Cluster Ready Services-managed resources on 'his2'
CRS-2673: Attempting to stop 'ora.ORACRS.dg' on 'his2'
CRS-2673: Attempting to stop 'ora.crds3db.db' on 'his2'
CRS-2677: Stop of 'ora.ORACRS.dg' on 'his2' succeeded
CRS-2677: Stop of 'ora.crds3db.db' on 'his2' succeeded
CRS-2673: Attempting to stop 'ora.ORAARCH.dg' on 'his2'
CRS-2673: Attempting to stop 'ora.ORADATA.dg' on 'his2'
CRS-2677: Stop of 'ora.ORAARCH.dg' on 'his2' succeeded
CRS-2677: Stop of 'ora.ORADATA.dg' on 'his2' succeeded
CRS-2673: Attempting to stop 'ora.asm' on 'his2'
CRS-2677: Stop of 'ora.asm' on 'his2' succeeded
CRS-2792: Shutdown of Cluster Ready Services-managed resources on 'his2' has completed
CRS-2677: Stop of 'ora.crsd' on 'his2' succeeded
CRS-2673: Attempting to stop 'ora.ctssd' on 'his2'
CRS-2673: Attempting to stop 'ora.evmd' on 'his2'
CRS-2673: Attempting to stop 'ora.asm' on 'his2'
CRS-2673: Attempting to stop 'ora.drivers.acfs' on 'his2'
CRS-2673: Attempting to stop 'ora.mdnsd' on 'his2'
CRS-2677: Stop of 'ora.asm' on 'his2' succeeded
CRS-2673: Attempting to stop 'ora.cluster_interconnect.haip' on 'his2'
CRS-2677: Stop of 'ora.evmd' on 'his2' succeeded
CRS-2677: Stop of 'ora.cluster_interconnect.haip' on 'his2' succeeded
CRS-2677: Stop of 'ora.mdnsd' on 'his2' succeeded
CRS-2677: Stop of 'ora.ctssd' on 'his2' succeeded
CRS-2673: Attempting to stop 'ora.cssd' on 'his2'
CRS-2677: Stop of 'ora.cssd' on 'his2' succeeded
CRS-2673: Attempting to stop 'ora.diskmon' on 'his2'
CRS-2673: Attempting to stop 'ora.crf' on 'his2'
CRS-2677: Stop of 'ora.diskmon' on 'his2' succeeded
CRS-2677: Stop of 'ora.crf' on 'his2' succeeded
CRS-2673: Attempting to stop 'ora.gipcd' on 'his2'
CRS-2677: Stop of 'ora.drivers.acfs' on 'his2' succeeded
CRS-2677: Stop of 'ora.gipcd' on 'his2' succeeded
CRS-2673: Attempting to stop 'ora.gpnpd' on 'his2'
CRS-2677: Stop of 'ora.gpnpd' on 'his2' succeeded
CRS-2793: Shutdown of Oracle High Availability Services-managed resources on 'his2' has completed
CRS-4133: Oracle High Availability Services has been stopped.
Successfully deconfigured Oracle clusterware stack on this node
[root@his1 ~]# su - grid
[grid@his1 ~]$ crs_stat -t         在节点1上面只能看到节点1的服务这说明节点2有问题了
Name           Type           Target    State     Host       
------------------------------------------------------------
ora....ER.lsnr ora....er.type ONLINE    ONLINE    his1       
ora....N1.lsnr ora....er.type ONLINE    ONLINE    his1       
ora.ORAARCH.dg ora....up.type ONLINE    ONLINE    his1       
ora.ORACRS.dg  ora....up.type ONLINE    ONLINE    his1       
ora.ORADATA.dg ora....up.type ONLINE    ONLINE    his1       
ora.asm        ora.asm.type   ONLINE    ONLINE    his1       
ora.crds3db.db ora....se.type ONLINE    ONLINE    his1       
ora.cvu        ora.cvu.type   ONLINE    ONLINE    his1       
ora.gsd        ora.gsd.type   OFFLINE   OFFLINE              
ora....SM1.asm application    ONLINE    ONLINE    his1       
ora....S1.lsnr application    ONLINE    ONLINE    his1       
ora.his1.gsd   application    OFFLINE   OFFLINE              
ora.his1.ons   application    ONLINE    ONLINE    his1       
ora.his1.vip   ora....t1.type ONLINE    ONLINE    his1       
ora....network ora....rk.type ONLINE    ONLINE    his1       
ora.oc4j       ora.oc4j.type  ONLINE    ONLINE    his1       
ora.ons        ora.ons.type   ONLINE    ONLINE    his1       
ora....ry.acfs ora....fs.type ONLINE    ONLINE    his1       
ora.scan1.vip  ora....ip.type ONLINE    ONLINE    his1       

[grid@his1 ~]$ crsctl stat res -t        在1节点上面只能看到1资源说明节点2有问题了
--------------------------------------------------------------------------------
NAME           TARGET  STATE        SERVER                   STATE_DETAILS      
--------------------------------------------------------------------------------
Local Resources
--------------------------------------------------------------------------------
ora.LISTENER.lsnr
               ONLINE  ONLINE       his1                                        
ora.ORAARCH.dg
               ONLINE  ONLINE       his1                                        
ora.ORACRS.dg
               ONLINE  ONLINE       his1                                        
ora.ORADATA.dg
               ONLINE  ONLINE       his1                                        
ora.asm
               ONLINE  ONLINE       his1                     Started            
ora.gsd
               OFFLINE OFFLINE      his1                                        
ora.net1.network
               ONLINE  ONLINE       his1                                        
ora.ons
               ONLINE  ONLINE       his1                                        
ora.registry.acfs
               ONLINE  ONLINE       his1                                        
--------------------------------------------------------------------------------
Cluster Resources
--------------------------------------------------------------------------------
ora.LISTENER_SCAN1.lsnr
      1        ONLINE  ONLINE       his1                                        
ora.crds3db.db
      1        ONLINE  ONLINE       his1                     Open               
      2        ONLINE  OFFLINE                               Instance Shutdown  
ora.cvu
      1        ONLINE  ONLINE       his1                                        
ora.his1.vip
      1        ONLINE  ONLINE       his1                                        
ora.oc4j
      1        ONLINE  ONLINE       his1                                        
ora.scan1.vip
      1        ONLINE  ONLINE       his1                 

[root@his2 bin]# /app/grid/product/11.2.0/grid/root.sh   执行roo.sh重新配置集群所有服务
Running Oracle 11g root script...

The following environment variables are set as:
    ORACLE_OWNER= grid
    ORACLE_HOME=  /app/grid/product/11.2.0/grid

Enter the full pathname of the local bin directory: [/usr/local/bin]:
The contents of "dbhome" have not changed. No need to overwrite.
The contents of "oraenv" have not changed. No need to overwrite.
The contents of "coraenv" have not changed. No need to overwrite.

Entries will be added to the /etc/oratab file as needed by
Database Configuration Assistant when a database is created
Finished running generic part of root script.
Now product-specific root actions will be performed.
Using configuration parameter file: /app/grid/product/11.2.0/grid/crs/install/crsconfig_params
LOCAL ADD MODE
Creating OCR keys for user 'root', privgrp 'root'..
Operation successful.
OLR initialization - successful
Adding daemon to inittab
ACFS-9200: Supported
ACFS-9300: ADVM/ACFS distribution files found.
ACFS-9307: Installing requested ADVM/ACFS software.
ACFS-9308: Loading installed ADVM/ACFS drivers.
ACFS-9321: Creating udev for ADVM/ACFS.
ACFS-9323: Creating module dependencies - this may take some time.
ACFS-9327: Verifying ADVM/ACFS devices.
ACFS-9309: ADVM/ACFS installation correctness verified.
CRS-4402: The CSS daemon was started in exclusive mode but found an active CSS daemon on node his1, number 1, and is terminating
An active cluster was found during exclusive startup, restarting to join the cluster
Preparing packages for installation...
cvuqdisk-1.0.9-1
Configure Oracle Grid Infrastructure for a Cluster ... succeeded  

[root@his2 bin]# ./crsctl stat res -t    看结果已经恢复正常
--------------------------------------------------------------------------------
NAME           TARGET  STATE        SERVER                   STATE_DETAILS      
--------------------------------------------------------------------------------
Local Resources
--------------------------------------------------------------------------------
ora.LISTENER.lsnr
               ONLINE  ONLINE       his1                                        
               ONLINE  ONLINE       his2                                        
ora.ORAARCH.dg
               ONLINE  ONLINE       his1                                        
               ONLINE  ONLINE       his2                                        
ora.ORACRS.dg
               ONLINE  ONLINE       his1                                        
               ONLINE  ONLINE       his2                                        
ora.ORADATA.dg
               ONLINE  ONLINE       his1                                        
               ONLINE  ONLINE       his2                                        
ora.asm
               ONLINE  ONLINE       his1                     Started            
               ONLINE  ONLINE       his2                                        
ora.gsd
               OFFLINE OFFLINE      his1                                        
               OFFLINE OFFLINE      his2                                        
ora.net1.network
               ONLINE  ONLINE       his1                                        
               ONLINE  ONLINE       his2                                        
ora.ons
               ONLINE  ONLINE       his1                                        
               ONLINE  ONLINE       his2                                        
ora.registry.acfs
               ONLINE  ONLINE       his1                                        
               ONLINE  ONLINE       his2                                        
--------------------------------------------------------------------------------
Cluster Resources
--------------------------------------------------------------------------------
ora.LISTENER_SCAN1.lsnr
      1        ONLINE  ONLINE       his1                                        
ora.crds3db.db
      1        ONLINE  ONLINE       his1                     Open               
      2        ONLINE  ONLINE       his2                     Open               
ora.cvu
      1        ONLINE  ONLINE       his1                                        
ora.his1.vip
      1        ONLINE  ONLINE       his1                                        
ora.his2.vip
      1        ONLINE  ONLINE       his2                                        
ora.oc4j
      1        ONLINE  ONLINE       his1                                        
ora.scan1.vip
      1        ONLINE  ONLINE       his1            
-----------------------------------------------------------end--------------------------------------------------------
转载时候提示原作者或者以路径连接方式        请您尊重笔记
技术群:132304250

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

请登录后发表评论 登录
全部评论

注册时间:2014-01-14

  • 博文量
    143
  • 访问量
    1202322