11/21/2012

SAP Lock Value In USR02

SAP Lock Value In USR02 table

We use USR02 table for checking the status of an user whether user is locked or not.

There are 6 type of values are there.

0 Not locked
16 Mystery values
32 Locked by CUA admin (User Admin)
64 Locked by system Administrator
128 Locked due to incorrect logon attempts or too many failed attempts
192 A combination of both. The user is locked by admin and user tries to logon with incorrect passwords and gets locked ( 192 = 64+128)

11/14/2012

SAP Performance transaction codes

DB02
Database Analysis
ST02
Performance Tuning Analysis
ST03N
Workload Monitor
ST04
Database Performance Monitor
STOS
Performance Analysis (Traces)
ST06N
Operating System Performance Monito
ST07
Application Monitor
ST10
Statistics for Table Calls
STAD
Transaction Analysis
OS06
Operaling System Monitor

SAP System monitoring transaction codes


AL08
This transaction code shows a list off all user currently logged on to the SAP system (all app servers).

DB01
This transaction codes will display table locks.

SM12
This transaction code will display the enqueue locks.

Fill in the selection criteria as you want them

SM21
This transaction code is used to see the system log files.

After you have filled in your selection make sure to choose system log, choose, all remote system logs before you hit the read log button.


SM36
This transaction is used to schedule a background job.

SM37
This transaction code is used to display background (or batch) jobs submitted by users.

SM50
This transaction code is used to display all the work processes on the current apps server.

SM51
This transaction code is used to display a list off all the running apps servers. There should be 12 apps servers running at all times.


By double clicking on one off the servers in the list you will then see a listing off all the workprocesses on that server (same as using sm50). Note: you will also connect to that server.

SM66
This transaction code will display a list off all current running work processes on all the apps servers. It doesn’t refresh itself automatically so hit or select the refresh button located at the top.

The list can be sorted by selecting a colum and hitting the sort button located at the top.

ST04
This transaction code will bring up the Informix database overview. It displays information about the current use of the database

If you select the detail analysis menu using the button in the top bar you will see the screen shown below.

10/24/2012

Oracle How to add tempfile

In order to  add a tempfile into the mounted  opened Oracle RDBMS:
Login to database command line as sysdba 

SQL> connect /as sysdba
Type 

SQL> ALTER TABLESPACE <TABLESPACE_NAME> ADD TEMPFILE
'PATH_TO_TABLESPACE_FILE' size 32000M reuse;

Example:

SQL> ALTER TABLESPACE PSAPTEMP ADD TEMPFILE
'/oracle/SID/sapdata2/temp_2/temp.data2' size 32000M reuse;

SQL> ALTER TABLESPACE PSAPTEMP ADD TEMPFILE
'/oracle/SID/sapdata3/temp_3/temp.data3' size 32000M reuse;

SQL> ALTER TABLESPACE PSAPTEMP ADD TEMPFILE
'/oracle/SID/sapdata4/temp_4/temp.data4' size 32000M reuse;


This was an easiest way how to add tempfile into Oracle TEMP tablespace.


SAP R/3 How to perform Kernel Upgrade

SAP-Kernel-Upgradation
Matrix
BISoftwareVersionPatchCRMEP
BI3.14.7EE620674CRM 4.0
BI3.5ECC 5.0640CRM 5.0EP 5, EP6
BI 7.0ECC 6.0700CRM2007EP 7.0
To know the current version run c:\> disp+work.exe
Kernel-Upgradation-Command-Prompt

Or run TCODE SM51 and look for the release notes.

