Showing posts with label SAP profile. Show all posts
Showing posts with label SAP profile. Show all posts

9/06/2017

HOUSE KEEPING / PERFORMANCE TUNING ACTIVITIES IN SAP BW SYSTEMS

In many BW Projects, we have seen Basis team and the BW consultants searching around for tracing the regular and best housekeeping options and activities provided by SAP for improving the performance of BW Production servers.
I have made an attempt to summarize and mention most of the BW House Keeping activities under a single umbrella.
Basically, I have divided the activities into 4 parts namely General monitoring, System health monitoring, Performance related monitoring and Occasional activities along with some pure basis activities in the fourth part.
Part 1 can be found here –> http://scn.sap.com/docs/DOC-46602
Part 2 can be found here –> http://scn.sap.com/docs/DOC-46844
Part 3 can be found here –> http://scn.sap.com/docs/DOC-47062
Applies to:
SAP NetWeaver Business Warehouse (formerly BI). This will also work on SAP BI 3.5 and BI 7.0.
Other popular articles from the same Author:
  1. Points to be considered while integrating BW Bex queries with BO WEBI  –> http://scn.sap.com/docs/DOC-35444
  2. SAP BW 7.3 Promising Features –>  http://scn.sap.com/docs/DOC-30461
A) Occasional Monitoring Activities:
1) Infocube Indexes:
Transaction Code –> RSA1, Manage (of Info cubes)-Performance tab
• Indexes are data structure sorted values containing pointer to records in table.
Indexes are used to improve data reading performance / query performance improvement but decreases data loading/writing performance .We delete/drop them during the data loading to data target and create again after loading finished. Its recommended to include them while designing the process chain. In process chain, before loading the data to cube use the delete index process and load the cube and create index.
• Use transaction RSRV (and RSRVALT) on a regular basis to check Infocubes. Most importantly tag ‘Database’, option ‘Database indices of an infocube and its aggregate’ to check the health of the cube.
• Using the Check Indexes button, you can check whether indexes already exist and whether these existing indexes are of the correct type (bitmap indexes).
Yellow status display: There are indexes of the wrong type
Red status display: No indexes exist, or one or more indexes are faulty
You can also list missing indexes using transaction DB02, pushbutton Missing tables and Indexes under the Diagnostics folder.
• If a lot of indexes are missing, it can be useful to run the ABAP reports SAP_UPDATE_DBDIFF and SAP_INFOCUBE_INDEXES_REPAIR.
2) Temporary tables:
• Run frequently or schedule ABAP report ‘SAP_DROP_TMPTABLES’.   
Remove temporary database objects SAP
• Run frequently or schedule ABAP report ‘RSAN_RTT_CLEAR_TEMP_TABLES’
Delete temporary tables created by analysis process
• Run frequently function module ‘RSDDS_CHANGERUN_TMPTABLS_DEL’
test function module
3) Unused database partitions:
Tools: ABAP ‘SAP_DROP_EMPTY_PARTITIONS’.
• Remove unused and empty partitions in the F- table of Infocubes using the ABAP ‘SAP_DROP_EMPTY_FPARTITIONS’. See note 430486 for further details.
Locate remove unused or empty partitions of F fact cube
4) Log files:
Tools: ABAP ‘SBAL_DELETE’, ‘RSTBPDEL’, ‘RSSM_ERRORLOG_CLEANUP’.
Remove old application logs from the Database.
• Run periodically ‘SBAL_DELETE’ to remove old application logs(see note 456150)
• Run periodically ‘RSTBPDEL’ to remove old database logs(see note 706478)
• Run periodically ‘RSSM_ERRORLOG_CLEANUP’ to remove old error logs(see note 456150)
5) Archieving:
Transaction Code  –> SARA, ABAP ‘RSEXARCA’ (See notes 643541 and 653393 for more details).
Without archieving, unused data is stored in the database and the DSO’s and Infocubes can grow unrestricted. This can lead to deterioration of general performance.
The benefits of BW archieving include:
• Enables you to archive data from InfoCubes and ODS objects and delete the archived data from the BW database. This reduces the data volume and, thus, improves upload and query performance.
• Reduction of online disk storage.
• Improvements in BW query performance.
• Increased data availability as rollup, change runs and backup times will be shorter.
• Reduced hardware consumption during loading and queries.
6) Delete PSA data:
Transaction Code –> RSA15
• Determine a retention period for data in the PSA tables. This will depend on the type of data involved and data uploading strategy. If PSA data is not deleted on a regular basis, the PSA tables go unrestricted. Very large tables increase the cost of data storage, the downtime for maintenance tasks and performance of the data load.
7) Delete change log data:
• For change logs, the deletion can be done from DSO –> Manage –> Environment –> Delete change log data.
SAP BW guide
Deleting change log data
Please note that only already updated change log requests can be deleted and after deletion a reconstruction of requests for subsequent data targets using the DSO change log will not be possible.
8) Delete DTP temporary storage:
This task is only relevant for BI 7.0/7.3.The DTP can be set up from the temporary storage in case of problems.
The deletion of temporary storage can be set from DTP maintenance –> Goto –> settings for DTP Temporary storage –>Delete temporary storage.
SAP BW blog
sap bw display data transfer process
Here you can choose for each DTP:
• For which steps you want to have a temporary storage.
• The level of detail for the temporary storage.
• The retention time of temporary storage.
9) Compression:
Transaction Code –> RSA11
• Info cubes should be compressed regularly (See notes 375132,407260,590370 for more details). Uncompressed cubes increase data volume and have negative effect on query and aggregate build performance. If too many uncompressed requests are allowed to build up in an infocube, this can eventually cause unpredictable and severe performance problems.
B) Pure Basis Activities:
SAP BW basis activities
1) Apply SAP notes / SAP service and support packs / add-on’s:
Transaction Code  –> SNOTE, SAINT, SPAM
• Implement a SAP note on demand.
• Implement SAP service packs on demand. Normal practice is that this will happen twice a year. More frequent if the BW version is rather new and the service packs comes out more frequently, lesser when the BW version is at the end of its life cycle.
• Implement BW add-ons on demand.
• To keep the system up to date, SAP recommends implementing support packages and / or patches into the system landscape on a regular basis. This should prevent already known and fixed bugs affecting your business and you can make use of product improvements. To guarantee an optimal level of support from SAP side, the system has to have an up-to-date status.
• Corrections for BW (front-end, server, plug-in or add-on) are only made available in the before mentioned support packages. With the expectation of individual cases, no description of the correction (table entries, coding) is given in the notes. In general, SAP does not carry out corrections directly in the customer system. It is recommended to apply support package stacks ,which are usually delivered quarterly.(see http://service.sap.com/sp-stacks
2) BW upgrades:
• Upgrade the BW system on demand.
3) Transport:   
Transaction Code  –> STMS
• Import transports to the system on demand.
4) Client copy activities:
Transaction Code  –> RSA13. Restore Source system.
• After a client copy of a connected source system, the connection needs to be restored.
5) Data base and Kernel settings:
Transaction Code  –> RZ10
• Reevaluate the SAP Kernel and Database settings on a yearly basis.
Related Content:
1) How to optimize Reporting Performance
2) Guide to perform efficient system copy for SAP BW Systems
3) Periodic Jobs and Tasks in BW
4) House Keeping activities for Archiving in BW systems
5) House Keeping Task List
6) BW House Keeping and BW PCA

