catching output from get oracle home function

This commit is contained in:
dodger 2022-05-25 12:37:31 +02:00
parent 877309adf3
commit ad326d409a
Signed by: dodger
GPG Key ID: F6701F6CB4D1C826

View File

@ -1796,6 +1796,11 @@ fi
SSH="ssh ${ORACLE_OSUSER}@${REMOTE_SERVER} -xq" SSH="ssh ${ORACLE_OSUSER}@${REMOTE_SERVER} -xq"
get_remote_oraclehome get_remote_oraclehome
RES=$?
if [[ ${RES} -ne 0 ]] ; then
echo "CRITICAL - ORACLE_HOME not found"
exit ${STATE_CRITICAL}
fi
# SQLPLUS FOR CONNECTIONS # SQLPLUS FOR CONNECTIONS
SQLPLUS="sqlplus -s '${ORACLEUSER}/${ORACLEUSERPASSWORD}@${ORACLE_SID}'" SQLPLUS="sqlplus -s '${ORACLEUSER}/${ORACLEUSERPASSWORD}@${ORACLE_SID}'"