SlideShare a Scribd company logo
DB2 10 for z/OS
A Smarter Database for a
    Smarter Planet

                                             Julian Stuhler
                                         Triton Consulting
                                  IBM DB2 Technical Forum
                                         10th March 2011


   The Information Management Specialists
Topics
•   Introduction
•   DB2 10 for z/OS Highlights
•   Migrating to DB2 10
•   Summary / Questions


        Thanks to Roger Miller for providing much of the performance
                      information in this presentation


                    The Information Management Specialists
Introduction
• Director and Principal Consultant at Triton Consulting
• 23 years DB2 experience, 18 as a consultant working with
  customers in UK, Europe and the US
• IBM Gold Consultant since 1999
• IBM Information Champion
• Former IDUG (International DB2 User Group) President
• Author of IBM Redbooks, white papers and more recently
  “flashbooks”


                  The Information Management Specialists
DB2 10 for z/OS Highlights




          The Information Management Specialists
DB2 10 for z/OS
• Extensive beta program running throughout
  2009/10, with customers from all around the world
• Generally available since October 2010
• First customers now running DB2 10 in production
• Many customers are planning their DB2 10 upgrades
  to begin in the next 12-24 months



               The Information Management Specialists
Top New Features
• CPU/Performance Improvements       • Optimiser enhancements
• Virtual Storage Enhancements       • MEMBER CLUSTER for UTS
• Security Extensions                • Backup and recovery
• Improved Catalog Concurrency         enhancements
• Temporal Data                      • Enhanced audit
• Access Path Management             • Include additional index
                                       columns
• pureXML enhancements
• Currently Committed semantics
                                     • Enhanced SQL OLAP functions
• Automated statistics
                                     • Skip Migration (see later)
• Dynamic schema change
  enhancements                       • And many more….
• In-memory object support

                   The Information Management Specialists
CPU/Performance Improvements




         The Information Management Specialists
CPU/Performance Improvements
• CPU improvements were one of the major design goals
  for DB2 10
     Many savings available ““Out of the box” with no application or
     database changes
     Even more available with some DBA / developer effort
• CPU reductions for transactions, queries, and batch
     CPU reductions of 5-10% for traditional workloads
     Up to additional 10% CPU savings using new functions
     CPU reductions of up to 20% for new workloads
     For static SQL, REBIND typically required


                  The Information Management Specialists
Performance enhancements requiring
few changes (CM)
•   SQL runtime improved efficiency
•   Address space, memory changes to 64 bit, some REBINDs
•   Faster single row retrievals via open / fetch / close chaining
•   Distributed thread reuse High Performance DBATs
•   DB2 9 utility enhancements in CM8
•   Parallel index update at insert
•   Workfile in-memory enhancements
•   Index list prefetch
•   Solid State Disk use
•   Buffer pool enhancements
        Utilize 1MB page size on z10
        “Fully in memory” option (ALTER BUFFERPOOL)


                        The Information Management Specialists
Performance enhancements requiring
REBIND (CM)
• Most access path                       • Use of RELEASE(DEALLOCATE)
  enhancements                           • Safe query optimization
• Further SQL runtime                    • Query parallelism
  improvements                             improvements
• SQL paging performance                 • More stage 2 predicates can be
  enhancements                             pushed down to stage 1
      Single index access for complex    • More aggressive merge of views
      OR predicates:
                                           and table expressions
• IN list performance                           Avoid materialization of views
      Optimized Stage1 processing
      (single or multiple IN lists)      • If migrating from V8, get new
      Matching index scan on multiple       RUNSTATS before mass rebind
      IN lists

                      The Information Management Specialists
Performance enhancements requiring
NFM
•   DB2 catalog concurrency and productivity
•   Compress on insert
•   Most utility enhancements
•   LOB streaming between DDF and rest of DB2
•   Faster fetch and insert, lower virtual storage consumption
•   SQL Procedure Language performance improvements
•   Workfile spanned records, partition by growth
•   Access to currently committed data
•   Insert improvement for universal table spaces
•   Locking improvement for multirow insert
•   Efficient caching of dynamic SQL statements with literals


                       The Information Management Specialists
