Search this blog for other interesting articles

Friday 26 August 2011

SAP Profiles

This article answers the following queries:

  • What are SAP Profiles? Why are they needed?
  • What are the different types of SAP Profiles and their significance?
  • What is the path of profile directory in SAP?
  • What is the location of profiles in SAP?
  • Which SAP profile is used to define system wide settings?
  • What are the contents of Default profile ( DEFAULT.PFL), Start Profile and Instance Profiles ?
  • What are the naming conventions of various SAP Profiles?
  • If instance profile is modified, what needs to be done for the changes to take effect?
  • If default profile is modified, what needs to be done for the changes to take effect?
  • What is the significance of cdpro command in SAP related to AIX or HPUX Operating systems?
  • If an instance profile is modified is it required to restart entire SAP system?
  • What is the sequence in which SAP profiles are read by the SAP system?
  • If some value is set for a parameter in default profile and in instance profile another value is set for an instance. For that instance which value will take precedence? Is it default profile value or instance profile value?
  • What is the sap parameter that is used to set the profiles path in an SAP system? In which profile it would be set?

----------------------------------------------------------------------------------------
SAP R/3 systems uses  Profiles  to define the properties of an SAP R/3 Instance such as the type and number of work processes, the size of main memory reserved for SAP R/3 and various parameters like multiple logon, idle time out value etc
There are 3 types of profiles in SAP.
They are


  • DEFAULT.PFL (known as System Profile)
  • Start Profile
  • Instance Profile

All the profiles mentioned above are stored in the profile directory defined during installation of the SAP system.
This path can be set using DIR_PROFILE profile parameter in the start profile.
Ideally the path of profile directory would be
In Unix Systems :
/usr/sap/<SID>/SYS/profile or /sapmnt/<SID>/profile
In Windows NT :
\\<SAPGLOBALHOST>\sapmnt\<SID>\sys\profile

Tip: Please note in AIX or HP-UX environment, we can go to the above profile directory  
              location using cdpro command at Os level.

All instances of a SAP system can read these profiles with share ( Systems based on Windows ) or mount (Systems based on Unix) technology.
DEFAULT.PFL :  This profile exists uniquely in an SAP R/3 system. It means if there are 5 application servers in an SAP system, even then there will be only one DEFAULT.PFL file.
 It contains system-wide settings which include

  • Name of the SAP system
  • The database system
  • Name of the enqueue server
Each SAP R/3 instance to be started reads this profile first. The information specified in this profile is very vital for the functioning of the SAP system.

START PROFILE :   Unlike default profile, the start profile is specific to an instance. It means if there are 5 application servers each will have one separate start profile with the settings specific to an instance.
The startup process of the SAP system is controlled by the start profile that is read by the start program [sapstart]. Here the services(eg: message, gateway, dialog , batch etc) that are to be started are listed. Hence every instance will have separate start profile.
In other words, the start profile determines how, where and under what name individual SAP R/3 services and processes are to start.
The naming convention of START PROFILE will be as below :
START_<instance><instance_number>_<host_name>
Eg: START_DVEBMGS00_prdserv4
For the start profile default names are assigned during the installation of an instance based on the services that are running on the instance. For example, DVEBMGS in the start profile above confirms that following services are available for that instance.
D – Dialog
V – Update
E – Enqueue
B – Batch
M – Message
G – Gateway
S -  Spool

INSTANCE PROFILE :   Like start profile, Instance profile is specific to an instance. It means if there are 5 application servers each will have one separate start profile with the settings specific to an instance.
 The runtime environment of the instance is configured in the instance profile.  In instance profile parameters specific to an instance can  be set like auto gui logout time(rdisp/gui_auto_logout), number of various workprocesses (rdisp/wp_no_dia),  memory related parameters like abap/buffer_size, em/initial_size_MB, rdisp/PG_SHM, rdisp/ROLL_SHM etc
The naming convention for the instance profile will be as below :
<SID>_<instance><instance_number>_<hostname>
Eg :  SQ1_DVEMBSG00_prdsapk1

During the installation of an SAP R/3 system, the profiles are created with standard values. Later it  is Basis administrator’s responsibility to tune the parameters.
The source code of the SAP Kernel already sets standard default values for most of the system parameters. However, you must specify some specific details like computer name, system name and distribution of resources in the profiles.
The SAP profiles are read during the startup of an instance. The values defined in the system profile (ie. DEFAULT.PFL) overwrite the standard settings in the source code. The values defined in the instance profile overwrites the parameter values of DEFAULT.PFL for the instance.

In case of any changes to System Profile ( DEFAULT.PFL or Default Profile), you must restart all the instances of the SAP system as this is common for all instances.
However in case of any changes to instance profile, it is sufficient to take restart of only that particular instance for the changes to take effect.

Sequence of SAP profiles that are read while starting SAP system :
  • First start profiles of various instances are read by the sapstart program
  • Secondly Default profile is read
  • Finally, instance profiles of various instances are read.


