Database Install/Upgrade/Opatch (MOSC)

MOSC Banner

oraenv not found

edited Oct 7, 2013 4:05AM in Database Install/Upgrade/Opatch (MOSC) 9 commentsAnswered
In my ksh script I am dynamically setting ORACLE_HOME using

#!/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

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center