Performance enhancements which
need NFM + DBA work
• Hash access path
• Index include columns
• Inline LOBs
• DEFINE NO for LOB and XML columns
• MEMBER CLUSTER for universal table space
• Alter to universal table space, page size, data set size,
  segment size
• Online reorg for all catalog and directory table spaces

                  The Information Management Specialists
Virtual Storage Enhancements
• V8 began a major project to
  transform DB2 into a 64-bit RDBMS
       Laid the groundwork and provided
       some scalability improvements but a
       lot of DBM1 objects remained below
       the 2GB bar
• DB2 9 improved things a little, but
  only by another 10-15% for most
  customers
       Practical limit of 300-500 threads per
       DB2 subsystem                            • Less DB2 subsystems
                                                       Lower data sharing overhead
• DB2 10 moves 80-90% of the                           Less systems to manage / maintain
  remaining objects above the bar,
  resulting in 5-10x improvement in             • More space for critical storage objects
                                                  such as dynamic statement cache
  threads per subsystem

                         The Information Management Specialists
Security Extensions
• New authorities introduced to separate data
  administration and data access
     Security Administrator (SECADM)
     System DBA (SYSTEM DBADM)
     Data Administrator (DATAACCESS)
     Performance Specialist (SQLADM)
• New row and column data access policy controls
     Fully integrated into database engine
     Applies to SELECT, INSERT, UPDATE and DELETE


                  The Information Management Specialists
Security Extensions




          The Information Management Specialists
Security Extensions




          The Information Management Specialists
Temporal Data
• Most IT systems need to keep historical as well as current
  information
• Requires lots of effort by DBA and developer to design, test
  and implement – lots of “reinventing the wheel”
• DB2 10 provides this functionality as part of the database
  engine, making DBAs and developers more productive
      DBA indicates which tables/columns need temporal support at
      CREATE/ALTER time
      DB2 automatically maintains history table whenever row in main table
      is changed via INSERT/DELETE/UPDATE
      Elegant extensions to SELECT allow historical perspective to ben seen
      via standard SQL

                     The Information Management Specialists
Temporal Data




         The Information Management Specialists
…and if you’re going direct from V8…
• pureXML                                 • Network trusted contexts
                                              and Roles
• Universal tablespaces                   •   Instead-of triggers
    (PBG/PBR)                             •   Clone tables
•   Native SQL stored                     •   Automatic object creation
    procedures                            •   Dynamic schema change
•   Index on expression                       enhancements
•   Reordered row format                  •   SQL MERGE
                                          •   TRUNCATE TABLE
•   Utility CPU enhancements              •   ..and many others
•   LOB enhancements

                    The Information Management Specialists
Migrating to DB2 10 for z/OS




          The Information Management Specialists
DB2 10 Major Technical Pre-Reqs
•   z/OS 1.10 or later
•   At DB2 V8 or DB2 9 in NFM with migration/fallback SPE applied
•   REBINDs for packages bound at V5 or lower
•   Replace DBRMs bound directly in plans with packages
•   Remove all use of private protocol
•   Prepare for SMS-managed catalog objects
•   New PLAN_TABLE formats
•   DB2 client and DB2 Connect 9
       9.7 FP3a for function & performance
• Convert DB2-managed stored procedures (if migrating from DB2 V8)
• … and many more minor ones – check the Install Guide for a full list


                        The Information Management Specialists
“Normal” Upgrade from DB2 9
• Follows same overall process as DB2 V8 to DB2 9 upgrade
      Must be in DB2 9 NFM with all DB2 10 technical pre-reqs met
      Move to DB2 10 CM (Conversion Mode)
      Move to DB2 10 NFM via ENFM
• Support for “rolling upgrade” in data sharing group
      All members must have pre-migration SPE applied before CM is
      attempted
      All members must be at DB2 10 CM before ENFM is attempted