TCODE SM51 in SAP R/3
Goto System/Status
SAP-System-Data 
SAP-System-Kernel-Information 
Hardware32bit or 64bit
OS Windows 2003, Linux, Solaris AIX 5.3 AIX6.1 OS390 AIX400
DatabaseOracle 8, Oracle 9i, Oracle 10G, DB2 8x, 9x, DB4 8x,9x, DB6, SQL Server 2000,2005,2008 Max Db 9.0X, 8.0X
Unicode/Non Unicode4.7 is Non Unicode, ECC6 SR3 is Unicode, All other versions (ECC 5.0 etc) are available in Unicode and non Unicode versions
Goto service.sap.com/PAM to see the product availability matrix. It will tell you what needs to be applied to go from one version to another. Also download the kernel upgrade dump (3 files). SAPEXE.SAR SAPEXEDB.SAR DBATOOLS.SAR SAPCAR.EXE First two files are needed to patch the kernel. All three are needed to upgrade the kernel.
Procedure
  1. Shutdown SAP Server, stop all SAP and Oracle services
  2. Copy D:\usr\sap\DEV\SYS\exe\run to D:\usr\sap\DEV\SYS\exe\run_old
  3. Create D:\usr\sap\DEV\SYS\exe\run_new directory and copy all the above files into the run_new directory 4.Rename SAPCAR.EXE in run_new to OLDSAPCAR.EXE
  4. Change to run_new directory and Run d:> OLDSAPCAR.EXE –xvf SARFile one file at a time. Need to execute this command three times, one for each SAR file.
  5. Copy/Overwrite all files except the above 4 files from run_new to run directory
  6. Restart the services a.TnsListner b.Oracle<SID> c.SAP<SID>_IN#> Central Instance d.SAPOSCOL e.SAP<SID>_<IN#> Dialog Instances
  7. Start SAP CI, DIs 9.If any problems arise check the instance profiles 10.Verify the installation using TCODE SICK
SAP-Kernel-Upgradation-Services User-SAP-DEV-System-run-new 
n the below screen you will see the SAP System Kernel information.
In this screen you will see
  1. Kernel information
  2. Database information
  3. System information.
SAP-Kernel-Information
SAP-Kernel-Command-Prompt SAP-R3-Kernel-Upgradation-Command-Prompt
SAP Release Information from Server. In this screen
SAP Release Information
SAP R/3 kernel information
SAP R/3 Kernel
Database Client Library
SAP-R3-Kernel-Release-Information

SAP Add On Pluggin installation using SAINT

SAP Addon installation tool

SAP Add-On Installation Tool (transaction SAINT) was developed to enable users to install and upgrade add-ons directly from their SAP system. These add-ons can be Industry Solutions, plug-ins, or customer-specific development projects. SAP offers Preconfigured Systems (PCS or SAP Best Practices) that can also be installed using SAP Add-On Installation Tool. A PCS reduces the amount of work needed to install and customize an industry-specific solution.
Subject to certain prerequisites, you can also use SAP Add-On Installation Tool to delete ABAP Add-Ons from the system.
SAP Add-On Installation Tool is delivered and regularly updated with the Software Logistics Toolset (SL Toolset). For more information, see https://support.sap.com/sltoolsetInformation published on SAP site and http://help.sap.com/spmanagerInformation published on SAP site.

Apply SAP R/3 Support Packages, Patches, Service Packs using SPAM, SAINT

From time to time SAP does modifications to the various objects of its R/3 software and makes the modifications available to the customers in form of support packs and CRTs. Customers are required to check for the latest updates on the changes being made by SAP to its software and accordingly apply them at their installations. The support packs and CRTs are made available by SAP on their mySAP.com Marketplace site (earlier known as SAP Net) http://service.sap.com.
The following is procedure to show you step-by-step process of applying different support packages into your system.
  • It is always advisable to first verify the SPAM/SAINT version in the system.
  • If you do not have, download the latest SPAM/SAINT package.
  • There are certain support packages, which require certain level of SPAM/SAINT. For such packages, you first have to update the SPAM/SAINT
  • SPAM/SAINT update and support packs are applied through Transaction code SPAM.
  • The SPAM/SAINT updates and support packs files are .CAR (compressed archive) files, which need to be unpacked. Each CAR files is an archive of two files.
  • Supports packs for Applications area (i.e. changes made to the objects of various functional modules of SAP) are also known as HOTPACKS

What Is a Support Package?

  • A Support Package is a quantity of corrected SAP objects. Support Packages Are required to correct errors in various components. This is done by replacing erroneous objects with corrected versions of these objects.
  • Each software component has a separate sequence of Support Packages. The following list contains the technical names of a number of components and the notation for their Support Packages:
  • COP (Component Package)