8/23/2017

SAP SAPPFPAR : tools to check SAP Server profile

SAP kernel has a little part called sappfpar. This little program is used to check whether your SAP profile has already well configured or not. It will suggest gave you a suggestion if there are any of your set parameter on SAP profile is not fit or not good enough.

To run this command, you need to log on as adm user. 

Syntax :

adm$sappfpar check pf=/directory_where_profile_reside/profile_to_check

Here are the sample :

host:adm 6> sappfpar check pf=/sapmnt//profile/_DVEBMGS10_host


================================================================================
==   Checking profile:     /sapmnt//profile/_DVEBMGS10_host
================================================================================




Shared memory disposition overview
================================================================
Shared memory pools
 Key:   10  Pool                      
            Size configured.....:   188000000 ( 179.3 MB)
            Size min. estimated.:   185403586 ( 176.8 MB)
            Advised Size........:   188000000 ( 179.3 MB)

 Key:   40  Pool for database buffers  
            Size configured.....:   126000000 ( 120.2 MB)
            Size min. estimated.:   122104088 ( 116.4 MB)
            Advised Size........:   126000000 ( 120.2 MB)

Shared memories inside of pool 10
 Key:       11  Size:      500000 (   0.5 MB) Factory calender buffer    
 Key:       12  Size:     6000000 (   5.7 MB) TemSe Char-Code convert Buf.
 Key:       13  Size:    40500000 (  38.6 MB) Alert Area                
 Key:       14  Size:    20000000 (  19.1 MB) Presentation buffer        
 Key:       17  Size:     2672386 (   2.5 MB) Roll administration        
 Key:       30  Size:       20480 (   0.0 MB) Taskhandler runtime admin.
 Key:       33  Size:    30720000 (  29.3 MB) Table buffer, part.buffering
 Key:       34  Size:    10240000 (   9.8 MB) Enqueue table              
 Key:       51  Size:     3200000 (   3.1 MB) Extended memory admin.    
 Key:       54  Size:    20488192 (  19.5 MB) Export/Import buffer      
 Key:       55  Size:        8192 (   0.0 MB) Spool local printer+joblist
 Key:       57  Size:     1048576 (   1.0 MB) Profilparameter in shared mem
 Key:       58  Size:        4096 (   0.0 MB) Enqueue ID for reset      

