SAP Start Service on iSeries

[] [] [] []

Symptom
The upgrade and installation do not automatically configure the Autostart of the SAP Start Service (sapstartsrv) as a daemon when you start the operating system on the iSeries.
Other terms
sapstartsrv, sapinit, apysap, R3SYS, QSTRUPPGM, configure sapstartsrv as boot service, OS400, AS400, iSeries, AS/400.
Reason and Prerequisites
This feature is only available in a kernel that is delivered with SAP NetWeaver 2004S Support Package 6. If you upgrade to SAP NetWeaver 2004S before SAP NetWeaver 2004S Support Package 6, you must import the kernel delivered with SAP Netweaver 2004S Support Package 6 afterwards. The feature is not activated by the implementation of patches alone.
Solution
To configure the SAP Start Service (sapstartsrv) as a boot service, you must make some manual changes after the upgrade or installation.
When you implemented the APYSAP kernel, this created the program SAPINIT in the R3SYS library. The owner of this program is QSECOFR and its job is to start the SAPSTARTSRV of the individual instances in the subsystem QUSRWRK after the system restart (IPL).
To ensure that SAPINIT is automatically called after the IPL, you must create a corresponding entry in the startup program. The startup program is defined using the system value QSTRUPPGM.
For example, the entry in the startup program for a CL program is as follows:
/*Call SAPINIT which parses /usr/sap/sapservices to start sapstartsrv*/
CALL PGM(R3SYS/SAPINIT)
MONMSG MSGID(CPF0000)
Insert this entry as the last step to be executed in your startup program.
Next you must define the SAPSTARTSRV that is to be started. To do this, create the file sapservices with the CCSID 819 in the IFS directory /usr/SAP. Insert a row for each instance (kernels from Support Package 6 or higher) that you want to manage using the SAPSTARTSRV. The sequence is irrelevant. Rows that start with # are read as comments.
The following is an example (actual line breaks only occur at the ‘<-’):
#<DIR_EXECUTABLE>/sapstartsrv pf=<DIR_START_PROFILE>/<INSTANCE_START_profile> -D -u <sid>adm <-
/usr/sap/NSA/SYS/exe/run/sapstartsrv pf=/usr/sap/NSA/SYS/profile/START_DVEBMGS42_as0011 -D -u NSAadm <-
Replace <INSTANCE_START_profile> with the name of your instance start profile.
After you have created the ‘/usr/sap/sapservices’ file, SAPINIT is operable as a start service.

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]

Leave a Comment