• Plan stability feature (PK52523) will be a major advantage for
  those who have previously suffered from “Rebindaphobia”

                    The Information Management Specialists
DB2 9 to DB2 10 Upgrade

                                DB2 10 CM*                 DB2 10 ENFM*
                                  (CM9*)                     (ENFM9*)




 DB2 9           DB2 10 CM            DB2 10 ENFM                 DB2 10 NFM
NFM+SPE            (CM9)                (ENFM9)                     (NFM)



                                   Fallback to DB2 9 not
                                    possible from this
     Version Fallback                  point onwards


                   The Information Management Specialists
“Skip Migration” Upgrade from V8
• DB2 10 is the first release since V7 to support “skip migration” from
   a previous release
      Tested by customers as part of the DB2 10 beta program
      First customer to go with DB2 10 in production used skip migration
      Rare opportunity for back-level customers to catch up with DB2 release
      schedule
• Risks and benefits must be carefully weighed
      Must meet prereqs for DB2 9 as well as the new ones for DB2 10
      Robust, mature regression test environment is strongly recommended
      Timing is important, and best practice for applying maintenance is
      essential
      Elapsed time and effort for the upgrade project will probably be greater
      than for a “normal” migration, but less than two separate upgrades
      Lots of new function to assimilate once upgrade is complete!
                      The Information Management Specialists
“Skip Migration” Upgrade from V8
• No plan stability features available until DB2 9, so use the old
  techniques to manage access paths when rebinding on V8
      Original package for package stability can be V8
• Follows same overall process as DB2 V8 to DB2 9 upgrade
      Must be in DB2 8 NFM with all DB2 9 and 10 technical pre-reqs met
      Move to DB2 10 CM (Conversion Mode)
      Move to DB2 10 NFM via ENFM
• Support for “rolling upgrade” in data sharing group
      All members must have pre-migration SPE applied before CM is
      attempted
      All members must be at DB2 10 CM before ENFM is attempted


                     The Information Management Specialists
DB2 8 to DB2 10 Upgrade

                                DB2 10 CM*                 DB2 10 ENFM*
                                  (CM8*)                     (ENFM8*)




 DB2 8           DB2 10 CM            DB2 10 ENFM                 DB2 10 NFM
NFM+SPE            (CM8)                (ENFM8)                     (NFM)



                                   Fallback to DB2 8 not
                                    possible from this
     Version Fallback                  point onwards


                   The Information Management Specialists
Possible DB2 10 Upgrade Strategies
Currently
On DB2 V7
                             Upgrade V7 to V8                        Upgrade V8 to V10


   Just                                 Upgrade V8 to V9                 Upgrade V9 to V10
migrated to
 DB2 V8                                Upgrade V8 to V10

On V8 for             Upgrade V8 to V9                             Upgrade V9 to V10
some time
                                       Upgrade V8 to V10
Already on
 DB2 V9                                            Upgrade V9 to V10

              Jan    Apr         Jul        Oct        Jan                    Jul       Oct
              2011   2011       2011        2011       2012                  2012      2012
                                           November 2011        April 2012
                                                               DB2 V8 out
                            The Information Management Specialists
                                            DB2 10 GA +
                                             12 months         of Support
DB2 10 Migration Resources
• Information APARs
      II14474: DB2 V8 MIGRATION/FALLBACK INFOAPAR TO/FROM DB2 10
      II14477: DB2 9 MIGRATION/FALLBACK INFOAPAR TO/FROM DB2 10
• DSNTIJPM pre-migration checker job
      http://publib.boulder.ibm.com/infocenter/dzichelp/v2r2/index.jsp?topic=/com.ibm
      .db29.doc.inst/db2z_dsntijpa.htm
• Free migration planning workshops from IBM
      ftp://ftp.software.ibm.com/software/data/db2/zos/presentations/migration/db2-
      10-migration-planning-workshop-trifold.pdf
• IDUG DB2 10 Migration Experiences Forum
      http://www.linkedin.com/groups?mostPopular=&gid=3797589
