Real World Experience Oracle 12c In-Memory and SAP BW

40

Transcript of Real World Experience Oracle 12c In-Memory and SAP BW

Page 1: Real World Experience Oracle 12c In-Memory and SAP BW
Page 2: Real World Experience Oracle 12c In-Memory and SAP BW

Copyright©2016,Oracleand/oritsaffiliates.Allrightsreserved.|

RealWorldExperienceOracle12cIn-MemoryandSAPBWhowtoachievesuperiorperformance,....

JuergenMuellerDirectorSoMwareDevelopmentRealWorldPerformance–SAP,November,2016

Page 3: Real World Experience Oracle 12c In-Memory and SAP BW

Copyright©2016,Oracleand/oritsaffiliates.Allrightsreserved.|

SafeHarborStatementThefollowingisintendedtooutlineourgeneralproductdirecUon.ItisintendedforinformaUonpurposesonly,andmaynotbeincorporatedintoanycontract.Itisnotacommitmenttodeliveranymaterial,code,orfuncUonality,andshouldnotberelieduponinmakingpurchasingdecisions.Thedevelopment,release,andUmingofanyfeaturesorfuncUonalitydescribedforOracle’sproductsremainsatthesolediscreUonofOracle.

3

Page 4: Real World Experience Oracle 12c In-Memory and SAP BW

Copyright©2016,Oracleand/oritsaffiliates.Allrightsreserved.|

RealWorldPerformanceDOAG2016Thisyear’sObservaUons

•  AlmostobsessivebeliefthatplaZormtuning/selecUonwillsolveallperformanceproblems

•  Almostasmuchfocusonotheraspectsthatdeliverincrementalgains

•  Veryli\leworkonalgorithmicandarchitecturechangesthatyieldorderofmagnitudegains

4November15,2016

Page 5: Real World Experience Oracle 12c In-Memory and SAP BW

Copyright©2016,Oracleand/oritsaffiliates.Allrightsreserved.|

RealWorldPerformanceWheretoGetmoreRealWorldPerformance

•  Seeonlinevideolibrary

•  h\p://www.oracle.com/goto/oll/rwp

5November15,2016

Page 6: Real World Experience Oracle 12c In-Memory and SAP BW

Copyright©2016,Oracleand/oritsaffiliates.Allrightsreserved.|

ProgramAgenda

Oracle12cIn-MemoryandSAPApps

Oracle12cIn-MemoryToolkitforSAPBW

RealWorldIn-MemoryResults

Whatisnext?–SAPECC,SAPSRM,…

Summary

1

2

3

4

6

5

Page 7: Real World Experience Oracle 12c In-Memory and SAP BW

Copyright©2016,Oracleand/oritsaffiliates.Allrightsreserved.|

Oracle12cIn-MemoryandSAPApplicaUons

• Oracle12cIn-MemoryisreleasedforALLSAPApplicaUons– SAPECC,SAPCRM,SAPSCM– SAPBW– Andalltheothers,…

•  SeeSAPNote2178980– UsingOracleDatabaseIn-MemorywithSAPNetWeaverbasedProducts

7

Page 8: Real World Experience Oracle 12c In-Memory and SAP BW

Copyright©2016,Oracleand/oritsaffiliates.Allrightsreserved.|

Real-World-PerformanceOracle12cIn-MemoryandSAPApplicaUons

In-MemoryenablesReal-TimeReporCngonOLTPAppdirectly!–  LikeECC,ECC–COPA,ECC-GL,CRM,SRM,…

–  NoneedtopayforReplicaConSoQwareLicenses(akaSLT),ExtraSidecarHW,..…

However,

•  KnowyourDatabaseSchema

•  IdenUfy/CreateReal-TimeReportstoansweryourbusinessquesUon

•  MapReporttoTablestobealteredforIn-Memory

•  VerifyQueryexecuUonplansbeforeandaMer-ALWAYS

HowtoapplyIn-MemorytoOLTPlikeApplicaCons?

8

Page 9: Real World Experience Oracle 12c In-Memory and SAP BW

Copyright©2016,Oracleand/oritsaffiliates.Allrightsreserved.|

Oracle12cIn-MemoryandSAPApplicaUons

•  FlatCubes(areONLYIn-Memoryavailable)– ConvertInfoCubesintoFlatCubes–SAPNote2335159– FlatCubesuselesscumbersomeloadprocess– FlatCubesisthesameschemaasHANAuses

• Oracle12cIn-MemoryToolkitforSAPBW– ForanyDataStoreObject(DSO)orFlatCube– ForanyInfoCube(regardlessifInfoCubeisSPOornot)– ForanySAPNetWeaverVersion7.x

HowtoapplyIn-MemorytoOLAPakaSAPBW?

9

Page 10: Real World Experience Oracle 12c In-Memory and SAP BW

Copyright©2016,Oracleand/oritsaffiliates.Allrightsreserved.|

ProgramAgenda

Oracle12cIn-MemoryandSAPApps

Oracle12cIn-MemoryToolkitforSAPBW

RealWorldIn-MemoryResults

Whatisnext?–SAPECC,SAPSRM,…

Summary

1

2

3

4

10

5

Page 11: Real World Experience Oracle 12c In-Memory and SAP BW

Copyright©2016,Oracleand/oritsaffiliates.Allrightsreserved.|

Oracle12cIn-MemoryToolkitforSAPBWODS,InfoCubeandFlatCubepriorto7.40SP14–AvailableNOW

AStructuredApproach–OracleIn-MemoryToolkitWhatyouneedtodo:•  IdenUfyBusinessquery/quesUontoaccelerate•  IdenUfyInfo-ProvidersWhattheToolkitdoesforyou:

BasedonSAPBWObject:•  IdenUfiesallfact-,dimension-andSID-tablestoInfo-Provider•  GeneratesallneededSQLscriptstoalterobjectsandloaddatamodel•  GeneratesSQLscripttogeneratequeryexecuUonplans&SQLMonitorfilesofTopqueriesperobject•  GeneratesQueriesusagestaUsUcs

Page 12: Real World Experience Oracle 12c In-Memory and SAP BW

Copyright©2016,Oracleand/oritsaffiliates.Allrightsreserved.|

Oracle12cIn-MemoryToolkitforSAPBWHowtoworkwiththeToolkit?

DecideonhighestPrioritySAPBW

Object

CollectcurrentPerformanceDataofSAPBWObject

ApplyIn-MemorytoSAPBWObject

CollectPerformanceDatawithIn-Memory

VerifyExecuUonPlanandStaUsUcs

GotonextSAPBWObject

Page 13: Real World Experience Oracle 12c In-Memory and SAP BW

Copyright©2016,Oracleand/oritsaffiliates.Allrightsreserved.|

SAPObjectName

InfoCube:IC13

Generatedscripts:

Oracle12cIn-MemoryToolkitforSAPBWExample

Page 14: Real World Experience Oracle 12c In-Memory and SAP BW

Copyright©2016,Oracleand/oritsaffiliates.Allrightsreserved.|

Oracle12cIn-MemoryToolkitforSAPBW

•  LoadonlyspecificSAPBWObjectIn-Memory• GenerateSQLScriptsto

Features

ALTER SAPBWObject

ByObjectName

GENERATE MaterializedView

ByObjectName

VERIFY AMerVERIFY Before

Page 15: Real World Experience Oracle 12c In-Memory and SAP BW

Copyright©2016,Oracleand/oritsaffiliates.Allrightsreserved.|

Oracle12cIn-MemoryToolkitforSAPBWExample

ALTERforIn-Memory

ALTERforNOIn-Memory

Page 16: Real World Experience Oracle 12c In-Memory and SAP BW

Copyright©2016,Oracleand/oritsaffiliates.Allrightsreserved.|

Oracle12cIn-MemoryToolkitforSAPBWHowtoworkwiththeToolkit

Runcr_plan.sql

•  Xxxx_sm.sqlàgenerateSQLMonitorfiles•  Xxxxx_query_stats.lstàTextfileofquerystats•  Xxxx_plan.sqlàgenerateExecuUonplans

DecideonhighestPrioritySAPBW

Object

CollectcurrentPerformanceDataofSAPBWObject

ApplyIn-MemorytoSAPBWObject

CollectPerformanceDatawithIn-Memory

VerifyExecuUonPlanandStaUsUcs

GotonextSAPBWObject

Runcr_scripts.sql

•  Xxxx_on.sqlàALTERTABLEFORIn-Memory•  Xxxxx_off.sqlàALTERTABLEFORNOIn-Memory•  Xxxxx_crmvf.sqlàCREATEMATERIALIZEDVIEW

