DB2 10 for z/os Plan Stability Usage Guide



Similar documents
SuSE Linux High Availability Extensions Hands-on Workshop

The Consolidation Process

How to Configure Access Control for Exchange using PowerShell Cmdlets A Step-by-Step guide

Positioning the Roadmap for POWER5 iseries and pseries

Budget Control by Cost Center

Sending Additional Files from SAP Netweaver PI to third Party System

Log Analysis Tool for SAP NetWeaver AS Java

Fixed Asset in SAP Business One 9.0

How to Add an Attribute to a Case, Record and a Document in NW Folder Management (ex-records Management)

SHARE in Pittsburgh Session 15591

Forecasting Performance Metrics using the IBM Tivoli Performance Analyzer

Run SAP like a Factory

Finding the Leak Access Logging for Sensitive Data. SAP Product Management Security

Configuring Situation Events in Action Manager for WebSphere Business Monitor Version 6.0

Table of Contents. How to Find Database Index usage per ABAP Report and Creating an Index

Alert Notification in SAP Supply Network Collaboration. SNC Extension Guide

Business Requirements... 3 Analytics... 3 Typical Use Cases... 8 Related Content... 9 Copyright... 10

R/3 and J2EE Setup for Digital Signature on Form 16 in HR Systems

Production Subcontracting (External Processing) SAP Best Practices

BICS Connectivity for Web Intelligence in SAP BI 4.0. John Mrozek / AGS December 01, 2011

SAP Master Data Governance- Hiding fields in the change request User Interface

Process Archiving using NetWeaver Business Process Management

TM111. ERP Integration for Order Management (Shipper Specific) COURSE OUTLINE. Course Version: 15 Course Duration: 2 Day(s)

Session: Archiving DB2 comes to the rescue (twice) Steve Thomas CA Technologies. Tuesday Nov 18th 10:00 Platform: z/os

K in Identify the differences between the universe design tool and the information design tool

Business One in Action - How can we post bank fees and charges while posting Incoming or Outgoing Payment transactions?

DB2 for z/os Migration: Query Performance Considerations

User Experience in Custom Apps

SOP through Long Term Planning Transfer to LIS/PIS/Capacity. SAP Best Practices

Accounts Receivable. SAP Best Practices

IBM Systems and Technology Group Technical Conference

OData in a Nutshell. August 2011 INTERNAL

UI Framework Task Based User Interface. SAP Enhancement Package 1 for SAP CRM 7.0

Secure MobiLink Synchronization using Microsoft IIS and the MobiLink Redirector

How To Understand And Understand The Basic Principles Of An Ansper System

USDL XG WP3 SAP use case. Kay Kadner

SAP Central Process Scheduling (CPS) 8.0 by Redwood

Understanding HR Schema and PCR with an Example

BW Workspaces Use Cases

Single Sign-On between SAP Portal and SuccessFactors

Aktuelles aus z/vm, z/vse, Linux on System z

Intelligent Business Operations Chapter 1: Overview & Strategy

Third Party Digital Asset Management Integration

Data Warehouse Center Administration Guide

Integration of SAP Netweaver User Management with LDAP

Installation Guide Customized Installation of SQL Server 2008 for an SAP System with SQL4SAP.VBS

50 TB Data Warehouse Benchmark on IBM System z

Integrating Easy Document Management System in SAP DMS

SAP Service Tools for Performance Analysis

Deploying a private database cloud on z Systems

UI Framework Simple Search in CRM WebClient based on NetWeaver Enterprise Search (ABAP) SAP Enhancement Package 1 for SAP CRM 7.0

Application Lifecycle Management

Data Archiving in CRM: a Brief Overview

How to Schedule Report Execution and Mailing

ABAP FUNDAMENTALS. What is ABAP? 1/16/2011. Spring 2011

Maintaining Different Addresses and Ids for a Business Partner via CRM Web UI

SEM and Budget Preparation. David Reifschneider Sr. Consultant, SAP SI America

BUSINESS PROCESS MANAGEMENT

SAP NETWEAVER ARCHITECTURE CONCEPTS, PART 1

UI Framework Logo exchange without skin copy. SAP Enhancement Package 1 for SAP CRM 7.0

SAP Business ByDesign Reference Systems. Scenario Outline. SAP ERP Integration Scenarios

SAP Web SAP Logging & Tracing API. Jeff Gebo SAP Labs, LLC.

NetWeaver Business Client (NWBC) for Incentives and Commissions Management (ICM)

BUSINESS STRUCTURE: FUNCTIONS AND PROCESSES

How To Improve Your Business Process With Sap

Overview of the z/os Load Balancing Advisor: Making External IP Load Balancers Sysplex Aware

IBM Tivoli Storage FlashCopy Manager Overview Wolfgang Hitzler Technical Sales IBM Tivoli Storage Management

Implementing Outlook Integration for SAP Business One

