Operating System - HP-UX
1833590 Members
3694 Online
110061 Solutions
New Discussion

Re: Re : startup and shutdown script for sap

 
Vincent_5
Super Advisor

Re : startup and shutdown script for sap

Hi Guys,
Does anyone have any sample of how to create a startup and shutdown script for sap in the rc level where hp unix is using to start and stop process ???


Regards
Vincent
nothing is better than to know more
4 REPLIES 4
Geoff Wild
Honored Contributor

Re: Re : startup and shutdown script for sap

#!/sbin/sh
# start/stop script for SAP PRD1
#
#LSNRCTL=/oracle/PRD1/bin/lsnrctl
LSNRCTL=/oracle/PRD1/817_64/bin/lsnrctl
PRD1_HOME=/home/PRD1adm
ORA_OWNER=oraprd1
SAP_OWNER=prd1adm
case "$1" in
start_msg)
echo "Start PRD1 subsystem"
;;

stop_msg)
echo "Stop PRD1 subsystem"
;;

start)
# Start the Oracle listener:
# The following command assumes that the oracle login will not prompt the
# user for any values
/bin/su - $ORA_OWNER -c "$LSNRCTL start"
/bin/su - $SAP_OWNER -c $PRD1_HOME/startsap_svr007_00
;;
stop)
# Stop the Oracle databases:
# The following command assumes that the oracle login will not prompt the
# user for any values
/bin/su - $SAP_OWNER -c $PRD1_HOME/stopsap_svr007_00
/bin/su - $ORA_OWNER -c "$LSNRCTL stop"
;;
esac


And attached as text..

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Sanjay_6
Honored Contributor

Re: Re : startup and shutdown script for sap

Hi Vincent,

This link from itrc might help,

http://www2.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000066028004

the itrc doc id is UNX1000484.

also take a look at the doc /usr/share/doc/start_up.txt on your system.

Hope this helps.

Regds

Geoff Wild
Honored Contributor

Re: Re : startup and shutdown script for sap

Vincent - just checking to see if that script worked for you - that is, if you were able to modify for your environment...
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Vincent_5
Super Advisor

Re: Re : startup and shutdown script for sap

Hi Geoff Wild,
Thanks for sending the script, I will try it out next week and let you know the result. Thanks again.


Regards
Vincent
nothing is better than to know more