Runcr_plan.sql

•  Xxxx_sm.sqlàgenerateSQLMonitorfiles•  Xxxxx_query_stats.lstàTextfileofquerystats•  Xxxx_plan.sqlàgenerateExecuUonplans

Page 17: Real World Experience Oracle 12c In-Memory and SAP BW

Copyright©2016,Oracleand/oritsaffiliates.Allrightsreserved.|

•  GeneratedStaUsUcsforTopQueriesofanInfoCube

Oracle12cIn-MemoryToolkitforSAPBWExample–CapturedQuery InfoCubeQuery

AccessUmesSQL-ID

ForTest–VerificaUon:Queryreadytobeexecuted

Page 18: Real World Experience Oracle 12c In-Memory and SAP BW

Copyright©2016,Oracleand/oritsaffiliates.Allrightsreserved.|

InfoCubeQuery

/wBitmapIndexAccessPartI

SeeJoinsbetweenFact–DIM

–SID

Oracle12cIn-MemoryToolkitforSAPBWInfoCube/wBitmapIndexes–partI–CapturedExecuConPlanbytheToolkit

Page 19: Real World Experience Oracle 12c In-Memory and SAP BW

Copyright©2016,Oracleand/oritsaffiliates.Allrightsreserved.|

InfoCubeQuery

/wBitmapIndexAccessPartII

SeeJoinsbetweenFact–DIM

–SID

Oracle12cIn-MemoryToolkitforSAPBWInfoCube/wBitmapIndexes–partII–CapturedbytheToolkit

Page 20: Real World Experience Oracle 12c In-Memory and SAP BW

Copyright©2016,Oracleand/oritsaffiliates.Allrightsreserved.|

InfoCubeQuery

/wIn-MemoryAccess

Joins

Fact-Dim-SIDTables

Oracle12cIn-MemoryToolkitforSAPBWInfoCubeIn-Memory–CapturedExecuConPlanbytheToolkit

In-MemoryAccess

BloomFilter

Usage

Page 21: Real World Experience Oracle 12c In-Memory and SAP BW

Copyright©2016,Oracleand/oritsaffiliates.Allrightsreserved.|

ODSQuery/wIn-Memory

Access

Oracle12cIn-MemoryToolkitforSAPBWDSOIn-Memory–CapturedExecuConPlanbytheToolkit

Page 22: Real World Experience Oracle 12c In-Memory and SAP BW

Copyright©2016,Oracleand/oritsaffiliates.Allrightsreserved.|

InfoCubeQuery/w

BitmapAccess

Joins

betweenFact-

Dim-SID

Oracle12cIn-MemoryToolkitforSAPBWInfoCube/wBitmapIndexes–SQLMonitorfilegeneratedbyToolkit

Page 23: Real World Experience Oracle 12c In-Memory and SAP BW

Copyright©2016,Oracleand/oritsaffiliates.Allrightsreserved.|

Oracle12cIn-MemoryToolkitforSAPBW

•  GenerateMVbySAPObjectname–  InfoCube,DSOandFlatCube

•  GenerateMVSQLScriptsforenUreSAPPrefix(e.g./BIC/,/BI0/,..)

•  GenerateOpUmizedMVby–  JoiningtononSAPBWstandardtables–  ColumnvalidaUon->opUmizesize,minimizeaccessUme

•  RebuildMVaMerDataloadaspartofnormalSAPProcessChain

MaterializedViewIn-Memory

23

DropIndexes LoadData CreateIndexes CreateMV

23

~85%normalSAPLoadProcess ~15%oftotalUme

Page 24: Real World Experience Oracle 12c In-Memory and SAP BW

Copyright©2016,Oracleand/oritsaffiliates.Allrightsreserved.|

Oracle12cIn-MemoryToolkitforSAPBWWhyMaterializedViewIn-Memory?

Fact

D1

D7

DnS

S

S S S

S

S

S

S

S

S

S

D3S

S S

SD2

S

SS

S

D4

S

S S

S

D5S

S S

S

D6S

S S

S

SS

S

•  MVpresentaUonde-normalizesextendedStar•  inoneTableandColumnarFormat

•  MostefficientDataAccessviaopUmizedColumnStore

•  MVmakescustomIndexesobsolete•  SaveStorage•  IndexMaintenanceOverhead

Fact-Columns Dim-Col. SID-Col.

OracleColumnStore

