Issue with ORACLE_BASE in 12.1.0.2.0
I have an error in alert log that says :
ORACLE_BASE not set in environment. It is recommended
that ORACLE_BASE be set in the environment
when I run oraenv I sometimes get the correct value, but mostly it returns an empty string for ORACLE_BASE
orcl:/home/oracle $. oraenv
ORACLE_SID = [orcl] ?
I have EDITED the oraclehomeproperties.xml file and changed the oracle base value to a correct value:
The Oracle base has been set to <PROPERTY NAME="ORACLE_BASE" VAL="/comp/tst/ora_bin2/app/oracle"/>
It pointed to a non-existing directory.
when I log onto the machine initially I get: