Académique Documents
Professionnel Documents
Culture Documents
Produced by Wellesley Information Services, LLC, publisher of SAPinsider. 2016 Wellesley Information Services. All rights reserved.
In This Session
Get practical tips and techniques for maintaining and cleaning an SAP BW system for
optimal performance, including PSA optimization, compression, maintaining statistical
cubes, and controlling growth, reducing log file sizes, removing DTP temporary storage,
DTP error logs, and temporary database objects
Reduce the size of an SAP BW system by as much as 70% by taking steps such as
removing PSAs, aggregating, and optimizing InfoCubes, and implementing the new LSA+
+ architecture
See how to clean batch tables and reduce the footprints of un-needed data
Learn how to take advantage of new performance features in SAP BW 7.3 and BW 7.4
This may result in improvements to query speeds for cubes not in BWA or HANA
Explore the use of line item dimensions for fields that are frequently
conditioned in queries. This model change can yield faster queries.
4
High-Cardinality flag for large InfoCubes with more than 10 million rows
Real
Exam
p le
At this company there were 11 InfoCubes with a ratio of more than 30% of the records in the dimensions vs.
fact table
SAP recommends for Indexing and performance reasons to flag these as high-cardinality dimensions.
However, it has minor impact to smaller cubes.
In this example, there were four medium and large InfoCubes that are not following the basic design
guidelines, and subsequently had slow performance
Many companies should redesign large InfoCubes with high-cardinality
to take advantage of the standard performance enhancements available
Real
Exa
mpl e
Outdated indexes can lead to very poor search performance in all queries where
conditioning is used (i.e., mandatory prompts)
The current sampling rates for this example were too low, and statistics should only be
run after major data loads, and could be scheduled weekly
mpl e
For many systems, database statistics are outdated and may cause database performance to
perform significantly poorer than otherwise would be the case. Sampling should often be
changed and process chains may be re-scheduled.
8
Updating DB stats can be done in a weekly job that runs ever weekend.
9
Real
Exam
p le
10
Real
Exa
mpl e
mpl e
While many SD query executions are very fast (13-14 seconds), other reports in
Finance and Inventory Management is very slow
13
Of the total queries executed in the system in April-May 2015, 4,075 were from end-users.
The average query run-time took 39.7 seconds, while some reports took 8-9 minutes to run.
Of the slowest interface, the reports in BEx Web Java was executed 2,809 times and took an
average of 45 seconds to execute. In an HANA environment, the same query would have
completed in an estimated time of 7 second.
Installing HANA could result in 426 hours less waiting for
reports by the business users each year
14
Real
Exam
p le
15
16
17
For BW 7.4 on HANA, SAP has continued to move more of the process intensive functions
from the application to the DB server
18
19
20
For example, an international company had a BW system with over 108TB, with only
38TB in the production box and the remaining data on their Near-Line Storage (NLS)
solution
This cleaned BW system saved them potentially millions of dollars in hardware and
HANA licensing costs
It is not unusual to reduce a BW system size by
20-30% during a cleanup effort
21
1.
2.
3.
4.
5.
6.
If you are on 7.0 SP32 or higher, you can generate an SAP BW Housekeeping task list and get automated help in
cleaning the system weeks before upgrading it
7.
8.
9.
10.
11.
12.
You first have to install the program from SAP Note 1829728 before you can
generate the SAP_BW_HOUSEKEEPING task list using tcode STC01
22
Keep your Persistent Staging Tables (PSA) clean. BTW: The PSA is often not needed at all in BW
7.4.
If you are on BW 7.3 Service Pack 8 and HANA with at least Service Pack 5, the write-optimized
DSOs and PSAs are flagged as early unload from the HANA memory. This will help you keep
the system smaller and require less memory.
In HANA 1.0 SP-10 we got dynamic tiring that automatically manages objects in memory/disk
You can also flag other InfoCubes, DSOs, tables, and partition them
as not active. If you do so, they will only be loaded into memory when actually required.
The sizing program in SAP Note 1736976 takes these size savings
settings into account when sizing your HANA system
24
25
26
27
5.
6.
Clean the Persistent Staging Area (PSA) for data already loaded to DSOs.
Delete the Aggregates (summary tables). They will not be needed again.
Compress the E and F tables in all InfoCubes. This will make InfoCubes much smaller.
Remove data from the statistical cubes (they start with the technical name of 0CTC_xxx).
These contain performance information for the BW system running on the relational
database. You can do this using the transaction RSDDSTAT or the program
RSDDSTAT_DATA_DELETE to help you.
Look at the log files, bookmarks, and unused BEx queries and templates (transaction
RSZDELETE).
Remove as much as possible of the DTP temporary storage, DTP error logs, and
temporary database objects. Help and programs to do this are found in SAP Notes
1139396 and 1106393.
28
For write-optimized DSOs that push data to reportable DSOs (LSA approach),
remove data in the write-optimized DSOs. It is already available in higher-level
objects.
8.
Migrate old data to Near-Line Storage (NLS) on a small server. This will still provide
access to the data for the few users who infrequently need to see this old data. You will
also be able to query it when BW is on HANA, but it does not need to be in-memory.
9.
Remove data in unused DSOs, InfoCubes, and files used for staging in the BW system.
This includes possible reorganization of master data text and attributes using process
type in RSPC.
29
You may also want to clean up background information stored in the table RSBATCHDATA. This
table can get very big if not managed. You should also consider archiving any IDocs and clean the
tRFC queues. All of this will reduce the size of the HANA system and help you fit the system
tables on the master node.
11.
In SAP Note 706478, SAP provides some ideas on how to keep the Basis tables from growing too
fast in the future; if you are on Service Pack 23 on BW 7.0 or higher, you can also delete unwanted
master data directly (see SAP Note 1370848).
12.
Finally, you can use the program RSDDCVER_DIM_UNUSED to delete any unused dimension
entries in your InfoCubes to reduce the overall system size.
30
31
32
In this demo we will explore the BW 7.4 on HANA DBA Cockpit Features
33
34
35
Many refer to this optional step as a functional migration and do this after the HANA migration has been completed,
often as a separate initiative (see SAP Note 1849497)
36
This
The
means that data activations are done much faster at the HANA database layer
You can also simulate the data flow before you do the real
conversion. When doing so, data is loaded for both versions (3.x
and 7.x) of the dataflows and the results are stored in cluster
tables. The data is then compared to verify that the dataflow after
migration calculates the same data as it did before migration.
Since the differences are displayed separately, you can analyze the
results and changes in details
38
39
40
Acquisition layer
Harmonization/quality layer
Propagation layer
Business transformation layer
Reporting layer
Virtualization layer
41
BW
DATA
ACQUISITION
CORPORATE
MEMORY
Germany
DATA
PROPAGATION
Germany
BUSINESS
TRANS.
FLEXIBLE
REPORTING
Germany
Germany
DIMENSIONAL
REPORTING
Germany
6 LSA Layers
Europe
(excl.Germany)
Europe
(excl.Germany)
Europe
(excl.Germany)
Europe
(excl. Germany)
Europe
(excl. Germany)
Europe 2
Europe 2
Europe 2
Europe 2
ERP Table
Europe 2
Europe 3
Data Source
41 total
Transferobjects
Rule
Info Source
Europe 3
Europe 3
Europe 3
Data
Acquisition
Europe 3
USA
USA
USA
USA
USA
Americas 1
Americas 1
Americas 1
Americas 1
Americas 1
8 semantic partitions
Americas 2
Americas 2
Americas 2
Americas 2
Americas 2
Asia
Asia
Asia
Asia
Asia
42
BW
DATA
ACQUISITION
CORPORATE
MEMORY
DATA
PROPAGATION
BUSINESS
TRANS.
FLEXIBLE
REPORTING
DIMENSIONAL
REPORTING
Remove
3 LSA layers
ERP Table
Europe
Europe
Europe
Americas
Americas
Americas
Asia
Asia
Data Source
Transfer Rule
Info Source
Asia
41 shrinks to 9
total objects
Remove 5 semantic
partitions
43
Real
Exam
p le
GL Summary Cube
(FIGL_C03)
Consolidation Cube
(OC_CON)
Consolidation Processes:
1) Clearing
2) Load
3) Foreign Exchange
4) Eliminations
5) Optimizations
Conformed
Reportable
DSO
FIGL_D21
FIGL_D20
FIGL_D17
FIGL_D14
FIGL_D18
Write
Optimized
DSO
FIGL_D15S
FIGL_D13S
FIGL_D10S
FIGL_D08
FIGL_D11S
ECC 6.0
North-America
ECC 4.7
Latin-America
R/3 3.1i
EU
ECC 4.7
ASIA
44
The fix to this system included removing the conformed DSO layer, with BEx flags for
DataStores that are never reported on
Also, the BPC Staging cube served
little practical purpose since the data is
Consolidation Processes:
1) Clearing
2) Load
already staged in the GL Summary cube
3) Foreign Exchange
4) Eliminations
and the logic can be maintained in the
5) Optimizations
load from this cube directly to the
Real
consolidation cube
Exam
p le
Consolidation Cube
(OC_CON)
GL Summary Cube
(FIGL_C03)
Write
Optimized
DSO
FIGL_D15S
FIGL_D13S
FIGL_D10S
FIGL_D08
FIGL_D11S
ECC 6.0
North-America
ECC 4.7
Latin-America
R/3 3.1i
EU
ECC 4.7
ASIA
45
If a query has restrictions on this characteristic, the OLAP processor is already checked to see which
part of the cubes can return data for the query. The data manager can then completely ignore the
remaining cubes.
An entry in RRKMULTIPROVHINT only makes sense if a few attributes of this characteristic
(that is, only a few data slices) are affected in the majority of, or the most important, queries
46
DataStores and InfoCubes are allowed to grow over time, the data load and query performance
suffers
Normally
objects should be physically partitioned when the numbers of records exceed 100 200 million
However,
this may be different depending on the size of your hardware and the type of database you use
In
SAP BW 7.3 we get an option to create a Semantic Partitioned Object (SPO) through wizards
You
can partition based on fields such as calendar year, region, country, etc.
47
When an SPO is created, a reference structure keeps track of the partitions. The structure is
placed in the MultiProvider for querying.
49
Bjarne Berg and Penny Silvia, Introduction to SAP HANA (3rd Edition) (SAP PRESS, 2014).
http://scn.sap.com/docs/DOC-35096
Michaela Pastor, SAP Business Warehouse 7.4 (SCN, November 2014).
http://help.sap.com/nw_platform
SAP NetWeaver 7.4 on the SAP Help Portal
www.stechno.net/sap-notes.html?view=sapnote&id=153967
SAP BI content release note for BW 7.4
50
SAP BW 7.4 is the first release to take full advantage of SAP HANA
Some of the functions in 7.4 are also available to non-HANA customers
The new CompositeProviders and the Open ODS View make HANA and BW
tightly integrated and capable to support EDWs better
You should break from the past and start designing with the new BW 7.4
features in mind
The new monitoring features in the BW DBA Cockpit and the HANA systems
make it much easier to see what is occurring from a database level for the
non-basis team
Before you size your system, clean it up and save hardware costs
All customers should consider the BW move to HANA in 2016!
51
Your Turn!
Disclaimer
SAP and other SAP products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of SAP SE (or an SAP affiliate company) in Germany and other
countries. All other product and service names mentioned are the trademarks of their respective companies. Wellesley Information Services is neither owned nor controlled by SAP SE.
53