Documente Academic
Documente Profesional
Documente Cultură
Content
1 SUMMARY...............................................................................................................................................................4
2 ACTIVITIES.............................................................................................................................................................4
2.1 MONITORING......................................................................................................................................................4
2.2 SYSTEM HEALTH.................................................................................................................................................4
2.3 PERFORMANCE...................................................................................................................................................5
2.4 FREE SPACE........................................................................................................................................................5
2.5 CHANGES............................................................................................................................................................5
3 MONITORING.........................................................................................................................................................6
3.1 BATCH JOBS........................................................................................................................................................6
3.2 DATA LOADS.......................................................................................................................................................6
3.3 REPORT ABILITY OF DATA...................................................................................................................................6
3.4 MISSING INDEXES...............................................................................................................................................7
3.5 FREE SPACE........................................................................................................................................................8
3.6 ABAP DUMPS.....................................................................................................................................................9
3.7 SYSTEM LOGS...................................................................................................................................................10
3.8 INTERNET GRAPHIC SERVER (IGS)...................................................................................................................10
3.9 AGGREGATES....................................................................................................................................................11
3.10 QUERY PERFORMANCE.....................................................................................................................................11
3.11 DATABASE BACKUPS.........................................................................................................................................11
3.12 BW STATISTICS.................................................................................................................................................11
4 SYSTEM HEALTH................................................................................................................................................12
4.1 INACTIVE BW OBJECTS....................................................................................................................................12
4.2 QUERY CONSISTENCY.......................................................................................................................................12
4.3 SOURCE SYSTEM CONNECTIONS.......................................................................................................................12
4.4 REORGANIZE UNSED WORKBOOKS AND FAVOURITES.......................................................................................13
4.5 TRFC ENTRIES..................................................................................................................................................13
4.6 UNREFERENCED OBJECTS.................................................................................................................................14
4.7 INFOOBJECTS....................................................................................................................................................14
4.8 DATASOURCE REPLICATION AND TRANSFER RULES ACTIVATION......................................................................15
4.9 USER ID’S........................................................................................................................................................15
4.10 UNUSED QUERIES.............................................................................................................................................15
4.11 SYSTEM RESTART..............................................................................................................................................16
4.12 EARLY WATCH REPORT.....................................................................................................................................16
5 PERFORMANCE...................................................................................................................................................16
5.1 DATABASE AND SAP STATISTICS......................................................................................................................16
5.2 UNUSED DIMENSION TABLE ENTRIES................................................................................................................17
5.3 BW STATISTICS.................................................................................................................................................17
5.4 INFOCUBE INDEXES..........................................................................................................................................17
5.5 READ MODE OF QUERIES AND INFOCUBES.......................................................................................................18
6 FREE SPACE..........................................................................................................................................................18
Chapter 2 describes the activities that ‘BW operations’ needs to take care of.
Chapter 7 describes in more detail all activities related to changes to the BW landscape
Appendix A: SAP kernel and database settings that need to be taken into account for good performance.
Appendix B: one-time actions to be taken to assure the correct working and proper performance.
2 Activities
Abbreviations:
o BW: BW operations team
o SB: SAP BASIS team
o MO: System management / Managed Operations
2.1 Monitoring
Description Freq. Who
Batch jobs daily BW / SB
Data loads: InfoPackages, InfoPackage groups and process chains daily BW
Report ability of data loads in InfoCubes and ODS objects daily BW
Missing indexes in the database daily BW
Database free space daily BW / SB
ABAP dumps daily BW / SB
System logging daily BW / SB
Internet Graphic Server (IGS) daily BW
Aggregates: status / usage monthly BW
Query performance, perform corrective actions monthly BW
Monitor if database backups have been made daily BW /
SB / MO
Monitor if the server has been restarted on a weekly basis weekly BW /
SB / MO
Check if all InfoProviders are still BW statistics relevant, so the OLAP time etc. will weekly BW
be updated in the BW statistics InfoCubes
For a list of tools to perform correct monitoring, see chapter 3.
2.3 Performance
Description Freq. Who
Optimize database and SAP statistics for better performance weekly BW / SB
Delete unused dimension table entries of InfoCubes weekly BW
Evaluate BW statistics for query and load performance monthly BW
Drop / recreate indexes on InfoCubes quarterly BW
Read mode of queries and InfoCubes monthly BW
For a list of tools for performance checking, see chapter 5.
2.5 Changes
Description Freq. Who
Apply SAP notes / SAP service packs / add-on’s - SB
BW upgrades - SB / MO
Transports - BW / SB
Client copy activities - BW / SB /
MO
Check database and SAP kernel parameters - SB / MO
For a list of tools for handling changes, see chapter 7.
Check with tx SM37 all batch jobs that have status ‘Canceled’. Try to solve the issue, perhaps by rerunning
the batch job.
In ODS SAPP_O01 2 data request are not booked to their data targets.
Example:
o Make sure there are no database indexes missing other than the ones that are dropped to speed up
data loads into an InfoCube. Perform this test multiple times a day. If InfoCube indexes stay missing,
create them via the maintenance screen of InfoCubes, Performance tab.
Example:
o Make sure that there’s enough database space free for the system. How much needs to be free,
depends on the system. The table space that contains the BW related data should have at least 30GB,
depending on how much data is added on a daily basis. If there’s not enough free space, it’s a good
idea to start deleting unused PSA packages. If that is not possible, start the process of adding more disk
space to the application.
Example:
In this example there are no Space-critical objects and the Total free/kb is about 33% of the database size.
In this example the main table space PSAPBWP is free for 33%. No problem here.
o Try to solve recurring problems in the system log. Apply SAP notes if needed.
o Check if the IGS is still operational using ABAP ‘BW_IGS_CHART_TEST’. If not fix it.
Aggregates should boost query performance on an InfoCube, but also cost time to activate master data and
load performance to fill them. An aggregate should not be created lightly: there has to be a good reason for
it’s existence.
o Check the usage of aggregates. Determine that the aggrgate is actually used or useful for filling other
aggregates. If not, delete the aggregate. If an aggregate is activated, but not filled, remove it.
o Run a BW statistics report to show the top 25 of worst performing queries. Improve their performance.
3.13 BW statistics
Tool: tx RSA1, Tools, BW statistics for InfoProviders, tx ZWEEKLY option 22
o Make sure all InfoProviders are switched on for BW statistics collection, the OLAP as well as the
warehouse management part. If the collection is switched on performance valuations can be made.
Example:
4 System health
4.1 Inactive BW objects
Tool: tx ZDAILY, ABAP ‘RS_TRANSTRU_ACTIVATE_ALL’, transports
In a BW some object can become inactive due to some reasen. If update rules become inactive it’s
impossible to load data via them anymore.
If transfer rules are inactive, they can be activated without transport via ABAP
‘RS_TRANSTRU_ACTIVATE_ALL’. All other inactive objects should be repaired by transport rather than
activating them in the system itself (via opening it).
o Make sure there are no queries with duplicate names. Run ABAP
‘RENAME_DUPLICATE_ELEMENTS’ to correct any inconsistencies. See not 541024 for further
details.
Queries become inactive (and inconsistent) if something changes to their InfoProvider. Sometimes a
characteric is deleted from the InfoCube, but a certain query is not changed. Result: de query won’t run
naymore.ZDAILY will show all those inactive queries. Queries can be compiled via RSRT or via ABAP
‘RSR_GEN_DIRECT_ALL_QUERIES’. If a query doesn’t compile, fix it in BW-D.
o Make sure all source system connections are consistent and active. If not, repair the connection or
remove it.
Inconsistent source system connections make it impossible to load data. Example of inconsistent
connections (in this case connection INFORDEV):
o Run ABAP report ‘RSWB_ROLES_REORG’ to delete workbooks not assigned to any role or favorites.
When users or authorization roles are deleted, workbooks linked to roles of favourites get unreferenced and
cannot be called anymore. The mentioned ABAP will remove via a selection screen all relations.
o Clean up transactional RFC’s from cancelled loads in all BW- and connected systems.
When a data loads cancels, some residu’s are left behind in the system(s). One of those residue’s are
tRFC’s. SM58 shows those tRFC’s and offers a reorganize (delete) option.
Cleanup unreferenced / inconsistent objects in the database in the most broadest sense of the word.
Run ABAP ‘SAP_PSA_ZEROCORRECT’ to correct PSA table with partition number 0. Sometimes a
correction can be made, so the data is still available. If this correction cannot be made, the content is
deleted.
4.7 InfoObjects
Tool: tx RSD1 F8, tx ZWEEKLY option 10, ABAP ‘RSDMD_CHECKPRG_ALL’, ABAP
‘RSDG_IOBJ_REORG’
o Check the consistency of the content of the master data and text tables of InfoObjects and repair any
inconsistencies.
Run frequently ABAP ‘RSDMD_CHECKPRG_ALL’ to check the consistency of all InfoObjects and repair
inconsistencies. See note 447341 for further details.
Run ABAP ‘RSDG_IOBJ_REORG’ to check the consistency of all InfoObjects and repair any
inconsistencies to the definitions.
o To avoid problems in uploads, replicate all datasources of all connected source systems, and afterwards
regenerate all transfer rules of all source systems.
o Lock all users that haven’t logged on to the system in the last 3 months
o Delete all users from the system that haven’t logged on for the last 6 months.
o Run tx SDCC for an unedited version of the SAP Early Watch report. Try to solve the recommendations.
For Oracle databases, run the BRCONNECT script to calculate good database statistics. Use tx DB14 to
view the result of the batch job. If the job aborts or runs too long like in the next example, double click on the
line to review the joblog.
Job on basis of ‘SAP_ANALYZE_ALL_INFOCUBES’ (note 129252): run once a week to collect good SAP
statistics on InfoCubes.
Use transaction RSRV (and RSRVALT) on a regular basis to check InfoCubes. Most importantly tag
‘Database’, options ‘DB statistics of an InfoCube and its aggregates’ to check the health of an InfoCube
5.3 BW statistics
Tool: BW statistics queries
o Drop indexes on all InfoCubes, and recreate them. Suggestion: change the first and next extent sizes of
the InfoCube F-, E- and dimension tables (with SE14).
Use transaction RSRV (and RSRVALT) on a regular basis to check InfoCubes. Most importantly tag
‘Database’, option ‘Indices of an InfoCube and its aggregate’ to check the health of an InfoCube.
o Switch the read mode of InfoCubes and queries to type ‘H’ (tx RSRT and RDMD). Also check regularly if
the read mode stays ‘H’ for new InfoCube / query developments. See notes 422527.
6 Free space
6.1 Unsed database partitions
Tool: tx ZWEEKLY option 01, ABAP ‘SAP_DROP_EMPTY_FPARTITIONS’, ABAP ‘ZBW0005’
Run frequently ABAP ‘SAP_DROP_EMPTY_FPARTITIONS’. See note 430486 for further details.
Or run ABAP ‘ZBW0005’ to check all InfoCubes in one run. Corrections still needs to be carried out with
ABAP ‘SAP_DROP_EMPTY_FPARTITIONS’.
o Run frequently or schedule ABAP report ‘SAP_DROP_TMPTABLES’. See notes 308533, 449841 for
further details
6.3 Log-files
Tool: tx ZWEEKLY options 061, 062 and 063, ABAP ‘SBAL_DELETE’, ABAP ‘RSTBPDEL’, ABAP
‘RSSM_ERRORLOG_CLEANUP’
o Run periodically ABAP ‘RSSM_ERRORLOG_CLEANUP’ to remove old error logs (note 456150).
o Run periodically ABAP ‘RSTBPDEL’ to remove old database table logs (note 706478).
o Run periodically ABAP ‘SBAL_DELETE’ to remove old application logs (note 456150).
6.4 Archiving
Tool: tx SARA, tx ZWEEKLY option 11, ABAP ‘RSEXARCA’
Archive the BW related IDoc’s with transaction SARA or ABAP report ‘RSEXARCA’.
6.6 Compression
Tool: tx ZWEEKLY option 21, tx RSA11
o Compress as much and soon as possible. See notes 375132, 407260, 590370 for further details
6.7 BW statistics
Tool: tx RSA1, Tools, BW Statistics for InfoProviders, F7
Example:
7.2 BW upgrades
o Upgrade the BW system on demand.
7.3 Transport
Tool: tx STMS
o After a client copy of an connected source system, the connection needs to be restored
Switch on the correct Oracle statistics calculation table RSADMIN, parameter ORA_DMBS_STATS value 3
(see note 351163)
Create a daily backup of the database. Schedule the job on a daily basis.
Switch MultiProvider reporting to parallel in table RSADMIN (parameter MP_IMPL_MAP, note 907246)
Schedule ABAP RSIMPCURR on a daily basis to get the latest exchange rates
Schedule ABAP RSIMPCUST to run weekly in order to get the latest currency and unit of measurement
definitions.
Schedule ABAP RSIMPCUST to run weekly in order to get the latest factory calendars.