SlideShare une entreprise Scribd logo
1  sur  33
Télécharger pour lire hors ligne
DB2 Utilities Update and Best Practices
Speaker Name and Title

1
Agenda
•
•
•
•
•
•
•
•
•
•

2

Overview
REORG
Statistics
Backup and recovery
UNLOAD and LOAD
Compression dictionaries
General enhancements
Deprecated items
Additional information
Summary
Overview: goals of DB2 Utilities
• Support core DB2 functionality
• Reduce CPU, elapsed time and resource consumption
• Maximize availability
• Remove constraints and limitations
• Simplify data management

3
Improve performance of part-level online REORG with NPSIs
• New option to defer shadow index build until all keys passed
through sort
• New utility option and ZPARM to govern
– AUTO/YES/NO values

• Retrofit to DB2 9 and 10 via fix for APAR PM55051
• Result:
– Customer test of REORG of 40% of partitions showed 55%
elapsed time reduction and 22% CPU increase
– When used in the same online REORG scenario, DB2 Sort
provides additional elapsed time reduction and cuts CPU cost to
less than original starting point

4
SWITCH phase impact relief – reduced application impact
• Easier drain acquisition
• Prevent new claims on all target
partitions while waiting for drains
on target partitions

REORG drain duration
and switch time

– Faster drain acquisition for
partition-level REORG

DB2 10 drain duration
DB2 10 switch phase
1200

• New DRAIN_ALLPARTS option to
momentarily drain all data parts

• SWITCH phase processing
restructured for outage reduction
– SWITCH phase ET reduction of
91% measured when REORGing
20 partitions
5

1000
Seconds

– Eliminates claim-drain
“deadlocks” for partition-level
REORG with NPSIs

DB2 11 drain duration
DB2 11 switch phase

800
600
400
200
0
0

1000

2000
Number of partitions

3000

4000
Timing of SWITCH phase with MAXRO DEFER
• Govern timing of drain and switch for long-running REORGs without the
need to schedule separate -ALTER UTILITY command
• New SWITCHTIME parameter to determine earliest point at which drain
processing will be attempted

SWITCHTIME

NONE

NEWMAXRO
SWITCHTIME

NEWMAXRO

integer

timestamp
labeled-duration-expression

6

NONE
Physically delete empty PBG partitions
• Ability for REORG to physically delete empty PBG partitions
• New ZPARM: REORG_DROP_PBG_PARTS
– DISABLE – keep V10 behavior (default)
– ENABLE – delete empty PBG partitions on table space-level
REORG

• Considerations:
– Cannot be specified on REORG statement
– If PBG created using NUMPARTS or if ALTER ADD partition used,
REORG may prune to a lesser number of partitions
– No point-in-time recovery to prior to a partition-pruning REORG
• No facility to resurrect deleted partitions

7
Automated handling of mapping tables
•
•
•
•

Prior to DB2 11, scalability constraint when size of mapping table index
limits the number of rows that can be REORGed
Mapping table DDL must change in 11 due to longer RBA/LRSN
Requirement to automate handling of mapping tables
Solution: New automated mapping table functionality in REORG
– Support for mapping tables in partition-by-growth table spaces
•

Increases max size of mapping index from 64GB to 16TB
– Retrofit to DB2 9 and 10 via APAR PM58177

– Automatically create new-format mapping table if required
1.
2.
3.
4.
5.

If mapping table specified and correct format then honor specification
Else if specified but incorrect format then create new in same database as original
Else if not specified and ZPARM database specified then create in that database
Else create in implicitly-created database
DROP at end of REORG or end of last REORG if multiple REORGs in job step

– NFM requires new-format mapping table
•
8

CM, CM*, ENFM, ENFM* support old- and new-format mapping table
REORG without sorting data
• Increasingly REORGs are performed for reasons other than to regain
clustering of data, yet no ability to avoid cost of reclustering
• Before DB2 11, REORG SHRLEVEL CHANGE did not support
SORTDATA NO
• DB2 11 allows SORTDATA NO with SHRLEVEL CHANGE
• New RECLUSTER YES/NO option on SORTDATA NO
– RECLUSTER NO – Do not unload data through clustering index and do not
sort data records in clustering order

9
Partition-level inline image copy
• Faster partition-level recovery from inline image copy
• Create partition-level inline image copies if using TEMPLATE with &PA or
&PART
– No new option or keyword on REORG
– PM93611:
• Support substring notation with &PA and &PART as long as it ensures uniqueness
• Support writing to tape as long as STACK YES not specified

• RECOVER of single partition of a
20-partition table space
– ET reduced by 28%
– CPU reduced by 49%

14
12
10
Tablespace
imagecopy
Partition
imagecopy

8
6
4
2
0

10

Elapsed

CPU
Improved REORG LISTDEF processing
• PARALLEL YES/NO option introduced via APAR in DB2 9
– NO – Prevent REORG from processing multiple partitions in parallel in a
single REORG when input is partition-level LISTDEF
– ZPARM: REORG_LIST_PROCESSING

• Need compromise option for customers who want to take advantage of
REORG parallelism but cannot afford to shadow many partitions at a time
• New option LISTPARTS n to limit number of partitions to be processed in
a single REORG if input is a partition-level LISTDEF
• With DB2 11, PARALLEL YES/NO is replaced by PARALLEL(n), with “n”
specifying the maximum number of subtasks to be started in parallel for a
REORG

11
REBALANCE enhancements
• Improved availability & failure prevention
• Support REORG SHRLEVEL CHANGE REBALANCE
– Complements online ALTER of partition limit key value

• Improve resiliency with enhanced distribution algorithm and
improved handling of empty partitions
• Build compression dictionary for all partitions
– Previously, partitions that were empty at the start of REORG would not have a
dictionary built, requiring a subsequent REORG to get compression

• New SORTCLUSTER option to sort data in clustering as well as
partitioning order to avoid AREO*
– Occurred when partitioning key not a superset of clustering key

12
REORG of LOB data
• Support REORG of LOB data even if aux index is unavailable
– Problem in DB2 10 if LOB tablespace is REORP and index is RBDP
• LOBs can’t be REORGed and index can’t be rebuilt

• REORG SHRLEVEL NONE for LOBs changed to RC8 from DB2 11
CM onwards
– Not supported in 10 NFM, but returns RC0 with MSGDSNU126I

13
Improved REORG serviceability
• Need ability to use online REORG even when SYSLGRNX cannot be
relied upon
• Support LOGRANGES NO option for REORG SHRLEVEL CHANGE

14
REORG change of defaults to match best practices
• Change default options:
– DRAIN WRITERS to DRAIN ALL
– DISCARD to DISCARD NOPAD YES
– UNLOAD EXTERNAL to UNLOAD EXTERNAL NOPAD YES

15
REORG best practices
• REORG SHRLEVEL CHANGE for maximum availability
• Use DRAIN ALL rather than DRAIN WRITERS
• Use TIMEOUT TERM to free up objects on timeouts
• If minimizing application impact is key:
– (DRAIN_WAIT + MAXRO) < (IRLMRWT - 5 or 10 secs) for minimal application impact
– Specify high RETRY value (6 or more)

• If REORG success in a small window is key:
– Consider starting REORG early with MAXRO DEFER then -ALTER UTILITY command
– High DRAIN_WAIT and MAXRO to guarantee REORG success

• If using REORG DISCARD, use NOPAD for improved performance
• LOBs:
– SHRLEVEL REFERENCE in DB2 9, SHRLEVEL CHANGE in DB2 10
– Stop using SHRLEVEL NONE before DB2 10 NFM

16
Statistics enhancements
• More zIIP offload for RUNSTATS distribution statistics
– Up to 80% zIIP-eligible

• zIIP offload for inline statistics
– Up to 30% offload to zIIP

• Enhance inline statistics for RUNSTATS avoidance
– Inline statistics collection on NPSIs during REORG with SORTNPSI
– Inline histogram statistics
– Inline COLGROUP distribution statistics

• New RUNSTATS RESET option to reset existing statistics
• Improved PROFILE usability for LISTDEF processing
– Gather default statistics if no profile exists for table

17
Statistics enhancements
• Optimizer determination of missing statistics
– Optimizer identifies missing statistics and writes information to new catalog
table SYSSTATFEEDBACK
– OQWT modifies statistics profile
– Automation Tool detects profile change and builds RUNSTATS job
– DSNACCOX similarly enhanced to recommend RUNSTATS

• -ACCESS DATABASE … MODE(STATS) option to externalize RTS
statistics
• RTS overhead reduction

18
Statistics best practices
• Do not use RUNSTATS to gather space statistics – rely on
real-time statistics
• Do not gather unnecessary statistics
• Use sampling, and TABLESAMPLE in DB2 10
• Use profiles in DB2 10 and 11
• Use inline stats where possible rather than RUNSTATS (but
no zIIP for inline stats in DB2 10)
• Specify KEYCARD prior to DB2 10
– Index cardinality stats are cheap to collect and heavily relied
upon by optimizer

• Don’t bother running RUNSTATS on LOB table spaces
– RTS contains all the information you need
19
Backup and recovery enhancements
• Faster directory recovery
– SYSLGRNX recording extended to previously not-recorded directory objects

• New VCAT name translation for RESTORE SYSTEM for system cloning
– Support log apply when RESTORE SYSTEM used for cloning purposes

• Improved recoverability with COPY/REORG concurrency
– Permit COPY to run concurrent with long-running REORGs

• Avoid allocating empty image copy datasets for incremental or
CHANGELIMIT copies
• Lifted many restrictions on PIT recovery prior to materializing REORG
– PIT recovery restrictions lifted for
• LOB, XML and PBR table spaces
• Including when immediate alters have occurred since materializing REORG

– PIT recovery restrictions still in place
•
•
•
•
20

Table space conversion
PBG table spaces
PBG partition pruning
Online DROP COLUMN
Backup and recovery best practices
• SHRLEVEL CHANGE unless consistent copies are essential
• Use PARALLEL keyword to exploit parallelism
• Consider OPTIONS EVENT(ITEMERROR,SKIP)
– Sets UTRW state only for duration of copy of individual page set
– But increases COPY overhead
– Serialization required for each pageset on the fly

• Consider taking incremental copies and using MERGECOPY
– MERGECOPY marks relevant page set UTRW

• Copy indexes on large, critical tables
– Particularly if rarely or never updated
– Only drawback: increase in SYSLGRNX and SYSCOPY recording
– Automatically included in MODIFY RECOVERY

21
LOAD and UNLOAD enhancements
• Cross-loader support for XML data
• Exploit FETCH CONTINUE for processing large LOBs and XML data with
cross-loader
– Reduce virtual storage requirement
– Avoid DSNU1178i errors
– 28% CPU reduction
• Load of 1Mb LOBs

• zIIP offload for LOAD REPLACE PART clearing of NPSIs
– 100% offload to zIIP for LOAD REPLACE with dummy input

22
LOAD and UNLOAD enhancements
•LOAD SHRLEVEL NONE PARALLEL with single input dataset
– Parallel data conversion
– Not supported for PBGs
– 50% ET reduction possible on single SYSREC load
Conversion 1
Part
Conversion 2
Input

Read

Conversion 3

SYSREC
Conversion 4

1
Load task
Part
2

Conversion 5

23
LOAD and UNLOAD enhancements
•LOAD SHRLEVEL CHANGE PARALLEL
– Supports non-partitioned as well as partitioned
– Single input dataset
– Not supported for PBGs
– >80% ET reduction
Conversion 1
Conversion 2
Input
SYSREC

Part
1

Read task
Conversion 3
Part
Conversion 4

24

2
LOAD and UNLOAD best practices
• Run LOAD with LOG NO, REUSE, KEEPDICTIONARY if possible
• Use SORTDEVT to drive parallel index build
• Allocate inline copy data sets to DASD
• Split up input dataset and drive LOAD partition parallelism in a single LOAD
• Use SORTNUM elimination
• Specify NUMRECS if input is on tape or only a fraction of input records will
be loaded
• If loading partitioned table with single input dataset, presort data in clustering
(partitioning) key order
– PRESORT option in Utility Enhancement Tool
• For LOAD REPLACE, consider loading into a “clone” then renaming tables or
datasets
• Consider using USS named pipes
• Use FORMAT INTERNAL, PRESORTED or INDEXDEFER if possible
25
Compression dictionaries
• Avoid decompression failures for IFI 306 readers when new compression
dictionary built by REORG/LOAD
• Old compression dictionary stored on log
• New SYSCOPY record written pointing to old compression dictionary for
CDC tables
• IFI 306 read automatically retrieves old compression dictionary if necessary
• Avoid need for replication target refresh when dictionary changes

26
General enhancements
• Greater parallelism for faster utilities
– 11% elapsed time reduction measured for REORG, LOAD, REBUILD INDEX

• PARALLEL option for parallelism control for LOAD, REORG, REBUILD
INDEX, UNLOAD, CHECK INDEX
• -DISPLAY UTILITY enhancements
– Remove serialization between -DIS UTIL and -TERM UTIL
– Jobname, start timestamp
– Late addition: SWITCHTIME and NEWMAXRO

• Utility impact reduction on buffer pools
– Extend MRU for UNLOAD, REORG TABLESPACE, RUNSTATS
TABLESPACE, RUNSTATS INDEX, REBUILD INDEX, CHECK INDEX,
CHECK DATA

• Improved dataset cleanup with utility stored procedures
– Previously, datasets remained allocated on utility failure, preventing cleanup
27
General enhancements
• Improved TEMPLATE support for large / extended format data sets and
local time values
– DSNTYPE LARGE, EXTREQ, EXTPREF
– New EATTR option on TEMPLATE to request extended attributes
– New TIME LOCAL|UTC option

• Enforce NUMTCB=1 for utility stored procedures
• DSNACCOX performance
400
350
300
250
V10 Elapsed
V11 Elapsed

200
150
100
50
0

28

DSNACCOX query where DB=x
Deprecated items
• REORG SHRLEVEL NONE for LOBs changed to RC8 from DB2 11
CM onwards
– Not supported in 10 NFM, but returns RC0 with MSGDSNU126I

• Still supported in 11, but no longer documented:
– REORG
• PARALLEL YES|NO

– Superseded by LISTPARTS
•
•
•
•
•
•

INDREFLIMIT
OFFPOSLIMIT
LEAFDISTLIMIT
UNLOAD ONLY
UNLOAD PAUSE
UNLOAD EXTERNAL

– COPY
• CHANGELIMIT
29
Want to learn more about DB2 utilities?
• Attend a DB2 Utilities Workshop
– What is it?
• Complimentary (1/2 day+) session with information to
help gain a better understanding of the features delivered
in the DB2 Utilities Suite for z/OS and how they can be used to
manage your DB2 environment. Topics include:
– Which utility features can save you time and money
– Understanding your utility maintenance needs to meet SLAs

– What’s the benefit to you?
• Useful information, materials and contacts help you achieve the maximum
benefits from the features delivered in the DB2 Utilities Suite for z/OS and
how they can help manage your utility maintenance to improve your DB2 for
z/OS critical applications