Related Links :






28 comments:

Anonymous said...

Sequence of profiles that will be read during startup are confusing as earlier you have mentioned DEFAULT.PFL will be read first and at the end you have mentioned that START Profile will be read first.

DurgaPrasad said...

Hi friend..donot know what exactly confused you. But the correct sequence Sequence of SAP profiles that are read while starting SAP system :

First start profiles of various instances are read by the sapstart program
Secondly Default profile is read
Finally, instance profiles of various instances are read.

DurgaPrasad said...

Hi Friend...May be you might have confused with following statement :

"Each SAP R/3 instance to be started reads this profile first. The information specified in this profile is very vital for the functioning of the SAP system"

Kindly let me clarify.

By the above statement, I mean that before instance profiles are read, every R/3 instance reads DEFAULT.PFL. Ofcourse DEFAULT.PFL will be read only after START profile.

So, the correct sequence is :

First start profiles of various instances are read by the sapstart program
Secondly Default profile is read
Finally, instance profiles of various instances are read.

kiranpal said...

Hello Sir,

Thanks a lot for your tutorials. My question is how many default, startup and instance profiles will be there for a sap system with one central instance and 10 dialog instances? If an instance has a same parameter in default and instance profile, which will be read?

Thanks,
Kiranpal

DurgaPrasad said...

Hi KiranPal,

Thanks for your mail.
Kindly let me answer your query.

For a SAP system with one CI and 10 dialog instances, there will be only one default profile, 11 startup profiles and 11 instance profiles. Here 11 includes 10 for dialog instances and one for CI instance.

Please note irrespective of central or dialog instances there will be only one default profile for one sap system. There will be one startup profile and 1 instance profile for each instance whether dialog or central.

If an instance has a same parameter in default and instance profiles, the instance profile parameter will be read.

Hope, I have answered your queries.

Unknown said...

thanks for your tutorials

DurgaPrasad said...

Thanks Sundhar adhi for your nice comment.

Diadem said...

Hi Sir,

I jsut want to Thank you for your wonderful Tutorials. It hepls me a lot.

I will be in you touch for any concern. Thanks you once again. :)

Regards

Abhishek Sinha

DurgaPrasad said...

Thanks a lot Abhishek Sinha

Deepesh said...

Hi sir,

I am really new to SAP Basis and this post has cleared all my doubts regarding profiles . Thanks a lot .

Regards
Deepesh

DurgaPrasad said...

Thanks for your nice comment Deepesh.

Deepesh said...

Hi sir,

Can I know why start profile is read first ? Because information about where database is hosted is in defualt profile and database is started first in any sap system if I am not wrong .

Regards
Deepesh

DurgaPrasad said...

Hi Deepesh..Database server details are provided in default profile correct but database won't startup reading default profile..Right ??

Database is already started first.Then SAP instances are started one by one starting with central instance. In default profile, parameters that are commonly maintained for all instances are kept like enqueue server name, database server name, default client etc. But start profile contains what services should run in a specific instance like message server, dispatcher etc. Therefore start profile will be read first and then default profile. Hope I have answered your query.

Anonymous said...

Your tutorials really helping me a lot as i am a begineer in Basis. Whenever i have to clear my doubts i will turn up to your blogs. Thanks a lot...

Anonymous said...

Hi

Your Tutorials are really very helpfulfor diffrenet day to day problems.

You are a genius......

Anonymous said...

Hi, I would like to know how to stop and start various dialog instances that are running on different platforms (like DI on Windows, DI on Unix, DI on Linux, DI on Solaris) together at once. something like Mass maintenance.

Unknown said...

why profile parameters are to be given? can anyone help me;

chakri199@gmail.com

Unknown said...

hello durga sir.thanks for giving us such a wonderful blog.hats off o you..

kuldeep said...

thanku ..

KIRAN KUMAR said...

In which Table profiles are stored?
Ex:client stored in T000
Profiles stored in??

Unknown said...

Sir i have one doubt in my sap system the instance profile is deleted in profile folder. How can i get that file is there any alternative solution or my sap system is uninstall

Unknown said...

Dear Sir,
i have one CI and DI. If I want restart the SAP system first stopping DI. Why,
Ks

Anonymous said...

thank you sir...for giving us such wonderful information

Unknown said...

Thank you sir

Unknown said...

Thank you sir

Unknown said...

Nice

Unknown said...

Your blogs are really helpful thank you sir

Saket said...

As per following URL: https://help.sap.com/saphelp_nw70ehp1/helpdata/en/c4/3a6136505211d189550000e829fbbd/frameset.htm
It is generally not necessary for each application server to have its own instance profile or start profile.
Can someone clarify?

Search this blog for other interesting articles

Please subscribe & activate link received to your email id to receive latest articles

Enter your email address:

Delivered by FeedBurner