Click to edit Master title style A new Catalog and Directory Structure in DB2 for z/OS Ken McDonald BMC Software Written by Steven Thomas.

Slides:



Advertisements
Similar presentations
Using the SQL Access Advisor
Advertisements

Web Center Certification Sitemap / Formatting Content Web Center Certification Training Intuit Financial Services University.
The following is intended to outline our general product direction. It is intended for information purposes only, and may not be incorporated into any.
Slide 1 Insert your own content. Slide 2 Insert your own content.
Copyright © 2003 Pearson Education, Inc. Slide 6-1 Created by Cheryl M. Hughes, Harvard University Extension School Cambridge, MA The Web Wizards Guide.
Foundations of Relational Implementation (1) IS 240 – Database Management Lecture #13 – Prof. M. E. Kabay, PhD, CISSP Norwich University
BASIC SKILLS AND TOOLS USING ACCESS
My AmeriCorps Release 3 State Commissions and Programs Program Management Presentation developed for the Corporation for National and Community Service.
Slide 1 FastFacts Feature Presentation February 17, 2011 We are using audio during this session, so please dial in to our conference line… Phone number:
Yukon – What is New Rajesh Gala. Yukon – What is new.NET Framework Programming Data Types Exception Handling Batches Databases Database Engine Administration.
Wikispaces 101 Training Standards & Interoperability (S&I) Framework May 30, :00 - 5:00pm EDT 1.
Refreshing Materialized Views
Microsoft Access 2007 Advanced Level. © Cheltenham Courseware Pty. Ltd. Slide No 2 Forms Customisation.
PrevNext | Slide 1 Michigan Electronic Grants System MEGS MEGS Additional Features Last Updated: 2/4/2011.
Addition Facts
Chapter 6 File Systems 6.1 Files 6.2 Directories
1 Chapter 12 File Management Patricia Roy Manatee Community College, Venice, FL ©2008, Prentice Hall Operating Systems: Internals and Design Principles,
1 Adding a statistics package Module 2 Session 7.
Creating Data Entry Screens in Epi Info
CA Software Change Manager for Mainframe r12 Overview of Rapid Implementation Page based on Title Slide from Slide Layout palette. Design is cacorp 2006.
What's new?. ETS4 for Experts - New ETS4 Functions - improved Workflows - improvements in relation to ETS3.
Configuration management
Software change management
Pharos Uniprint 8.3 Training
1 A Test Automation Tool For Java Applets Testing of Web Applications TATJA Program Demonstration Conclusions By Matthew Xuereb.
Campaign Overview Mailers Mailing Lists
Project 5: Virtual Memory
11 Copyright © Oracle Corporation, All rights reserved. Managing Tables.
1 An Introduction to Pivot Tables Using Excel 2000.
Word Lesson 7 Working with Documents
Microsoft Access.
Vanderbilt Business Objects Users Group 1 Reporting Techniques & Formatting Beginning & Advanced.
EIS Bridge Tool and Staging Tables September 1, 2009 Instructor: Way Poteat Slide: 1.
Creating Tables. 2 home back first prev next last What Will I Learn? List and provide an example of each of the number, character, and date data types.
Microsoft Office Word is an example of ____ software. a. Database b
PowerPoint Basics   Tutorial 5: Navigation
Benchmark Series Microsoft Excel 2013 Level 2
HORIZONT TWS/WebAdmin TWS/WebAdmin for Distributed
YP QUOTES YP CONFIGURATOR 2 MANUAL Configurator 2 is the optimized solution based on 3 years of customer feedback. This heavy-duty native SalesForce application.
Global Analysis and Distributed Systems Software Architecture Lecture # 5-6.
Configuration Management
Addition 1’s to 20.
School Census Summer 2011 Headlines Version Jim Haywood Product Manager for Statutory Returns.
Chapter 13 Web Page Design Studio
A lesson approach © 2011 The McGraw-Hill Companies, Inc. All rights reserved. a lesson approach Microsoft® PowerPoint 2010 © 2011 The McGraw-Hill Companies,
1 Oracle Migration Strategies COUG Presentation – Feb 2013 Feb 21, 2013 Ray Smith
Indispensable tools for research at its best RefWorks 2.0 fundamental Alan Tang
Import Tracking and Landed Cost Processing An Enhancement For AS/400 DMAS from  Copyright I/O International, 2001, 2005, 2008, 2012 Skip Intro Version.
South Dakota Library Network MetaLib User Interface South Dakota Library Network 1200 University, Unit 9672 Spearfish, SD © South Dakota.
Benchmark Series Microsoft Excel 2013 Level 2
5 Copyright © 2005, Oracle. All rights reserved. Managing Database Storage Structures.
#IDUG DB2 11 Expanded RBA/LRSN – Does this bit make my tail look big? Ken McDonald BMC Software Session Code: A06 Wednesday May 14 th 09:15-10:15 | Platform:
The Online Schema (R)evolution Ken McDonald BMC Software Written by Steven Thomas.
Concepts of Database Management Sixth Edition
A Guide to SQL, Seventh Edition. Objectives Understand, create, and drop views Recognize the benefits of using views Grant and revoke user’s database.
CHAPTER 11 Large Objects. Need for Large Objects Data type to store objects that contain large amount of text, log, image, video, or audio data. Most.
Chapter 4 The Relational Model 3: Advanced Topics Concepts of Database Management Seventh Edition.
DB2 Tablespaces – What’s new with V9 NFM John Lantz Federal Reserve Board September 15 th, 2010.
Module 16: Performing Ongoing Database Maintenance
© Copyright 2014 BMC Software, Inc.1 — Chief Architect for DB2, BMC IBM Information Champion 2015 May / 2015 Jim Dee Stop Wasting Time With Utilities!
Introduction to Oracle. Oracle History 1979 Oracle Release client/server relational database 1989 Oracle Oracle 8 (object relational) 1999.
© 2003 Computer Associates International, Inc. (CA). All trademarks, trade names, services marks and logos referenced herein belong to their respective.
DBAdmin D D D D D a a a a a t t t t t a a a a a b b b b b a a a a a s s s s s e e e e eAdministration / Embedded SQL by: Glen Orsburn Chapter 6.
© 2003 Computer Associates International, Inc. (CA). All trademarks, trade names, services marks and logos referenced herein belong to their respective.
Understanding Core Database Concepts Lesson 1. Objectives.
Database Administration for the Non-DBA
DB2 Partitioning Choices, choices, choices
5 Tips for Upgrading Reports to v 6.3
PRESENTATION TITLE Optional second line Presented by:
Understanding Core Database Concepts
Presentation transcript:

