Definition
The
startsap and stopsap scripts start the R/3 System with the sapstart program.Syntax
The syntax of the
sapstart program is as follows:<SAP-executables>/sapstart pf=<start profile>;
where
<SAP-executables>
is the path name of the directory which contains the executable files of the R/3 System.<profile name>
is the name of the start profile with which you wish to start the system.
/usr/sap/C11/SYS/exe/run/sapstart
pf=/usr/sap/C11/SYS/profile/START_DVEBMGS00

You can use the
sapstart command in a batch program under Windows NT to start the R/3 System automatically. You can also start an R/3 System on a remote host using the sapstart command and the pre-defined variable SAPDIAHOST=host .
Start Profiles
Your choice of profile determines which actions
sapstart carries out. For example, if you are starting the entire R/3 System, you could select a profile that starts all of the processes of the system on all of the host systems in which the processes run. Or, if you have just restarted a host system, you could select a profile that starts only the processes that execute in that host.A start-up profile is an ASCII file and can be entered or edited with an ASCII editor. Start profiles are stored in the shared central profiles directory of your R/3 System (for example
/usr/sap/C11/SYS/profile ). They can therefore be accessed from any application server.A start profile is generated automatically when you install your system.
Start Processing
When you start it, the
sapstart program executes any preliminary commands that you may have entered in the profile with Execute_ statements.It then starts R/3 System processes in the order in which the
Start_Program_ statements in the profile are numbered. sapstart starts processes asynchronously. It does not attempt to determine the status of one process before starting the next one. It does not issue a start command for a process that is already running.All processes of a running R/3 System are daughters of the
sapstart process.Shutdown Processing
After it executes all of the commands in a start profile,
sapstart waits until either of the following occurs:stopsap
works by sending a stop message to sapstart with kill.sap .In the latter case,
sapstart issues commands for graceful shutdowns to the SAP processes it started. Only processes started with Start_Program_ statements are shut down. Processes started with Execute_ statements are not affected.sapstart
issues the orders asynchronously in the order in which the processes were started. SAP processes are therefore shut down in parallel.In both shutdown modes,
sapstart then performs any post-processing that you have requested. It issues the commands in any Stop_Program statements in the start profile in the order of the numbers in the statements. sapstart issues post-processing commands synchronously (one after another) and shuts down as soon as the last command has been issued.sapstart
logs the start-up and shutdown.