52
Getting the Most out of Your DB2 Investment Ron Colmone Mainframe CA Technologies Sr Principal Software Architect MFX14E @RonColmone #CAWorld

Getting the Most Out of Your DB2 Investment

Embed Size (px)

Citation preview

Page 1: Getting the Most Out of Your DB2 Investment

GettingtheMostoutofYourDB2Investment

RonColmone

Mainframe

CATechnologiesSr PrincipalSoftwareArchitectMFX14E

@RonColmone#CAWorld

Page 2: Getting the Most Out of Your DB2 Investment

2 ©2015CA.ALLRIGHTSRESERVED.@CAWORLD #CAWORLD

Abstract

ThissessionwillfocusonanewmainframeDB2®toolscustomer

oranon-DB2customerinterestedinDB2solutions fromCA

Technologies andhelping themunderstand thevalue

proposition andthereal-lifeusecases(administration, change

management,performanceoptimization,monitoring, etc.)

whereDB2toolshelpcustomersreduceoperational costs,

reducerisksassociatedwithdowntime/availability,improve

servicelevelsandimproveuserproductivity.

Ron Colmone

CATechnologiesSr Principal SoftwareArchitect

Page 3: Getting the Most Out of Your DB2 Investment

3 ©2015CA.ALLRIGHTSRESERVED.@CAWORLD #CAWORLD

AgendaCLONINGUSINGCARC/MIGRATOR™FORDB2FORZ/OS

DB2REALTIMESTATS(RTS)FORAUTOMATION

TIPSANDHINTSWITHTHETOOLS

PACKAGECOMPAREINTEGRATIONWITHCHANGECONTROL

DETECTORCOLLECTIONANDREPORTINGPROFILES

MANAGEDB2ANALYTICSACCELERATOR(IDAA)

1

2

3

4

6

7

CARC/QUERY®FORDB2FORZ/OSHDDLLINE COMMAND5

Page 4: Getting the Most Out of Your DB2 Investment

4 ©2015CA.ALLRIGHTSRESERVED.@CAWORLD #CAWORLD

HowdoIdeliveraflawlessexperienceeverytimeanapplicationtouchesthemainframe?

Intheapplicationeconomyit’sallaboutyourcustomers.Youneedtothinkaboutyourmainframereframed.

Connectmobile-to-mainframeapplications

Createmainframeinfrastructureflexibility

forthefuture

Unleashthepowerofdataonthemainframe

Page 5: Getting the Most Out of Your DB2 Investment

5 ©2015CA.ALLRIGHTSRESERVED.@CAWORLD #CAWORLD

UseCase:CloningusingRC/Migrator(Merger)

Page 6: Getting the Most Out of Your DB2 Investment

6 ©2015CA.ALLRIGHTSRESERVED.@CAWORLD #CAWORLD

CARC/Migrator(Merger)

§ MoveorCopyTable/IndexSpacesfromoneSubsystemtoanother(couldbesameSSID)

§ SharedDASDrequiredbetweensubsystems

§ Norequirementtounloadandreloadtables

§ CopytheVSAMdatasetsfromsourcesubsystemtotargetincludingcatalogstatistics

§ Flashcopy supportedtoeliminateoutageonsourcesystem

§ OBIDscanbereservedortranslatedinplaceontargetsystem

CloningDatausingCARC/Migrator– MStrategy

Page 7: Getting the Most Out of Your DB2 Investment

7 ©2015CA.ALLRIGHTSRESERVED.@CAWORLD #CAWORLD

CARC/Migrator(Merger)

§ CustomerinitiallyusedUnload/LoadMigrationprocesstomovedatafromProductiontoTest

§ SecondphasewastoremoveunnecessaryIndexesfromthemoveprocess

§ ThenconvertedMigrationstrategytouseRC/Merger– largereductioninprocessingtime

§ ImplementedFlashCopy Support(RC/MergerR19feature)

Customercasestudy

Page 8: Getting the Most Out of Your DB2 Investment

8 ©2015CA.ALLRIGHTSRESERVED.@CAWORLD #CAWORLD

CARC/Migrator(Merger)Customerstatisticsmoving fromstandardUnload/Loadmethod toRC/Merger

