CRS-4046: Invalid Oracle Clusterware configuration

流浪的野狼發表於2016-05-18
在AIX6.1下安裝ORACLE11.2.0.4 RAC的時候,在節點2執行root.sh報錯如下:
[root@oratest02:/oracle/]#sh /oracle/app/11.2.0/grid_1/root.sh
Performing root user operation for Oracle 11g 


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


Enter the full pathname of the local bin directory: [/usr/local/bin]: 
   Copying dbhome to /usr/local/bin ...
   Copying oraenv to /usr/local/bin ...
   Copying coraenv to /usr/local/bin ...




Creating /etc/oratab file...
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: /oracle/app/11.2.0/grid_1/crs/install/crsconfig_params
Creating trace directory
User ignored Prerequisites during installation
Installing Trace File Analyzer
CRS-4046: Invalid Oracle Clusterware configuration.
CRS-4000: Command Create failed, or completed with errors.
Failure initializing entries in /etc/oracle/scls_scr/oratest02
/oracle/app/11.2.0/grid_1/perl/bin/perl -I/oracle/app/11.2.0/grid_1/perl/lib -I/oracle/app/11.2.0/grid_1/crs/install /oracle/app/11.2.0/grid_1/crs/install/rootcrs.pl execution failed
透過如下:

CRS-4046: Invalid Oracle Clusterware configuration. (Doc ID 1396266.1) To BottomTo Bottom

In this Document

Purpose
Details
  Case 1: CRS-4046 happens when running root.sh


This document is being delivered to you via Oracle Support's Rapid Visibility (RaV) process and therefore has not been subject to an independent technical review.

PURPOSE

This note lists known issues, workaround and solutions for the following Grid Infrastructure errors:

CRS-4046: Invalid Oracle Clusterware configuration.
CRS-4000: Command Create failed, or completed with errors.

DETAILS

Case 1: CRS-4046 happens when running root.sh

It's likely that the leftovers from previous install caused the root.sh to fail.


Solution:

  • If setting up Grid Infrastructure cluster, on the node where the error was reported, as root, execute the following:
# /crs/install/rootcrs.pl -deconfig -force -verbose
  • If setting up Grid Infrastructure Standalone (Oracle Restart), as root, execute the following:
# /crs/install/roothas.pl -deconfig -force -verbose


If the output is similar to the following:

..
CRS-4046: Invalid Oracle Clusterware configuration.
CRS-4000: Command Stop failed, or completed with errors.
################################################################
You must kill processes or reboot the system to properly #
# cleanup the processes started by Oracle clusterware          #
################################################################
ACFS-9313: No ADVM/ACFS installation detected.
Failure in execution (rc=-1, 256, No such file or directory) for command /etc/init.d/ohasd deinstall
error: package cvuqdisk is not installed
Successfully deconfigured Oracle clusterware stack on this node


Either reboot the node or execute the following to stop any processes that's still running from GRID_HOME:

# ps -ef| grep

i.e.: # ps -ef| grep "/ocw/grid"


If there's still processes, kill them with "kill -9" command


Once the above reboot or stop is done, as root, execute root.sh from GRID_HOME:

# /root.sh


可如下解決:
[root@oratest02:/oracle/app/11.2.0/grid_1/crs/install/]#./rootcrs.pl -deconfig -force -verbose
Using configuration parameter file: ./crsconfig_params
****Unable to retrieve Oracle Clusterware home.
Start Oracle Clusterware stack and try again.
CRS-4046: Invalid Oracle Clusterware configuration.
CRS-4000: Command Stop failed, or completed with errors.
CRS-4046: Invalid Oracle Clusterware configuration.
CRS-4000: Command Modify failed, or completed with errors.
CRS-4046: Invalid Oracle Clusterware configuration.
CRS-4000: Command Delete failed, or completed with errors.
CRS-4046: Invalid Oracle Clusterware configuration.
CRS-4000: Command Stop failed, or completed with errors.
################################################################
# You must kill processes or reboot the system to properly #
# cleanup the processes started by Oracle clusterware          #
################################################################
This may take several minutes. Please wait ...
0518-307 odmdelete: 1 objects deleted.
0518-307 odmdelete: 1 objects deleted.
0518-307 odmdelete: 1 objects deleted.
Successfully deconfigured Oracle clusterware stack on this node
[root@oratest02:/oracle/app/11.2.0/grid_1/crs/install/]#cd

再次執行root.sh:
                                 
[root@oratest02://]#sh /oracle/app/11.2.0/grid_1/root.sh
Performing root user operation for Oracle 11g 


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


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: /oracle/app/11.2.0/grid_1/crs/install/crsconfig_params
User ignored Prerequisites during installation
Installing Trace File Analyzer
User grid has the required capabilities to run CSSD in realtime mode
OLR initialization - successful
Adding Clusterware entries to inittab
CRS-4402: The CSS daemon was started in exclusive mode but found an active CSS daemon on node oratest01, number 1, and is terminating
An active cluster was found during exclusive startup, restarting to join the cluster
Configure Oracle Grid Infrastructure for a Cluster ... succeeded

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/28612416/viewspace-2102711/,如需轉載,請註明出處,否則將追究法律責任。

相關文章