start_sapsrv
The version 3.1 of this script is used to start an SAP instance
service sapstartsrv via sapcontrol under z/OS® UNIX. It uses the sap_xplatform
library.
This means it can be used to start a sapstartsrv service process for an
ASCS, SCS, ERS, WD, or SMDA instance.
The syntax for invoking the
start_sapsrv script is:
./start_sapsrv <sid> <SCS/ERS/WD/SMDA_instance> <hostname> <jobname> <maxretries>
- <sid>
- SAP system identifier to which the SCS/ERS/WD/SMDA instance belongs.
- <SCS/ERS/WD/SMDA_instance>
- Instance name of component. This is the instance followed by the instance number, for example, ASCS20 for the ABAP central services instance with instance number 20.
- <hostname>
- Virtual host name of the SCS/ERS/WD/SMDA instance. The host name is used to identify the appropriate SAP profile for the instance.
- <jobname>
- Job name, which is defined in the SA resource definition for the
sapstartsrvprocess of the instance. Thestart_sapsrvscript runs under a different job name and it uses this parameter to issue to the console the status of the real SA resource via BPXF024I message, like, for example,BPXF024I (HA2ADM) SHA2ASR ACTIVE. - <maxretries>
- Parameter to configure how often the script checks if a starting SAP instance service comes up or not. Time between retries is 10 sec. If the first check is unsuccessful, the script retries for 10 * <maxretries> seconds.
Example:
start_sapsrv HA2 ASCS20 ha2ascsv SHA2ASR 9