on 09-29-2011 2:16 PM
Hello all,
I am getting the following error whenever I su to the ORA<SID> user in AIX 5.3
.profile[37]: 0403-057 Syntax error: `"' is not matched.
@(#) $Id: //bc/700-1_REL/src/ins/SAPINST/impl/tpls/ind/ind/SAPSRC.SH#6 $ SAP
necessary to get hostname without domain (AIX, OS/390 and NOT sun)
reset the -u option for HP
case `uname` in
AIX*)
alias hostname='hostname -s';;
OS/390*)
export BPXKAUTOCVT=ON
export TAGREDIR_IN=TXT
export TAGREDIR_OUT=TXT
export TAGREDIR_ERR=TXT
;;
HP*)
if [ -o "nounset" ]; then
set +u
fi
;;
esac
SAP environment
if [ -f $HOME/.sapenv_`hostname`.sh ]; then
. $HOME/.sapenv_`hostname`.sh
elif [ -f $HOME/.sapenv.sh ]; then
. $HOME/.sapenv.sh
fi
APO environment
if [ -f $HOME/.apoenv_`hostname`.sh ]; then
. $HOME/.apoenv_`hostname`.sh
fi
LiveCache environment
if [ -f $HOME/.lcenv_`hostname`.sh ]; then
. $HOME/.lcenv_`hostname`.sh
elif [ -f $HOME/.lcenv.sh ]; then
. $HOME/.lcenv.sh
fi
JAVA environment
if [ -f $HOME/.j2eeenv_`hostname`.sh ]; then
. $HOME/.j2eeenv_`hostname`.sh <----
Line 37
elif [ -f $HOME/.j2eeenv.sh ]; then
. $HOME/.j2eeenv.sh
fi
XI environment
if [ -f $HOME/.xienv_`hostname`.sh ]; then
. $HOME/.xienv_`hostname`.sh
elif [ -f $HOME/.xienv.sh ]; then
. $HOME/.xienv.sh
fi
reset the -u option for HP
case `uname` in
HP*)
if [ -o "nounset" ]; then
set +u
fi
;;
esac
RDBMS environment
@(#) $Id: //bc/700-1_REL/src/ins/SAPINST/impl/tpls/ind/ind/DBSRC.SH#4 $ SAP
if [ -f $HOME/.dbenv_`hostname`.sh ]; then
. $HOME/.dbenv_`hostname`.sh
elif [ -f $HOME/.dbenv.sh ]; then
. $HOME/.dbenv.sh
fi
<br>
I am not seeing where there would be any syntax problems at line 37. The other odd thing is that this profile is the same as my ROOT and <SID>ADM user, so I do not understand why I am getting this error.
Any help would be greatly appreciated.
Thanks.
I would say that one of the sourced profile contains the error, not .profile itself.
Markus
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.