The start of an SAP system is a basic prerequisite for being able to work with the system. The start process describes the flow when starting an SAP system with a pure Java stack. A minimum Java-based SAP system will be named during the installation, providing a System Identifier (<SAPSID>). In addition, a database is used and at least two SAP instances: exactly one Central Services Instance (SCS) and one Primary Application Server Instance (PAS). This is the typical architecture directly after the installation. Later on, there might be a scaling by adding Additional Application Server Instances (AAS) to the existing installation. During the Installation procedure an assignment of priorities with so called LEVELS (using numbers) is done. In this step, different types of instances (SCS/PAS/AAS)get assigned priorityLEVELS, in order to specify the start and stop sequence of these processes and services bundles.
Priorities for the Start Process
Priority 1: Instances with an Enqueue Server but without ABAP Dispatcher
Priority 3: Instances without an Enqueue Server
Note
There are further priorities:Priority 0.3: SAP HANA System
Priority 0.5: Enqueue Replication Server (ERS)
Priority 1.5: TREX (Search and Classification Engine)
Priority 2: Instances with an Enqueue and with an ABAP Dispatcher
These priorities are used in combination with special products/features and/or within earlier releases.
Note
In the directory$(DIR_GLOBAL)/sapcontrol
every sapstartsrv daemon/service creates and updates individual files on a regular basis. These files have a prefix, which reflects the corresponding priority of the instance and can also be used for monitoring purposes.The Enqueue Server plays a special role for the start sequence of an SAP system. It is assigned to exactly one instance, which is nowadays typically the Central Services Instance. In AS Java-based SAP systems, this instance also covers the Message Server and the RFC Gateway Service and must be started before all other SAP instances. The Java Central Services instance (priorityLEVEL 1) does not require a connection to the database. The start of the database is done by scripts, which were provided by the installation, and are used in case the database is installed on the same server as an SAP Application Server (AS) instance (PAS/AAS).
The SAP Management Console (SAP MC) is the recommended graphical tool for starting and stopping SAP systems. There is a special option implemented, which allows you to start and stop a database separately or during the start or stop of the SAP system, regardless of the server where the database is installed.
There are three different core elements, which have to be taken into account when starting an AS Java-based SAP system:
Central Services instance (SCS)
It consists of a Java Message Server, a Java Enqueue Server and an RFC Gateway Service.
Database (DB)
The database is the fundamental element of the entire SAP system and must be in an operational state before SAP Application Server (AS) instances (PAS and/or AAS - generic also called Java instances) are started.
Primary Application Server (PAS) instance and Additional Application Server (AAS) instance
In SAP Java environments, these instances are also simply called Java instances and provide the run-time environment for Java applications.
In principle, the start process is performed in multiple steps. The start process of an AS Java-based SAP system can be done in two different ways concerning the start sequence of the core elements:
Variant A:
SCS - DB - PAS/AAS
Variant B:
DB - SCS - PAS/AAS

The operating system user executing the start-up procedure is typically the <sid>adm which was created during the installation.
Note
The formerly used "Dual Stack Installations"(also called Add-in Installation) with ABAP and Java stack within one <SAPSID> had a very specific architecture and a special start order involving the ABAP Dispatcher in the mechanisms. This kind of system is not supported anymore since the technical release 7.5 and therefore not discussed here.