Page 25: Real World Experience Oracle 12c In-Memory and SAP BW

Copyright©2016,Oracleand/oritsaffiliates.Allrightsreserved.|

Oracle12cIn-MemoryToolkitforSAPBWInfoCube/wIn-MemoryMV–GeneratedbyToolkit

InfoCubeQuery/wIn-MemoryMVAccess

Page 26: Real World Experience Oracle 12c In-Memory and SAP BW

Copyright©2016,Oracleand/oritsaffiliates.Allrightsreserved.|

ProgramAgenda

Oracle12cIn-MemoryandSAPApps

Oracle12cIn-MemoryToolkitforSAPBW

RealWorldIn-MemoryResults

Whatisnext?–SAPECC,SAPSRM,…

Summary

1

2

3

4

26

5

Page 27: Real World Experience Oracle 12c In-Memory and SAP BW

Copyright©2016,Oracleand/oritsaffiliates.Allrightsreserved.|

Oracle12cIn-MemoryforSAPBW

Customer:USbasedFoodmanufacturer

DataStoreObject

27

Object/Query/Rowsprocessed NoIn-MemoryElapsedTime[s]

In-MemoryElapsedTime[s] Improvement

FIGL/Q1/68,519,427 303.00 146.80 2x

FIGL/Q2/6,224,938 45.45 13.5 3x

FIGL/Q3/68,519,427 141.63 4.46 32x

FIGL/Q4/6,224,938 35.26 0.48 73x

FIGL/Q5/465,269 31.03 11.05 3x

COPA/Q1/473,488 32.27 .66 49x

COPA/Q2/7,652,596 291.87 9.48 31x

COPA/Q/6,353,578 339.10 8.63 39x

Page 28: Real World Experience Oracle 12c In-Memory and SAP BW

Copyright©2016,Oracleand/oritsaffiliates.Allrightsreserved.|

Oracle12cIn-MemoryforSAPBW

*NoMVresultavailable1Issue:CardinalitymisesUmateonDimensionTable

Customer:USRetailer

InfoCube

28

Query/Rowsreturned

NoIn-MemoryElapsedTime[s]

In-MemoryElapsedTime[s]

In-MemoryFlatCube

ElapsedTime[s]

In-MemoryMVElapsedTime[s]

Q1/903 1061.0 3.8 4.7 4.7

Q2/78,379 119 31 22.2 21.5

Q3/20649 70.5 8.9 7.1 --*

Q4/7231 78 120.01 2.0 1.0

Q5/49 66.0 13.0 2.5 --*

Page 29: Real World Experience Oracle 12c In-Memory and SAP BW

Copyright©2016,Oracleand/oritsaffiliates.Allrightsreserved.|

Oracle12cIn-MemoryforSAPBW

Customer:GlobalFoodManufacturer

InfoCube

29

219.879.8

138.7

1368.2

4.3 4.4 4.3 5.4

17.7 13.421.4

13.5

2.8 2.6 3.6 3.1

1

10

100

1000

10000

Q1/15,594,872 Q2/3,630,348 Q3/12,615,108 Q4/5,517,993

SAPBWviaBitmapIndex

SAPBW/wBWA

In-MemoryFlatCube

In-MemoryMV

[Query/Rowsprocessed]

ElapsedTime[s]

In-MemoryMV440xfasterthanStandardSAPBW

Page 30: Real World Experience Oracle 12c In-Memory and SAP BW

Copyright©2016,Oracleand/oritsaffiliates.Allrightsreserved.|

ProgramAgenda

Oracle12cIn-MemoryandSAPApps

Oracle12cIn-MemoryToolkitforSAPBW

RealWorldIn-MemoryResults

Whatisnext?–SAPECC,SAPSRM,…

Summary

1

2

3

4

30

5

Page 31: Real World Experience Oracle 12c In-Memory and SAP BW

Copyright©2016,Oracleand/oritsaffiliates.Allrightsreserved.|

WhatToolkitFeaturesarenext?–SAPOLTPAppsWhatyoumightthinktodo:

31

SAPECC,SAPSCM,..Oracle,DB2,MSFT

SAPSLTServer

SAPHANA

SWLicenseCost ✔ ✔ ✔HWCAPEX/Support

✔ ✔ ✔

Management/Monitoring

✔ ✔ ✔

ReplicaUonOLTPWorkloadforSLT

✔ NA NA