Note:Cloningprocessisnowhandling 2-3x

thedataoriginallyprocessed

UsingUnload/LoadProcessing

Removedsomeunnecessaryindexes

Converted toRC/Mergerprocess

ImplementedSNAPSHOTwithRC/Merger

Page 9: Getting the Most Out of Your DB2 Investment

9 ©2015CA.ALLRIGHTSRESERVED.@CAWORLD #CAWORLD

CARC/Migrator(Merger)CloningDatausingCARC/Migrator– MStrategy

SpecifyRC/MergerMove/CopyAnalysisStrategyOptions.

ReserveOBIDS=YwillremoveneedtotranslateOBIDsunlesscollision.

SourceExecutionofReadOnlyensuresconsistentcopy.

Page 10: Getting the Most Out of Your DB2 Investment

10 ©2015CA.ALLRIGHTSRESERVED.@CAWORLD #CAWORLD

CARC/Migrator(Merger)CloningDatausingCARC/Migrator– MStrategy

GlobalChangesallowobjectattributestobealteredontargetsystem.

CopySourceTablespaces toTargetTablespaces.

Page 11: Getting the Most Out of Your DB2 Investment

11 ©2015CA.ALLRIGHTSRESERVED.@CAWORLD #CAWORLD

CARC/Migrator(Merger)CloningDatausingCARC/Migrator– MStrategy

RC/MergerwillallocateTargetVSAMdatasetsifrequired.

Page 12: Getting the Most Out of Your DB2 Investment

12 ©2015CA.ALLRIGHTSRESERVED.@CAWORLD #CAWORLD

CARC/Migrator(Merger)CloningDatausingCARC/Migrator– MStrategy

CallRC/MergertoReserveOBIDsifavailable.

Page 13: Getting the Most Out of Your DB2 Investment

13 ©2015CA.ALLRIGHTSRESERVED.@CAWORLD #CAWORLD

UseCase:DB2RealTimeStatistics(RTS)forAutomation

Page 14: Getting the Most Out of Your DB2 Investment

14 ©2015CA.ALLRIGHTSRESERVED.@CAWORLD #CAWORLD

DB2RealTimeStatsforAutomationDatabaseAnalyzer– ObjectSelectionusingRTS

§ DB2ObjectselectionbasedonRTSusingReorgbestpracticeselectioncriteria(DSNACCOXlike)

Page 15: Getting the Most Out of Your DB2 Investment

15 ©2015CA.ALLRIGHTSRESERVED.@CAWORLD #CAWORLD

DB2RealTimeStatsforAutomationDatabaseAnalyzer– ObjectSelectionusingRTS

§ ExecutionofPDAExtractProceduretogenerateOnlineReorgsJOBsforselectedTablespacestiedtoObjectSelectionProfile

Page 16: Getting the Most Out of Your DB2 Investment

16 ©2015CA.ALLRIGHTSRESERVED.@CAWORLD #CAWORLD

DB2RealTimeStatsforAutomationDatabaseAnalyzer– ObjectSelectionusingRTS

§ OnlineReorgJCLgeneratedintotargetlibraryforeachobjectselectedbasedonbestpracticeselectioncriteria.

Page 17: Getting the Most Out of Your DB2 Investment

17 ©2015CA.ALLRIGHTSRESERVED.@CAWORLD #CAWORLD

UseCase:PackageCompareIntegrationWithChangeControl

Page 18: Getting the Most Out of Your DB2 Investment

18 ©2015CA.ALLRIGHTSRESERVED.@CAWORLD #CAWORLD

PPAPackageCompareIntegrationWithChangeControlIdentifyingAccessPathChanges

Page 19: Getting the Most Out of Your DB2 Investment

19 ©2015CA.ALLRIGHTSRESERVED.@CAWORLD #CAWORLD

PPAPackageCompareIntegrationWithChangeControl

§ AddBatchProcessstepstoChangeControlprocessinordertodetectSQLperformanceimpactduetoSQLchanges

§ CurrentExplainofPackagecanbeusedtocreatetheBaseline

§ FutureExplainwithComparisontoCurrentExplaintodetectimpactofSQLchanges