Click to edit Master title style A new Catalog and Directory Structure in DB2 for z/OS Ken McDonald BMC Software Written by Steven Thomas

Click to edit Master title style 2 Agenda Physical Changes to Catalog Tablespaces Links, Referential Integrity and Indexes Use of LOBs and Compression of SPT01 New Catalog Tables and changes to Column meanings Other Directory Changes 2

Click to edit Master title style Catalog gets more complicated every release 3 Source: IBM Redbook – DB2 10 for z/OS Technical Overview SG Excludes objects later added to Catalog such as RTS or XSR Now

Click to edit Master title style 4 Catalog Tablespace breakdown (Nov 2011) 55 Partition by Growth UTS 19 Segmented tablespaces Of which 12 are still multi-table objects Containing data about Trusted Contexts & Roles, Sequences, DDF, Stats History, Routines, RTS, Check Constraints, Java & XML 3 Simple tablespaces SYSCOPY, SYSGPAUTH and SYSUSER 18 Auxiliary tablespaces (for LOBs) 1 uses ASCII (SYSTSASC) 2 use EDBCDIC (SYSCOPY and SYSEBCDC)

Click to edit Master title style 5 Physical Changes to Tablespaces Finally starting to lose the Simple Tablespaces Many Catalog and Directory tablespaces now UTS Partition By Growth (MAXPART 1 and SEGSIZE=32) DSSIZE 64Gb SMS Managed Row level locking Automatic Size Management (PRIQTY & SECQTY = -1) RRF – Reordered Row Format Page size varies but mostly 4Kb 5

Click to edit Master title style 6 What objects now use UTS? Data from 7 existing multi-table tablespaces Significantly those that impact DDL... SYSDBASE, SYSDBAUT, SYSGROUP, SYSOBJ, SYSVIEWS...and Bind activity SYSPKAGE, SYSPLAN Comprising 43 tables 2 have gone – SYSVTREE and SYSVLTREE These existed in DB2 9 even though they werent listed in Manuals Data stored in a BLOB associated with SYSIBM.SYSVIEWS 12 new tables use PBG objects Supporting new features such as Audit Policies, Autonomics, Column and Row Masking, Deferred Alter and Plan Stability See later section for more details 6

Click to edit Master title style 7 SMS Management of Catalog/Directory No STOGROUP required for Catalog and Directory Controlled by 6 new DSNZPARMs CATDDACL, CATDMGCL, CATDSTCL for Tablespaces CATXDACL, CATXMGCL, CATXSTCL for Indexes Required unless ACS routines allocate datasets as Extended No need to allocate new datasets manually Requires EA datasets if you havent used them before User indexes dont need to be SMS-managed Why would you not make the change at the same time? 7

