Skip to Main Content

Infrastructure Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Problem executing a script... RHE 4.6

sgalaxyDec 29 2008 — edited Dec 29 2008
Hi,
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
This post has been answered by 506787 on Dec 29 2008
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 26 2009
Added on Dec 29 2008
4 comments
820 views