§ OptionscanbespecifiedtosetThresholdvalueoncostcomparison

CostCompareanalysis

Page 20: Getting the Most Out of Your DB2 Investment

20 ©2015CA.ALLRIGHTSRESERVED.@CAWORLD #CAWORLD

PPAPackageCompareIntegrationWithChangeControl

CVCCOPTScontainsoptionsforCostComparereportincludingthresholds.

AddJCLsteptoChangeControlProcesstoComparebaselinetofutureexplaininorder toanalyzeaccesspathchangesofpackage.

Page 21: Getting the Most Out of Your DB2 Investment

21 ©2015CA.ALLRIGHTSRESERVED.@CAWORLD #CAWORLD

PPAPackageCompareIntegrationWithChangeControl

PackagecompareofOldversusNewpackagecompareresultedin26improvedSQLstatements.

Page 22: Getting the Most Out of Your DB2 Investment

22 ©2015CA.ALLRIGHTSRESERVED.@CAWORLD #CAWORLD

PPAPackageCompareIntegrationWithChangeControl

CostofSQLstatementwentfrom60to1(ms)sinceAccesstypechangedfromTS_SCNtoIXDATA.

Page 23: Getting the Most Out of Your DB2 Investment

23 ©2015CA.ALLRIGHTSRESERVED.@CAWORLD #CAWORLD

PPA– NewR19FeaturetoSimplifyCompareProcess

§ RebindCompareAnalysis(RCA)commandtosimplifycomparecurrent/futureaccesspathsforapackage

§ IssuesCurrentExplainofPackage,followedbyFutureExplain

§ ComparesFuturetoCurrentexplainresultsandgeneratestheRebindCompareAnalysisreport

§ ShowonlySQLstatementswhereaccesspathhaschanged

§ RCAcanbeissuedfrommostreportswhereaPackagelineexists

RebindCompareAnalysisReport

Page 24: Getting the Most Out of Your DB2 Investment

24 ©2015CA.ALLRIGHTSRESERVED.@CAWORLD #CAWORLD

PPARebindCompareAnalysis(RCA)

RCALinecommandcanbeexecutedonmostreportscontainingaPackagedetailline.Current/FutureexplainsfollowingbyComparewithRebindAnalysisReportforSQLwithAccessPathchanges.

Page 25: Getting the Most Out of Your DB2 Investment

25 ©2015CA.ALLRIGHTSRESERVED.@CAWORLD #CAWORLD

PPARebindCompareAnalysis(RCA)

RebindCompareAnalysisreportshowsacostimprovementfrom44to1(ms)whenrebindingpackageonDB2V10due toColFnE=R(ColumnFunctionevaluatedatdataretrieval)

Page 26: Getting the Most Out of Your DB2 Investment

26 ©2015CA.ALLRIGHTSRESERVED.@CAWORLD #CAWORLD

UseCase:DetectorReportingandCollectionProfileUsage

Page 27: Getting the Most Out of Your DB2 Investment

27 ©2015CA.ALLRIGHTSRESERVED.@CAWORLD #CAWORLD

DetectorReportingandCollectionProfileUsageDefineapplicationgroupsusing reporting profiles

Application profilescanbedefined forcollectionsofPLANs,Packages,CorrID,andUserswhichmakeupanapplication.

In thisexample,RTPPLNMNandRTPREGarethecollectionofPLANnamesthatarespecifiedin theprofile thatmakeoftheApplication RTPAPPL.

Page 28: Getting the Most Out of Your DB2 Investment

28 ©2015CA.ALLRIGHTSRESERVED.@CAWORLD #CAWORLD

DetectorReportingProfileUsageViewingDB2activitybyApplicationReportingProfile

ViewBy‘Prof ’(option F)providesanaggregateviewofallactivityfortheselectedintervalsbyallPLANsdefined inthespecificapplicationprofiles.

In thisexample,RTPAPPL istheapplication IDassociatedwiththeapplicationprofile thataggregatesthecollectionofPLANSthatmakeup theapplication. Allother activityintheintervalisrepresentedby‘*NoProfile*’.

Page 29: Getting the Most Out of Your DB2 Investment

29 ©2015CA.ALLRIGHTSRESERVED.@CAWORLD #CAWORLD