• IBM DB2 for z/OS Best Practices Web Page
      www.ibm.com/developerworks/data/bestpractices/db2zos/
• IDUG, IOD, DB2-L, etc
                       The Information Management Specialists
Further Reading
• IBM White Paper
    DB2 10 for z/OS: A Smarter Database for a Smarter Planet
    https://www14.software.ibm.com/webapp/iwm/web/sign
    up.do?lang=en_US&source=sw-infomgt&S_PKG=wp-z-
    db2-smarter
• DB2 10 Performance Topics Redbook on the way



                The Information Management Specialists
Feedback / Questions


                      Julian Stuhler– julian.stuhler@triton.co.uk

                                   www.triton.co.uk




          The Information Management Specialists

More Related Content

PDF
DB2 10 Smarter Database - IBM Tech Forum
PDF
DB2 10 Webcast #1 - Overview And Migration Planning
PDF
IDUG NA 2014 / 11 tips for DB2 11 for z/OS
PDF
DB2 11 for z/OS Migration Planning and Early Customer Experiences
PPTX
SQL Explore 2012: P&T Part 2
PPT
PPT
DB2 V10 Migration Guidance
PDF
Planning and executing a DB2 11 for z/OS Migration by Ian Cook
DB2 10 Smarter Database - IBM Tech Forum
DB2 10 Webcast #1 - Overview And Migration Planning
IDUG NA 2014 / 11 tips for DB2 11 for z/OS
DB2 11 for z/OS Migration Planning and Early Customer Experiences
SQL Explore 2012: P&T Part 2
DB2 V10 Migration Guidance
Planning and executing a DB2 11 for z/OS Migration by Ian Cook

What's hot (19)

PPT
An Hour of DB2 Tips
PPTX
Aceleracion de aplicacione 2
PPTX
My sql performance tuning course
PDF
IBM DB2 Analytics Accelerator Trends & Directions by Namik Hrle
PPTX
SQL Explore 2012: P&T Part 3
PDF
Enterprise PostgreSQL - EDB's answer to conventional Databases
PDF
MySQL Performance Tuning: Top 10 Tips
PDF
Educational seminar lessons learned from customer db2 for z os health check...
PPT
Maaz Anjum - IOUG Collaborate 2013 - An Insight into Space Realization on ODA...
PPTX
Understanding DB2 Optimizer
DOC
David Baker 2015
PDF
Understanding and controlling transaction logs
PDF
DbB 10 Webcast #3 The Secrets Of Scalability
PDF
DB2 for z/OS Bufferpool Tuning win by Divide and Conquer or Lose by Multiply ...
PPTX
Severalnines Self-Training: MySQL® Cluster - Part VIII
PPTX
Evaluating Daily Checklist Against 1000 Servers using Policy Based Management
PPTX
Storing and managing your content in share point spsnyc
PDF
Best Practices For Optimizing DB2 Performance Final
PPTX
Severalnines Training: MySQL® Cluster - Part IX
An Hour of DB2 Tips
Aceleracion de aplicacione 2
My sql performance tuning course
IBM DB2 Analytics Accelerator Trends & Directions by Namik Hrle
SQL Explore 2012: P&T Part 3
Enterprise PostgreSQL - EDB's answer to conventional Databases
MySQL Performance Tuning: Top 10 Tips
Educational seminar lessons learned from customer db2 for z os health check...
Maaz Anjum - IOUG Collaborate 2013 - An Insight into Space Realization on ODA...
Understanding DB2 Optimizer
David Baker 2015
Understanding and controlling transaction logs
DbB 10 Webcast #3 The Secrets Of Scalability
DB2 for z/OS Bufferpool Tuning win by Divide and Conquer or Lose by Multiply ...
Severalnines Self-Training: MySQL® Cluster - Part VIII
Evaluating Daily Checklist Against 1000 Servers using Policy Based Management
Storing and managing your content in share point spsnyc
Best Practices For Optimizing DB2 Performance Final
Severalnines Training: MySQL® Cluster - Part IX
Ad

