Technical Core Competence (NT/MS SQL Server)
Technical Core Competence (NT/MS SQL Server)
Server)
Technical Core Competence
(NT/MS SQL Server)
BC314
R/3
R/3 Release
Release 4.6B
4.6B 50034331
50034331
SAP AG 1999
Copyright
SAP AG 1999
SAP Basis Administration Training 4.6
Workshops
Softwa re L o gis tic s
Expert Knowledge
BC 53 5 3 d ays
Da taba se A dm inistra tion
Empowering WorkshopsDB2 UDB
EWA10 (SD) 2 days EWA12 (PP) 2 da ys
http://sapnet.sap.com/EducationServices
Book Series
EW A18 (CO) 2 days IBU specifi c
Tec hni ca l Op timi zation T ec hnical Opti mi zation and Glo bal
of Pr icing o f Bac kfl ushi ng of Tech nical Optim iz ati on
*T echn ical Core Co mpetence Versions Produc ti on Orders
of Pr ofi t ab ility Ana lysis W orksho ps
EWA11 (SD) 2 days
Tec hni
BC3 10 Windows ca/lOracle
NT Op timi zation EWA20 (PP) 2 da ys
of Due L ist Processin g
BC3 14 Windows NT M S SQL Serve r T ec hnical Opti mi zation
incl udi ng Sch edu lin g of MRP Run an d
BC3 17 (W indows NT / U NIX ) / DB2
EWA13 (SD) 2 days Lon g Term Pla nni ng
BC3 60 UNI X / Oracl e
C or res ponding R/3 Ba sis
http://sapnet.sap.com/Books
Te/cSAP
BC3 62 UNI X hni caDBl Op timi zation EW C13 (PP/ CO ) 2 days
of Batch Determi nation K nowle dge Pr oduct
SAP AG EWC10 (SD/P P ) 2 da ys Tech nical Optim iz ati on
EWA14 (SD) (author)
1999 i
f e
l name 2 da/2ys o f Calculat i on of
T ec hnical Opti mi zation
Tec hni ca l Op timi zation Pro duc ti on Orders
of the Availa bil i ty Check
of Credi t Ma nag em en t
EWA15 (SD) 1 day EWC11 (S D/PP) 2 days
Tec hni ca l Op timi zation Techn ica l Op tim i zation
of Text Determin ati o n o f Configu rati o n
of Va riants
EWA16 (SD) 1 day
Tec hni ca l Op timi zation
of Pr oduc t Sel ectio n
EWC16 (S D) 2 days
EWA17 (SD) 1 day T ec hnical Opti mi zation
Tec hni ca l Op timi zation S hi pp i ng an d
o f Partn er Dete rm in ati on W are hou se M an ageme nt
Technical
Certifications
http://sapnet.sap.com/pa
http://sapnet.sap.com/TechNet
SAP AG 1999
Introduction
3 System Administration
10 Spool and Print
Assistant
5 Database Administration
12 System Monitoring
and Backups
6 DB Administration:
13 SAPNet
Periodic Checks
7 Background Processing
SAP AG 1999
Introduction
Contents
Review of essential R/3 terms and concepts
Outline of some basic R/3 System steps
(as described in SAP50)
Objectives
At the end of this unit, you will be able to:
Explain certain important R/3 concepts and terminology
Describe the system steps triggered during an R/3 logon
or while a transaction is being executed
SAP AG 1999
Data Structure of R/3 Systems
Application Data
(Sales Orders, ...)
User
(Authorizations,
User Master
Client-specific Customizing Record, ...)
(Company Code, Plant, Warehouse, Client
Sales Organization, Personnel Area, ...)
Cross-client Customizing
Repository
(Dictionary, Reports, Transactions, Development
Function Modules, ...) classes
Basis FI CO HR PP MM SD ...
SAP AG 1999
R/3 System Logon Steps
D V E B S ... D V B D ...
8
5
Database processes
7
6
Database
SAP AG 1999
Defining Instance and Application Server
Instance A Instance B
Dispatcher Dispatcher
S S ... B ...
Central Instance C
Dispatcher
Message
D V E B S ... server
SAP AG 1999
System Dialog Step
Dynpro processor 6
Dispatcher
Dispatcher
GUI
9
SAPGUI
8 ABAP processor
SAP
Database interface
12 10
Roll in 7
4
Roll out
11
Dynpro100
Request queues
Dynpro200 SAP GUI
... ...
9 18
Request queues
1 10 2 11
M
Dispatcher Dispatcher
8 17
3 12
D V E B S ... D V B D ...
7 16
4 13
Database processes
6 15
5
14
Database
SAP AG 1999
Summary of this Unit
SAP AG 1999
Further Documentation
SAP Notes:
39412 Number of workprocesses
21960 Two instances on one computer
5424 FAQ: enqueue/locking
and others in BC-KRN-CST
SAP AG 1999
Starting and Stopping
3 System Administration
10 Spool and Print
Assistant
5 Database Administration
12 System Monitoring
and Backups
6 DB Administration:
13 SAPNet
Periodic Checks
7 Background Processing
SAP AG 1999
Starting and Stopping
Contents
Processes and services in an R/3-NT-MS SQL
Server environment
Start and stop processes and procedures
Objectives
At the end of this unit, you will be able to:
Explain the concept of services used by R/3 and MS SQL Server
Describe R/3 start and stop processes
Explain the relationship between database processes, R/3
processes, and operating system processes
Start and stop an R/3 System
Analyze error situations during startup or shutdown
SAP AG 1999
Overview of Processes and Services
MS SQL Server
database process R/3 processes
SAP AG 1999
Starting R/3: Operating System Tasks
MSSQLServer
SAP<SID>_<Instance no.> SAPOSCOL ... Services
SQLServerAgent
SAP AG 1999
Starting R/3: R/3 Administrator Tasks
Logon
1
Start 2 Microsoft Management Console
via SAP R/3 Systems Snap-in
<SID>adm
3 4 5
SAP AG 1999
Starting R/3: Process Startup Sequence
Start profile
1 Message via named pipe
4
Default and instance profile
MS Disp+work.exe
R/3 Processes
D V E B S ... 5
6
Database Processes
SAP AG 1999
Parameter Read Sequence
Instance profile
3 <SID>_<INSTANCE>_<hostname>
2
R/3 work Default profile Parameter
processes DEFAULT.PFL read / replace
1 sequence
• R/3 kernel
• NT system
environment
variables
• NT Registry
environment
variables
SAP AG 1999
Database Logs
<drive>:\Mssql7\Log\...
Errorlog
Errorlog.1
MS SQL Server
MSSQLServer Errorlog.2 error log
Errorlog.3 files
Errorlog.4
Errorlog.5
Errorlog.6
Sqlagent.out
Sqlagent.1
Sqlagent.2 SQLServerAgent
Sqlagent.3 message files
Sqlagent.4
Sqlagent.5
SAP AG 1999
Startup Logs and Traces in Windows NT
SAP<SID>_<no>
Application
log
Windows NT
General overview of
key SAP processes
Current statistics on
major system and
SAP components
SAP AG 1999
Startup Logs and Traces in R/3
\\<SAPLOCALHOST>\saploc\<SID>\<Instance><No>\work\ ...
SAP AG 1999
Startup Diagnostics
MMC
SAP<SID>_<instance no.>
Event Viewer
MSSQLServer Services
Date Time Source
SqlServerAgent 25.08.14:22 SAP
R/3
Sqlagent.out
central
Errorlog instance R/3 System log
SAP AG 1999
Reasons for R/3 Downtime
Planned Downtime
• Profile parameter changes
R/3 System
• System maintenance, upgrades of
operating system, database, or R/3 ad e
g r
Up
Unplanned Downtime
• Hardware failure
• Configuration problems
Data
SAP AG 1999
Before Stopping the R/3 System
Will R/3 jobs be triggered from external systems? Job log Display Release
R/3 System
External
application
SAP AG 1999
Stopping the R/3 System
R/3 <SID>adm
administrator
2 3
1a 1b
SAP<SID>_<Inst. No.>
SAP AG 1999
Database Maintenance: Database Reconnect
Instance profile
Dispatcher
R/3 buffer
preserved
WP ... WP gwrd
Application server
running in status reconnect
Database server
down MS SQL Server
SAP AG 1999
Stopping R/3: Error Diagnostics
Server: NTServer
Services: MSSQLServer
Start/Continue
Start/Continue
Pause
Stop
MSSQLServer
SAP AG 1999
Summary of this Unit
SAP AG 1999
Unit Actions
? Exercises
Solutions
SAP AG 1999
Starting and Stopping: Exercises
No. Exercise
1 Prepare your R/3 System to start
1.1 Log on to the operating system as user <sid>adm. What services related to the R/3 System are activated by
the operating system?
1.2 Check if an R/3 System is already running.
1.3 If your R/3 System is active, shut it down.
1.4 If the database is still running, shut it down.
2 Starting
2.1 Start your R/3 System using the MS Management Console. Trace the startup phase by monitoring the
processes of your system using the Task Manager.
2.2 Which processes are running at the end of the startup phase?
2.3 Check the log files and the trace files for errors and warnings, and analyze the causes.
2.4 Log on to your R/3 System
2.4 Compare the processes that are displayed in the R/3 Process Overview with the work processes displayed at
operating system level.
3 Stopping
3.1 Which users are active in your system? Send them a message that you are stopping the system.
3.2 Stop the R/3 System using the MS Management Console. Shut down the database.
No. Solution
1
1.1 Use the NT Service Manager. In addition to other services, two R/3-related services are displayed: SAPOSCOL and
the R/3 Service SAP<sid>_<Instance No.>.
1.2 Start the MS Management Console. Expand the SAP R/3 Systems snap-in. If the icon for the R/3 System is green,
the R/3 System is running.
1.3 In the MS Management Console, select the R/3 instance and choose Action Stop. If necessary, repeat this
action on the central instance.
1.4 Start the MS Management Console. Stop the Database Services. In the MS Management Console, select the
server, then choose Action Stop.
2
2.1 Use the Windows NT Task Manager. Choose Processes.
2.2 Use the Task Manager of Windows NT. Choose Processes.
Look for disp+work.exe, msg_server.exe
2.3 Check the log and the trace files in the directory \usr\sap\<SID>\<Instance Name>\work, in particular, the
dispatcher trace file dev_disp and the trace files of work process 0 and 1 (dev_w0 and dev_w1,
respectively).
2.4 Select the R/3 System from the SAP Logon Menu.
2.4 From the R/3 main menu, select Tools Administration Monitoring System monitoring Process overview
(Transaction SM50) and use Quick Slice. Compare the number of work processes. The OS output displays
one more process, the dispatcher.
3 Stopping
3.1 To display the users active in your R/3 System:
From the R/3 main menu, select Tools Administration Monitoring System monitoring User overview
(Transaction SM04), and Tools Administration Administration System Messages (Transaction SM02).
Or select Tools Administration Monitor Performance Exceptions/Users Active users Users
global (Transaction AL08).
3.2 Compare 1.3 and 1.4.