– Who is it designed for?
• DBAs/App DBAs, DB2 system administrators, and technical management

– Contact your IBM sales rep for more details and to schedule
30
Best practice tip for DB2 utilities:
the DB2 Utilities Solution Pack
• During DB2 utilities sort processing, reduce CPU
usage and elapsed time by up to 50%*
• Eliminate ALL CPU and elapsed time by
avoiding unnecessary utility processing
– Set it and forget it, adjust to fit changing needs

• Use the fastest and most flexible unload in the
market to modernize your data movement
• Set company-wide DB2 utility standards
–

Enforced and auditable

• ONE change to embedded DB2 Utility JCL can
find and update every occurrence in every
application with the most current version of DB2
for z/OS

* With zIIP engine
31

“More data,
reduced costs”

Optimize, control
manage & automate
How do we get the
When used with the
best DB2 Utilities
IBM control over
DB2 utility beats or
Suite, IBM
processing?
matches performance
with every other
How do we save
3rd party vendor for:
CPU & Elapsed time
while improving
availability? CPU
•Using less
•Reducing ET
How do we do smart
•More zIIP offload
automation for DB2
utilities execution?
DB2 Utilities
Solution Pack
Solution
General best practices
• Plan your move to DB2 11 to take advantage of the latest in
DB2 11 enhancements
• Stay current on DB2 maintenance as much as possible
• Attend a DB2 Utilities Workshop
• Check out the DB2 Utilities Solution Pack to make your DB2
utility environment more efficient and easier to manage

32
Summary
• Day One support for utilities and utility management
products with core DB2 versions/functions
• Innovation continuing and delivery pace accelerating
• Continuous delivery of performance enhancements and features with
real business value
• Eliminate application impact from utilities
• Reduce elapsed time and CPU consumption
• Reduce resource consumption
• Reduce complexity and improve automation -- Build expert knowledge
into the tools, not just tools for the expert!
33

Contenu connexe

Tendances

What's New in MariaDB Server 10.3
What's New in MariaDB Server 10.3What's New in MariaDB Server 10.3
What's New in MariaDB Server 10.3MariaDB plc
 
DB2 LUW - Backup and Recovery
DB2 LUW - Backup and RecoveryDB2 LUW - Backup and Recovery
DB2 LUW - Backup and Recoveryimranasayed
 
PostgreSQL Table Partitioning / Sharding
PostgreSQL Table Partitioning / ShardingPostgreSQL Table Partitioning / Sharding
PostgreSQL Table Partitioning / ShardingAmir Reza Hashemi
 
The Top 12 Features new to Oracle 12c
The Top 12 Features new to Oracle 12cThe Top 12 Features new to Oracle 12c
The Top 12 Features new to Oracle 12cDavid Yahalom
 
Dan Hotka's Top 10 Oracle 12c New Features
Dan Hotka's Top 10 Oracle 12c New FeaturesDan Hotka's Top 10 Oracle 12c New Features
Dan Hotka's Top 10 Oracle 12c New FeaturesEmbarcadero Technologies
 
Using histograms to get better performance
Using histograms to get better performanceUsing histograms to get better performance
Using histograms to get better performanceSergey Petrunya
 
[Altibase] 12 replication part5 (optimization and monitoring)
[Altibase] 12 replication part5 (optimization and monitoring)[Altibase] 12 replication part5 (optimization and monitoring)
[Altibase] 12 replication part5 (optimization and monitoring)altistory
 
Db2 V12 incompatibilities_&amp;_improvements_over_V11
Db2 V12 incompatibilities_&amp;_improvements_over_V11Db2 V12 incompatibilities_&amp;_improvements_over_V11
Db2 V12 incompatibilities_&amp;_improvements_over_V11Abhishek Verma
 
DB2UDB_the_Basics Day 4
DB2UDB_the_Basics Day 4DB2UDB_the_Basics Day 4
DB2UDB_the_Basics Day 4Pranav Prakash
 
IBM DB2 for z/OS Administration Basics
IBM DB2 for z/OS Administration BasicsIBM DB2 for z/OS Administration Basics
IBM DB2 for z/OS Administration BasicsIBM
 
Great performance at scale~次期PostgreSQL12のパーティショニング性能の実力に迫る~
Great performance at scale~次期PostgreSQL12のパーティショニング性能の実力に迫る~Great performance at scale~次期PostgreSQL12のパーティショニング性能の実力に迫る~
Great performance at scale~次期PostgreSQL12のパーティショニング性能の実力に迫る~Insight Technology, Inc.
 
Oracle Database 12.1.0.2 New Performance Features
Oracle Database 12.1.0.2 New Performance FeaturesOracle Database 12.1.0.2 New Performance Features
Oracle Database 12.1.0.2 New Performance FeaturesChristian Antognini
 
PGConf.ASIA 2017 Logical Replication Internals (English)
PGConf.ASIA 2017 Logical Replication Internals (English)PGConf.ASIA 2017 Logical Replication Internals (English)
PGConf.ASIA 2017 Logical Replication Internals (English)Noriyoshi Shinoda
 
Query Optimizer in MariaDB 10.4
Query Optimizer in MariaDB 10.4Query Optimizer in MariaDB 10.4
Query Optimizer in MariaDB 10.4Sergey Petrunya
 
DB2UDB_the_Basics Day 6
DB2UDB_the_Basics Day 6DB2UDB_the_Basics Day 6
DB2UDB_the_Basics Day 6Pranav Prakash
 
Table partitioning in PostgreSQL + Rails
Table partitioning in PostgreSQL + RailsTable partitioning in PostgreSQL + Rails
Table partitioning in PostgreSQL + RailsAgnieszka Figiel
 
New features-in-mariadb-and-mysql-optimizers
New features-in-mariadb-and-mysql-optimizersNew features-in-mariadb-and-mysql-optimizers
New features-in-mariadb-and-mysql-optimizersSergey Petrunya
 
Changing your huge table's data types in production
Changing your huge table's data types in productionChanging your huge table's data types in production
Changing your huge table's data types in productionJimmy Angelakos
 

Tendances (20)

What's New in MariaDB Server 10.3
What's New in MariaDB Server 10.3What's New in MariaDB Server 10.3
What's New in MariaDB Server 10.3
 
Optimizer Hints
Optimizer HintsOptimizer Hints
Optimizer Hints
 
DB2 LUW - Backup and Recovery
DB2 LUW - Backup and RecoveryDB2 LUW - Backup and Recovery
DB2 LUW - Backup and Recovery
 
PostgreSQL Table Partitioning / Sharding
PostgreSQL Table Partitioning / ShardingPostgreSQL Table Partitioning / Sharding
PostgreSQL Table Partitioning / Sharding
 
The Top 12 Features new to Oracle 12c
The Top 12 Features new to Oracle 12cThe Top 12 Features new to Oracle 12c
The Top 12 Features new to Oracle 12c
 
Dan Hotka's Top 10 Oracle 12c New Features
Dan Hotka's Top 10 Oracle 12c New FeaturesDan Hotka's Top 10 Oracle 12c New Features
Dan Hotka's Top 10 Oracle 12c New Features
 
Using histograms to get better performance
Using histograms to get better performanceUsing histograms to get better performance
Using histograms to get better performance
 
[Altibase] 12 replication part5 (optimization and monitoring)
[Altibase] 12 replication part5 (optimization and monitoring)[Altibase] 12 replication part5 (optimization and monitoring)
[Altibase] 12 replication part5 (optimization and monitoring)
 
Db2 V12 incompatibilities_&amp;_improvements_over_V11
Db2 V12 incompatibilities_&amp;_improvements_over_V11Db2 V12 incompatibilities_&amp;_improvements_over_V11
Db2 V12 incompatibilities_&amp;_improvements_over_V11
 
