Page 1 of 1

Cannot determine ORACLE_HOME for sid

Posted: Tue Jul 28, 2020 4:52 am
by Pratapa
We are getting error while executing the following. check_oracle is the plugin and step is the ORACLE_SID

[[email protected]]# /usr/bin/env LD_LIBRARY_PATH=/opt/oracle/product/12.2.0/db_2/lib ORACLE_HOME=/opt/oracle/product/12.2.0/db_2 /opt/nagios/libexec/check_oracle --login step
Cannot determine ORACLE_HOME for sid step


Please help me in fixing this.

Re: Cannot determine ORACLE_HOME for sid

Posted: Tue Jul 28, 2020 11:42 am
by gormank
I think env just echos environment variables so I'm not sure what it's purpose is.
Maybe try
expoert LD_LIBRARY_PATH=/opt/oracle/product/12.2.0/db_2/lib; export ORACLE_HOME=/opt/oracle/product/12.2.0/db_2; /opt/nagios/libexec/check_oracle --login step
Or that and set ORACLE_ADMIN at the same time to point to tnsnames.ora as well.