November 5, 2013

SAP BASIS NOTES -5




Starting and Stopping of SAP
:-


When we start SAP the following sequence is executed
    Database
    Central instance
    Dialog Instance or any other Instance <Optional>


The starting and stopping from windows can be done using SAP Microsoft Management Console. In MMC right click on <SID> will give the following options
                   
Start
Stop
View Start Profile
View Instance Profile
Trace


The color-coding for the status of the sap server

      Yellow
      Green     
      Red
                     
   
 These colours are Vise-versa  in Start & Stop

Three types of profiles

Start/Stop of SAP systems at the background is controlled by set of profiles which are located at
 \USR\SAP\DEV\SYS\Profile where DEV is the SYSID

1) Default Profile
        DEFAULT.PFL
2) Start Profile            START_DEVBGMS01_<HOSTNAME>
                                    Where 01 is the instance number
3) Instance Profile      <SYSID>_DEVBGMS01_<HOSTNAME>
                                    Where 01 is the instance number

-> Never edit the startup profile because this profile is related with starting/stopping of SAP system.
-> First profile which is read while staring SAP system is start profile and is followed by instance profile.
-> All work processes are configured in instance profile. This profile is specific to the instance in which the
     SAP is installed. Any changes made to the startup profile will affect only that particular instance.
-> All changes made to default profile will affect the entire instances, which are configured.

Contents of Startup Profile:

     SAPSYSTEMNAME
     INSTANCENAME
     SAPSYSTEM
     SAPGLOBALHOST
     Startdbs.cmd  -> DB
     Msg_server.exe  ->  Central Instance
     Disp+work.exe  ->  Dispatcher
     Igswd.exe  ->  Java

Start/Stop in Unix:

Commands used to start and stop at OS level in Unix environment.
StartSAP   
StopSAP    <DB>
                   <R3>
                  <ALL>

Directory Structure:The directory structure for SAP installed files will be
        \USR\SAP\<SYS_ID>\
        PRFDOG
        TMP
        TRANS

What are the steps involved in stopping SAP system?
Before stopping SAP system we need to check the status of the following
•  Check if there are any logged on users. Use Transaction Code – SM04
•  Check if there are any Background process is to define – SM36
•  Check if there are any Background processing is going on. Use TC – SM37
•  Check if there is any Batch input session. Use TC – SM35
•  Check if there are any update processes running. Use TC – SM13

Note:
1)  After verifying the above status we need to send a message to all the users stating the shutdown time         using Transaction Code SM02.
2)  All transaction codes that we monitor are executed in the central Instance only.
3)  To view the users who are logged into all the instances we can use Transaction code AL08 (Global
     User Overview)
4)  Transaction code to view profile parameters RZ11.
5)  Trans Code to edit or change the profile parameters is RZ10.
6)  Report “RSPFPAR” is used to provide the same functionality as RZ11.


 Sap system profiles :-

There are two types of of profile parameters
1)    Static Parameters
2)    Dynamic Switchable


For dynamically switchable parameters, we need not restart the SAP system after making the changes. For static parameters, we need to restart the SAP system to make the changes effective.
In the table “TPFYPROPTY”, the dynamic indicator (X) identifies all dynamic switchable profile parameters.

Note:
• Use Transaction code SE16 to view the contents of a table.
• To display profile parameters from OS level we need to use the following
  Sappfpar <Parameter Name>
                       <ALL>
                      <Check>
                       <Help>
Eg: sappfpar ALL will return the list of all parameters.

Modes of Editing Profile :-
       There are 3 types of edit profiles
1) Administration of Data
2) Basic Maintenance
3) Extended Maintenance

1) Administration of Data: contains type of profile, short description, path of profile, Name of instance and the time of last activation. This profile mode is used only to display the profile parameters.
• You can perform the maintenance of parameters using either basic maintenance or extended.

2) Basic Maintenance:
allows adjusting most important parameters and provides logical description.

3) Extended maintenance: display the unformatted content of the profile i.e. technical names of the profile.
• In extended maintenance we can change the values, add values as well as delete.
• Changes are done in 2 steps.
    Copy == Changes are temporarily copied
    Save == Changes are permanent saved to database
• Changes to instance specific profiles takes effect only after a restart of the corresponding instance.
• Profile parameter related to security administration starts with auth* in RZ10
• Profile parameter related to work processes starts with rdisp* in RZ10

Steps for tuning Work Processes
• In the command prompt of SAP Execute RZ10.
• In the new screen opened to edit the profile parameters, choose Utilities option from the Menu
1) Inside Utilities choose the option Import Profile of Active Servers. This step is used to read 3 profile parameters from OS level to SAP level. Output of these steps is that it displays profile check log. In which it will show status of the three profiles i.e. any errors in reading the profiles.
2) Press back button
3) Select profile tab and select instance profile.
4) Goto extended maintenance and select [Change] button

Note: To create a new parameter select [Create Parameter] button.
To change the value of the existing parameter, select the parameter under the parameter name column and click on change button.
• Change the value and select [Copy] button
• Select [Back] and again click on [Copy] button
• Click on [Back] and click on [save] button.



 Will update soon... Check next post...



No comments:

Post a Comment