DB2UDB_the_Basics Day 4
DB2UDB_the_Basics Day 4DB2UDB_the_Basics Day 4
DB2UDB_the_Basics Day 4
 
IBM DB2 for z/OS Administration Basics
IBM DB2 for z/OS Administration BasicsIBM DB2 for z/OS Administration Basics
IBM DB2 for z/OS Administration Basics
 
Great performance at scale~次期PostgreSQL12のパーティショニング性能の実力に迫る~
Great performance at scale~次期PostgreSQL12のパーティショニング性能の実力に迫る~Great performance at scale~次期PostgreSQL12のパーティショニング性能の実力に迫る~
Great performance at scale~次期PostgreSQL12のパーティショニング性能の実力に迫る~
 
Oracle Database 12.1.0.2 New Performance Features
Oracle Database 12.1.0.2 New Performance FeaturesOracle Database 12.1.0.2 New Performance Features
Oracle Database 12.1.0.2 New Performance Features
 
PGConf.ASIA 2017 Logical Replication Internals (English)
PGConf.ASIA 2017 Logical Replication Internals (English)PGConf.ASIA 2017 Logical Replication Internals (English)
PGConf.ASIA 2017 Logical Replication Internals (English)
 
Query Optimizer in MariaDB 10.4
Query Optimizer in MariaDB 10.4Query Optimizer in MariaDB 10.4
Query Optimizer in MariaDB 10.4
 
DB2UDB_the_Basics Day 6
DB2UDB_the_Basics Day 6DB2UDB_the_Basics Day 6
DB2UDB_the_Basics Day 6
 
Table partitioning in PostgreSQL + Rails
Table partitioning in PostgreSQL + RailsTable partitioning in PostgreSQL + Rails
Table partitioning in PostgreSQL + Rails
 
New features-in-mariadb-and-mysql-optimizers
New features-in-mariadb-and-mysql-optimizersNew features-in-mariadb-and-mysql-optimizers
New features-in-mariadb-and-mysql-optimizers
 
Les 01 Arch
Les 01 ArchLes 01 Arch
Les 01 Arch
 
Changing your huge table's data types in production
Changing your huge table's data types in productionChanging your huge table's data types in production
Changing your huge table's data types in production
 

Similaire à Track 2 session 6 db2 utilities update and best practices v2

Reduce planned database down time with Oracle technology
Reduce planned database down time with Oracle technologyReduce planned database down time with Oracle technology
Reduce planned database down time with Oracle technologyKirill Loifman
 
IDUG NA 2014 / 11 tips for DB2 11 for z/OS
IDUG NA 2014 / 11 tips for DB2 11 for z/OSIDUG NA 2014 / 11 tips for DB2 11 for z/OS
IDUG NA 2014 / 11 tips for DB2 11 for z/OSCuneyt Goksu
 
Technical Introduction to PostgreSQL and PPAS
Technical Introduction to PostgreSQL and PPASTechnical Introduction to PostgreSQL and PPAS
Technical Introduction to PostgreSQL and PPASAshnikbiz
 
IMS05 IMS V14 8gb osam for haldb
IMS05   IMS V14 8gb osam for haldbIMS05   IMS V14 8gb osam for haldb
IMS05 IMS V14 8gb osam for haldbRobert Hain
 
IMS09 ims v14 higlights
IMS09   ims v14 higlightsIMS09   ims v14 higlights
IMS09 ims v14 higlightsRobert Hain
 
Powering GIS Application with PostgreSQL and Postgres Plus
Powering GIS Application with PostgreSQL and Postgres Plus Powering GIS Application with PostgreSQL and Postgres Plus
Powering GIS Application with PostgreSQL and Postgres Plus Ashnikbiz
 
Aioug vizag oracle12c_new_features
Aioug vizag oracle12c_new_featuresAioug vizag oracle12c_new_features
Aioug vizag oracle12c_new_featuresAiougVizagChapter
 
GLOC 2014 NEOOUG - Oracle Database 12c New Features
GLOC 2014 NEOOUG - Oracle Database 12c New FeaturesGLOC 2014 NEOOUG - Oracle Database 12c New Features
GLOC 2014 NEOOUG - Oracle Database 12c New FeaturesBiju Thomas
 
Oracle database 12c new features
Oracle database 12c new featuresOracle database 12c new features
Oracle database 12c new featuresRemote DBA Services
 
Oracle 12 c new-features
Oracle 12 c new-featuresOracle 12 c new-features
Oracle 12 c new-featuresNavneet Upneja
 
Introducing Postgres Plus Advanced Server 9.4
Introducing Postgres Plus Advanced Server 9.4 Introducing Postgres Plus Advanced Server 9.4
Introducing Postgres Plus Advanced Server 9.4 EDB
 
COUG_AAbate_Oracle_Database_12c_New_Features
COUG_AAbate_Oracle_Database_12c_New_FeaturesCOUG_AAbate_Oracle_Database_12c_New_Features
COUG_AAbate_Oracle_Database_12c_New_FeaturesAlfredo Abate
 
Reducing Your E-Business Suite Storage Footprint Using Oracle Advanced Compre...
Reducing Your E-Business Suite Storage Footprint Using Oracle Advanced Compre...Reducing Your E-Business Suite Storage Footprint Using Oracle Advanced Compre...
Reducing Your E-Business Suite Storage Footprint Using Oracle Advanced Compre...Andrejs Karpovs
 
Introducing Postgres Plus Advanced Server 9.4
Introducing Postgres Plus Advanced Server 9.4Introducing Postgres Plus Advanced Server 9.4
Introducing Postgres Plus Advanced Server 9.4EDB
 
Redefining tables online without surprises
Redefining tables online without surprisesRedefining tables online without surprises
Redefining tables online without surprisesNelson Calero
 
Healthcare Claim Reimbursement using Apache Spark
Healthcare Claim Reimbursement using Apache SparkHealthcare Claim Reimbursement using Apache Spark
Healthcare Claim Reimbursement using Apache SparkDatabricks
 
DB2 LUW V11.1 CERTIFICATION TRAINING PART #1
DB2 LUW V11.1 CERTIFICATION TRAINING PART #1DB2 LUW V11.1 CERTIFICATION TRAINING PART #1
DB2 LUW V11.1 CERTIFICATION TRAINING PART #1sunildupakuntla
 
IBM Tivoli Storage Manager V6 - PCTY 2011
IBM Tivoli Storage Manager V6 - PCTY 2011IBM Tivoli Storage Manager V6 - PCTY 2011
IBM Tivoli Storage Manager V6 - PCTY 2011IBM Sverige
 
Oracle Database 12c features for DBA
Oracle Database 12c features for DBAOracle Database 12c features for DBA
Oracle Database 12c features for DBAKaran Kukreja
 
PostgreSQL 9.5 - Major Features
PostgreSQL 9.5 - Major FeaturesPostgreSQL 9.5 - Major Features
PostgreSQL 9.5 - Major FeaturesInMobi Technology
 

Similaire à Track 2 session 6 db2 utilities update and best practices v2 (20)

Reduce planned database down time with Oracle technology
Reduce planned database down time with Oracle technologyReduce planned database down time with Oracle technology
Reduce planned database down time with Oracle technology
 
IDUG NA 2014 / 11 tips for DB2 11 for z/OS
IDUG NA 2014 / 11 tips for DB2 11 for z/OSIDUG NA 2014 / 11 tips for DB2 11 for z/OS
IDUG NA 2014 / 11 tips for DB2 11 for z/OS
 