Click to edit Master title style 8 When Conversion occurs DFSMS environment created by job DSNTIJSS Run during Installation before you migrate to Compat Mode New objects are all created using SMS 2 TS, 3 Tables, 2/3 columns and 3/4 indexes by DSNTIJTC Remainder by DSNTIJEN DSNTIJEN uses REORG to convert the multi-table objects listed on Slide 6 to PBG It also drops the old Tablespaces Review Backup & Recovery Strategy during Migration Remaining objects remain User Managed indefinitely Converted as and when you REORG Catalog once in NFM

Click to edit Master title style 9 Catalog Links The DB2 Catalog has always been slightly different! Links or Pointers exist between Catalog Tables Originally for Performance & Integrity reasons? No RI existed before DB2 Version 2.1 For example, SYSIBM.SYSTABLES has links to: SYSTABLES and SYSTABLESPACE (Ring) SYSCOLUMNS SYSINDEXES SYSRELS SYSSYNONYMS SYSTABAUTH

Click to edit Master title style 10 Problems caused by the Links Primarily related to Lock Contention Catalog Used Page Level locking Multi-Table Tablespaces in Catalog exacerbated this One Lock could and did cause significant issues Concurrent DDL Activity has always been a problem Heavy BIND activity causes similar problems Issues have increased as systems have become busier Also need to check the links are not broken DSN1CHKR DSNTESQ in SDSNSAMP

Click to edit Master title style 11 Removal of Links in DB2 10 for z/OS All Catalog and Directory Links have been removed This occurs during migration to NFM Extra RI has been added to replace the Links 25 new Referential constraints in all Around 15 between existing objects This also explains many of the 44 new indexes Indexes added to existing tables when converting to CM Definitely worth reviewing User Defined Catalog Indexes Many were added because DB2 could use Links But SQL and Third party tools could not

Click to edit Master title style 12 Performance Implications The old links were there for a reason More Indexes and RI to check and maintain Several Tables now have 5 indexes SYSTABLES involved in 15 RI Constraints, 14 as Parent The DB2 10 Performance Redbook quotes: Class 2 CPU & Elapsed time both up by 20-30% for Full Bind Single threaded DDL roughly equivalent in DB2 9 & DB2 10 CM9 In NFM Elapsed down by 4% and Class 2 CPU up by 10-40% Offset against this is much improved concurrency 5 streams of DDL run in parallel executed in 30% of the elapsed time compared to running single threaded in DB2 9 May need more Parallel BINDs to retain throughput

Click to edit Master title style 13 LOB data in the DB2 Catalog 3 LOB columns in the Catalog in DB2 9 All where many would not encounter them very often SYSROUTINES, SYSJAROBJECTS, SYSJARCONTENTS All that has changed in DB2 10 There are now 18 LOB columns in the Catalog and several more in the Directory These include LOBs on some very common objects SYSINDEXES, SYSVIEWS, SYSPACKSTMT All have 2 LOB columns Mixture of CLOB and LOB Several tables use INLINE LOBs e.g. SYSPACKSTMT and SYSVIEWS

Click to edit Master title style 14 What was the problem? Many Catalog columns need to store SQL Text SYSINDEXES, SYSVIEWS, SYSTRIGGERS, SYSPACKSTMT Package Text in SPT01 Without LOBs the column length limit was <32Kb SQL often broken up into chunks with Sequencing key SYSPACKSTMT can store both EBCDIC & Unicode data Very hard to read or search Uses up a lot of space in the main Tablespace Particularly SPT01 once Plan Stability was introduced IBM allowed you to Compress SPT01 via a PTF in DB2 9 Other Tables need to store large amounts of Binary data DBD01 in the Directory being a prime example

Click to edit Master title style 15 Benefits of Using LOBS For the SQL Text using CLOBs: Text can be merged back into a single column The data is moved - old columns are retained but not used EBCDIC and UNICODE translation handled automatically Much easier to read and Search data For the Binary data using BLOBs: Allows much more data to be stored

Click to edit Master title style 16 Inline LOBs in SPT01 At GA BLOB/CLOB used in SPT01 with no compression This caused 2 problems Space grew because Auxiliary TS could not be compressed Performance suffered due to need to always read Auxiliary Space APARS PM27811 & PM27073 changed this COMPRESS_SPT01 becomes Opaque SPT01_INLINE_LENGTH sets max length Defaults to 0 Setting large improves compression and fetch performance Setting small allows more rows & reduces space problems Online Alterable but care required if reducing (REORP)