SAP_APPL (SAP R/3 Support Package)
Naming conversion of SAP_APPL is SAPKH<rel><no>

SAP_APPL Stands sap application platform
SAP_BASIS (Basis Support Package)

Naming conversion of SAP_BASIS is SAPKB<rel><no>
SAP_BASIS Stands sap basis component

SAP_ABA (Application Interface SP)
Naming conversion of SAP_ABA is SAPKA<rel><no>

SAP_ABA Stands sap cross application component
SAP_HR (SAP R/3 HR Support Package)

Naming conversion of SAP_HR is SAPKE<rel><no>
SAP_HR stands human resources

SAP_APO (APO Support Package): SAPKY<rel><no>
SAP_BW (BW Support Package): SAPKW<rel><no>

SAP_CRM (CRM Support Package): SAPKU<rel><no>
SAP_SRM (SRM Support Package): SAPKU<rel><no>
SAP_SEM (SEM-BW Support Package): SAPGKS<rel><no>

Why Support packages are required

  1. A support packages is a quantity of corrected SAP objects.
  2. Support packages are required to correct errors in various components. This is done by replacing erroneous objects with corrected versions of these objects.
  3. Each software component has a separate sequence of Support Packages.

Prerequisites of Support Packages:

  1. Login to 000 client with user like DDIC.
  2. Support packages and patches are applied in T-code SPAM (support package manager)
  3. No aborted packages should be available in the system.
  4. Download the support packages from marketplace.
  5. Always use the updated SPAM & SAINT versions to Apply Support Packages.
  6. There should be enough space in EPS directory to hold support directory.
  7. There should be at least two background processes reserved for this process.
  8. Functional and technical consultants should be around for applying changes to data dictionary elements and repository objects.
  9. Take the database backup before going to apply support packages.
  10. In order to avoid network congestion the files which are more than 10MB has to be applied through “application server”. Patches which are less than 10MB can be applied through front end
  11. There should be enough space in table space in the table spaces (DB02),it should not be above 90%.
  12. Apply patches in the sequence defined in the composite note. Patches can be applied individually or bundled together.
  13. Patches can’t be reverted by consultants, only SAP can revert patches by developing a negative patches if required.
  14. Schedule the downtime before going to apply support packages.
  15. Go through the composite note and document the sequence and CRT.
  16. Observe the system behavior.
  17. Check STMS configuration before going to apply support package.
  18. Before going to apply support package we need to check either any side effects if we apply the patch.

Procedure

The support packages are needed to be applied to the system depending on the requirement from functional and technical consultants’ support package can make changes to objects are data dictionary level or at repository level. It requires to be applied during non-peak hours. It provides enhanced functionality. Sap recommended applying patches for the known problems.

How to apply the downloaded SAP Support Packages and Patches

SAP-OCS-package-Directory-Screen shot
SAP-OCS-Package-Directory-All-Packages-Screenshot
  • You will get a pop up screen with the unapplied patches.
  • Select the patch or group of patched that you want to apply and hit the enter key/icon.
  • The patch number will be defined in the queue box.
  • Goto Support Packages >> Import Queue or click the apply patch / import queue icon on the application toolbar
  • After the patch is successfully applied, you will have to CONFIRM the patch application.
  • Goto Support Packages >> Confirm Or click the confirm icon on the application toolbar.
  • The traffic light in the status box should turn green.
  • While the patches are being applied, it’ll prompt us for conformation of the changes, whether to keep the objects which have come from SAP patch or to keep existing customized objects.
SAP-Modifications-Adjustment
  • You can compare the changes and decide to keep the changes made to the system via OSS notes or return the objects to original.

For applying SPAM upgrage patch (KDVVVPP.CAR) use import SPAM/SAINT Update menu option.