AC 10.0 Centralized Emergency Access

SAPFIN. Overview of SAP ERP Financials COURSE OUTLINE. Course Version: 15 Course Duration: 2 Day(s)

SAP BusinessObjects Increasing Stability by Setting Limits on Max. Retrievable Cells from SAP BW into Web Intelligence using BICS

DB2 Database Demonstration Program Version 9.7 Installation and Quick Reference Guide

Certificate SAP INTEGRATION CERTIFICATION

SAP Best Practices for Subsidiary Integration in One Client Production with Intercompany Replenishment

SAP NETWEAVER ARCHITECTURE CONCEPTS, PART 1

Integration of Universal Worklist into Microsoft Office SharePoint

B2B E-COMMERCE. B2B concepts

AC200. Basics of Customizing for Financial Accounting: General Ledger, Accounts Receivable, Accounts Payable COURSE OUTLINE

LO Extraction Part 2 Database Update Logic

z/os Curriculum Job Control Language (JCL) Curriculum JES Curriculum WebSphere Curriculum TSO/ISPF for z/os Curriculum

UltraQuest Cloud Server. White Paper Version 1.0

HR400 SAP ERP HCM Payroll Configuration

DFSMS Object Support Overview: Data Archiving with OAM Session: 17809

ABAP Custom Code Security

Performance Analytics with TDSz and TCR

GDPS/Active-Active and Load Balancing via Server/Application State Protocol (SASP)

How To Use the ESR Eclipse Tool with the Enterprise Service Repository

How to Create a Support Message in SAP Service Marketplace

Sample Universe on Microsoft OLAP Cube

Using User Exit for Variables in BEx Reporting

Certificate Authentication in the z/os Internet Key Exchange

IBM News For DB2 User Groups

SAP HANA Technical Academy , WU Wien

Sales Rush Sales Order Processing S01- Lean Baseline Package. SAP Lean Baseline Package Version: V1.500 Country: UK Language: EN Date: February 2006

LO Extraction Part 1: SD Application Short Overview

Query, Read, Create and Update CLOUD FOR CUSTOMER ODATA SERVICE QUERY, READ, CREATE AND UPDATE

Xcelsius Dashboards on SAP NetWaver BW Implementation Best Practices

SAP Sybase SQL Anywhere New Features Improve Performance, Increase Security, and Ensure 24/7 Availability

Transcription:

DB2 10 for z/os Plan Stability Usage Guide current previous HiPerformance Software GmbH, W.Hini, 2014 1

Topic Titel: Autor: DB2 Plan Stability Usage Guide HiPerformance Software GmbH, Wolfgang Hini Current system and package setting Plan Management EXTENDED REBIND SWITCH(PREVIOUS) REBIND SWITCH(ORIGINAL) SWITCH package copy FREE inactive pac kage copies and set up a new original copy 2

Current system and package Setting for PLANMGMT In DB2 10 the default (dsnzparm) system setting for plan management is EXTENDED. ZPARM parm PLAMMGMT(EXTENDED) is the default in DB2 V10. You can also use it in the BIND/REBIND COMMAND. REBIND PACKAGE(collid.name) PLANMGMT(EXTENDED) is the default in DB2 V10 Check current collection, package setting by a DB2 Catalog query for your Collections (column PLANMGMT). SQL Example: SELECT COLLID, NAME, PLANMGMT FROM SYSIBM.SYSPACKAGE WHERE COLLID = 'mycollection AND NAME = name ; 3

Plan Management PLANMGMT(EXTENDED) 1. Bind creates a current (active) copy of the package. Current 2. First rebind creates a new current (active) copy and a previous and original copy. Current Copy2) Previous Original 3. Further rebinds create a new active copy and replace the previous one. The original one keeps untouched. Current Copy3) Previous Copy2) Original 4

REBIND PACKAGE(collid.package) SWITCH(PREVIOUS) Return to the previous access path by activating the previous package copy REBIND PACKAGE(collid.package) SWITCH(PREVIOUS) Status before Current Copy3) Previous Copy2) Original Status after Current Copy2) Previous Copy3) Original active previous 5

REBIND PACKAGE(collid.package) SWITCH(ORIGINAL) Return to the previous access path by activating the previous package copy REBIND PACKAGE(collid.package) SWITCH(ORIGINAL) Status before Current Copy3) Previous Copy2) Original Status after Current Previous Copy2) Original active original 6

SWITCH to what copy? Before you switch back If PLAN_TABLE entries are available. Check access path in PLAN_TABLE. What was the good access path and what s the corresponding EXPLAIN_TIME. If no PLAN_TABLE entries are available. Explain the package copies and check the access paths. EXPLAIN PACKAGE COLLECTION collid' PACKAGE name' COPY 'ORIGINAL / PREVIOUS/ ORIGINAL Creates PLAN_TABLE entries of the used access path of that package copy Check SYSIBM.SYSPACKCOPY EXPLAIN_TIME in PLAN_TABLE > BINDTIME in SYSIBM.SYSPACKCOPY > COPYID (1 means previous, 2 means original) 7