Similar to DB210 Smarter Database IBM Tech Forum 2011 (20)

PDF
DB2 10 Webcast #1 Overview And Migration Planning
PDF
Bank Data Frank Peterson DB2 10-Early_Experiences_pdf
PPT
Kb 40 kevin_klineukug_reading20070717[1]
PDF
IMS05 IMS V14 8gb osam for haldb
PPTX
Db2 10 memory management uk db2 user group june 2013
PDF
Db2 10 memory management uk db2 user group june 2013 [read-only]
PDF
IMS09 ims v14 higlights
PPTX
Webinar: Migrating from RDBMS to MongoDB
PDF
Db2 10 Webcast #2 Justifying The Upgrade
PDF
DB2 10 Webcast #2 - Justifying The Upgrade
DOC
PPTX
Evolutionary database design
PDF
IBM Cognos 10.2 Dynamic Cubes Deeper Dive
PDF
SQL Server 2019 CTP2.4
PDF
Advantages of migrating to db2 v11.1
PDF
COUG_AAbate_Oracle_Database_12c_New_Features
PPT
Performance dreams of sql server 2014
PPTX
Handling Massive Writes
PPTX
SQL Server 2014 Features
PDF
SharePoint Storage Best Practices
DB2 10 Webcast #1 Overview And Migration Planning
Bank Data Frank Peterson DB2 10-Early_Experiences_pdf
Kb 40 kevin_klineukug_reading20070717[1]
IMS05 IMS V14 8gb osam for haldb
Db2 10 memory management uk db2 user group june 2013
Db2 10 memory management uk db2 user group june 2013 [read-only]
IMS09 ims v14 higlights
Webinar: Migrating from RDBMS to MongoDB
Db2 10 Webcast #2 Justifying The Upgrade
DB2 10 Webcast #2 - Justifying The Upgrade
Evolutionary database design
IBM Cognos 10.2 Dynamic Cubes Deeper Dive
SQL Server 2019 CTP2.4
Advantages of migrating to db2 v11.1
COUG_AAbate_Oracle_Database_12c_New_Features
Performance dreams of sql server 2014
Handling Massive Writes
SQL Server 2014 Features
SharePoint Storage Best Practices
Ad

More from Laura Hood (20)