DetectorReportingProfileUsageDrilldownintoactivitywithintheselectedApplication

Byselectinganapplicationprofilewithan“S”linecommandon theViewByProfiledisplay,activitycanthenbedisplayedforeachPLAN(orprofiletype)individuallywithin theApplication.

FurtherDrilldowntoPrograms,DynamicSQL,orotherKeyscanthenbeselected.

Page 30: Getting the Most Out of Your DB2 Investment

30 ©2015CA.ALLRIGHTSRESERVED.@CAWORLD #CAWORLD

UseCase:CARC/QueryHDDLLineCommand

Page 31: Getting the Most Out of Your DB2 Investment

31 ©2015CA.ALLRIGHTSRESERVED.@CAWORLD #CAWORLD

CARC/QueryHDDLLineCommand

§ HDDLLinecommandonaDB2objectwillgenerateDDLfortheobjectalongwithitsParentandDependentObjects.

GenerateDDLforspecifiedobjectalongwithParentandDependent Objects

Page 32: Getting the Most Out of Your DB2 Investment

32 ©2015CA.ALLRIGHTSRESERVED.@CAWORLD #CAWORLD

UseCase:ManageDB2AnalyticsAccelerator

Page 33: Getting the Most Out of Your DB2 Investment

33 ©2015CA.ALLRIGHTSRESERVED.@CAWORLD #CAWORLD

ManageDB2AnalyticsAcceleratorUseCARC/QueryforIDAAadministration

AbilitytoStart/Stop/DisplayandPINGAcceleratorfromRC/QAcceleratorList

Page 34: Getting the Most Out of Your DB2 Investment

34 ©2015CA.ALLRIGHTSRESERVED.@CAWORLD #CAWORLD

ManageDB2AnalyticsAcceleratorUseCARC/QueryforIDAAadministration

RC/QAcceleratorTablelistreportprovidestableleveladministrationofyourIDAA

Page 35: Getting the Most Out of Your DB2 Investment

35 ©2015CA.ALLRIGHTSRESERVED.@CAWORLD #CAWORLD

ManageDB2AnalyticsAcceleratorUseCARC/QueryforIDAAadministration

IDAATablelevelfunctionsareavailabletoDefine,Alter,Remove,Load,etc.

Page 36: Getting the Most Out of Your DB2 Investment

36 ©2015CA.ALLRIGHTSRESERVED.@CAWORLD #CAWORLD

ManageDB2AnalyticsAcceleratorUseCARC/QueryforIDAAadministration

§ LoadDB2TableintoIDAA– RC/QALOADCommand

– CanloadrangeofpartitionsorentireTable

– UsesIDAALoaderutility

– MostcommandssuchasALOADareavailableusingBatchProcessorScripts

Page 37: Getting the Most Out of Your DB2 Investment

37 ©2015CA.ALLRIGHTSRESERVED.@CAWORLD #CAWORLD

DB2AnalyticsAcceleratorCASYSVIEW®PerformanceManagementforDB2

§ Subsystemstatistics:AcceleratorDetails– SYSACDTL:

AcceleratorDetails– HSACCDTL/

HSUACDTL:AcceleratorServerDetails/Summary

Page 38: Getting the Most Out of Your DB2 Investment

38 ©2015CA.ALLRIGHTSRESERVED.@CAWORLD #CAWORLD

TipsandHintsWithDB2Tools

Page 39: Getting the Most Out of Your DB2 Investment

39 ©2015CA.ALLRIGHTSRESERVED.@CAWORLD #CAWORLD

DB2Tools

§ “?”– PrimaryandLinecommands

§ Freeze/Unfreeze/Reportcommands

§ QFILEandQPRINTcommands

§ ALLprimarycommandinCARC/Query

§ EQF– ExtendedQueryFacility– TheSQLLinecommand

§ RC/QueryUserDefinedLinecommands

Tips,HintsandUsefulstuff

Page 40: Getting the Most Out of Your DB2 Investment

40 ©2015CA.ALLRIGHTSRESERVED.@CAWORLD #CAWORLD

DB2Tools– TipsUsingtheISPFInterfaceUseof“?”foravailablePanelandLineCommands

