Professional Documents
Culture Documents
Agenda
Overview
Multi-dimensional
Row
Clustering (MDC)
Compression
Self-tuning
Memory (STMM)
BLU
Agenda
Overview
Multi-dimensional
Row
Clustering (MDC)
Compression
Self-tuning
Memory (STMM)
BLU
DB Partition 0
DB Partition 1
DB Partition 2
FRA 15 27 ...
AKL 27 13 ...
Coordinator
Agent
Table A
Table B
Partition 0
Subagent
Subagent
Partition 1
Partition 2
scalability
Start
Faster
Reduction
query execution
of time spent for maintenance
Parallel
<SID>#STABD
<SID>#STABI
SAP Basis
Tablespaces
<SID>#ODSD
<SID>#ODSI
SAP NW BW
specific
tablespaces
<SID>#FACTD
<SID>#FACTI
<SID>#DIMD
<SID>#DIMI
SAP
Application Server
Partition 0
(Administration Part.)
SAP
Application Server
Partition 1
(Data Part.)
Partition 2
(Data Part.)
Partition <n>
(Data Part.)
Fact Tables
(<SID>#FACTD, <SID>#FACTI)
NGRP_FACT_<SID>
Dimension
Tables
NGRP_DIM_<SID>
program SAPinst
Add new database partitions
SAP
NW BW
Distribution of InfoCube fact, DataStore object (DSO) and PSA
tables by assigning a data class which is mapped to a
distributed tablespace
Automatic generation of distribution keys ensures even
distribution of data over the database partitions
Functions for checking distribution keys (SAP note 648432)
DBA
Cockpit
Administration and monitoring of database partitions
SAP
Single-system
Dimension table
F fact table
E fact table
Dimension table
Dimension table
Restrictions
Standard DSOs only
Unique Data Records flag not set
for DSO
DSO distributed over at least 4
database partitions
Only applies to records in
activation queue the semantic key
of which occurs only once
Duplicate keys are processed
separately in the standard way
Performance improvement up to
factors compared to SAP NW BW
7.0/7.01
DPF for BW systems > 500 GB and with fact tables, DataStore
object tables and PSA tables with more than 2 million records
Take growth within next 1-4 years into account
Use
Reserve
about 20% of CPU and memory for the database for the
administration partition
Contains SAP basis, master data and dimension tables
All SAP application servers connect to partition 0
1
Table Size
Database Partitions
DB partition 0
On all DB partitions
DB partition 0
On all DB partitions
12
DB partition 0
On all DB partitions
16
DB Partition 0
On 8 data partitions
On all data partitions
24 or 32
DB Partition 0
On 8 data partitions
On all data partitions
Partition 0
(Administration
Partition)
SAP
SAPBasis
Basis
Tables
Tables
Partition 1
(Data
Partition)
Partition 2
(Data
Partition)
Partition 7
(Data
Partition)
Partition 8
(Data
Partition)
BW
BWInfoCube
InfoCubeand
and Aggregate
AggregateFact
Fact Tables
Tables
BW
BWMaster
Master
Data
DataTables
Tables
BW
BWDimension
Dimension
Tables
Tables
BW
BWDataStore
DataStoreTables
Tables
BW
BWPSA
PSATables
Tables
Small
Small BW
BW
Fact,
Fact, DSO,
DSO, PSA
PSA
Tables
Tables
Partition 0
(Administration
Partition)
SAP
SAPBasis
Basis
Tables
Tables
Partition.1
(Data
Partition)
Partition.2
(Data
Partition)
Partition.3
(Data
Partition)
Partition.4
(Data
Partition)
Partition.15
(Data
Partition)
Partition.16
(Data
Partition)
Large
LargeBW
BWInfoCube
InfoCubeand
andAggregate
AggregateFact
Fact Tables
Tables
Large
LargeBW
BWDataStore
DataStoreTables
Tables
BW
BWMaster
Master
Data
DataTables
Tables
BW
BWDimension
Dimension
Tables
Tables
Small
Small BW
BW
Fact,
DSO,
Fact, DSO, PSA
PSA
Tables
Tables
Large
LargeBW
BW PSA
PSA Tables
Tables
Agenda
Overview
Multi-dimensional
Row
Clustering (MDC)
Compression
Self-tuning
Memory (STMM)
BLU
Problem with RID Indexes Not optimized for multiple Key Access
Database
Example
Region
EAST WEST WEST
Year
Example
Region
EAST,2005
WEST,2005
Year
WEST,2006
MDC
Enabled
Locks
MDC
Mark
Synchronous
Asynchronous
index cleanup in DB2 V9.5 (like for rangepartitioning) large delete operations return much faster
MDC Advantages
Clustering
Significant
Reduced
Support
To
be considered:
Risk of high disk space consumption if wrong MDC dimensions are
chosen (too many, too high cardinality)
DB2 V9.1 and DB2 V9.5: Online REORG not supported
Solution in DB2 9.7: free MDC blocks can be returned to tablespace
online (see SAP note 1546414)
REORG TABLE <mdc-table-name> RECLAIM EXTENTS ONLY
ALLOW WRITE ACCESS
PSA, DSO Activation Queue and Change Log tables: Enabled via RSADMIN parameter
DB6_MDC_FOR_PSA=YES
InfoCube Fact tables, DSO Active Table: Manual selection of MDC dimensions during
InfoCube/DSO creation
DB6_MDC_FOR_PSA
MDC for PSA and PSA-like tables (Default NO, changed to YES starting with SAP note
1481572)
DB6_MDC_FOR_AGGREGATES
Aggregates inherit MDC settings from InfoCube if possible (Default YES)
DB6_MAX_MDC_COLS
Maximum number of MDC dimensions that can be selected (Default 3)
Information Management Data Ecosystem DB2 SAP CoE
User
MDC
Generates
Estimates
MDC
30
31
32
34
Fast
deletion of InfoPackages
Fast
Only
DSO
Faster
Fast
InfoCube Compression
Faster
InfoCubes:
160
DSO
log
BUT: deletion from change log only small part of DSO request rollback
process
InfoPackage (#rows)
950.000
203
179
1.500.000
503
406
4.750.000
1.220
1.034
MDC Recommendations
Create
Each
9.7
Use
MDC
Agenda
Overview
Multi-dimensional
Row
Clustering (MDC)
Compression
Self-tuning
Memory (STMM)
BLU
RSADMIN
Parameter DB6_ROW_COMPRESSION
Global
compression variable
VARIABLE <schema>.GLOBAL_COMPRESSION_OPTION
Provides storage compression services to optimize the performance and footprint of your data
Advanced compression features bundled as DB2 Storage Optimization Feature, included in Advanced Enterprise Server edition (and SAP DB2 OEM license)
DB2 9.5
DB2 9.1
- Row Compression
40
- Automatic Dictionary
Creation (ADC)
DB2 9.7
- XML compression
- Temporary table
compression
- Index compression
- LOB inlining
DB2 10
- Adaptive
compression
Thousands
18:37
18:35
18:33
18:31
18:29
18:27
18:25
18:23
18:21
18:19
18:17
18:15
18:13
18:11
18:09
18:07
18:05
18:03
18:01
17:59
17:57
17:55
17:53
17:51
17:49
Significantly less
I/O with
compression
enabled!
40
35
30
25
20
15
10
5
12:02
12:00
11:58
11:56
11:54
11:52
11:50
11:48
11:46
11:44
11:42
11:40
11:38
11:36
11:34
11:31
11:29
11:27
11:25
11:23
11:21
11:19
11:17
11:15
0
11:13
Thousands
DB6_ROW_COMPRESSION=YES
Agenda
Overview
Multi-dimensional
Row
Clustering (MDC)
Compression
Self-tuning
Memory (STMM)
BLU
Agenda
Overview
Multi-dimensional
Row
Clustering (MDC)
Compression
Self-tuning
Memory (STMM)
BLU
Introduction
Test szenario
Results