PDF
Top 10 DB2 Support Nightmares #10
PDF
Top 10 DB2 Support Nightmares #9
PDF
Top 10 DB2 Support Nightmares #8
PDF
Top 10 DB2 Support Nightmares #7
PDF
Top 10 db2 support nightmares #6
PDF
Consultancy on Demand - Infographic
PDF
A Time Traveller's Guide to DB2: Technology Themes for 2014 and Beyond
PDF
Top 10 DB2 Support Nightmares #1
PDF
DB2 10 Security Enhancements
PDF
Time Travelling With DB2 10 For zOS
PDF
DB2DART - DB2Night Show October 2011
PDF
DB2 z/OS & Java - What\'s New?
PDF
Temporal And Other DB2 10 For Z Os Highlights
PDF
UKGSE DB2 pureScale
PPTX
UKCMG DB2 pureScale
PDF
Episode 4 DB2 pureScale Performance Webinar Oct 2010
PDF
Episode 3 DB2 pureScale Availability And Recovery [Read Only] [Compatibility...
PDF
Episode 2 Installation Triton Slides
PDF
Episode 2 DB2 pureScale Installation, Instance Management & Monitoring
PDF
DB2 pureScale Overview Sept 2010
Top 10 DB2 Support Nightmares #10
Top 10 DB2 Support Nightmares #9
Top 10 DB2 Support Nightmares #8
Top 10 DB2 Support Nightmares #7
Top 10 db2 support nightmares #6
Consultancy on Demand - Infographic
A Time Traveller's Guide to DB2: Technology Themes for 2014 and Beyond
Top 10 DB2 Support Nightmares #1
DB2 10 Security Enhancements
Time Travelling With DB2 10 For zOS
DB2DART - DB2Night Show October 2011
DB2 z/OS & Java - What\'s New?
Temporal And Other DB2 10 For Z Os Highlights
UKGSE DB2 pureScale
UKCMG DB2 pureScale
Episode 4 DB2 pureScale Performance Webinar Oct 2010
Episode 3 DB2 pureScale Availability And Recovery [Read Only] [Compatibility...
Episode 2 Installation Triton Slides
Episode 2 DB2 pureScale Installation, Instance Management & Monitoring
DB2 pureScale Overview Sept 2010

DB210 Smarter Database IBM Tech Forum 2011

  • 1. DB2 10 for z/OS A Smarter Database for a Smarter Planet Julian Stuhler Triton Consulting IBM DB2 Technical Forum 10th March 2011 The Information Management Specialists
  • 2. Topics • Introduction • DB2 10 for z/OS Highlights • Migrating to DB2 10 • Summary / Questions Thanks to Roger Miller for providing much of the performance information in this presentation The Information Management Specialists
  • 3. Introduction • Director and Principal Consultant at Triton Consulting • 23 years DB2 experience, 18 as a consultant working with customers in UK, Europe and the US • IBM Gold Consultant since 1999 • IBM Information Champion • Former IDUG (International DB2 User Group) President • Author of IBM Redbooks, white papers and more recently “flashbooks” The Information Management Specialists
  • 4. DB2 10 for z/OS Highlights The Information Management Specialists
  • 5. DB2 10 for z/OS • Extensive beta program running throughout 2009/10, with customers from all around the world • Generally available since October 2010 • First customers now running DB2 10 in production • Many customers are planning their DB2 10 upgrades to begin in the next 12-24 months The Information Management Specialists
  • 6. Top New Features • CPU/Performance Improvements • Optimiser enhancements • Virtual Storage Enhancements • MEMBER CLUSTER for UTS • Security Extensions • Backup and recovery • Improved Catalog Concurrency enhancements • Temporal Data • Enhanced audit • Access Path Management • Include additional index columns • pureXML enhancements • Currently Committed semantics • Enhanced SQL OLAP functions • Automated statistics • Skip Migration (see later) • Dynamic schema change enhancements • And many more…. • In-memory object support The Information Management Specialists
  • 7. CPU/Performance Improvements The Information Management Specialists
  • 8. CPU/Performance Improvements • CPU improvements were one of the major design goals for DB2 10 Many savings available ““Out of the box” with no application or database changes Even more available with some DBA / developer effort • CPU reductions for transactions, queries, and batch CPU reductions of 5-10% for traditional workloads Up to additional 10% CPU savings using new functions CPU reductions of up to 20% for new workloads For static SQL, REBIND typically required The Information Management Specialists
  • 9. Performance enhancements requiring few changes (CM) • SQL runtime improved efficiency • Address space, memory changes to 64 bit, some REBINDs • Faster single row retrievals via open / fetch / close chaining • Distributed thread reuse High Performance DBATs • DB2 9 utility enhancements in CM8 • Parallel index update at insert • Workfile in-memory enhancements • Index list prefetch • Solid State Disk use • Buffer pool enhancements Utilize 1MB page size on z10 “Fully in memory” option (ALTER BUFFERPOOL) The Information Management Specialists
  • 10. Performance enhancements requiring REBIND (CM) • Most access path • Use of RELEASE(DEALLOCATE) enhancements • Safe query optimization • Further SQL runtime • Query parallelism improvements improvements • SQL paging performance • More stage 2 predicates can be enhancements pushed down to stage 1 Single index access for complex • More aggressive merge of views OR predicates: and table expressions • IN list performance Avoid materialization of views Optimized Stage1 processing (single or multiple IN lists) • If migrating from V8, get new Matching index scan on multiple RUNSTATS before mass rebind IN lists The Information Management Specialists
  • 11. Performance enhancements requiring NFM • DB2 catalog concurrency and productivity • Compress on insert • Most utility enhancements • LOB streaming between DDF and rest of DB2 • Faster fetch and insert, lower virtual storage consumption • SQL Procedure Language performance improvements • Workfile spanned records, partition by growth • Access to currently committed data • Insert improvement for universal table spaces • Locking improvement for multirow insert • Efficient caching of dynamic SQL statements with literals The Information Management Specialists
  • 12. Performance enhancements which need NFM + DBA work • Hash access path • Index include columns • Inline LOBs • DEFINE NO for LOB and XML columns • MEMBER CLUSTER for universal table space • Alter to universal table space, page size, data set size, segment size • Online reorg for all catalog and directory table spaces The Information Management Specialists
  • 13. Virtual Storage Enhancements • V8 began a major project to transform DB2 into a 64-bit RDBMS Laid the groundwork and provided some scalability improvements but a lot of DBM1 objects remained below the 2GB bar • DB2 9 improved things a little, but only by another 10-15% for most customers Practical limit of 300-500 threads per DB2 subsystem • Less DB2 subsystems Lower data sharing overhead • DB2 10 moves 80-90% of the Less systems to manage / maintain remaining objects above the bar, resulting in 5-10x improvement in • More space for critical storage objects such as dynamic statement cache threads per subsystem The Information Management Specialists
  • 14. Security Extensions • New authorities introduced to separate data administration and data access Security Administrator (SECADM) System DBA (SYSTEM DBADM) Data Administrator (DATAACCESS) Performance Specialist (SQLADM) • New row and column data access policy controls Fully integrated into database engine Applies to SELECT, INSERT, UPDATE and DELETE The Information Management Specialists
  • 15. Security Extensions The Information Management Specialists
  • 16. Security Extensions The Information Management Specialists
  • 17. Temporal Data • Most IT systems need to keep historical as well as current information • Requires lots of effort by DBA and developer to design, test and implement – lots of “reinventing the wheel” • DB2 10 provides this functionality as part of the database engine, making DBAs and developers more productive DBA indicates which tables/columns need temporal support at CREATE/ALTER time DB2 automatically maintains history table whenever row in main table is changed via INSERT/DELETE/UPDATE Elegant extensions to SELECT allow historical perspective to ben seen via standard SQL The Information Management Specialists
  • 18. Temporal Data The Information Management Specialists
  • 19. …and if you’re going direct from V8… • pureXML • Network trusted contexts and Roles • Universal tablespaces • Instead-of triggers (PBG/PBR) • Clone tables • Native SQL stored • Automatic object creation procedures • Dynamic schema change • Index on expression enhancements • Reordered row format • SQL MERGE • TRUNCATE TABLE • Utility CPU enhancements • ..and many others • LOB enhancements The Information Management Specialists
  • 20. Migrating to DB2 10 for z/OS The Information Management Specialists
  • 21. DB2 10 Major Technical Pre-Reqs • z/OS 1.10 or later • At DB2 V8 or DB2 9 in NFM with migration/fallback SPE applied • REBINDs for packages bound at V5 or lower • Replace DBRMs bound directly in plans with packages • Remove all use of private protocol • Prepare for SMS-managed catalog objects • New PLAN_TABLE formats • DB2 client and DB2 Connect 9 9.7 FP3a for function & performance • Convert DB2-managed stored procedures (if migrating from DB2 V8) • … and many more minor ones – check the Install Guide for a full list The Information Management Specialists
  • 22. “Normal” Upgrade from DB2 9 • Follows same overall process as DB2 V8 to DB2 9 upgrade Must be in DB2 9 NFM with all DB2 10 technical pre-reqs met Move to DB2 10 CM (Conversion Mode) Move to DB2 10 NFM via ENFM • Support for “rolling upgrade” in data sharing group All members must have pre-migration SPE applied before CM is attempted All members must be at DB2 10 CM before ENFM is attempted • Plan stability feature (PK52523) will be a major advantage for those who have previously suffered from “Rebindaphobia” The Information Management Specialists
  • 23. DB2 9 to DB2 10 Upgrade DB2 10 CM* DB2 10 ENFM* (CM9*) (ENFM9*) DB2 9 DB2 10 CM DB2 10 ENFM DB2 10 NFM NFM+SPE (CM9) (ENFM9) (NFM) Fallback to DB2 9 not possible from this Version Fallback point onwards The Information Management Specialists
  • 24. “Skip Migration” Upgrade from V8 • DB2 10 is the first release since V7 to support “skip migration” from a previous release Tested by customers as part of the DB2 10 beta program First customer to go with DB2 10 in production used skip migration Rare opportunity for back-level customers to catch up with DB2 release schedule • Risks and benefits must be carefully weighed Must meet prereqs for DB2 9 as well as the new ones for DB2 10 Robust, mature regression test environment is strongly recommended Timing is important, and best practice for applying maintenance is essential Elapsed time and effort for the upgrade project will probably be greater than for a “normal” migration, but less than two separate upgrades Lots of new function to assimilate once upgrade is complete! The Information Management Specialists
  • 25. “Skip Migration” Upgrade from V8 • No plan stability features available until DB2 9, so use the old techniques to manage access paths when rebinding on V8 Original package for package stability can be V8 • Follows same overall process as DB2 V8 to DB2 9 upgrade Must be in DB2 8 NFM with all DB2 9 and 10 technical pre-reqs met Move to DB2 10 CM (Conversion Mode) Move to DB2 10 NFM via ENFM • Support for “rolling upgrade” in data sharing group All members must have pre-migration SPE applied before CM is attempted All members must be at DB2 10 CM before ENFM is attempted The Information Management Specialists
  • 26. DB2 8 to DB2 10 Upgrade DB2 10 CM* DB2 10 ENFM* (CM8*) (ENFM8*) DB2 8 DB2 10 CM DB2 10 ENFM DB2 10 NFM NFM+SPE (CM8) (ENFM8) (NFM) Fallback to DB2 8 not possible from this Version Fallback point onwards The Information Management Specialists
  • 27. Possible DB2 10 Upgrade Strategies Currently On DB2 V7 Upgrade V7 to V8 Upgrade V8 to V10 Just Upgrade V8 to V9 Upgrade V9 to V10 migrated to DB2 V8 Upgrade V8 to V10 On V8 for Upgrade V8 to V9 Upgrade V9 to V10 some time Upgrade V8 to V10 Already on DB2 V9 Upgrade V9 to V10 Jan Apr Jul Oct Jan Jul Oct 2011 2011 2011 2011 2012 2012 2012 November 2011 April 2012 DB2 V8 out The Information Management Specialists DB2 10 GA + 12 months of Support
  • 28. DB2 10 Migration Resources • Information APARs II14474: DB2 V8 MIGRATION/FALLBACK INFOAPAR TO/FROM DB2 10 II14477: DB2 9 MIGRATION/FALLBACK INFOAPAR TO/FROM DB2 10 • DSNTIJPM pre-migration checker job http://publib.boulder.ibm.com/infocenter/dzichelp/v2r2/index.jsp?topic=/com.ibm .db29.doc.inst/db2z_dsntijpa.htm • Free migration planning workshops from IBM ftp://ftp.software.ibm.com/software/data/db2/zos/presentations/migration/db2- 10-migration-planning-workshop-trifold.pdf • IDUG DB2 10 Migration Experiences Forum http://www.linkedin.com/groups?mostPopular=&gid=3797589 • IBM DB2 for z/OS Best Practices Web Page www.ibm.com/developerworks/data/bestpractices/db2zos/ • IDUG, IOD, DB2-L, etc The Information Management Specialists
  • 29. Further Reading • IBM White Paper DB2 10 for z/OS: A Smarter Database for a Smarter Planet https://www14.software.ibm.com/webapp/iwm/web/sign up.do?lang=en_US&source=sw-infomgt&S_PKG=wp-z- db2-smarter • DB2 10 Performance Topics Redbook on the way The Information Management Specialists
  • 30. Feedback / Questions Julian Stuhler– julian.stuhler@triton.co.uk www.triton.co.uk The Information Management Specialists