Enter“?”inPrimaryorLinecommandfieldtogetalistofavailable

commands

Page 41: Getting the Most Out of Your DB2 Investment

41 ©2015CA.ALLRIGHTSRESERVED.@CAWORLD #CAWORLD

DB2Tools– TipsUsingtheISPFInterfaceFreeze,UnfreezeandReportCommands

§ CreateCustomizableReportformatsusingtheReportCommand

§ Freeze/Unfreezecommandsallowforfixingcolumnstoscrollleft/right

§ QPRINT/QFILEcommandstoprint/savereport

Page 42: Getting the Most Out of Your DB2 Investment

42 ©2015CA.ALLRIGHTSRESERVED.@CAWORLD #CAWORLD

DB2Tools– TipsUsingtheISPFInterfaceALLPrimarycommandinCARC/Query

The“ALL”primarycommandwillpopulateallobjectrowswiththeassociatedLinecommandtoenableaquickmethodofexecutingaspecificcommandforallobject.Linecommandoptionscanthenbeappliedtoallobjects.

Page 43: Getting the Most Out of Your DB2 Investment

43 ©2015CA.ALLRIGHTSRESERVED.@CAWORLD #CAWORLD

DB2Tools– TipsUsingtheISPFInterfaceEQF– ExtendedQueryFacility

Anyscreenthatcontainsa‘Where=>’fieldcaninvoketheEQFSQLQueryEditor.

Y– CreateorUpdateEQFN– Don’tinvokeEQFS– ExecuteExtendedQuery

Page 44: Getting the Most Out of Your DB2 Investment

44 ©2015CA.ALLRIGHTSRESERVED.@CAWORLD #CAWORLD

DB2Tools– TipsUsingtheISPFInterfaceEQF– ExtendedQueryFacility

Additional PredicatevaluesandORDERBYcolumnscanbeaddedtothebasequerybeingexecutedwithintheDB2Tools interface.

Page 45: Getting the Most Out of Your DB2 Investment

45 ©2015CA.ALLRIGHTSRESERVED.@CAWORLD #CAWORLD

DB2Tools– TipsUsingtheISPFInterfaceCARC/Query– UserDefinedcommands

§ UserdefinedRC/QuerycommandsaredefinedviaUSALINEandidentifytheObjecttypetheyareavailabletobeusedon.

§ UsercommandscanbewritteninREXXorasacompiledprogramandLINKEDintothePTLLINELoadModule

USMLINE1 'USER-DEFINED LINE COMMANDS' USMLINE2 LISTCAT,(TS,IX,T,I), *

'IDCAMS Listcat of tablespace/indexspace' USMLINE2 FLDSTAT,(C), *

'Most frequent index column values' USMLINE2 EX,(T,V,C,S,U,P,I,A,VC,SG,DB,TS,BP,DR,CL,PK,DT,R,RI, *

CD,SQ,H,U,SY,L,SC,TG,AC,PM), *'Execute Clist or REXX Exec '

USMLINE2 TESTEX1,(T,V,C,S,U,P,I,A,VC,DT), *'SAMPLE REXX EXEC ',TYPE=R

Page 46: Getting the Most Out of Your DB2 Investment

46 ©2015CA.ALLRIGHTSRESERVED.@CAWORLD #CAWORLD

DB2Tools– TipsUsingtheISPFInterfaceCARC/Query– UserDefinedcommands

AvailableUserdefinedcommandsforspecifiedDB2ObjectTypearelistedinthePanelwhenenteringa‘?’ Linecommand.

CommandcanbeSelectedorenteredasLinecommand.

SampleREXXcommandisprovided asexample.

Page 47: Getting the Most Out of Your DB2 Investment

47 ©2015CA.ALLRIGHTSRESERVED.@CAWORLD #CAWORLD

ParticipateinCA’sDB2/IMSManagementCommunity!!communities.ca.com/community/ca-database-management-for-db2-and-ims

Page 48: Getting the Most Out of Your DB2 Investment

48 ©2015CA.ALLRIGHTSRESERVED.@CAWORLD #CAWORLD

RecommendedSessionsSESSION# TITLE DATE/TIME