SWITCH to what copy? Before you switch back Check SYSIBM.SYSPACKDEP. Get all dependent objects of the package copies. Is the package you want to use valid? Check PLAN_TABLE to find missing Indexes (compare to SYSPACKDEP to get the gap). REBIND PACKAGE(collid.package) SWITCH(PREVIOUS/ORIGINAL). If not all indexes are there, DB2 will do an automatic rebind at the next package execution. 8

REBIND PACKAGE(collid.name) EXPLAIN(ONLY) Don t forget: Rebind with EXPLAIN(ONLY) does a NEW Explain on the active copy. It does NOT extract the internal access path to the PLAN_TABLE. Get the access path information into the PLAN_TABLE with: EXPLAIN PACKAGE COLLID collid PACKAGE name COPY PREVIOUS / ORIGINAL or CURRENT 9

Package Cleanup FREE PACKAGE (ALL/INACTIVE) Delete old copy information from Catalog and Directory by DB2 Command: FREE PACKAGE (collection. package) PLANMGMTSCOPE (INACTIVE) Deletes entries in Directory Table SPT01 of the original and previous copy Deletes rows of the original and previous copy in Catalog Tables SYSIBM.SYSPACKCOPY SYSIBM.SYSPACKDEP 10

Appendix Test Scenario 1. To make plan management visible we used a program with static SQL accessing a Table TBTEST1. First we created Index XTBTEST1 and bound the packagee. 2. Then we created Index XTBTEST2 and rebound the package. Finally we created Index XTBTEST3 and rebound the package. Extract of SYSIBM.SYSPACKDEP after first BIND of package. Package uses Index XTBTEST1 (DTYPE =blank means active) 11

Appendix Test Scenario Entries in SYSIBM.SYSPACKDEP Extract of SYSIBM.SYSPACKDEP after first REBIND of package. 1. Package uses Index XTBTEST2 now (DTYPE =blank means active). 2. Previous version uses index XTBTEST2 (DTYPE=P means previous). 3. Original version is the same as previous version (DTYPE=O means original). 12

Appendix - Test Scenario Entries in SYSIBM.SYSPACKDEP Extract of SYSIBM.SYSPACKDEP after further REBIND of package. 1. Package uses Index XTBTEST3 now (DTYPE =blank means active). 2. Previous version uses index XTBTEST2 (DTYPE=P means previous). 3. Original version uses index XTBTEST1 (DTYPE=O means original). 13

Appendix - Test Scenario Entries in SYSIBM.SYSPACKDEP Extract of SYSIBM.SYSPACKDEP after REBIND SWITCH(PREVIOUS) of package. 1. Package uses Index XTBTEST2 now (DTYPE =blank means active). 2. Previous version uses index XTBTEST2 (DTYPE=P means previous). 3. Original version is the same as previous version (DTYPE=O means original). 14

Appendix - Test Scenario Entries in SYSIBM.SYSPACKDEP Extract of SYSIBM.SYSPACKDEP after REBIND SWITCH(ORIGINAL) of package. 1. Package uses Index XTBTEST1 now (DTYPE =blank means active). 2. Previous version is unchanged and uses index XTBTEST2 (DTYPE=P means previous). 3. Original version is unchanged and the same as active (DTYPE=O means original). 15

Appendix - Entries in SYSIBM.SYSPACKCOPY Extract of SYSIBM.SYSPACKCOPY. 1. COPYID 2 is the original copy. 2. COPYID 1 the previous copy. 3. BINDTIME shows when this copy was bound. 4. Current (active) copy metadata is in SYSIBM.SYSPACKAGE. 16

Disclaimer and Trademarks TRADEMARKS: THE FOLLOWING TERMS ARE TRADEMARKS OR REGISTERED TRADEMARKS OF THE IBM CORPORATION IN THE UNITED STATES AND/OR OTHER COUNTRIES: DB2, DistributedRelational Database Architecture, DRDA, Enterprise Storage Server, ESCON, FICON, FlashCopy, GDPS, HyperSwap, IBM, IMS, Information Agenda, iseries, Language Environment, MQSeries, OMEGAMON, OmniFind, Optim, Passport Advantage, Parallel Sysplex, POWER7, ProductPac, PR/SM, pseries, purexml, QMF, QualityStage, Query Management Facility, QuickPlace, Quickr, RACF, Rational, Redbooks, RMF, ServicePac, soliddb, Sysplex Timer, System i, System p, SystemPac, System Storage, System x, System z, System z9, System z10, Tivoli, VTAM, xseries, WebSphere, z9, z10, z/architecture, zenterprise, z/os, z/vm, zseries. "Other company, product or service names may be trademarks or service marks of others" 17