WithOracleyoucankeepitsimpleand

costefficient

✔ ✗ ✗

✔ ✗ ✗

✔ ✗ ✗

✗ ✗ ✗

ZAPIt ZAPIt

Page 32: Real World Experience Oracle 12c In-Memory and SAP BW

Copyright©2016,Oracleand/oritsaffiliates.Allrightsreserved.|

WhatToolkitFeaturesarenext?–SAPOLTPApps•  TrueReal-TimeReportsdirectlyonERP,ECC,CRM,…

•  NoextraLicensecosts(i.e.tocumbersomedatareplicaUonviaSAPSLT)• WorksgreatonCOPAandGeneralLedger,…

32

SAPECC,SAPSCM,..Oracle12cIn-Memory

BusinessOLTPWorkload

BusinessReporUng

Page 33: Real World Experience Oracle 12c In-Memory and SAP BW

Copyright©2016,Oracleand/oritsaffiliates.Allrightsreserved.|

WhatToolkitFeaturesarenext?–SAPOLTPApps•  Features– GenerateOracleScriptsbyBusinesstopicforallrelevantTables•  LoadIn-Memory•  Tablefactssizeondisk,numberofrows,...

•  ForBusinessTopics:– AnalyUcsforERP– SAPBusinessSuite– SmartBusinessforSalesOrderFullfilment– AnalyUcsforSCM– ....

33

Page 34: Real World Experience Oracle 12c In-Memory and SAP BW

Copyright©2016,Oracleand/oritsaffiliates.Allrightsreserved.|

ProgramAgenda

Oracle12cIn-MemoryandSAPApps

Oracle12cIn-MemoryToolkitforSAPBW

RealWorldIn-MemoryResults

Whatisnext?–SAPECC,SAPSRM,…

Summary

1

2

3

4

34

5

Page 35: Real World Experience Oracle 12c In-Memory and SAP BW

Copyright©2016,Oracleand/oritsaffiliates.Allrightsreserved.|

Summary-Oracle12cIn-MemoryToolkit• Oracle12cIn-Memory– IdealfortrueReal-TimeReportsdirectlyonERP,ECC,CRM,…•  NoextraSAPLicensecosts(i.e.tocumbersomedatareplicaUonviaSAPSLT)• WorksgreatonCOPAandGL,...

– ExecellentforSAPBWto•  AccellerateOLAPqueries•  ReplaceBWAàNoneedforacumbersomeHANAsidecar

•  In-MemoryToolkitgeneratesessenUalSQLScriptsto– Enable,Disable,VerifyandValidateàQueryPerformance

35

Page 36: Real World Experience Oracle 12c In-Memory and SAP BW

Copyright©2016,Oracleand/oritsaffiliates.Allrightsreserved.|

Oracle12cIn-MemoryToolkitforSAPBW@OTN

OnOTNh\p://www.oracle.com/technetwork/indexes/samplecode/in-memory-toolkit-3076228.html

Wheretodownload?

36

Page 37: Real World Experience Oracle 12c In-Memory and SAP BW

Copyright©2016,Oracleand/oritsaffiliates.Allrightsreserved.|

Oracle12cIn-MemoryToolkitforSAPBW@SAP

SAPNote2351252-OracleDatabase12cIn-MemorytoolkitforSAPBW

Wheretodownload?

37

Page 38: Real World Experience Oracle 12c In-Memory and SAP BW

Copyright©2016,Oracleand/oritsaffiliates.Allrightsreserved.| 38

Page 39: Real World Experience Oracle 12c In-Memory and SAP BW

Copyright©2016,Oracleand/oritsaffiliates.Allrightsreserved.|

Oracle12cIn-MemoryforSAPBW

Customer:GlobalFoodManufacturer

InfoCube

39

Query/Rowsprocessed

SAPBWElapsedTime[s]

SAPBW/wBWAElapsedTime[s]

In-MemoryFlatCube

ElapsedTime[s]

In-MemoryMV

ElapsedTime[s]

Q1/15,594,872 219.8 4.3 17.7 2.8

Q2/3,630,348 79.8 4.4 13.4 2.6

Q3/12,615,108 138.7 4.3 21.4 3.6

Q4/5,517,993 1368.2 5.4 13.5 3.1

Q5/17,77,088 609.0 4.4 22.3 2.5

Page 40: Real World Experience Oracle 12c In-Memory and SAP BW