SAP 7.20 on AIX
.cshrc / .login
source $HOME/.sapenv_`hostname`.csh source $HOME/.sapenv.csh source $HOME/.apoenv_`hostname`.csh source $HOME/.lcenv_`hostname`.csh source $HOME/.lcenv.csh source $HOME/.j2eeenv_`hostname`.csh source $HOME/.j2eeenv.csh source $HOME/.xienv_`hostname`.csh source $HOME/.xienv.cshThese are typically set for SAP admin user. As you can see, these assume that the DB is Oracle.
$SAP $INST $ORAVER are 'fake' variables used only in this doc.
/usr/sap/<sapsystem>/SYS/profile/<sapsystem>_<instance>_<hostname>
Looked up by startsap/stopsap script as:
_PROFILE=${USR_SAP_SID}/SYS/profile/${SAPSYSTEMNAME}_${INST}_${VHOST}
ps -u $SAP\adm -o comm=,args=
Central instance
Appserver = Dialog instance
/usr/sap/.../.../exe/startsap
/usr/sap/.../.../exe/stopsap # same script
Usage (Old Style): `basename $0` [db|r3|j2ee|ccms|all|check|startupsrv] [<instance>] [<virtual hostname>]"Example: `basename $0` r3 DVEBGMS00 cic11Usage (New Style): `basename $0` [-t | -task <task>] [-i | -instance <instance>] [-v | -vhost "<virtual hostname>[ <virtual hostname>]*"] [-c | -check] [-h | -help] [-r | -rootdir <root dirtory for upgrade>] [-u | -user] <user for upgrade> [-V | -VERSION] [-C | -checkVHost]Example: `basename $0` -t r3 -i DVEBGMS00 -v "cic11 cic12" Parameters <instance>: DVEBMGS?? ABAP Central Instance D?? ABAP Dialog Instance ASCS?? ABAP SCS Instance SCS?? Java SCS Instance J?? Java Dialog Instance JC?? Java Central Instance TRX?? TREX Instance JMS?? JMS Instance ERS?? Enque Replication Service Instance SMDA?? Diagnostics Agent Instance W?? Web Services Instance G?? Gateway Instance V?? Virus Scan Server InstanceSAPSYSTEMNAME must be set!
sapcontrol
/usr/sap/$SAP/SYS/exe/run/sapcontrol
"Control and monitor SAP instances via WebService interface of SAP Start Service."
Stop sapstartsrv on AIX
- assuming that the SAPadm user has csh shell
su - $SAP\adm# # this is normally not needed:# setenv LIBPATH ${LIBPATH}:/usr/sap/$SAP/$INST/exesapcontrol -nr 1 -function StopService# - where '1' is taken from $INST# - ORsu - $SAP\admstopsap startupsrvsaposcol - OS collector
/usr/sap/$SAP/$INST/exe/saposcol
Start: saposcol
Stop: saposcol -k
Status/Version: saposcol -s