cancel
Showing results for 
Search instead for 
Did you mean: 

Syntax error in ora<sid> user .profile

Former Member
0 Kudos

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.

  1. @(#) $Id: //bc/700-1_REL/src/ins/SAPINST/impl/tpls/ind/ind/SAPSRC.SH#6 $ SAP

  2. necessary to get hostname without domain (AIX, OS/390 and NOT sun)

  3. 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

  1. SAP environment

if [ -f $HOME/.sapenv_`hostname`.sh ]; then

. $HOME/.sapenv_`hostname`.sh

elif [ -f $HOME/.sapenv.sh ]; then

. $HOME/.sapenv.sh

fi

  1. APO environment

if [ -f $HOME/.apoenv_`hostname`.sh ]; then

. $HOME/.apoenv_`hostname`.sh

fi

  1. LiveCache environment

if [ -f $HOME/.lcenv_`hostname`.sh ]; then

. $HOME/.lcenv_`hostname`.sh

elif [ -f $HOME/.lcenv.sh ]; then

. $HOME/.lcenv.sh

fi

  1. 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

  1. XI environment

if [ -f $HOME/.xienv_`hostname`.sh ]; then

. $HOME/.xienv_`hostname`.sh

elif [ -f $HOME/.xienv.sh ]; then

. $HOME/.xienv.sh

fi

  1. reset the -u option for HP

case `uname` in

HP*)

if [ -o "nounset" ]; then

set +u

fi

;;

esac

  1. RDBMS environment

  2. @(#) $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.

Accepted Solutions (1)

Accepted Solutions (1)

markus_doehr2
Active Contributor
0 Kudos

I would say that one of the sourced profile contains the error, not .profile itself.

Markus

Former Member
0 Kudos

FIXED! Thank you Markus!

Turned out there was a syntax error in the .j2eeenv_SID.sh profile which was being pointed to, not the physical Line 37 itself.

Answers (0)