How to Get the Most Out of Your DB2 and Analytics Investment · How to Get the Most out of Your DB2...
Transcript of How to Get the Most Out of Your DB2 and Analytics Investment · How to Get the Most out of Your DB2...
World®’16
HowtoGettheMostoutofYourDB2andAnalyticsInvestmentRonColmone @RonColmoneCATechnologies #CAWorldSr ConsultingArchitect
MFX81E
MAINFRAMEANDWORKLOADAUTOMATION
2 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
Abstract
ThissessionwillfocusonanewmainframeDB2®toolscustomeroranon-DB2customer
interestedinDB2solutionsfromCATechnologiesandhelpingthemunderstandthevalue
propositionandthereal-lifeusecases(administration,changemanagement,performance
optimization,monitoring,etc.)whereDB2toolshelpcustomersreduceoperationalcosts,reduce
risksassociatedwithdowntime/availability,improveservicelevelsandimproveuser
productivity.
RonColmone
CATechnologiesSr ConsultingArchitect
3 ©2016CA.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
4 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
UseCase:CloningusingRC/Migrator(Merger)
5 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
CARC/Migrator(Merger)
§ MoveorCopyTable/IndexSpacesfromoneSubsystemtoanother(couldbesameSSID)
§ SharedDASDrequiredbetweensubsystems
§ Norequirementtounloadandreloadtables
§ CopytheVSAMdatasetsfromsourcesubsystemtotargetincludingcatalogstatistics
§ Flashcopy supportedtoeliminateoutageonsourcesystem
§ OBIDscanbereservedortranslatedinplaceontargetsystem
CloningDatausingCARC/Migrator– MStrategy
6 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
CARC/Migrator(Merger)
§ CustomerinitiallyusedUnload/LoadMigrationprocesstomovedatafromProductiontoTest
§ SecondphasewastoremoveunnecessaryIndexesfromthemoveprocess
§ ThenconvertedMigrationstrategytouseRC/Merger– largereductioninprocessingtime
§ ImplementedFlashCopy Support(RC/MergerR19feature)
Customercasestudy
7 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
CARC/Migrator(Merger)CustomerstatisticsmovingfromstandardUnload/LoadmethodtoRC/Merger
Note:Cloningprocessisnowhandling2-3x
thedataoriginallyprocessed
UsingUnload/LoadProcessing
Removedsomeunnecessaryindexes
ConvertedtoRC/Mergerprocess
ImplementedSNAPSHOTwithRC/Merger
8 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
CARC/Migrator(Merger)CloningDatausingCARC/Migrator– MStrategy
SpecifyRC/MergerMove/CopyAnalysisStrategyOptions.
ReserveOBIDS=YwillremoveneedtotranslateOBIDsunlesscollision.
SourceExecutionofReadOnlyensuresconsistentcopy.
9 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
CARC/Migrator(Merger)CloningDatausingCARC/Migrator– MStrategy
GlobalChangesallowobjectattributestobealteredontargetsystem.
CopySourceTablespaces toTargetTablespaces.
10 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
CARC/Migrator(Merger)CloningDatausingCARC/Migrator– MStrategy
RC/MergerwillallocateTargetVSAMdatasetsifrequired.
11 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
CARC/Migrator(Merger)CloningDatausingCARC/Migrator– MStrategy
CallRC/MergertoReserveOBIDsifavailable.
12 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
UseCase:DB2RealTimeStatistics(RTS)forAutomation
13 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
DB2RealTimeStatsforAutomationDatabaseAnalyzer– ObjectSelectionusingRTS
§ DB2ObjectselectionbasedonRTSusingReorgbestpracticeselectioncriteria(DSNACCOXlike)
14 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
DB2RealTimeStatsforAutomationDatabaseAnalyzer– ObjectSelectionusingRTS
§ ExecutionofPDAExtractProceduretogenerateOnlineReorgsJOBsforselectedTablespacestiedtoObjectSelectionProfile
15 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
DB2RealTimeStatsforAutomationDatabaseAnalyzer– ObjectSelectionusingRTS
§ OnlineReorgJCLgeneratedintotargetlibraryforeachobjectselectedbasedonbestpracticeselectioncriteria.
16 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
UseCase:PackageCompareIntegrationWithChangeControl
17 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
PPAPackageCompareIntegrationWithChangeControlIdentifyingAccessPathChanges
18 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
PPAPackageCompareIntegrationWithChangeControl
§ AddBatchProcessstepstoChangeControlprocessinordertodetectSQLperformanceimpactduetoSQLchanges
§ CurrentExplainofPackagecanbeusedtocreatetheBaseline
§ FutureExplainwithComparisontoCurrentExplaintodetectimpactofSQLchanges
§ OptionscanbespecifiedtosetThresholdvalueoncostcomparison
CostCompareanalysis
19 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
PPAPackageCompareIntegrationWithChangeControl
CVCCOPTScontainsoptionsforCostComparereportincludingthresholds.
AddJCLsteptoChangeControlProcesstoComparebaselinetofutureexplaininordertoanalyzeaccesspathchangesofpackage.
20 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
PPAPackageCompareIntegrationWithChangeControl
PackagecompareofOldversusNewpackagecompareresultedin26improvedSQLstatements.
21 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
PPAPackageCompareIntegrationWithChangeControl
CostofSQLstatementwentfrom60to1(ms)sinceAccesstypechangedfromTS_SCNtoIXDATA.
22 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
PPA– NewR19FeaturetoSimplifyCompareProcess
§ RebindCompareAnalysis(RCA)commandtosimplifycomparecurrent/futureaccesspathsforapackage
§ IssuesCurrentExplainofPackage,followedbyFutureExplain
§ ComparesFuturetoCurrentexplainresultsandgeneratestheRebindCompareAnalysisreport
§ ShowonlySQLstatementswhereaccesspathhaschanged
§ RCAcanbeissuedfrommostreportswhereaPackagelineexists
RebindCompareAnalysisReport
23 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
PPARebindCompareAnalysis(RCA)
RCALinecommandcanbeexecutedonmostreportscontainingaPackagedetailline.Current/FutureexplainsfollowingbyComparewithRebindAnalysisReportforSQLwithAccessPathchanges.
24 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
PPARebindCompareAnalysis(RCA)
RebindCompareAnalysisreportshowsacostimprovementfrom44to1(ms)whenrebindingpackageonDB2V10duetoColFnE=R(ColumnFunctionevaluatedatdataretrieval)
25 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
UseCase:DetectorReportingandCollectionProfileUsage
26 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
DetectorReportingandCollectionProfileUsageDefineapplicationgroupsusingreportingprofiles
ApplicationprofilescanbedefinedforcollectionsofPLANs,Packages,CorrID,andUserswhichmakeupanapplication.
Inthisexample,RTPPLNMNandRTPREGarethecollectionofPLANnamesthatarespecifiedintheprofilethatmakeoftheApplicationRTPAPPL.
27 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
DetectorReportingProfileUsageViewingDB2activitybyApplicationReportingProfile
ViewBy‘Prof’(optionF)providesanaggregateviewofallactivityfortheselectedintervalsbyallPLANsdefinedinthespecificapplicationprofiles.
Inthisexample,RTPAPPListheapplicationIDassociatedwiththeapplicationprofilethataggregatesthecollectionofPLANSthatmakeuptheapplication.Allotheractivityintheintervalisrepresentedby‘*NoProfile*’.
28 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
DetectorReportingProfileUsageDrilldownintoactivitywithintheselectedApplication
Byselectinganapplicationprofilewithan“S”linecommandontheViewByProfiledisplay,activitycanthenbedisplayedforeachPLAN(orprofiletype)individuallywithintheApplication.
FurtherDrilldowntoPrograms,DynamicSQL,orotherKeyscanthenbeselected.
29 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
UseCase:CARC/QueryHDDLLineCommand
30 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
CARC/QueryHDDLLineCommand
§ HDDLLinecommandonaDB2objectwillgenerateDDLfortheobjectalongwithitsParentandDependentObjects.
GenerateDDLforspecifiedobjectalongwithParentandDependentObjects
31 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
UseCase:ManageDB2AnalyticsAccelerator
32 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
ManageDB2AnalyticsAcceleratorUseCARC/QueryforIDAAadministration
AbilitytoStart/Stop/DisplayandPINGAcceleratorfromRC/QAcceleratorList
33 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
ManageDB2AnalyticsAcceleratorUseCARC/QueryforIDAAadministration
RC/QAcceleratorTablelistreportprovidestableleveladministrationofyourIDAA
34 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
ManageDB2AnalyticsAcceleratorUseCARC/QueryforIDAAadministration
IDAATablelevelfunctionsareavailabletoDefine,Alter,Remove,Load,etc.
35 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
ManageDB2AnalyticsAcceleratorUseCARC/QueryforIDAAadministration
§ LoadDB2TableintoIDAA– RC/QALOADCommand
– CanloadrangeofpartitionsorentireTable
– UsesIDAALoaderutility
– MostcommandssuchasALOADareavailableusingBatchProcessorScripts
36 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
DB2AnalyticsAcceleratorCASYSVIEW®PerformanceManagementforDB2
§ Subsystemstatistics:AcceleratorDetails– SYSACDTL:
AcceleratorDetails– HSACCDTL/
HSUACDTL:AcceleratorServerDetails/Summary
37 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
TipsandHintsWithDB2Tools
38 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
DB2Tools
§ “?”– PrimaryandLinecommands
§ Freeze/Unfreeze/Reportcommands
§ QFILEandQPRINTcommands
§ ALLprimarycommandinCARC/Query
§ EQF– ExtendedQueryFacility– TheSQLLinecommand
§ RC/QueryUserDefinedLinecommands
Tips,HintsandUsefulstuff
39 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
DB2Tools– TipsUsingtheISPFInterfaceUseof“?”foravailablePanelandLineCommands
Enter“?”inPrimaryorLinecommandfieldtogetalistofavailable
commands
40 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
DB2Tools– TipsUsingtheISPFInterfaceFreeze,UnfreezeandReportCommands
§ CreateCustomizableReportformatsusingtheReportCommand
§ Freeze/Unfreezecommandsallowforfixingcolumnstoscrollleft/right
§ QPRINT/QFILEcommandstoprint/savereport
41 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
DB2Tools– TipsUsingtheISPFInterfaceALLPrimarycommandinCARC/Query
The“ALL”primarycommandwillpopulateallobjectrowswiththeassociatedLinecommandtoenableaquickmethodofexecutingaspecificcommandforallobject.Linecommandoptionscanthenbeappliedtoallobjects.
42 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
DB2Tools– TipsUsingtheISPFInterfaceEQF– ExtendedQueryFacility
Anyscreenthatcontainsa‘Where=>’fieldcaninvoketheEQFSQLQueryEditor.
Y– CreateorUpdateEQFN– Don’tinvokeEQFS– ExecuteExtendedQuery
43 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
DB2Tools– TipsUsingtheISPFInterfaceEQF– ExtendedQueryFacility
AdditionalPredicatevaluesandORDERBYcolumnscanbeaddedtothebasequerybeingexecutedwithintheDB2Toolsinterface.
44 ©2016CA.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
45 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
DB2Tools– TipsUsingtheISPFInterfaceCARC/Query– UserDefinedcommands
AvailableUserdefinedcommandsforspecifiedDB2ObjectTypearelistedinthePanelwhenenteringa‘?’Linecommand.
CommandcanbeSelectedorenteredasLinecommand.
SampleREXXcommandisprovidedasexample.
46 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
ParticipateinCA’sDB2/IMSManagementCommunity!!communities.ca.com/community/ca-database-management-for-db2-and-ims
@CAWORLD#CAWORLD ©2016CA.AllRIGHTSRESERVED.47 @CAWORLD#CAWORLD
MainframeandWorkloadAutomation
FormoreinformationonMainframeandWorkloadAutomation,pleasevisit:http://cainc.to/9GQ2JI
48 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
RecommendedSessionsSESSION# TITLE DATE/TIME
MFX79E ProtectingandTappingIntoyourDataGoldmine:leveragingwhatresidesinyourmainframe 11/15/2016at9:00am
MFX80EIntelligentMainframeManagement- DataDrivenDatabase PerformanceManagement 11/15/2016at10:00am
MFX81EHowtoGettheMostoutofYourDB2,DB2Management,andAnalyticsInvestment 11/15/2016at11:00am
MFX88S StrategyandVisionforCADB2DatabaseManagement 11/17/2016at12:45pm
MFX90S DrivingDownCostsforDB2Management 11/17/2016at1:45pm
MFX91S BirdsofaFeather/StumptheTechieforCADB2Tools! 11/17/2016at3:00pm
49 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
MustSeeDemos
DemoNameProductXTheater#location
DemoNameServicesYTheater#location
DemoNameSolutionYTheater#location
DemoNameProductXTheater#location
50 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
Questions?
51 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
Thankyou.
Stayconnectedatcommunities.ca.com
52 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
©2016CA.Allrightsreserved.Alltrademarksreferencedhereinbelongtotheirrespectivecompanies.
Thecontentprovidedinthis CAWorld2016presentationisintendedforinformationalpurposesonlyanddoesnotformanytypeofwarranty. The informationprovidedbyaCApartnerand/orCAcustomerhasnotbeenreviewedforaccuracybyCA.
ForInformationalPurposesOnlyTermsofthisPresentation