Problem executing a script... RHE 4.6
sgalaxyDec 29 2008 — edited Dec 29 2008Hi,
I have two scripts:
--starting/stopping the apps server services...(file adapps.sh)
#!/bin/bash
. oracle/appl/APPSORA.env
case "$1" in
'start')
$COMMON_TOP/admin/scripts/ORA/adstrtal.sh APPS/APPS;;
'stop')
$COMMON_TOP/admin/scripts/ORA/adstpall.sh APPS/APPS;;
esac
--starting/stopping the db server services...(file addb.sh)
#!/bin/bash
. oracle/appl/ORA.env
case "$1" in
'start')
$ORACLE_HOME/appsutil/scripts/ORA/addlnctl.sh start ORA;;
$ORACLE_HOME/appsutil/scripts/ORA/addbctl.sh start normal;;
'stop')
$ORACLE_HOME/appsutil/scripts/ORA/addbctl.sh stop immediate;;
$ORACLE_HOME/appsutil/scripts/ORA/addlnctl.sh stop ORA;;
esac
Whereas , the apps server services start/stop without any problem...
I have a problem with the db server services script ....
sourcing the script....
i tried : ORA>sh addb.sh stop/start
-bash: command not found
and ORA>addb.sh stop/start
error in line 5 : syntax error near unexpected token 'start'
Whereas the apps server script is executed .. issuing the command : adapps.sh start/stop
What may be the error...???
Thanks , a lot
Sim