SAP-Version-6.20-0009
SAP-SPAM-Import-SPAM-updates
SAP-Support-Packages-Screen shot
Import from Frontend
for small files you can do this. It will upload from frontend to server and ask you to decompress. Once decompressed, click on New Support Packages/ Display button.
SAP-Content-Compressed-file-Screen-shot
Once decompressed, click on New Support Packages/ Display button.
SAP-Support-Package-Manager-screen-shot
SAP-Support-Packages-Manager.Version-4.6C-0041-screenshot
Check for logs
SAP-SPAM-Queue-Object-list
 SAP-Packages-Overview-transport-Logs-Screen Shot
  • At times depending on the situation, you may have to reapply the OSS notes after returning back the object to original

Errors and Problems

Cannot_create_cofile

While applying a patch, if you get an error "CANNOT_CREATE_COFILE" delete the concerned file of the patch from the /usr/sap/trans/cofile and /usr/sap/trans/data directory. After deleting the files restart the process. The patch application may work.

Eps in is in old format

If you are unable to upload the queue and you see a message like EPS in IS IN OLD FORMAT , check for the SPAM version and do a SPAM update. Delete the concerned files (i.e. the .ATT and .PAT files from the /usr/sap/trans/EPS/in directory) and then decompress the .CAR file and continue with applying the support packs.

Objects locked

There are also times when a patch fails because an object that it is trying to modify is locked by a change request. In such cases, identify the object and the change request and then using SE03 search for the object. Once you have identified the change request unlock the object and then Continue with the SPAM transaction. Sometimes the SPAM/SAINT Update process comes out with error. In such case just go ahead and start the SPAM update process again and it should go through fine.

Objects locked

  • Tp could not connect to database
  • Tp may be older version or outdated
  • No enough space in "eps/in" directory.
  • Tp could not be executed.
  • Stms is not configured properly.
SAP-SPAM-Import-SPAM-updates

Using SAPCAR

What is SAPCAR

SAPCAR command is used to compress or decompress CAR files.

What are CAR files

CAR files or Compressed ARchive files are compressed binary files similar to ZIP files. SAP updates always come in CAR format. You will need sapcar command to uncompress these CAR files. You can download sapcar from SAP Marketplace under SAP Software Download Center

