I log in as just regular user and when I log in I get this error...

dbhome:command not found
ORACLE_HOME=[]?


they log in as csh...so I assume they use coraenv with dbhome right?

is there problem with coraenv or dbhome?

this is on solaris 8 with oracle 8.1.7

The environment variables for all the users have been changed after I installed Oracle 6i. I noticed that because oratab file got changed, which was pointing to oracle6i home instead of oracle rdbms home. So I set back oracle_home to rdbms. and in coraenv I set ORAENV_ASK to NO...

Here is my coraenv file:

setenv ORACLE_BASE /ora01/app/oracle
setenv ORACLE_HOME /ora01/app/oracle/product/8.1.7
setenv ORACLE_SID JOPES
setenv ORAENV_ASK NO

if ($?ORACLE_SID == 0) then

set ORASID=$LOGNAME
else
set ORASID=$ORACLE_SID
endif
if ("$ORASID" == '' ) set ORASID='*'

if ($?ORAENV_ASK == 0 ) then
set ORAENV_ASK=NO #ORAENV_ASK suppresses prompt when set
endif

if ($ORAENV_ASK != NO ) then

echo -n "ORACLE_SID = [$ORASID] ? "
set READ=($<)

if ("$READ" != '') set ORASID="$READ"
endif
if ("$ORASID" == '*') set ORASID=""
setenv ORACLE_SID "$ORASID"

if ($?ORACLE_HOME == 0) then
set OLDHOME=$PATH #This is just a dummy value so a null OLDHOME
else #can't match anything in the switch below
set OLDHOME=$ORACLE_HOME
endif

set ORAHOME=`dbhome "$ORASID"`
if ($status == 0) then
setenv ORACLE_HOME $ORAHOME
else

echo -n "ORACLE_HOME = [$ORAHOME] ? "
set NEWHOME=$<

if ($NEWHOME == "") then
setenv ORACLE_HOME $ORAHOME
else
setenv ORACLE_HOME $NEWHOME
endif
endif

#
# Reset LD_LIBRARY_PATH
#
if ($?LD_LIBRARY_PATH == 0) then
setenv LD_LIBRARY_PATH $ORACLE_HOME/lib
else
switch ($LD_LIBRARY_PATH)
case *$OLDHOME/lib* :
setenv LD_LIBRARY_PATH \
`echo $LD_LIBRARY_PATH | sed "s;$OLDHOME/lib;$ORACLE_HOME/lib;g"`
breaksw
case *$ORACLE_HOME/lib* :
breaksw
case "" :
setenv LD_LIBRARY_PATH $ORACLE_HOME/lib
breaksw
default :
setenv LD_LIBRARY_PATH $ORACLE_HOME/lib:${LD_LIBRARY_PATH}
breaksw
endsw
endif

#
# Adjust path accordingly
#

switch ($PATH)
case *$OLDHOME/bin* :
setenv PATH `echo $PATH | sed "s;$OLDHOME/bin;$ORACLE_HOME/bin;g"`
breaksw
case *$ORACLE_HOME/bin* :
breaksw
case *[:] :
setenv PATH ${PATH}$ORACLE_HOME/bin:
breaksw
case "" :
setenv PATH $ORACLE_HOME/bin
breaksw
default :
setenv PATH ${PATH}:$ORACLE_HOME/bin
breaksw
endsw

unset ORASID ORAHOME OLDHOME NEWHOME READ

#
# Install local modifications here
#


what is wrong with this?...or why am I getting error for dbhome:command not found error?.


please help.....no one can launch the application right now.