Documente Academic
Documente Profesional
Documente Cultură
Troubleshooting
A reference to BASIS Administrators
Contents
SAPGUI Common Problems and Architecture
TCP/IP Ports used by applications
SAP AS ABAP+JAVA Architecture
Start/Stop Process
Profiles Location
SAP System Directories
Important Users
Log files & location
List of error codes
List of common OS commands and tasks
Available Tools for Administration
Support Links
Return to Index
Return to Index
SAPGUI Common Problems
and Architecture
Return to Index
TCP/IP Ports Used by
Applications
Return to Index
AS JAVA Ports
Return to Index
Installation Options
These are the following installation options for the SAP NetWeaver AS:
Return to Index
SAP AS ABAP+JAVA Main
Architecture
Return to Index
Each SAP system can have only 1 Central Instance , 1 Central Services
Instance and only 1 Database instance. It can have any number of additional
dialog instances
Return to Index
SAP AS ABAP+JAVA Main Architecture
Return to Index
In a nutshell…
• SAP Gateway carries communication from another system to
another. It can be either an ABAP/Dual-Stack or a JAVA system.
Works as a barricade before your physical firewall
• ICM is a service to provide WebServices to your same landscape
via web over a Browser. If not enabled, SAP cannot carry
communications over the Internet. Supports HTTP and HTTPS
Return to Index
* http://help.sap.com/saphelp_nw70/helpdata/en/c4/3a644c505211d189550000e829fbbd/content.htm
Lock Management (Enqueue Server)
Return to Index
AS ABAP Architecture
Return to Index
Return to Index
Return to Index
AS JAVA Architecture
Return to Index
Each SAP system can have only 1 Central Instance , 1 Central Services
Instance and only 1 Database instance. It can have any number of additional
dialog instances
Return to Index
Return to Index
Return to Index
Dual-Stack (ABAP+JAVA) Architecture
Return to Index
Return to Index
Start/Stop Process
Return to Index
Start/Stop Process
Return to Index
STANDARD STARTUP
(AS ABAP)
Return to Index
right-click
MMC <SID>
Start
send message via name-pipe
Startup Profile
sapstart.log SAP<SID>_00 read
(service) strdbs.cmd
msg_server.exe
Start
alert_<SID>.log
disp+work.exe
DB (if not)
dev_ms
Message Server
dev_disp read
Dispatcher Default Profile
dev_icm
ICM
dev_w0..w<n>
WPs
Connect DB
DB
AS JAVA Startup
Return to Index
AS JAVA Startup
Return to Index
Return to Index
Return to Index
Return to Index
Return to Index
Dual-Stack Startup
Return to Index
Further reference…
Return to Index
Profiles location
Return to Index
Standard profile tree-structure
directory
profile
SYS
Return to Index
Overview of SAP Profiles
*Prior to SAP NetWeaver 7.3, Start profile got merged into Instance profile so only
1 default profile exists per system and 1 instance profile exists per instance
Return to Index
O.S. User for SAP Instance
•UNIX
• SAP Admin => <sid>adm sapdba or
example : devadm brtools
•Windows Server
• SAP Admin/ DB tools Admin => <sid>adm
example : devadm
Return to Index
JAVA Users
Return to Index
SAP System Directories
Return to Index
Standard SAP Directories for a Dual-Stack
(ABAP+Java) System (Unicode)
Return to Index
Standard SAP Directories for Java System
(Unicode)
Return to Index
NOTE: A Java System can only be a Unicode System
SAP System Directories in Detail
Directory Description
/<sapmnt>/<SAPSID> Software and data for one SAP system
This directory and its subdirectories need to be physically shared using Network File System (NFS) and mounted for all hosts
belonging to the same SAP system. It contains the following subdirectories:
exe
This directory contains executable kernel programs. In an SAP system with distributed instances, this directory must be
shared for all hosts with the same operating system.
Note
ABAP (Non-Unicode) + Java system only
exe contains a folder uc with a platform-specific subfolder: <sapmnt>/<SAPSID>/exe/uc/<platform>
global
This directory contains log files. In an SAP system with distributed instances, this directory must be shared for all hosts
with the same operating system.
profile
This directory contains the start and operations profiles of all instances. In an SAP system with distributed instances, this
directory must be shared for all hosts with the same operating system.
Return to Index
/usr/sap/<SAPSID> Instance-specific data, symbolic links to the data for one system
This directory contains files for the operation of a local instance.
There is a subdirectory for each instance. Each instance directory has the name of the related instance.
o The instance name (instance ID) of the ABAP central instance is DVEBMGS<Instance_Number>, and the
instance name of an ABAP dialog instance is D<Instance_Number>. In a high-availability system, there is
also an ABAP central services instance called ASCS<Instance_Number>
Return to Index
The instance names (instance IDs) of an ABAP+Java (dual-stack) system are as follows:
Primary application server instance: DVEBMGS<Instance_Number>
Additional application server instance: D<Instance_Number>.
Central services instance for ABAP (ASCS):ASCS<Instance_Number>
Central services instance for Java (SCS):SCS<Instance_Number>
Enqueue replication server instances (one for the ASCS and one for the
SCS): ERS<Instance_Number>
The enqueue replication server instances are only mandatory in a high-availability system.
Example
For an SAP ABAP+Java system with SAP system ID C11, the instances might look as follows:
Primary application server instance: DVEBMGS00 (the Java EE Engine is installed
in /usr/sap/C11/DVEBMGS00/j2ee)
Additional application server instance: D01 (the Java EE Engine is installed
in/usr/sap/C11/D01/j2ee)
Central services instance for ABAP (ASCS): ASCS02
Enqueue replication server instance (ERS) for the ASCS: ERS03
Central services instance for Java (SCS): SCS04
Enqueue replication server instance (ERS) for the SCS: ERS05
On a primary application server instance with SAP system ID C11 and instance
name DVEBMGS00, the Java EE Engine is installed in /usr/sap/C11/DVEBMGS00/j2ee.
Return to Index
/usr/sap/<SAPSID>
Example
For an SAP Java system with SAP system ID C11, the instances might look as follows:
(Primary) application server instance: J00 (the Java EE Engine is installed in /usr/sap/C11/J00/j2ee)
(Additional) application server instance: J01 (the Java EE Engine is installed in/usr/sap/C11/J01/j2ee)
Central services instance for Java (SCS): SCS02
Enqueue replication server instance (ERS) for the SCS: ERS03}
Example
The file system structure might look as follows:
On a central instance with SAP system ID C11 and instance name DVEBMGS00, the ABAP dialog instance has the
instance name D01.
o The instance name (instance ID) of the ABAP+Java central instance is DVEBMGS<Instance_Number>,
the instance name of the Java central services instance is SCS<Instance_Number>, and the instance
name of an ABAP+Java dialog instance is D<Instance_Number>. In a high-availability system, there is
also an ABAP central services instance called ASCS<Instance_Number>
Example
The file system structure might look as follows:
On a central instance with SAP system ID C11 and instance name DVEBMGS00, the J2EE Engine is installed
in /usr/sap/C11/DVEBMGS00/j2ee, and the corresponding Software Delivery Manager (SDM) is installed
in /usr/sap/C11/JC00/SDM
On a dialog instance with instance name D01, the J2EE Engine is installed in/usr/sap/C11/D01/j2ee. No
SDM is installed.
Note
The subfolder SDM is only available for the central instance.
Return to Index
/usr/sap/<SAPSID> o The instance name (instance ID) of the Java central instance is JC<Instance_Number>, the instance
name of a Java dialog instance is J<Instance_Number>, and the instance name of the Java central
services instance is SCS<No>.
The instance name (instance ID) of the central instance is JC<Instance_Number>, the instance name of a
Java dialog instance is J<Instance_Number>, and the instance name of the Java central services instance
is SCS<Instance_Number>.
Example
The file system structure might look as follows:
On a central instance with SAP system ID C11 and instance name JC00, the J2EE Engine is installed
in /usr/sap/C11/JC00/j2ee, and the corresponding SDM is installed in/usr/sap/C11/JC00/SDM.
On a dialog instance with instance name J01, the J2EE Engine is installed in /usr/sap/C11/J01/j2ee. No
SDM is installed.
Return to Index
Log files & location
Return to Index
Log file types
Return to Index
STDERR1: Information about the start process of the database system.
STDERR2: Information about the start process of the message server.
STDERR3: Information about the start process of the dispatcher.
Return to Index
Developer Traces
Component File Name
Dispatcher dev_disp
Web Disptacher dev_wdisp
Work Process dev_w<n> n is the range from 0 to one less the number of work processes.
Dynp (screen processor) dev_dy<n>
Roll dev_ro<n>
Paging dev_pg<n>
DB interface dev_db<n>
ABAP processor dev_ab<n>
Enqueue (lock) dev_eq<n>
Logging dev_lg<n>
Spool dev_w
Message server dev_ms<n>
SAPGUI (presentation) dev_st<logon name>
APPC-server (CPIC gateway) dev_appc
RFC (Remote Function Call) facility dev_rfc, dev_rfc<n>
Note: The dev_rfc<n> traces are also traced on the external RFC server.
Gateway dev_rd
R3trans and tp transport programs dev_tp
Monitoring infrastructure (test mode only) dev_moni
In normal operation, you will not see this file. It is used only by test tools of
the monitoring infrastructure. It therefore appears only if the test tools must
be activated during a support session.
Startup (sapstart) dev_sapstart
Return to Index
Developer Traces (cont’d)
The following criteria are available:
• TRACE=0: No trace
Return to Index
Error and System Log Entries in
Trace Files
• In the files, lines that contain error information
begin with *** ERROR =>. Lines for which
system log entries are written start with *** LOG
<message ID>.
Return to Index
Displaying trace files
From SAP:
• Choose transaction ST11. Here, you see all the trace files in
the work directory. Double-click on a file to display there. If you want
to save a file locally, choose System List Save Local file.
• The following trace types have their own transactions.
Return to Index
Displaying trace files (cont’d)
Component Transaction More Information
SAP Web Dispatcher You can now use the Web SAP Web Dispatcher
Administration Interface.
You can also download the trace files onto your local computer. To do
this use the ABAP report RSMON000_DOWNLOAD_TRACES. For
more information see Downloading Trace Files.
Return to Index
The System Log (SLOG)
The System Log
• The SAP System logs all system errors, warnings, user locks due to
failed logon attempts from known users, and process messages in
the system log. There are to two different types of logs created by
the system log:
– Local Logs
– Central Logs
• Use transaction SM21 to access the system log output screen. With
this transaction, you can read any of the messages that are
contained in the system logs. You can modify the view to meet your
needs.
Return to Index
The System Log (cont’d)
Local Logs
• Each SAP System application server has a local log that receives all the
messages output by this server. The system log records these messages in a
circular file on the server. When this log file reaches the maximum permissible
length, the system log overwrites it, starting over from the beginning. (The
location of the local log is specified in the rslg/local/file profile parameter.)
Central Logs
• We recommend that you also maintain a central log file on a selected
application server. Each individual application server then sends its local log
messages to this server. The server that you designate to maintain the central
log collects the messages from the other application servers and writes these
messages to the central log.
• The central log consists of two files: the active file and the old file. (The location
of the active file is specified in the rslg/central/fileprofile parameter; the location
of the old file is specified in therslg/central/old_file.)
Return to Index
Profile Parameters and File Locations
The table below shows some of the profile parameters for the system log along with their standard
values:
Profile Parameters and File Locations for the System Log
rslg/local/file Specifies the location of the local log on the /usr/sap/<SID>/D20/log/SLOG<SAP-
application server. instance_number>
rslg/collect_daemon/host Specifies the application server that maintains <hostname of main instance>
the central log.
rslg/central/file Specifies the location of the active file for the /usr/sap/<SID>/SYS/global/SLOGJ
central log on the application server.
rslg/central/old_file Specifies the location of the old file for the /usr/sap/<SID>/SYS/global/SLOGJO
central log on the application server.
rslg/max_diskspace_local Specifies the maximum length of the local log. 500,000 bytes
rslg/max_diskspace_central Specifies the maximum length of the central log. 2,000,000 bytes
This is not a complete list. There are additional profile parameters that refer to the system logs; they all begin
with rslg*. However, we do not discuss them all here. You can use the transaction RZ11 to access the rest
of the parameters.
Return to Index
Log Location
Return to Index
Trace files
/usr/sap/<SYSTEM ID>/<INSTANCE>/work
Return to Index
JAVA-Managed Systems
Return to Index
Java Managed Systems
Developer traces
Structure
dev_jcontrol
The trace file of the JControl process.
JControl is responsible for starting, stopping and controlling the processes of the J2EE instance.
Use the dev_jcontrol trace file when you have problems starting or stopping the whole J2EE instance.
We recommend that you always check the end of this file for error messages regarding the startup of JControl.
dev_<component name>
The trace file of the corresponding JLaunch process (the <component name> can
be bootstrap, bootstrap_<cluster_element_ID>, dispatcher, server<n>, sdm, jcmon, or icm). For example, the trace file for the bootstrap process
is dev_bootstrap.
std_<component name>.out
The standard and error output file of the corresponding JLaunch process (the <component name> can
be bootstrap, bootstrap_<cluster_element_ID>, dispatcher, server<n>, sdm, or icm). For example, the output file for the bootstrap process
is std_bootstrap.out. Output and error messages from the Java VM are written to this file.
jvm_<component name>.out
The standard and error output file of the JVM running the corresponding JLaunch process (the <component name> can
be bootstrap, bootstrap_<cluster_element_ID>, dispatcher, server<n>, sdm, or icm). For example, the output file for the JVM running the bootstrap
process is jvm_bootstrap.out.
Return to Index
Java Managed Systems
Types of log and trace files
Startup and control framework logs
• Contain information about the startup process. You can check these
files if errors or undesired behavior occur during the startup process.
By default, the data from the last three restarts is kept.
• The developer trace files and system output of all the executables
belonging to an instance are located in the
directory \usr\sap\<SID>\<instance name>\work, where <SID> is the
system ID (for example, CE1) and <instance name> is the instance
name (for example, JC00 or SCS01).
AS Java logs
• The log and trace files generated by the AS Java process(es) and
the applications running on top of AS Java are stored in the
usr\sap\<SID>\<instance name>\j2ee\cluster\server<n>\log directory.
Return to Index
Java Managed Systems
Log Location
Return to Index
Java Managed Systems
Trace files
/usr/sap/<SYSTEM ID>/JC##/work
Return to Index
List of common error codes
Return to Index
List of common OS Commands
and tasks
Return to Index
Return to Index
Available tools for administration
** Always remember that for Windows administration, you can always
use SAP Management Console (MMC) **
AS JAVA Tools
JCMON (launched from command
shell)
SAP Netweaver Administrator
(Web-only)
Visual administrator
Config tool
Shell console
ABAP Transaction SMICM (if dual-
stack system)
Return to Index
SAP Microsoft Management Console
(Windows)
You can use the SAP MMC for both ABAP and Java systems. If you
use a Java system you can ignore references to ABAP. If you use an
ABAP system you can ignore references to Java.
Return to Index
Features
The SAP MMC offers the following features:
• You can monitor and control any number of SAP systems and application servers and ITS
instances with a single tool if they are running on Windows. As of SAP NetWeaver 7.0, you can
also monitor SAP instances running on different platforms.
• Once you have configured the console, you can save the configuration in a file and easily
forward it to other users.
• The dual DCOM interface ISAPControl of the start service and IITSWatchdog of the ITS
watchdog service let a third party use the functionality - for example from C, Java or Visual
Basic - and let you integrate it into your own tools or scripts without having to use proprietary
SAP mechanisms.
• The start service is available on all platforms and offers a new Web service interface, called
SAPControl with better control and monitor capabilities. Some of the new snap-in features
require the new Web service interface. You can access the Web service interface in your own
applications from a Web service-enabled programming environment like C, Java, ABAP or
.NET. The old ISAPControl DCOM interface has become obsolete but is still supported under
Windows.
Return to Index
Features (cont’d)
The SAP MMC lets you to:
Display all SAP trace files, start profile, instance parameters, the system environment and SAP environment
Display the most serious alerts in the alert tree (ABAP transaction RZ20)
Display the current status tree (ABAP transaction RZ20)
Display and acknowledge current alerts (ABAP transaction RZ20)
Display the SAP syslog for a functioning, offline, or malfunctioning SAP system (ABAP transaction SM21)
Display the ABAP work process overview (ABAP transaction SM50)
Display the ABAP and ICM queue statistics (dpmon)
Display Application Server Java (AS Java) processes, caches, threads, web sessions, EJB sessions, remote
objects, application aliases, and shared memory tables
Display Java virtual machine garbage collection and heap memory information of the Application Server Java
Display ICM threads, connections, caches and proxy connections
Start or stop one or all application servers of a system with a mouse-click. You can restart service without
having to restart the App Server
Log on to an application server
Start analysis tools in the SAP system for nodes in the alert tree
Control Java or ABAP processes
Modify dynamic profile parameters
Remove enqueue locks manually
Create compressed instance or system snapshots for offline problem analysis and problem reporting
Start the following third-party tools, if available, to manage an application server or ITS instance:
o Telnet
o SSH client
o Windows Terminal Server Client
o pcANYWHERE
o Computer Management snap-in
Return to Index
Further documentation
•The following SAP Notes provide additional information:.
Troubleshooting
SAP recommends you to first check the SAP Notes 877795 and 142100 for
potential problems
Return to Index
AS JAVA Tools
Return to Index
AS JAVA Tools
Return to Index
Return to Index
Use Path: \usr\sap\<SID>\<J2EE Instance>\j2ee\configtool\configtool.bat
Return to Index
Return to Index
Use Path: http://hostname:5NN0P/nwa
Return to Index
Use Path: \usr\sap\<SID>\<J2EE Instance>\j2ee\admin\go.bat
Return to Index
Return to Index
Start/Stopping JAVA-Stack using SMICM Transaction
Return to Index
Support Links
1. SAP Community Network (SCN) http://scn.sap.com
2. SAP Help Portal. http://help.sap.com
Solution Manager
Main Page http://service.sap.com/solutionmanager Solution Manager Main Page