oraenv not found
#!/bin/ksh
ORAENV_ASK=NO
export ORACLE_SID=$1
. oraenv
export ORACLE_HOME
When I run the script manually, everything works as expected, but when I schedule it via crontab, I get an error "oraenv not found in /home/oracle" in line . oraenv
What would be the best solution, write out the full path to oraenv 9. /etc/oraenv) or add oraenv path to PATH variable?
Would either of these suffice?
Also oraenv is not found in /etc for some reason. i tried searching for it using
find / -name oraenv -print