IBM DB2 11 for Z/OS Technical Overview

Total Page:16

File Type:pdf, Size:1020Kb

IBM DB2 11 for Z/OS Technical Overview IBM® Information Management Software Front cover IBM DB2 11 for z/OS Technical Overview Understand the synergy with System z platform Enhance applications and avoid incompatibilities Run business analytics and scoring adapter Paolo Bruni Felipe Bortoletto Ravikumar Kalyanasundaram Sabine Kaschta Glenn McGeoch Cristian Molaro ibm.com/redbooks International Technical Support Organization IBM DB2 11 for z/OS Technical Overview December 2013 SG24-8180-00 Note: Before using this information and the product it supports, read the information in “Notices” on page xxi. First Edition (December 2013) This edition applies to Version 11, Release 1 of DB2 for z/OS (program number 5615-DB2) and Version 11, Release 1 of DB2 Utilities Suite for z/OS (program number 5655-W87). Note: This book is based on a pre-GA version of a product and may not apply when the product becomes generally available. We recommend that you consult the product documentation or follow-on versions of this book for more current information. © Copyright International Business Machines Corporation 2013. All rights reserved. Note to U.S. Government Users Restricted Rights -- Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp. Contents Figures . xi Tables . xiii Examples . .xv Notices . xxi Trademarks . xxii Summary of changes. xxiii December 2013, First Edition. xxiii May 2014, First Update. xxiii Preface . .xxv Authors. xxv Now you can become a published author, too! . xxvii Comments welcome. .xxviii Stay connected to IBM Redbooks publications . .xxviii Chapter 1. DB2 11 for z/OS at a glance . 1 1.1 Subsystem . 2 1.2 Application functions . 2 1.3 Operations and performance . 3 Part 1. Subsystem. 5 Chapter 2. Synergy with System z. 7 2.1 Synergy with IBM zEnterprise System . 8 2.1.1 Faster CPU speed . 8 2.1.2 More system capacity . 8 2.1.3 zEC12 hardware features . 8 2.2 Synergy with IBM System z and z/OS . 12 2.2.1 AUTOSIZE options VPSIZEMIN and VPSIZEMAX. 12 2.2.2 1 MB page frames for DB2 execution code . 12 2.2.3 Improved performance of batch updates in data sharing . 13 2.2.4 Improved usability and consistency for security administration . 13 2.2.5 Log writing. 13 2.3 Using zIIP speciality processors . 14 2.4 Reduced need for REORG . 15 2.5 DFSMS storage tiers. 16 2.5.1 Use cases for storage tiers . 18 2.5.2 Setup and invocation of storage tiers . 18 2.5.3 Use cases for DB2 . 20 2.6 Additional System z enhancements . 21 2.6.1 Enhancing DB2 BACKUP SYSTEM solution . 21 2.6.2 z/OS DFSMS VSAM RLS for z/OS catalog support . 21 2.6.3 DDF Synchronous Receive support . 21 2.6.4 zEnterprise Data Compression . 21 Chapter 3. Scalability . 23 © Copyright IBM Corp. 2013. All rights reserved. iii 3.1 Extended RBA and LRSN . 24 3.1.1 Reaching the end of the basic RBA . 24 3.1.2 The new 10 byte RBA and LRSN . 25 3.1.3 Considerations before converting to extended format . 29 3.1.4 Steps for enabling the extended RBA/LRSN format . 32 3.1.5 Converting the BSDS . 32 3.1.6 Converting DB2 catalog and directory . 35 3.1.7 Converting data from 6 byte to 10 byte RBA/LRSN or vice versa. 36 3.1.8 Additional considerations regarding utilities . 41 3.2 NOT LOGGED for declared global temporary tables . 44 3.2.1 Syntax extension. 44 3.2.2 Undo processing for NOT LOGGED DGTTs . 45 3.2.3 Thread reuse. 46 3.2.4 Sample scenarios . 46 3.3 More open data sets (DSMAX) . 49 3.4 PBG mapping tables to lift the 64 GB limit . 49 3.4.1 Autonomic creation of the mapping table . 49 3.4.2 Mapping tables up to 16 TB . 50 Chapter 4. Availability. 51 4.1 Online schema changes and enhanced recovery options . 52 4.1.1 Scope of enhancements for online schema changes in DB2 11. 52 4.1.2 How it works . 53 4.1.3 Effect of MODIFY RECOVERY. 57 4.1.4 Considerations for LOBs. 57 4.1.5 Restrictions for the window between PIT recovery and REORG . 58 4.1.6 More restrictions for PIT recovery after materializing REORG . 59 4.1.7 Determine if a table space is eligible for PIT recovery prior to REORG . 59 4.2 Automatic recovery of indexes from GRECP or LPL status . 60 4.2.1 RESTORE SYSTEM after two-pass LPL/GRECP recovery has occurred . 61 4.2.2 RECOVER INDEX after two-pass LPL/GRECP recovery has occurred. 61 4.3 Improved availability when altering limit keys . 61 4.3.1 Considerations for tables containing LOBs. 63 4.3.2 LOAD REPLACE . 64 4.3.3 RECOVER . ..
Recommended publications
  • ACS-3902 Ron Mcfadyen Slides Are Based on Chapter 5 (7Th Edition)
    ACS-3902 Ron McFadyen Slides are based on chapter 5 (7th edition) (chapter 3 in 6th edition) ACS-3902 1 The Relational Data Model and Relational Database Constraints • Relational model – Ted Codd (IBM) 1970 – First commercial implementations available in early 1980s – Widely used ACS-3902 2 Relational Model Concepts • Database is a collection of relations • Implementation of relation: table comprising rows and columns • In practice a table/relation represents an entity type or relationship type (entity-relationship model … later) • At intersection of a row and column in a table there is a simple value • Row • Represents a collection of related data values • Formally called a tuple • Column names • Columns may be referred to as fields, or, formally as attributes • Values in a column are drawn from a domain of values associated with the column/field/attribute ACS-3902 3 Relational Model Concepts 7th edition Figure 5.1 ACS-3902 4 Domains • Domain – Atomic • A domain is a collection of values where each value is indivisible • Not meaningful to decompose further – Specifying a domain • Name, data type, rules – Examples • domain of department codes for UW is a list: {“ACS”, “MATH”, “ENGL”, “HIST”, etc} • domain of gender values for UW is the list (“male”, “female”) – Cardinality: number of values in a domain – Database implementation & support vary ACS-3902 5 Domain example - PostgreSQL CREATE DOMAIN posint AS integer CHECK (VALUE > 0); CREATE TABLE mytable (id posint); INSERT INTO mytable VALUES(1); -- works INSERT INTO mytable VALUES(-1); -- fails https://www.postgresql.org/docs/current/domains.html ACS-3902 6 Domain example - PostgreSQL CREATE DOMAIN domain_code_type AS character varying NOT NULL CONSTRAINT domain_code_type_check CHECK (VALUE IN ('ApprovedByAdmin', 'Unapproved', 'ApprovedByEmail')); CREATE TABLE codes__domain ( code_id integer NOT NULL, code_type domain_code_type NOT NULL, CONSTRAINT codes_domain_pk PRIMARY KEY (code_id) ) ACS-3902 7 Relation • Relation schema R – Name R and a list of attributes: • Denoted by R (A1, A2, ...,An) • E.g.
    [Show full text]
  • Implementing Powerpc Linux on System I Platform
    Front cover Implementing POWER Linux on IBM System i Platform Planning and configuring Linux servers on IBM System i platform Linux distribution on IBM System i Platform installation guide Tips to run Linux servers on IBM System i platform Yessong Johng Erwin Earley Rico Franke Vlatko Kosturjak ibm.com/redbooks International Technical Support Organization Implementing POWER Linux on IBM System i Platform February 2007 SG24-6388-01 Note: Before using this information and the product it supports, read the information in “Notices” on page vii. Second Edition (February 2007) This edition applies to i5/OS V5R4, SLES10 and RHEL4. © Copyright International Business Machines Corporation 2005, 2007. All rights reserved. Note to U.S. Government Users Restricted Rights -- Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp. Contents Notices . vii Trademarks . viii Preface . ix The team that wrote this redbook. ix Become a published author . xi Comments welcome. xi Chapter 1. Introduction to Linux on System i platform . 1 1.1 Concepts and terminology . 2 1.1.1 System i platform . 2 1.1.2 Hardware management console . 4 1.1.3 Virtual Partition Manager (VPM) . 10 1.2 Brief introduction to Linux and Linux on System i platform . 12 1.2.1 Linux on System i platform . 12 1.3 Differences between existing Power5-based System i and previous System i models 13 1.3.1 Linux enhancements on Power5 / Power5+ . 14 1.4 Where to go for more information . 15 Chapter 2. Configuration planning . 17 2.1 Concepts and terminology . 18 2.1.1 Processor concepts .
    [Show full text]
  • Oracle Database Advanced Application Developer's Guide, 11G Release 2 (11.2) E17125-03
    Oracle® Database Advanced Application Developer's Guide 11g Release 2 (11.2) E17125-03 August 2010 Oracle Database Advanced Application Developer's Guide, 11g Release 2 (11.2) E17125-03 Copyright © 1996, 2010, Oracle and/or its affiliates. All rights reserved. Primary Author: Sheila Moore Contributing Authors: D. Adams, L. Ashdown, M. Cowan, J. Melnick, R. Moran, E. Paapanen, J. Russell, R. Strohm, R. Ward Contributors: D. Alpern, G. Arora, C. Barclay, D. Bronnikov, T. Chang, L. Chen, B. Cheng, M. Davidson, R. Day, R. Decker, G. Doherty, D. Elson, A. Ganesh, M. Hartstein, Y. Hu, J. Huang, C. Iyer, N. Jain, R. Jenkins Jr., S. Kotsovolos, V. Krishnaswamy, S. Kumar, C. Lei, B. Llewellyn, D. Lorentz, V. Moore, K. Muthukkaruppan, V. Moore, J. Muller, R. Murthy, R. Pang, B. Sinha, S. Vemuri, W. Wang, D. Wong, A. Yalamanchi, Q. Yu This software and related documentation are provided under a license agreement containing restrictions on use and disclosure and are protected by intellectual property laws. Except as expressly permitted in your license agreement or allowed by law, you may not use, copy, reproduce, translate, broadcast, modify, license, transmit, distribute, exhibit, perform, publish, or display any part, in any form, or by any means. Reverse engineering, disassembly, or decompilation of this software, unless required by law for interoperability, is prohibited. The information contained herein is subject to change without notice and is not warranted to be error-free. If you find any errors, please report them to us in writing. If this software or related documentation is delivered to the U.S.
    [Show full text]
  • SQL Stored Procedures
    Agenda Key:31MA Session Number:409094 DB2 for IBM i: SQL Stored Procedures Tom McKinley ([email protected]) DB2 for IBM i consultant IBM Lab Services 8 Copyright IBM Corporation, 2009. All Rights Reserved. This publication may refer to products that are not currently available in your country. IBM makes no commitment to make available any products referred to herein. What is a Stored Procedure? • Just a called program – Called from SQL-based interfaces via SQL CALL statement • Supports input and output parameters – Result sets on some interfaces • Follows security model of iSeries – Enables you to secure your data – iSeries adopted authority model can be leveraged • Useful for moving host-centric applications to distributed applications 2 © 2009 IBM Corporation What is a Stored Procedure? • Performance savings in distributed computing environments by dramatically reducing the number of flows (requests) to the database engine – One request initiates multiple transactions and processes R R e e q q u u DB2 for i5/OS DB2DB2 for for i5/OS e e AS/400 s s t t SP o o r r • Performance improvements further enhanced by the option of providing result sets back to ODBC, JDBC, .NET & CLI clients 3 © 2009 IBM Corporation Recipe for a Stored Procedure... 1 Create it CREATE PROCEDURE total_val (IN Member# CHAR(6), OUT total DECIMAL(12,2)) LANGUAGE SQL BEGIN SELECT SUM(curr_balance) INTO total FROM accounts WHERE account_owner=Member# AND account_type IN ('C','S','M') END 2 Call it (from an SQL interface) over and over CALL total_val(‘123456’, :balance) 4 © 2009 IBM Corporation Stored Procedures • DB2 for i5/OS supports two types of stored procedures 1.
    [Show full text]
  • Reactive Relational Database Connectivity
    R2DBC - Reactive Relational Database Connectivity Ben Hale<[email protected]>, Mark Paluch <[email protected]>, Greg Turnquist <[email protected]>, Jay Bryant <[email protected]> Version 0.8.0.RC1, 2019-09-26 © 2017-2019 The original authors. Copies of this document may be made for your own use and for distribution to others, provided that you do not charge any fee for such copies and further provided that each copy contains this Copyright Notice, whether distributed in print or electronically. 1 Preface License Specification: R2DBC - Reactive Relational Database Connectivity Version: 0.8.0.RC1 Status: Draft Specification Lead: Pivotal Software, Inc. Release: 2019-09-26 Copyright 2017-2019 the original author or authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. Foreword R2DBC brings a reactive programming API to relational data stores. The Introduction contains more details about its origins and explains its goals. This document describes the first and initial generation of R2DBC. Organization of this document This document is organized into the following parts: • Introduction • Goals • Compliance • Overview • Connections • Transactions 2 • Statements • Batches • Results • Column and Row Metadata • Exceptions • Data Types • Extensions 3 Chapter 1.
    [Show full text]
  • JDBC Mock Test
    JJDDBBCC MMOOCCKK TTEESSTT http://www.tutorialspoint.com Copyright © tutorialspoint.com This section presents you various set of Mock Tests related to JDBC Framework. You can download these sample mock tests at your local machine and solve offline at your convenience. Every mock test is supplied with a mock test key to let you verify the final score and grade yourself. JJDDBBCC MMOOCCKK TTEESSTT IIIIII Q 1 - Which of the following is used generally used for altering the databases? A - boolean execute B - ResultSet executeQuery C - int executeUpdate D - None of the above. Q 2 - How does JDBC handle the data types of Java and database? A - The JDBC driver converts the Java data type to the appropriate JDBC type before sending it to the database. B - It uses a default mapping for most data types. C - Both of the above. D - None of the above. Q 3 - Which of the following can cause 'No suitable driver' error? A - Due to failing to load the appropriate JDBC drivers before calling the DriverManager.getConnection method. B - It can be specifying an invalid JDBC URL, one that is not recognized by JDBC driver. C - This error can occur if one or more the shared libraries needed by the bridge cannot be loaded. D - All of the above. Q 4 - Why will you set auto commit mode to false? A - To increase performance. B - To maintain the integrity of business processes. C - To use distributed transactions D - All of the above. Q 5 - Which of the following is correct about savepoint? A - A savepoint marks a point that the current transaction can roll back to.
    [Show full text]
  • Managing the Control Panel Functions
    System i and System p Managing the control panel functions System i and System p Managing the control panel functions Note Before using this information and the product it supports, read the information in “Notices” on page 51 and the IBM Systems Safety Information manual, G229-9054. Seventh Edition (September 2007) © Copyright International Business Machines Corporation 2004, 2007. US Government Users Restricted Rights – Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp. Contents Safety and environmental notices ........................v About this topic ................................ix Managing the control panel functions .......................1 What’s new for Capacity on Demand ...........................1 PDF file for Managing the control panel functions .......................1 Control panel concepts ................................1 Physical control panel ...............................2 Remote control panel ...............................5 Planning for the remote control panel .........................6 Virtual control panel................................7 Differences between the virtual control panel and remote control panel...............9 Control panel function codes .............................9 Control panel function codes on the HMC ........................10 Control panel function codes on the 7037-A50 and 7047-185 models ...............12 Control panel function code comparison for the RCP, VCP, and HMC ...............13 Values for IPL types, system operating modes, and speeds ..................15
    [Show full text]
  • Systems Management Logical Partitions Version 6 Release 1
    IBM System i Systems management Logical partitions Version 6 Release 1 IBM System i Systems management Logical partitions Version 6 Release 1 Note Before using this information and the product it supports, read the information in “Notices,” on page 135. This edition applies to version 6, release 1, modification 0 of and IBM i5/OS (product number 5761–SS1) to all subsequent releases and modifications until otherwise indicated in new editions. This version does not run on all reduced instruction set computer (RISC) models nor does it run on CISC models. © Copyright IBM Corporation 1999, 2008. US Government Users Restricted Rights – Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp. Contents Logical partitions........... 1 Ordering a new server or upgrading an PDF file for Logical partitions ........ 1 existing server with logical partitions .... 45 Partitioning with a System i ......... 1 Providing hardware placement information Logical partition concepts ......... 1 to service providers......... 45 How logical partitioning works ...... 2 Designing your logical partitions ..... 46 How logical partitioning can work for you .. 3 Deciding what runs in the primary and Hardware for logical partitions ...... 4 secondary partition ......... 46 Bus .............. 5 Capacity planning for logical partitions .. 47 Bus-level and IOP-level I/O partitions ... 7 Using the System Planning Tool .... 47 Dynamically switching IOPs between Examples: Logical partitioning ...... 47 partitions ............ 7 Creating logical partitions ........ 48 IOP .............. 9 Managing logical partitions ........ 49 SPD and PCI ........... 11 Managing logical partitions by using System i Processor ............ 11 Navigator, DST, and SST ........ 50 Memory ............ 14 Starting System i Navigator ...... 53 Disk units ............ 15 Starting SST and DST for logical partitions 53 Removable media device and alternate Logical partition authority .....
    [Show full text]
  • System I and System P: Changing Consoles, Interfaces, and Terminals Safety and Environmental Notices
    System i and System p Changing consoles, interfaces, and terminals System i and System p Changing consoles, interfaces, and terminals Note Before using this information and the product it supports, read the information in “Notices” on page 33 and the IBM Systems Safety Information manual, G229-9054. Seventh Edition (September 2007) © Copyright International Business Machines Corporation 2005, 2007. US Government Users Restricted Rights – Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp. Contents Safety and environmental notices ........................v About this publication .............................ix Changing consoles, interfaces, and terminals ...................1 PDF file for Changing consoles, interfaces, and terminals ....................1 Concepts for changing your current configuration of consoles, interfaces, or terminals ...........1 Choosing the procedure to follow to change a console, interface, or terminal ..............2 Changing the console from devices that use the ASMI and SMS to the HMC .............2 Changing the console without an HMC .........................3 Changing the console without an HMC and when the correct hardware is installed .........4 Changing the console without an HMC and when hardware changes are needed ..........5 Changing the console hardware with the power on ...................6 Changing the console hardware with the power off, and using another workstation ........7 Changing the console hardware with the power off, and no other workstation is available
    [Show full text]
  • Concurrency Control and Recovery ACID • Transactions • Recovery Transaction Model Concurency Control Recovery
    Data Management Systems • Transaction Processing • Concurrency control and recovery ACID • Transactions • Recovery Transaction model Concurency Control Recovery Gustavo Alonso Institute of Computing Platforms Department of Computer Science ETH Zürich Transactions-CC&R 1 A bit of theory • Before discussing implementations, we will cover the theoretical underpinning behind concurrency control and recovery • Discussion at an abstract level, without relation to implementations • No consideration of how the concepts map to real elements (tuples, pages, blocks, buffers, etc.) • Theoretical background important to understand variations in implementations and what is considered to be correct • Theoretical background also key to understand how system have evolved over the years Transactions-CC&R 2 Reference Concurrency Control and Recovery in Database Systems Philip A. Bernstein, Vassos Hadzilacos, Nathan Goodman • https://www.microsoft.com/en- us/research/people/philbe/book/ Transactions-CC&R 3 ACID Transactions-CC&R 4 Conventional notion of database correctness • ACID: • Atomicity: the notion that an operation or a group of operations must take place in their entirety or not at all • Consistency: operations should take the database from a correct state to another correct state • Isolation: concurrent execution of operations should yield results that are predictable and correct • Durability: the database needs to remember the state it is in at all moments, even when failures occur • Like all acronyms, more effort in making it sound cute than in
    [Show full text]
  • Systems Management Management Central 7.1
    IBM IBM i Systems management Management Central 7.1 IBM IBM i Systems management Management Central 7.1 Note Before using this information and the product it supports, read the information in “Notices,” on page 49. This edition applies to IBM i 7.1 (product number 5770-SS1) and to all subsequent releases and modifications until otherwise indicated in new editions. This version does not run on all reduced instruction set computer (RISC) models nor does it run on CISC models. © Copyright IBM Corporation 2002, 2010. US Government Users Restricted Rights – Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp. Contents Management Central ......... 1 Working with systems with partitions .... 36 What's new for IBM i 7.1 .......... 1 Running commands with Management Central 36 PDF files for Management Central ....... 1 Packaging and sending objects with Management Getting started with Management Central .... 2 Central ............... 37 Before you begin ............ 2 Packaging and distribution considerations ... 38 Installing Management Central ....... 5 Managing users and groups with Management Setting up the central system ........ 7 Central ............... 40 Management Central plug-ins ....... 14 Sharing with other users in Management Central 42 Troubleshooting Management Central Synchronizing date and time values ..... 43 connections ............. 14 Synchronizing functions ......... 44 Working with Management Central monitors ... 17 Scheduling tasks or jobs with Management Management collection objects ....... 18 Central scheduler ........... 44 Job monitors and Collection Services ..... 19 Related information for Management Central ... 46 Special considerations .......... 21 Creating a new monitor ......... 22 Appendix. Notices .......... 49 Viewing monitor results ......... 33 Programming interface information ...... 51 Resetting triggered threshold for a monitor ... 33 Trademarks .............
    [Show full text]
  • System I and System P: Backplanes and Cards Safety and Environmental Notices
    System i and System p Backplanes and cards System i and System p Backplanes and cards Note Before using this information and the product it supports, read the information in “Notices” on page 79 and the IBM Systems Safety Information manual, G229-9054. Twelfth Edition (September 2007) © Copyright International Business Machines Corporation 2004, 2007. US Government Users Restricted Rights – Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp. Contents Safety and environmental notices ........................v About this topic ................................ix Backplanes and cards .............................1 PDF file for backplanes and cards ............................1 Install the model 285, 52x,55x, or 720 RAID enablement card ...................1 Prepare the system ................................2 Install the RAID enablement card ...........................2 Remove the model 285, 52x,55x, or 720 RAID enablement card ..................5 Prepare the system ................................5 Remove the RAID enablement card...........................6 Replace the model 285, 52x,55x, or 720 RAID enablement card ..................8 Removing and replacing the system backplane in a model 9113-550, 9133-55A, 9406-550, and OpenPower 720 . 10 Remove the model 9116-561 or 570 system backplane .....................13 Prepare the system ................................14 Remove the system backplane ............................15 Replace the model 9116-561 or 570 system backplane .....................17 Replace
    [Show full text]