Goal:
Oracle clusterware/database utilities depend on "CRS=true" flag in central inventory to determine which is current clusterware home, if the flag is not set or set on wrong home, those utilities will fail. "CRS=true" is allowed to be only on active clusterware home(in upgraded case) as there can be only one active clusterware home per node
To set the flag on a three-node RAC cluster on UNIX:
On node1 as clusterware user:
/u01/app/grid/oui/bin/runInstaller -updateNodeList "racnode1,racnode2,racnode3" ORACLE_HOME="/u01/app/grid" CRS=true
## ==> /u01/app/grid is current clusterware home
To unset the flag on a three-node RAC cluster on UNIX:
On node1 as clusterware user:
/u01/app/grid_1/oui/bin/runInstaller -updateNodeList "racnode1,racnode2,racnode3" ORACLE_HOME="/u01/app/grid_1" CRS=false
To confirm the changes, review inventory.xml in central inventory.
Central inventory location is defined by parameter inventory_loc in /etc/oraInst.loc,
$ cat /etc/oraInst.loc | grep inventory_loc
inventory_loc=/u01/app/grid/oraInventory
$ cat /home/grid/oraInventory/ContentsXML/inventory.xml
..
<HOME NAME="Gridinfrahome1" LOC="/u01/app/grid" TYPE="O" IDX="4" CRS="true">
<NODE_LIST>
<NODE NAME="racnode1"/>
<NODE NAME="racnode2"/>
<NODE NAME="racnode3"/>
</NODE_LIST>
</HOME>
..
inventory_loc=/u01/app/grid/oraInventory
$ cat /home/grid/oraInventory/ContentsXML/inventory.xml
..
<HOME NAME="Gridinfrahome1" LOC="/u01/app/grid" TYPE="O" IDX="4" CRS="true">
<NODE_LIST>
<NODE NAME="racnode1"/>
<NODE NAME="racnode2"/>
<NODE NAME="racnode3"/>
</NODE_LIST>
</HOME>
..
Note: inventory.xml must not be modified manually to avoid inventory corruption.