Shared memories inside of pool 40
 Key:       42  Size:    10752992 (  10.3 MB) DB TTAB buffer            
 Key:       43  Size:    33414392 (  31.9 MB) DB FTAB buffer            
 Key:       44  Size:     8838392 (   8.4 MB) DB IREC buffer            
 Key:       45  Size:     5766392 (   5.5 MB) DB short nametab buffer    
 Key:       46  Size:       20480 (   0.0 MB) DB sync table              
 Key:       47  Size:    10241024 (   9.8 MB) DB CUA buffer              
 Key:       48  Size:      300000 (   0.3 MB) Number range buffer        
 Key:       49  Size:     2769392 (   2.6 MB) Spool admin (SpoolWP+DiaWP)

Shared memories outside of pools
 Key:        1  Size:        2500 (   0.0 MB) System administration      
 Key:        2  Size:    33600808 (  32.0 MB) Disp. administration tables
 Key:        3  Size:   114048000 ( 108.8 MB) Disp. communication areas  
 Key:        4  Size:      513448 (   0.5 MB) statistic area            
 Key:        6  Size:   638976000 ( 609.4 MB) ABAP program buffer        
 Key:        7  Size:       14838 (   0.0 MB) Update task administration
 Key:        8  Size:   134217828 ( 128.0 MB) Paging buffer              
 Key:        9  Size:   134217828 ( 128.0 MB) Roll buffer                
 Key:       16  Size:       22400 (   0.0 MB) Semaphore activity monitoring
 Key:       18  Size:      917604 (   0.9 MB) Paging adminitration      
 Key:       19  Size:    50000000 (  47.7 MB) Table-buffer              
 Key:       31  Size:     4806000 (   4.6 MB) Dispatcher request queue  
 Key:       41  Size:    25010000 (  23.9 MB) DB statistics buffer      
 Key:       52  Size:       40000 (   0.0 MB) Message Server buffer      
 Key:       62  Size:    85983232 (  82.0 MB) Memory pipes              
 Key:       63  Size:      409600 (   0.4 MB) ICMAN shared memory        
 Key:       64  Size:     4202496 (   4.0 MB) Online Text Repository Buf.
 Key:       65  Size:     4202496 (   4.0 MB) Export/Import Shared Memory
 Key:     1002  Size:      400000 (   0.4 MB) Performance monitoring V01.0
 Key: 58900110  Size:        4096 (   0.0 MB) SCSA area                  

Nr of operating system shared memory segments: 22

Shared memory resource requirements estimated
================================================================
Nr of shared memory descriptors required for
Extended Memory Management (unnamed mapped file).:  8

Total Nr of shared segments required.....:         30
System-imposed number of shared memories.:       1000
Shared memory segment size required min..:  638976000 ( 609.4 MB)
System-imposed maximum segment size......: 35184372088832 (33554432.0 MB)

Swap space requirements estimated
================================================
Shared memory....................: 1475.9 MB
..in pool 10  176.8 MB,   98% used
..in pool 40  116.4 MB,   96% used
..not in pool: 1174.5 MB
Processes........................:  228.8 MB
Extended Memory .................: 4092.0 MB
------------------------------------------------
Total, minimum requirement.......: 5796.7 MB
Process local heaps, worst case..: 1907.3 MB
Total, worst case requirement....: 7704.0 MB

Errors detected..................:    0
Warnings detected................:    0

Popular Posts