Technical Introduction to PostgreSQL and PPAS
Technical Introduction to PostgreSQL and PPASTechnical Introduction to PostgreSQL and PPAS
Technical Introduction to PostgreSQL and PPAS
 
IMS05 IMS V14 8gb osam for haldb
IMS05   IMS V14 8gb osam for haldbIMS05   IMS V14 8gb osam for haldb
IMS05 IMS V14 8gb osam for haldb
 
IMS09 ims v14 higlights
IMS09   ims v14 higlightsIMS09   ims v14 higlights
IMS09 ims v14 higlights
 
Powering GIS Application with PostgreSQL and Postgres Plus
Powering GIS Application with PostgreSQL and Postgres Plus Powering GIS Application with PostgreSQL and Postgres Plus
Powering GIS Application with PostgreSQL and Postgres Plus
 
Aioug vizag oracle12c_new_features
Aioug vizag oracle12c_new_featuresAioug vizag oracle12c_new_features
Aioug vizag oracle12c_new_features
 
GLOC 2014 NEOOUG - Oracle Database 12c New Features
GLOC 2014 NEOOUG - Oracle Database 12c New FeaturesGLOC 2014 NEOOUG - Oracle Database 12c New Features
GLOC 2014 NEOOUG - Oracle Database 12c New Features
 
Oracle database 12c new features
Oracle database 12c new featuresOracle database 12c new features
Oracle database 12c new features
 
Oracle 12 c new-features
Oracle 12 c new-featuresOracle 12 c new-features
Oracle 12 c new-features
 
Introducing Postgres Plus Advanced Server 9.4
Introducing Postgres Plus Advanced Server 9.4 Introducing Postgres Plus Advanced Server 9.4
Introducing Postgres Plus Advanced Server 9.4
 
COUG_AAbate_Oracle_Database_12c_New_Features
COUG_AAbate_Oracle_Database_12c_New_FeaturesCOUG_AAbate_Oracle_Database_12c_New_Features
COUG_AAbate_Oracle_Database_12c_New_Features
 
Reducing Your E-Business Suite Storage Footprint Using Oracle Advanced Compre...
Reducing Your E-Business Suite Storage Footprint Using Oracle Advanced Compre...Reducing Your E-Business Suite Storage Footprint Using Oracle Advanced Compre...
Reducing Your E-Business Suite Storage Footprint Using Oracle Advanced Compre...
 
Introducing Postgres Plus Advanced Server 9.4
Introducing Postgres Plus Advanced Server 9.4Introducing Postgres Plus Advanced Server 9.4
Introducing Postgres Plus Advanced Server 9.4
 
Redefining tables online without surprises
Redefining tables online without surprisesRedefining tables online without surprises
Redefining tables online without surprises
 
Healthcare Claim Reimbursement using Apache Spark
Healthcare Claim Reimbursement using Apache SparkHealthcare Claim Reimbursement using Apache Spark
Healthcare Claim Reimbursement using Apache Spark
 
DB2 LUW V11.1 CERTIFICATION TRAINING PART #1
DB2 LUW V11.1 CERTIFICATION TRAINING PART #1DB2 LUW V11.1 CERTIFICATION TRAINING PART #1
DB2 LUW V11.1 CERTIFICATION TRAINING PART #1
 
IBM Tivoli Storage Manager V6 - PCTY 2011
IBM Tivoli Storage Manager V6 - PCTY 2011IBM Tivoli Storage Manager V6 - PCTY 2011
IBM Tivoli Storage Manager V6 - PCTY 2011
 
Oracle Database 12c features for DBA
Oracle Database 12c features for DBAOracle Database 12c features for DBA
Oracle Database 12c features for DBA
 
PostgreSQL 9.5 - Major Features
PostgreSQL 9.5 - Major FeaturesPostgreSQL 9.5 - Major Features
PostgreSQL 9.5 - Major Features
 

Dernier

Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...
Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...
Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...panagenda
 
Connecting the Dots for Information Discovery.pdf
Connecting the Dots for Information Discovery.pdfConnecting the Dots for Information Discovery.pdf
Connecting the Dots for Information Discovery.pdfNeo4j
 
Varsha Sewlal- Cyber Attacks on Critical Critical Infrastructure
Varsha Sewlal- Cyber Attacks on Critical Critical InfrastructureVarsha Sewlal- Cyber Attacks on Critical Critical Infrastructure
Varsha Sewlal- Cyber Attacks on Critical Critical Infrastructureitnewsafrica
 
So einfach geht modernes Roaming fuer Notes und Nomad.pdf
So einfach geht modernes Roaming fuer Notes und Nomad.pdfSo einfach geht modernes Roaming fuer Notes und Nomad.pdf
So einfach geht modernes Roaming fuer Notes und Nomad.pdfpanagenda
 
Zeshan Sattar- Assessing the skill requirements and industry expectations for...
Zeshan Sattar- Assessing the skill requirements and industry expectations for...Zeshan Sattar- Assessing the skill requirements and industry expectations for...
Zeshan Sattar- Assessing the skill requirements and industry expectations for...itnewsafrica
 
Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...
Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...
Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...Alkin Tezuysal
 
Genislab builds better products and faster go-to-market with Lean project man...
Genislab builds better products and faster go-to-market with Lean project man...Genislab builds better products and faster go-to-market with Lean project man...
Genislab builds better products and faster go-to-market with Lean project man...Farhan Tariq
 
Infrared simulation and processing on Nvidia platforms
Infrared simulation and processing on Nvidia platformsInfrared simulation and processing on Nvidia platforms
Infrared simulation and processing on Nvidia platformsYoss Cohen
 
Transcript: New from BookNet Canada for 2024: BNC SalesData and LibraryData -...
Transcript: New from BookNet Canada for 2024: BNC SalesData and LibraryData -...Transcript: New from BookNet Canada for 2024: BNC SalesData and LibraryData -...
Transcript: New from BookNet Canada for 2024: BNC SalesData and LibraryData -...BookNet Canada
 
Emixa Mendix Meetup 11 April 2024 about Mendix Native development
Emixa Mendix Meetup 11 April 2024 about Mendix Native developmentEmixa Mendix Meetup 11 April 2024 about Mendix Native development
Emixa Mendix Meetup 11 April 2024 about Mendix Native developmentPim van der Noll
 
Modern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
Modern Roaming for Notes and Nomad – Cheaper Faster Better StrongerModern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
Modern Roaming for Notes and Nomad – Cheaper Faster Better Strongerpanagenda
 
Microsoft 365 Copilot: How to boost your productivity with AI – Part two: Dat...
Microsoft 365 Copilot: How to boost your productivity with AI – Part two: Dat...Microsoft 365 Copilot: How to boost your productivity with AI – Part two: Dat...
Microsoft 365 Copilot: How to boost your productivity with AI – Part two: Dat...Nikki Chapple
 
React JS; all concepts. Contains React Features, JSX, functional & Class comp...
React JS; all concepts. Contains React Features, JSX, functional & Class comp...React JS; all concepts. Contains React Features, JSX, functional & Class comp...
React JS; all concepts. Contains React Features, JSX, functional & Class comp...Karmanjay Verma
 
React Native vs Ionic - The Best Mobile App Framework
React Native vs Ionic - The Best Mobile App FrameworkReact Native vs Ionic - The Best Mobile App Framework
React Native vs Ionic - The Best Mobile App FrameworkPixlogix Infotech
 
Tampa BSides - The No BS SOC (slides from April 6, 2024 talk)
Tampa BSides - The No BS SOC (slides from April 6, 2024 talk)Tampa BSides - The No BS SOC (slides from April 6, 2024 talk)
Tampa BSides - The No BS SOC (slides from April 6, 2024 talk)Mark Simos
 
