users:werner:saprc_en
no way to compare when less than two revisions
Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
— | users:werner:saprc_en [2007-11-19 0950] (aktuell) – angelegt werner | ||
---|---|---|---|
Zeile 1: | Zeile 1: | ||
+ | ====== SAP won't start ====== | ||
+ | ...and that is because of some reasons that are caused by the operating system? Exactly that was the case with a new installed SAP Solution Manager 4.0 (DB: Oracle, OS: SLES 10 x86_64)... | ||
+ | |||
+ | SAP support told me the cause for this problem was a name conflict between the SLES package sapinit and the SAP command " | ||
+ | |||
+ | Well, this is not hard to do ('' | ||
+ | |||
+ | <code bash> | ||
+ | #! /bin/bash | ||
+ | # | ||
+ | # / | ||
+ | # | ||
+ | # and its symbolic link | ||
+ | # | ||
+ | # / | ||
+ | # | ||
+ | ### BEGIN INIT INFO | ||
+ | # Provides: | ||
+ | # Required-Start: | ||
+ | # Should-Start: | ||
+ | # Required-Stop: | ||
+ | # Default-Start: | ||
+ | # Default-Stop: | ||
+ | # Short-Description: | ||
+ | # Description: | ||
+ | ### END INIT INFO | ||
+ | |||
+ | # Fetch the boot script functions, if available | ||
+ | test -f / | ||
+ | |||
+ | # get configuration data | ||
+ | CONFIGFILE=/ | ||
+ | test -f $CONFIGFILE && . $CONFIGFILE | ||
+ | |||
+ | # Reset status of this service | ||
+ | rc_reset | ||
+ | |||
+ | # Figure out what to do, and do it;-) | ||
+ | case " | ||
+ | start) | ||
+ | for SAPSID in $UFZSAP_SYSTEMS; | ||
+ | SIDBIG=$(echo $SAPSID | tr /a-z/ /A-Z/) | ||
+ | SIDSML=$(echo $SAPSID | tr /A-Z/ /a-z/) | ||
+ | SIDADM=" | ||
+ | ORASID=" | ||
+ | su - $ORASID -c "/ | ||
+ | su - $SIDADM -c "/ | ||
+ | done | ||
+ | rc_status -v | ||
+ | ;; | ||
+ | stop) | ||
+ | for SAPSID in $UFZSAP_SYSTEMS; | ||
+ | SIDBIG=$(echo $SAPSID | tr /a-z/ /A-Z/) | ||
+ | SIDSML=$(echo $SAPSID | tr /A-Z/ /a-z/) | ||
+ | SIDADM=" | ||
+ | ORASID=" | ||
+ | su - $SIDADM -c "/ | ||
+ | su - $ORASID -c "/ | ||
+ | done | ||
+ | rc_status -v | ||
+ | ;; | ||
+ | status) | ||
+ | for SAPSID in $UFZSAP_SYSTEMS; | ||
+ | SIDBIG=$(echo $SAPSID | tr /a-z/ /A-Z/) | ||
+ | SAPPROCS=$(ps ax | grep " | ||
+ | ORAPROCS=$(ps ax | grep " | ||
+ | JVAPROCS=$(ps ax | grep jlaunch | grep $SIDBIG | grep -v grep | wc -l) | ||
+ | ICMPROCS=$(ps ax | grep icman | grep $SIDBIG | grep -v grep | wc -l) | ||
+ | SSSPROCS=$(ps ax | grep sapstartsrv | grep $SIDBIG | grep -v grep | wc -l) | ||
+ | echo " | ||
+ | done | ||
+ | rc_status -v | ||
+ | ;; | ||
+ | try-restart|restart) | ||
+ | $0 stop | ||
+ | $0 start | ||
+ | ;; | ||
+ | *) | ||
+ | echo " | ||
+ | exit 1 | ||
+ | ;; | ||
+ | esac | ||
+ | rc_exit | ||
+ | </ | ||
+ | |||
+ | BTW, the mentioned ''/ | ||
+ | <code bash> | ||
+ | UFZSAP_SYSTEMS=" | ||
+ | </ | ||
+ | where SID is the SAP system ID for the installed SolMan. Multiple Systems may be given separated by blanks. | ||
+ | |||
+ | Afterwards, I entered | ||
+ | <code bash> | ||
+ | ln -s / | ||
+ | insserv ufzsap | ||
+ | </ | ||
+ | and everything went smooth! | ||
+ | |||
+ | This page is also available [[users: |
users/werner/saprc_en.txt · Zuletzt geändert: 2007-11-19 0950 von werner