MFX04E What'sNewwithDB2Solutions fromCATechnologies—Administration, Performance,Recovery&Analytics

1/17/2015 at11:00amLocation:BreakersH

MFX06S CA'sStrategyandVision forMainframeDataManagementandAnalytics

1/18/2015 at1:00pmLocation:BreakersI

MFX07EPlaceyourvote:Addressing newerMainframeDatabaseManagementNeeds- DataGovernance,AnalyticsandAutonomics, BigDataandothers

1/17/2015 at9:00pmLocation:BreakersH

MFX14E GettingtheMostoutofYourDB2Investment 1/17/2015 at10:00amLocation:BreakersH

MFT05S BigIron+BigData=BIGDEAL!Unlock ThePowerofYourMainframeData

1/18/2015 at2:00pmLocation:MainframeTheater

MFX15S PredictingWhenYourApplicationsWillGoOfftheRails!ManagingDB2Application PerformanceusingAnalytics

1/18/2015 at4:30pmLocation:BreakersI

MFT12T It'sNotaDream—ConquerChaos forYourDB2®forz/OS®OptimizationNightmares

1/18/2015 at3:00pmLocation:TechTalk6

Page 49: Getting the Most Out of Your DB2 Investment

49 ©2015CA.ALLRIGHTSRESERVED.@CAWORLD #CAWORLD

MustSeeDemos

MaximizeYourDB2ToolsInvestment

DB2Tools

MainframeAreaStation:MNFSE003

UnleashthePowerof

MainframeData

vStorm ConnectDataStreamingforBigData

MainframeAreaStation:MNFSE001

MaximizeYourMainframe

DatabaseValue

CAIDMS/CADatacom

MainframeAreaStation:MNFSE002

PerformanceAnalyticsforDB2

DB2Analytics

MainframeAreaStation:MNFSE004

Page 50: Getting the Most Out of Your DB2 Investment

50 ©2015CA.ALLRIGHTSRESERVED.@CAWORLD #CAWORLD

FollowOnConversationsAt…

SmartBarDB2Toolsand

PerformanceAnalytics

MainframeAreaonExpoFloor

TechTalksDB2Toolsand

PerformanceAnalytics

MainframeAreaonExpoFloor

Page 51: Getting the Most Out of Your DB2 Investment

51 ©2015CA.ALLRIGHTSRESERVED.@CAWORLD #CAWORLD

ForInformationalPurposesOnlytermsofthispresentationCopyright©2015CA.Allrightsreserved.Alltrademarksreferencedhereinbelongtotheirrespectivecompanies.ThepresentationprovidedatCAWorld2015isintended forinformationpurposesonlyanddoesnotformanytypeofwarranty.Someofthespecificslideswithcustomerreferencesrelatetocustomer'sspecificuseandexperienceofCAproductsandsolutionssoactualresultsmayvary.

CertaininformationinthispresentationmayoutlineCA’sgeneralproductdirection.Thispresentationshallnot serveto(i)affecttherightsand/orobligationsofCAoritslicenseesunderanyexistingorfuturelicenseagreementor servicesagreementrelatingtoanyCAsoftwareproduct;or(ii)amendanyproductdocumentationorspecificationsforanyCAsoftwareproduct.Thispresentationis basedoncurrentinformationandresourceallocationsasofNovember18,2015,andissubjecttochangeorwithdrawalbyCAatanytimewithoutnotice.Thedevelopment,releaseandtimingofanyfeaturesorfunctionalitydescribedinthispresentationremainat CA’ssolediscretion.

Notwithstandinganythinginthispresentationtothecontrary,upon thegeneralavailabilityofanyfutureCAproduct release referencedinthispresentation,CAmaymakesuchreleaseavailabletonewlicenseesintheformofaregularlyscheduledmajorproduct release.SuchreleasemaybemadeavailabletolicenseesoftheproductwhoareactivesubscriberstoCAmaintenanceandsupport,ona whenandif-availablebasis.Theinformationinthispresentationisnotdeemedtobeincorporatedintoanycontract.

Page 52: Getting the Most Out of Your DB2 Investment

52 ©2015CA.ALLRIGHTSRESERVED.@CAWORLD #CAWORLD

Q&A