Generative AI - Gitex v1Generative AI - Gitex v1.pptx
Generative AI - Gitex v1Generative AI - Gitex v1.pptxGenerative AI - Gitex v1Generative AI - Gitex v1.pptx
Generative AI - Gitex v1Generative AI - Gitex v1.pptxfnnc6jmgwh
 
Digital Tools & AI in Career Development
Digital Tools & AI in Career DevelopmentDigital Tools & AI in Career Development
Digital Tools & AI in Career DevelopmentMahmoud Rabie
 
Email Marketing Automation for Bonterra Impact Management (fka Social Solutio...
Email Marketing Automation for Bonterra Impact Management (fka Social Solutio...Email Marketing Automation for Bonterra Impact Management (fka Social Solutio...
Email Marketing Automation for Bonterra Impact Management (fka Social Solutio...Jeffrey Haguewood
 
[Webinar] SpiraTest - Setting New Standards in Quality Assurance
[Webinar] SpiraTest - Setting New Standards in Quality Assurance[Webinar] SpiraTest - Setting New Standards in Quality Assurance
[Webinar] SpiraTest - Setting New Standards in Quality AssuranceInflectra
 
Glenn Lazarus- Why Your Observability Strategy Needs Security Observability
Glenn Lazarus- Why Your Observability Strategy Needs Security ObservabilityGlenn Lazarus- Why Your Observability Strategy Needs Security Observability
Glenn Lazarus- Why Your Observability Strategy Needs Security Observabilityitnewsafrica
 

Dernier (20)

Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...
Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...
Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...
 
Connecting the Dots for Information Discovery.pdf
Connecting the Dots for Information Discovery.pdfConnecting the Dots for Information Discovery.pdf
Connecting the Dots for Information Discovery.pdf
 
Varsha Sewlal- Cyber Attacks on Critical Critical Infrastructure
Varsha Sewlal- Cyber Attacks on Critical Critical InfrastructureVarsha Sewlal- Cyber Attacks on Critical Critical Infrastructure
Varsha Sewlal- Cyber Attacks on Critical Critical Infrastructure
 
So einfach geht modernes Roaming fuer Notes und Nomad.pdf
So einfach geht modernes Roaming fuer Notes und Nomad.pdfSo einfach geht modernes Roaming fuer Notes und Nomad.pdf
So einfach geht modernes Roaming fuer Notes und Nomad.pdf
 
Zeshan Sattar- Assessing the skill requirements and industry expectations for...
Zeshan Sattar- Assessing the skill requirements and industry expectations for...Zeshan Sattar- Assessing the skill requirements and industry expectations for...
Zeshan Sattar- Assessing the skill requirements and industry expectations for...
 
Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...
Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...
Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...
 
Genislab builds better products and faster go-to-market with Lean project man...
Genislab builds better products and faster go-to-market with Lean project man...Genislab builds better products and faster go-to-market with Lean project man...
Genislab builds better products and faster go-to-market with Lean project man...
 
Infrared simulation and processing on Nvidia platforms
Infrared simulation and processing on Nvidia platformsInfrared simulation and processing on Nvidia platforms
Infrared simulation and processing on Nvidia platforms
 
Transcript: New from BookNet Canada for 2024: BNC SalesData and LibraryData -...
Transcript: New from BookNet Canada for 2024: BNC SalesData and LibraryData -...Transcript: New from BookNet Canada for 2024: BNC SalesData and LibraryData -...
Transcript: New from BookNet Canada for 2024: BNC SalesData and LibraryData -...
 
Emixa Mendix Meetup 11 April 2024 about Mendix Native development
Emixa Mendix Meetup 11 April 2024 about Mendix Native developmentEmixa Mendix Meetup 11 April 2024 about Mendix Native development
Emixa Mendix Meetup 11 April 2024 about Mendix Native development
 
Modern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
Modern Roaming for Notes and Nomad – Cheaper Faster Better StrongerModern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
Modern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
 
Microsoft 365 Copilot: How to boost your productivity with AI – Part two: Dat...
Microsoft 365 Copilot: How to boost your productivity with AI – Part two: Dat...Microsoft 365 Copilot: How to boost your productivity with AI – Part two: Dat...
Microsoft 365 Copilot: How to boost your productivity with AI – Part two: Dat...
 
React JS; all concepts. Contains React Features, JSX, functional & Class comp...
React JS; all concepts. Contains React Features, JSX, functional & Class comp...React JS; all concepts. Contains React Features, JSX, functional & Class comp...
React JS; all concepts. Contains React Features, JSX, functional & Class comp...
 
React Native vs Ionic - The Best Mobile App Framework
React Native vs Ionic - The Best Mobile App FrameworkReact Native vs Ionic - The Best Mobile App Framework
React Native vs Ionic - The Best Mobile App Framework
 
Tampa BSides - The No BS SOC (slides from April 6, 2024 talk)
Tampa BSides - The No BS SOC (slides from April 6, 2024 talk)Tampa BSides - The No BS SOC (slides from April 6, 2024 talk)
Tampa BSides - The No BS SOC (slides from April 6, 2024 talk)
 
Generative AI - Gitex v1Generative AI - Gitex v1.pptx
Generative AI - Gitex v1Generative AI - Gitex v1.pptxGenerative AI - Gitex v1Generative AI - Gitex v1.pptx
Generative AI - Gitex v1Generative AI - Gitex v1.pptx
 
Digital Tools & AI in Career Development
Digital Tools & AI in Career DevelopmentDigital Tools & AI in Career Development
Digital Tools & AI in Career Development
 
Email Marketing Automation for Bonterra Impact Management (fka Social Solutio...
Email Marketing Automation for Bonterra Impact Management (fka Social Solutio...Email Marketing Automation for Bonterra Impact Management (fka Social Solutio...
Email Marketing Automation for Bonterra Impact Management (fka Social Solutio...
 
[Webinar] SpiraTest - Setting New Standards in Quality Assurance
[Webinar] SpiraTest - Setting New Standards in Quality Assurance[Webinar] SpiraTest - Setting New Standards in Quality Assurance
[Webinar] SpiraTest - Setting New Standards in Quality Assurance
 
Glenn Lazarus- Why Your Observability Strategy Needs Security Observability
Glenn Lazarus- Why Your Observability Strategy Needs Security ObservabilityGlenn Lazarus- Why Your Observability Strategy Needs Security Observability
Glenn Lazarus- Why Your Observability Strategy Needs Security Observability
 

Track 2 session 6 db2 utilities update and best practices v2

  • 1. DB2 Utilities Update and Best Practices Speaker Name and Title 1
  • 2. Agenda • • • • • • • • • • 2 Overview REORG Statistics Backup and recovery UNLOAD and LOAD Compression dictionaries General enhancements Deprecated items Additional information Summary
  • 3. Overview: goals of DB2 Utilities • Support core DB2 functionality • Reduce CPU, elapsed time and resource consumption • Maximize availability • Remove constraints and limitations • Simplify data management 3
  • 4. Improve performance of part-level online REORG with NPSIs • New option to defer shadow index build until all keys passed through sort • New utility option and ZPARM to govern – AUTO/YES/NO values • Retrofit to DB2 9 and 10 via fix for APAR PM55051 • Result: – Customer test of REORG of 40% of partitions showed 55% elapsed time reduction and 22% CPU increase – When used in the same online REORG scenario, DB2 Sort provides additional elapsed time reduction and cuts CPU cost to less than original starting point 4
  • 5. SWITCH phase impact relief – reduced application impact • Easier drain acquisition • Prevent new claims on all target partitions while waiting for drains on target partitions REORG drain duration and switch time – Faster drain acquisition for partition-level REORG DB2 10 drain duration DB2 10 switch phase 1200 • New DRAIN_ALLPARTS option to momentarily drain all data parts • SWITCH phase processing restructured for outage reduction – SWITCH phase ET reduction of 91% measured when REORGing 20 partitions 5 1000 Seconds – Eliminates claim-drain “deadlocks” for partition-level REORG with NPSIs DB2 11 drain duration DB2 11 switch phase 800 600 400 200 0 0 1000 2000 Number of partitions 3000 4000
  • 6. Timing of SWITCH phase with MAXRO DEFER • Govern timing of drain and switch for long-running REORGs without the need to schedule separate -ALTER UTILITY command • New SWITCHTIME parameter to determine earliest point at which drain processing will be attempted SWITCHTIME NONE NEWMAXRO SWITCHTIME NEWMAXRO integer timestamp labeled-duration-expression 6 NONE
  • 7. Physically delete empty PBG partitions • Ability for REORG to physically delete empty PBG partitions • New ZPARM: REORG_DROP_PBG_PARTS – DISABLE – keep V10 behavior (default) – ENABLE – delete empty PBG partitions on table space-level REORG • Considerations: – Cannot be specified on REORG statement – If PBG created using NUMPARTS or if ALTER ADD partition used, REORG may prune to a lesser number of partitions – No point-in-time recovery to prior to a partition-pruning REORG • No facility to resurrect deleted partitions 7
  • 8. Automated handling of mapping tables • • • • Prior to DB2 11, scalability constraint when size of mapping table index limits the number of rows that can be REORGed Mapping table DDL must change in 11 due to longer RBA/LRSN Requirement to automate handling of mapping tables Solution: New automated mapping table functionality in REORG – Support for mapping tables in partition-by-growth table spaces • Increases max size of mapping index from 64GB to 16TB – Retrofit to DB2 9 and 10 via APAR PM58177 – Automatically create new-format mapping table if required 1. 2. 3. 4. 5. If mapping table specified and correct format then honor specification Else if specified but incorrect format then create new in same database as original Else if not specified and ZPARM database specified then create in that database Else create in implicitly-created database DROP at end of REORG or end of last REORG if multiple REORGs in job step – NFM requires new-format mapping table • 8 CM, CM*, ENFM, ENFM* support old- and new-format mapping table
  • 9. REORG without sorting data • Increasingly REORGs are performed for reasons other than to regain clustering of data, yet no ability to avoid cost of reclustering • Before DB2 11, REORG SHRLEVEL CHANGE did not support SORTDATA NO • DB2 11 allows SORTDATA NO with SHRLEVEL CHANGE • New RECLUSTER YES/NO option on SORTDATA NO – RECLUSTER NO – Do not unload data through clustering index and do not sort data records in clustering order 9
  • 10. Partition-level inline image copy • Faster partition-level recovery from inline image copy • Create partition-level inline image copies if using TEMPLATE with &PA or &PART – No new option or keyword on REORG – PM93611: • Support substring notation with &PA and &PART as long as it ensures uniqueness • Support writing to tape as long as STACK YES not specified • RECOVER of single partition of a 20-partition table space – ET reduced by 28% – CPU reduced by 49% 14 12 10 Tablespace imagecopy Partition imagecopy 8 6 4 2 0 10 Elapsed CPU
  • 11. Improved REORG LISTDEF processing • PARALLEL YES/NO option introduced via APAR in DB2 9 – NO – Prevent REORG from processing multiple partitions in parallel in a single REORG when input is partition-level LISTDEF – ZPARM: REORG_LIST_PROCESSING • Need compromise option for customers who want to take advantage of REORG parallelism but cannot afford to shadow many partitions at a time • New option LISTPARTS n to limit number of partitions to be processed in a single REORG if input is a partition-level LISTDEF • With DB2 11, PARALLEL YES/NO is replaced by PARALLEL(n), with “n” specifying the maximum number of subtasks to be started in parallel for a REORG 11
  • 12. REBALANCE enhancements • Improved availability & failure prevention • Support REORG SHRLEVEL CHANGE REBALANCE – Complements online ALTER of partition limit key value • Improve resiliency with enhanced distribution algorithm and improved handling of empty partitions • Build compression dictionary for all partitions – Previously, partitions that were empty at the start of REORG would not have a dictionary built, requiring a subsequent REORG to get compression • New SORTCLUSTER option to sort data in clustering as well as partitioning order to avoid AREO* – Occurred when partitioning key not a superset of clustering key 12
  • 13. REORG of LOB data • Support REORG of LOB data even if aux index is unavailable – Problem in DB2 10 if LOB tablespace is REORP and index is RBDP • LOBs can’t be REORGed and index can’t be rebuilt • REORG SHRLEVEL NONE for LOBs changed to RC8 from DB2 11 CM onwards – Not supported in 10 NFM, but returns RC0 with MSGDSNU126I 13
  • 14. Improved REORG serviceability • Need ability to use online REORG even when SYSLGRNX cannot be relied upon • Support LOGRANGES NO option for REORG SHRLEVEL CHANGE 14
  • 15. REORG change of defaults to match best practices • Change default options: – DRAIN WRITERS to DRAIN ALL – DISCARD to DISCARD NOPAD YES – UNLOAD EXTERNAL to UNLOAD EXTERNAL NOPAD YES 15
  • 16. REORG best practices • REORG SHRLEVEL CHANGE for maximum availability • Use DRAIN ALL rather than DRAIN WRITERS • Use TIMEOUT TERM to free up objects on timeouts • If minimizing application impact is key: – (DRAIN_WAIT + MAXRO) < (IRLMRWT - 5 or 10 secs) for minimal application impact – Specify high RETRY value (6 or more) • If REORG success in a small window is key: – Consider starting REORG early with MAXRO DEFER then -ALTER UTILITY command – High DRAIN_WAIT and MAXRO to guarantee REORG success • If using REORG DISCARD, use NOPAD for improved performance • LOBs: – SHRLEVEL REFERENCE in DB2 9, SHRLEVEL CHANGE in DB2 10 – Stop using SHRLEVEL NONE before DB2 10 NFM 16
  • 17. Statistics enhancements • More zIIP offload for RUNSTATS distribution statistics – Up to 80% zIIP-eligible • zIIP offload for inline statistics – Up to 30% offload to zIIP • Enhance inline statistics for RUNSTATS avoidance – Inline statistics collection on NPSIs during REORG with SORTNPSI – Inline histogram statistics – Inline COLGROUP distribution statistics • New RUNSTATS RESET option to reset existing statistics • Improved PROFILE usability for LISTDEF processing – Gather default statistics if no profile exists for table 17
  • 18. Statistics enhancements • Optimizer determination of missing statistics – Optimizer identifies missing statistics and writes information to new catalog table SYSSTATFEEDBACK – OQWT modifies statistics profile – Automation Tool detects profile change and builds RUNSTATS job – DSNACCOX similarly enhanced to recommend RUNSTATS • -ACCESS DATABASE … MODE(STATS) option to externalize RTS statistics • RTS overhead reduction 18
  • 19. Statistics best practices • Do not use RUNSTATS to gather space statistics – rely on real-time statistics • Do not gather unnecessary statistics • Use sampling, and TABLESAMPLE in DB2 10 • Use profiles in DB2 10 and 11 • Use inline stats where possible rather than RUNSTATS (but no zIIP for inline stats in DB2 10) • Specify KEYCARD prior to DB2 10 – Index cardinality stats are cheap to collect and heavily relied upon by optimizer • Don’t bother running RUNSTATS on LOB table spaces – RTS contains all the information you need 19
  • 20. Backup and recovery enhancements • Faster directory recovery – SYSLGRNX recording extended to previously not-recorded directory objects • New VCAT name translation for RESTORE SYSTEM for system cloning – Support log apply when RESTORE SYSTEM used for cloning purposes • Improved recoverability with COPY/REORG concurrency – Permit COPY to run concurrent with long-running REORGs • Avoid allocating empty image copy datasets for incremental or CHANGELIMIT copies • Lifted many restrictions on PIT recovery prior to materializing REORG – PIT recovery restrictions lifted for • LOB, XML and PBR table spaces • Including when immediate alters have occurred since materializing REORG – PIT recovery restrictions still in place • • • • 20 Table space conversion PBG table spaces PBG partition pruning Online DROP COLUMN
  • 21. Backup and recovery best practices • SHRLEVEL CHANGE unless consistent copies are essential • Use PARALLEL keyword to exploit parallelism • Consider OPTIONS EVENT(ITEMERROR,SKIP) – Sets UTRW state only for duration of copy of individual page set – But increases COPY overhead – Serialization required for each pageset on the fly • Consider taking incremental copies and using MERGECOPY – MERGECOPY marks relevant page set UTRW • Copy indexes on large, critical tables – Particularly if rarely or never updated – Only drawback: increase in SYSLGRNX and SYSCOPY recording – Automatically included in MODIFY RECOVERY 21
  • 22. LOAD and UNLOAD enhancements • Cross-loader support for XML data • Exploit FETCH CONTINUE for processing large LOBs and XML data with cross-loader – Reduce virtual storage requirement – Avoid DSNU1178i errors – 28% CPU reduction • Load of 1Mb LOBs • zIIP offload for LOAD REPLACE PART clearing of NPSIs – 100% offload to zIIP for LOAD REPLACE with dummy input 22
  • 23. LOAD and UNLOAD enhancements •LOAD SHRLEVEL NONE PARALLEL with single input dataset – Parallel data conversion – Not supported for PBGs – 50% ET reduction possible on single SYSREC load Conversion 1 Part Conversion 2 Input Read Conversion 3 SYSREC Conversion 4 1 Load task Part 2 Conversion 5 23
  • 24. LOAD and UNLOAD enhancements •LOAD SHRLEVEL CHANGE PARALLEL – Supports non-partitioned as well as partitioned – Single input dataset – Not supported for PBGs – >80% ET reduction Conversion 1 Conversion 2 Input SYSREC Part 1 Read task Conversion 3 Part Conversion 4 24 2
  • 25. LOAD and UNLOAD best practices • Run LOAD with LOG NO, REUSE, KEEPDICTIONARY if possible • Use SORTDEVT to drive parallel index build • Allocate inline copy data sets to DASD • Split up input dataset and drive LOAD partition parallelism in a single LOAD • Use SORTNUM elimination • Specify NUMRECS if input is on tape or only a fraction of input records will be loaded • If loading partitioned table with single input dataset, presort data in clustering (partitioning) key order – PRESORT option in Utility Enhancement Tool • For LOAD REPLACE, consider loading into a “clone” then renaming tables or datasets • Consider using USS named pipes • Use FORMAT INTERNAL, PRESORTED or INDEXDEFER if possible 25
  • 26. Compression dictionaries • Avoid decompression failures for IFI 306 readers when new compression dictionary built by REORG/LOAD • Old compression dictionary stored on log • New SYSCOPY record written pointing to old compression dictionary for CDC tables • IFI 306 read automatically retrieves old compression dictionary if necessary • Avoid need for replication target refresh when dictionary changes 26
  • 27. General enhancements • Greater parallelism for faster utilities – 11% elapsed time reduction measured for REORG, LOAD, REBUILD INDEX • PARALLEL option for parallelism control for LOAD, REORG, REBUILD INDEX, UNLOAD, CHECK INDEX • -DISPLAY UTILITY enhancements – Remove serialization between -DIS UTIL and -TERM UTIL – Jobname, start timestamp – Late addition: SWITCHTIME and NEWMAXRO • Utility impact reduction on buffer pools – Extend MRU for UNLOAD, REORG TABLESPACE, RUNSTATS TABLESPACE, RUNSTATS INDEX, REBUILD INDEX, CHECK INDEX, CHECK DATA • Improved dataset cleanup with utility stored procedures – Previously, datasets remained allocated on utility failure, preventing cleanup 27
  • 28. General enhancements • Improved TEMPLATE support for large / extended format data sets and local time values – DSNTYPE LARGE, EXTREQ, EXTPREF – New EATTR option on TEMPLATE to request extended attributes – New TIME LOCAL|UTC option • Enforce NUMTCB=1 for utility stored procedures • DSNACCOX performance 400 350 300 250 V10 Elapsed V11 Elapsed 200 150 100 50 0 28 DSNACCOX query where DB=x
  • 29. Deprecated items • REORG SHRLEVEL NONE for LOBs changed to RC8 from DB2 11 CM onwards – Not supported in 10 NFM, but returns RC0 with MSGDSNU126I • Still supported in 11, but no longer documented: – REORG • PARALLEL YES|NO – Superseded by LISTPARTS • • • • • • INDREFLIMIT OFFPOSLIMIT LEAFDISTLIMIT UNLOAD ONLY UNLOAD PAUSE UNLOAD EXTERNAL – COPY • CHANGELIMIT 29
  • 30. Want to learn more about DB2 utilities? • Attend a DB2 Utilities Workshop – What is it? • Complimentary (1/2 day+) session with information to help gain a better understanding of the features delivered in the DB2 Utilities Suite for z/OS and how they can be used to manage your DB2 environment. Topics include: – Which utility features can save you time and money – Understanding your utility maintenance needs to meet SLAs – What’s the benefit to you? • Useful information, materials and contacts help you achieve the maximum benefits from the features delivered in the DB2 Utilities Suite for z/OS and how they can help manage your utility maintenance to improve your DB2 for z/OS critical applications – Who is it designed for? • DBAs/App DBAs, DB2 system administrators, and technical management – Contact your IBM sales rep for more details and to schedule 30
  • 31. Best practice tip for DB2 utilities: the DB2 Utilities Solution Pack • During DB2 utilities sort processing, reduce CPU usage and elapsed time by up to 50%* • Eliminate ALL CPU and elapsed time by avoiding unnecessary utility processing – Set it and forget it, adjust to fit changing needs • Use the fastest and most flexible unload in the market to modernize your data movement • Set company-wide DB2 utility standards – Enforced and auditable • ONE change to embedded DB2 Utility JCL can find and update every occurrence in every application with the most current version of DB2 for z/OS * With zIIP engine 31 “More data, reduced costs” Optimize, control manage & automate How do we get the When used with the best DB2 Utilities IBM control over DB2 utility beats or Suite, IBM processing? matches performance with every other How do we save 3rd party vendor for: CPU & Elapsed time while improving availability? CPU •Using less •Reducing ET How do we do smart •More zIIP offload automation for DB2 utilities execution? DB2 Utilities Solution Pack Solution
  • 32. General best practices • Plan your move to DB2 11 to take advantage of the latest in DB2 11 enhancements • Stay current on DB2 maintenance as much as possible • Attend a DB2 Utilities Workshop • Check out the DB2 Utilities Solution Pack to make your DB2 utility environment more efficient and easier to manage 32
  • 33. Summary • Day One support for utilities and utility management products with core DB2 versions/functions • Innovation continuing and delivery pace accelerating • Continuous delivery of performance enhancements and features with real business value • Eliminate application impact from utilities • Reduce elapsed time and CPU consumption • Reduce resource consumption • Reduce complexity and improve automation -- Build expert knowledge into the tools, not just tools for the expert! 33