How to determine CRS_HOME

In the environment of the cluster owner or some scripts, you may want to set a variable for the cluster installation usually called CRS_HOME, GRID_HOME or simly ORACLE_HOME.
I like to do that in an automatic and
non-static way. But be careful, this means it could go wrong or is being set to an unexpected value.
The main part of this post is
how get the information and how to check for an acceptable value. Continue reading “How to determine CRS_HOME”