Click to edit Master title style 17 Why do you care about DB2 using LOBS? Key implication is to your Backup & Recovery strategy LOBs are created during Migration to NFM But there are also implications due to Referential Integrity Recovery to PIT works differently on Catalog & Directory CHKP and ACHKP are not set on these objects If you dont recover the Base and Auxiliary Tablespaces together Or if you dont Recover the complete RI set together Order of object Backup and especially Recovery critical If in CM DSNTIJIC skips new or obsolete objects Still get RC=0 with message DSNU1530I See Utility Guide and Reference for new order once in NFM If you stop halfway through ENFM it could get interesting!

Click to edit Master title style 18 New Catalog Tables (Slide 1 of 2) SYSPACKCOPY, SYSQUERY, SYSQUERYOPTS, SYSQUERYPLAN Used to support Plan Stability feature SYSPENDINGDDL, SYSPENDINGOBJECTS Support the new Deferred ALTER feature SYSDUMMYA, SYSDUMMYE, SYSDUMMYU Equivalents of SYSDUMMY using ASCII, EBCDIC and Unicode Used to be outside the Catalog in DB2 9 Note SYSDUMMY1 still exists for compatibility purposes Stored in the SYSEBCDC Tablespace along with SYSDUMMYE

Click to edit Master title style 19 New Catalog Tables (Slide 2 of 2) SYSAUDITPOLICIES Supports the new Audit Policies feature SYSAUTOALERTS, SYSAUTORUNS_HIST, SYSAUTOTIMEWINDOWS, SYSTABLES_PROFILES Used by the Autonomic RUNSTATS feature SYSCONTROLS Supports Row Permissions and Column Masks

Click to edit Master title style 20 A few interesting New Columns PERIOD has been added to several tables Used to indicate Start and End of Business or System Time LASTUSED in SYSPACKAGE and SYSPLAN Does what it says on the tin! PLANMGMT in SYSPACKAGE Tells you what Plan Stability option is being used for the package HASHSPACE in SYSTABLESPACE & SYSTABLEPART Provides information about Hash Space used Other new columns also used in various Tables MEMBER CLUSTER in SYSTABLESPACE This used to stored in TYPE column as I or K

Click to edit Master title style 21 Interesting New Columns DRIVETYPE on SYSTABLESPACESTATS Indicates whether the Table is stored on Solid State device Also included in SYSINDEXSPACESTATS REORGSCAN_ACCESS in SYSTABLESPACESTATS Number of times Table has been access since last REORG or LOAD REPLACE operation (or since creation) Many more columns of this type are being added in every release HASHLASTUSED in SYSTABLESPACESTATS Useful to determine whether Hash is used properly or not Look at this in combination with the last column

Click to edit Master title style 22 Some Changes to Existing Columns SYSCOLUMNS COLTYPE uses TIMESTZ for Timestamp with Timezone SCALE used to record number of fractional digits for Timestamp SYSCOPY STYPE has many new settings for OLS changes SYSTABLES TYPE has an H option for History Tables (Temporal data) SYSVIEWS STATEMENT and PARSETREE contain the data that used to be stored in SYSIBM.SYSVTREE and SYSIBM.VLTREE More for Internal purposes than for customer use

Click to edit Master title style Directory Changes Source: IBM Redbook – DB2 10 for z/OS Technical Overview SG

Click to edit Master title style 24 Directory Changes Implemented by DSNTIJEN Some Tables merged and are all more regular tables For example they even have a Creator Name now! But still not registered in the Catalog All 5 new objects are Auxiliary Objects for LOB data 2 LOB columns on SYSUTIL 2 LOB columns on SPT01 1 LOB column on the DBD DBD01, SPT01 and SYSUTIL are now PBG objects SPT01 now uses a 32Kb Pagesize Links within DBD01 have been removed 24

Click to edit Master title style 25 Directory Changes Removal of the UTSERIAL lock This was a special lock type used by Utilities Used when updating SYSUTILX Directory Tablespace Sometimes caused significant contention with multiple utilities DB2 now takes a regular Page level lock Should provide good benefits

Click to edit Master title style 26 SELECT from Directory Added very recently (early November) See APARs PM35190 and PM42331 Supported for SYSLGRNX and SYSUTIL APAR quotes SYSUTILX but that has been removed? Intended primarily for use by IBM Support No L-locks acquired regardless of Isolation Level Can get -607 if SQL cannot be converted to WITH UR Enabled by a new execution of CATMAINT Even for new installations CATMAINT UPDATE UNLDDN PM35190 Could be useful to identify such things as executing utilities, points in the log where datasets were open etc.

Click to edit Master title style 27 Ken McDonald BMC Software Session: A17 A new Catalog and Directory Structure in DB2 for z/OS