Follow the below procedure to install

  1. Copy them to a temporary directory either in /usr/sap/trans/tmp or any other folder which you can create (say, patch)
  2. Change to the directory /usr/sap/trans (UNIX) or \usr\sap\trans (NT)
  3. Use the command SAPCAR -xvf The command SAPCAR is case sensitive
  4. The command SAPCAR will decompress the CAR file and put two files (with extensions .ATT and .PAT in the /usr/sap/trans/EPS/in directory.
  5. Logon to the SAP system in client 000 as user DDIC
  6. Once in the system execute the transaction code SPAM
  7. Depending on what version are you in do the following
    • Goto Support Packages
    • Load Packages from Application Server
  8. You will get a pop up box with the list of the patches in the queue. Both the applied patches and the new ones will be listed. Hit the Back button to come to the main screen.
  9. Click on the Display/Define button on the screen
SAP-Command-Prompt

SAP CCMS Operation Modes

CCMS-Maintain-Operation-Modes-and-Instances

Now create Opeartion Modes

Click on Operation Mode/Create menu item.
CCMS-Maintain-Operation-Modes
CCMS-Maintain-Operation-Modes-and-Instances

Now create Opeartion Modes

Click on Operation Mode/Create menu item.
CCMS-Maintain-Operation-Modes 

SAP-CCMS-Maintain-Operation-Modes-and-Instances
Give name and short description and click save. Repeate this for all the op modes. Once all the op modes are created you will see a list of op modes. Also you will see an additional op mode called DUMMY listed along with the ones create by the admins.

Assign a time table to the op modes.

Click on time table and choose normal operation and click on change button.
SAP-Display-Maintain-Operation-Mode-Set
SAP-Edit-Operation-Mode-Set-for-Normal
Choose the time interval and click ASSIGN button. Next screen will let you choose an op mode to assign to the time interval chosen from the previous screen.
CCMS-Specify-an-Operation-Mode
Choose the appropriate op mode and click OK to save. Now choose another interval and assign to another op mode. You need to repeat this step till all 24hr time slots are assigned to any op mode.
Now go to 'Operation Mode' view. Choose the instance name and click on menu 'Maintain instance/Work process distribution'
SAP-CCMS-Operation-Modes
Double click on the '* All operation mode' and it will show you the following screen. In this click on other op mode button and then on click on operation mode entry field to choose an op mode.
SAP-CCMS-Maintain-Work-Process-Distribution
CCMS-Restrict-Value-range
You can right mouse click on a op mode and choose to delete it once its assigned to an instance.
SAP-Maintain-Operation-Modes-and-Instances

Work process distribution for the op modes across the instances

Work-Process-Distribution
Double click on the op mode to see the work process distribution dialog. Click on the Background or update or spool work process and use + or – button to increase or decrease the work processes.

Manually switching the operation modes.

  • Choose RZ03
  • system displays list of OP modes
CCMS-Control-Panel-Display-Server-Stauses-and-Alerts
Choose the target op mode by clicking on "Choose operation mode" button
SAP-CCMS-Control-panel-Display-Server
  • Choose the op mode and click 'choose'
  • To switch all servers to the op mode chose in above step use:
  • Control/Switch Operation Mode/All Servers
  • To switch selected servers to the op mode chose in above step use:
  • Control/Switch Operation Mode/ selected Servers
SAP-CCMS-Control-Panel
CCMS-Work-Process-Distribution

Logon Load Balancing in SAP R/3, Logon Groups, SMLG and CCMS Configuration for Basis Admins

What is SAP Logon Load Balancing?

  • SAP R/3 Logon load balancing enables a SAP Basis admin to create various log on groups.
  • Logon groups are logical groups of users that can be assigned to one or more SAP instances.
  • A group GroupX, Once assigned to an instance I, all users who login using that group in the SAP log on pad client, will automatically login into the instance.
  • If you have two instances I1, I2 then you can create two groups GroupX and GroupY and assign them to I1 and I2 respectively. You can also divide your users according to some criterion (such as Floor1 thru 5 will use GroupX and floor 6 thru 10 will use GroupY) and ask them to use only those groups.
  • In SAP Logon Pad, you can create and delete logon group entries, remove instances from groups, and delete entire logon groups.
  • When you call transaction SMLG, the CCMS: Maintain Logon Groups screen shows a table with entries for logon groups and the associated instances. An entry in this table, which is characterized by an instance and a logon group, is known as an assignment.
  • A logon group to which multiple instances belong therefore consists of multiple assignments in this table, where an assignment contains one instance in each case.

How to Create a Logon Group or Assigning an Instance to a Logon Group

  • Choose CCMS® Configuration logon Groups, or call transaction SMLG.
  • Choose (Create Assignment), and specify the desired name of the logon group in the Logon Group input field. Enter the name of the desired Instance that is to belong to the logon group. The logon group SPACE is reserved for SAP; therefore, do not use this name.
  • Repeat the last step until you have entered all instances that are to belong to the logon group.
  • You can assign one group to one or more instances.
  • Save your changes.

How to Delete a Logon Group or Removing an Instance from a Logon Group

  • Choose CCMS® Configuration ® Logon Groups, or call transaction SMLG.
  • Select any assignment for the logon group that you want to delete or from which you want to remove an instance.
  • To remove an instance from the selected logon group, choose Remove Instance, enter the desired instance on the next screen, and confirm your choice by choosing (Delete).
  • To delete the desired log on group, choose Delete Group and confirm your choice by choosing (Delete) on the next screen.
  • Save your changes.

Changing Properties of an Assignment, a Logon Group, or an Instance

  • Choose CCMS® Configuration ® Logon Groups, or call transaction SMLG.
  • To change the properties of an assignment, double-click the assignment, and switch to the Properties tab page.
  • You can change the following properties:
  • IP address of the application server: Only enter a value in this field if the application server associated with the instance needs to be addressed by the front end with a different IP address to the one used for application server-internal communication. This value applies only for the selected assignment.
  • Settings for external RFC call: You can use this indicator to determine whether logon using an external RFC connection is to be permitted. This value applies to the selected logon group.
  • Threshold values for dialog response time and number of users logged on

How it all works

  • If you log on using a logon group, the logon is automatically performed using the instance of the group that currently has the best dialog quality. This quality is a key figure that is calculated from the number of users logged on and the average dialog response time.
  • To allow the different prerequisites of different instance to be taken into account in this calculation, you can set threshold values for the dialog response time and the number of users yourself. The larger the actual values for response time and the number of users are in comparison to the threshold values set, the lower the quality. These figures apply for the selected instance.
  • The values for Response Time and Users are not absolute limits, but rather thresholds. Even if the current value for response time or number of users is higher than this threshold value, it is possible to log on to another instance. The threshold values only influence the calculation of the current logon server of the logon groups.
  • You can use a preview to see how the settings of the threshold values can affect the quality calculation, based on the current performance data. Choose test to do this. In a logon group, the instance with the highest quality key figure is always selected for the logon.
  • Choose Copy, and save your changes.

SAP R/3 Post Installation Procedures

Make sure all the below are uptodate

  • Services
  • Users at OS
  • Shared folders
  • Environment Variables
  • File Systems

Install SAP GUI on client systems and create logon pad entries.

Run SAP Server using R/3 MMC or command line

Startsap name=<SID> nr=00 sapdiahost=host name
Stopsap name=<SID> nr=00 sapdiahost=host name
Dpmon pf=d:\usr\sap\DR1\SYS\profile\DR1_DVEBMGS00_ecc6server

Logon to SAP using GUI with SAP* or DDIC into client 000

Users we have to create super user, and change the standard password.

Perform installation consistency check SICK/SM28

To find the inconsistency between os kernel ,db kernel and find inconsistency between patch levels Import.

Import the profile parameters os level to sap level in RZ10

SAP-Display-Profile-Check-Log
  • change the work process parameters, memory parameters,
  • login parameters and buffer parameters.
  • set the parameter login/no_automatic_user_sapstar=0 (in rz10)

Create SAP standard backgrpund jobs and schedule (SM36, SM37)

Create a new client and copy from 000 using local client copy (SCCL)

  • development: customizing(cust), sandbox(sand)
  • quality: test , pre test (ptst)
  • production: production (prd).

Initialize CTS (TCODE: SE06) and Config TMS

  • standard installation
  • sytem copy or migration.

Select standard installation and check perform Post installation activites set cts and perform the following steps:

  • Apply required support packs and install add-ons and pluggins (SPAM, SAINT)
  • Create a local printer
  • Check tablespace, free space stats and add required data files.
  • Take initial DB Backup either online or offline
  • Schedule SGEN
  • Create required RFC connections using SM59
  • Update DB Stats
  • Install sap license
  • Create users and check the user operations password never expires is set

Also do the following for sap accounts <sid>adm, sap service<sid>

  • SAP router configuration: Configure sap router production System
  • Check the system logs.

How to change/modify profile parameters in SAP R/3 - transaction RZ11

When you change the parameter, it is changed in Db only so when you re-start the instance again the change will be lost. Need to click on save button and the profile file will be saved and a backup is created at OS level.
SAP-Maintain-Profile-Parameters
Click on Param Name button
SAP-Restrict-Value-Range-1
If the required param is not in the listed 500 inputs, simply click on the down arrow button at the top of the above screen. Type in the parameter name partially with * before and after the partial name and hit enter. Choose the required param and double click.
SAP-R-3-Profile--DEV_DVEBMGS00 SAP-Parameter-Name
Enter the param value and click copy. It will copy and notify you in the status bar "Changes were made". Now click on back arrow on the top and it will ask you to save the profile. Click OK and it will save the profile to OS.
SAP-System-Maintain-R-3-Profile
Then it will ask you to change and activate the profile. Click ON and it will save the profile. Now open the profile in notepad and you will see the changes made to the instance profile (DEV_DVEBMGS_CHALAKI in this case)
SAP-Profile-Information
The effect of activating a profile is simply that the profile is stored at OS level. For the profile to take effect for a application server you need to re-start the server SAP-DEV_DVEBMGSOO

Popular Posts