© 2010 IBM Corporation Information Management Basic Handling of DB2 Issue with IBM Support Anthony Reina - Accelerated Value Specialist

Slides:



Advertisements
Similar presentations
Castelle FaxPress Plus™ FaxPress Premier and FaxPress Enterprise
Advertisements

ONE STOP THE TOTAL SERVICE SOLUTION FOR REMOTE DEVICE MANAGMENT.
© IBM Corporation Informix Chat with the Labs John F. Miller III Unlocking the Mysteries Behind Update Statistics STSM.
Grid Resource Allocation Management (GRAM) GRAM provides the user to access the grid in order to run, terminate and monitor jobs remotely. The job request.
Week 6: Chapter 6 Agenda Automation of SQL Server tasks using: SQL Server Agent Scheduling Scripting Technologies.
MCTS Guide to Microsoft Windows Server 2008 Network Infrastructure Configuration Chapter 6 Managing and Administering DNS in Windows Server 2008.
DataMigrator 7.7 in Real Time
1 Configuring Internet- related services (April 22, 2015) © Abdou Illia, Spring 2015.
Module 5: Creating and Configuring Group Policy
0-1 Team # Status Report (1 of 4) Client Contact –Point 1 –Point 2 Team Meetings –Point 1 –Point 2 Team Organization –Point 1 –Point 2 Team #: Team Name.
0-1 Team # Status Report (1 of 4) Client Contact –Status Point 1 –Status Point 2 Team Meetings –Status Point 1 –Status Point 2 Team Organization –Description.
16: Distributed Systems1 DISTRIBUTED SYSTEM STRUCTURES NETWORK OPERATING SYSTEMS The users are aware of the physical structure of the network. Each site.
Chapter 7 Managing Data Sources. ASP.NET 2.0, Third Edition2.
Check Disk. Disk Defragmenter Using Disk Defragmenter Effectively Run Disk Defragmenter when the computer will receive the least usage. Educate users.
Project Implementation for COSC 5050 Distributed Database Applications Lab1.
Sharepoint Portal Server Basics. Introduction Sharepoint server belongs to Microsoft family of servers Integrated suite of server capabilities Hosted.
Database Security and Auditing: Protecting Data Integrity and Accessibility Chapter 3 Administration of Users.
1 Semester 2 Module 2 Introduction to Routers Yuda college of business James Chen
Module 2: Using Transact-SQL Querying Tools. Overview SQL Query Analyzer Using the Object Browser Tool in SQL Query Analyzer Using Templates in SQL Query.
Welcome to the Minnesota SharePoint User Group. Introductions / Overview Project Tracking / Management / Collaboration via SharePoint Multiple Audiences.
Backup & Recovery 1.
Chapter 9 Collecting Data with Forms. A form on a web page consists of form objects such as text boxes or radio buttons into which users type information.
Module 4 Managing Client Access. Module Overview Configuring the Client Access Server Role Configuring Client Access Services for Outlook Clients Configuring.
Module 18 Monitoring SQL Server 2008 R2. Module Overview Monitoring Activity Capturing and Managing Performance Data Analyzing Collected Performance Data.
Course Topics Administering SQL Server 2012 Jump Start 01 | Install and Configure SQL Server04 | Manage Data 02 | Maintain Instances and Databases05 |
IBM Software Group Washington Area Informix User Group Forum 2004 The DB2 DBA Checklist Dwaine R Snow, DB2 & Informix.
C Copyright © 2009, Oracle. All rights reserved. Using Diagnosis and Debugging Techniques.
3 Chapter Three Administering and Configuring SQL Server 2000.
Introduction and simple using of Oracle Logistics Information System Yaxian Yao
© 2010 IBM Corporation Information Management Performance Enhancements for DB2 V10.1 Anthony Reina - Accelerated Value Specialist
MARC 10.5 Update John Harvey. MARC 10.5 Changes  Backup Scripts restructured  Added a script to generate scripts outside of MARC  Generate Scripts.
Rsv-control Marco Mambelli – Site Coordination meeting October 1, 2009.
5 Chapter Five Web Servers. 5 Chapter Objectives Learn about the Microsoft Personal Web Server Software Learn how to improve Web site performance Learn.
9 Chapter Nine Compiled Web Server Programs. 9 Chapter Objectives Learn about Common Gateway Interface (CGI) Create CGI programs that generate dynamic.
FTP Client Application CSC 8560 Brian Jorgage 4/27/2004.
Database-Driven Web Sites, Second Edition1 Chapter 5 WEB SERVERS.
Chapter 13 Users, Groups Profiles and Policies. Learning Objectives Understand Windows XP Professional user accounts Understand the different types of.
1 Oracle Architectural Components. 1-2 Objectives Listing the structures involved in connecting a user to an Oracle server Listing the stages in processing.
Object-Oriented Analysis & Design Subversion. Contents  Configuration management  The repository  Versioning  Tags  Branches  Subversion 2.
Introduction to the new mainframe © Copyright IBM Corp., All rights reserved. Chapter 12 Understanding database managers on z/OS.
IBM Software Group | DB2 Curriculum Course 1 Query Performance and Optimizer Specific Type of Issues Speaker name: Anthony E. Reina
Oracle Data Integrator Agents. 8-2 Understanding Agents.
Module 5: Creating and Configuring Group Policies.
Chapter 27 - Faxes & File Transfer (FTP) Introduction Sending a Fax –The Internet can be used to send a fax. Two fax machines can be modified to communicate.
Rob Davidson, Partner Technology Specialist Microsoft Management Servers: Using management to stay secure.
Free Powerpoint Templates Page 1 Free Powerpoint Templates Users and Documents.
© 2010 IBM Corporation Information Management Using Snapshot monitor SQL Administrative Views for Performance Analysis on V10.1 Anthony Reina - Accelerated.
File Transfer Protocol (FTP) FTP host stores files Client logs into host Client program sends command to get a file FTP host downloads the file with error.
Msdevcon.ru#msdevcon. ИЗ ПЕРВЫХ РУК: ДИАГНОСТИКА ПРИЛОЖЕНИЙ С ПОМОЩЮ ИНСТРУМЕНТОВ VISUAL STUDIO 2012 MAXIM GOLDIN Senior Developer, Microsoft.
8 Chapter Eight Server-side Scripts. 8 Chapter Objectives Create dynamic Web pages that retrieve and display database data using Active Server Pages Process.
03 | Manage Team Foundation Server Steven Borg | Co-founder & Strategist, Northwest Cadence Anthony Borton | ALM Consultant, Enhance ALM.
Module 6: Administering Reporting Services. Overview Server Administration Performance and Reliability Monitoring Database Administration Security Administration.
Institute for the Protection and Security of the Citizen HAZAS – Hazard Assessment ECCAIRS Technical Course Provided by the Joint Research Centre - Ispra.
Interactions & Automations
Module 5: Managing Content. Overview Publishing Content Executing Reports Creating Cached Instances Creating Snapshots and Report History Creating Subscriptions.
Log Shipping, Mirroring, Replication and Clustering Which should I use? That depends on a few questions we must ask the user. We will go over these questions.
Interstage BPM v11.2 1Copyright © 2010 FUJITSU LIMITED INTERSTAGE BPM ARCHITECTURE BPMS.
© 2014 IBM Corporation External Collaboration IBM Connections 5.0 Workshop IBM Ecosystem Development Duration: 30 minutes.
SAP R/3 User Administration1. 2 User administration in a productive environment is an ongoing process of creating, deleting, changing, and monitoring.
9 Copyright © 2004, Oracle. All rights reserved. Getting Started with Oracle Migration Workbench.
COMP3121 E-Commerce Technologies Richard Henson University of Worcester December 2009.
Everything you've ever wanted to know about using Control-M to integrate any application workload September 9, 2016 David Fernandez Senior Presales Consultant.
Smarter Technology for Better Business
© 2002, Cisco Systems, Inc. All rights reserved.
SQL Trace and TKPROF.
Data Virtualization Demoette… ADO.NET Client
Configuring Internet-related services
SHELLSHOCK ATTACK.
Presentation transcript:

© 2010 IBM Corporation Information Management Basic Handling of DB2 Issue with IBM Support Anthony Reina - Accelerated Value Specialist

© 2010 IBM Corporation Information Management 2 The IBM Software Accelerated Value Program delivers a proactive, cost-reducing, and productivity enhancing advisory service. The program pairs you with an assigned team who build a foundational understanding of your overall environment. Through that understanding, the trusted partner works to facilitate faster deployment, lifecycle leadership, risk mitigation, and more by identifying ways to improve your environment, staff skill set, and processes. IBM Software Accelerated Value Program

© 2010 IBM Corporation Information Management 3 Agenda : Introduction – Why, What, and How? Using db2fodc for v9.7 for hang/performance issue Enabling and setting db2cos (DB2 call out script) The db2support Collecting db2support with OPT data The db2exfmt (access plan) Sending files to IBM. Related links and documents Gotchas Question/Answer

© 2010 IBM Corporation Information Management 4 Introduction Why there is a need for an action plan when issues occur?  Avoid confusion due to a standard response procedure.  Problem definition is immediately defined.  Correct diagnostic information is collected based on the issue reported.  Reduce overhead time, improve time to resolution.

© 2010 IBM Corporation Information Management 5 Introduction What information to collect?  Background Information : - Time when the problem occurred. - Conditions that currently exist on the system. - Any recent changes to the system (ie. HW, SW, others) - Operation/steps leading to the issue. - Steps taken to recover from the issue. - Time when DB2 or system return to normal. - Diagnostic data  Diagnostic Data

© 2010 IBM Corporation Information Management 6 Introduction How to collect diagnostic data? Type of Issuedb2fodc (V9.7) db2cosdb2supportOPTIMIZERdb2exfmt All type of issue Query performance Query non- performance Performance Hang Timeout/Deadlock

© 2010 IBM Corporation Information Management 7 db2fodc for v9.7 db2fodc o DB2 First Occurrence Data Capture process. Can be used to collect hang and performance issues. Diagnostic data collection usage : db2fodc –db - Output directory will be in the DIAGPATH directory. Can be customized as needed. Output directory will have a prefix of “FODC_Perf_ _ ”

© 2010 IBM Corporation Information Management 8 db2fodc for v9.7 Data to be collectedBASICFULL Snapshot46 Stacktrace aka call stacks35 vmstat200 Iostat200 db2perfcount02 db2trc01 latchtrace00 Data to be collectedValue os_iterations2 os_sleep30 db2pdstack_iterations2 db2pdstack_sleep120 db2monitor_sleep60 fullstack_sleep300 db2trc_size8mb ostrc_size ostrc_sleep30 announce_sleep15 no_waitOFF/ON (Default=OFF) Data to be collectedBASICFULL OS IterationOn db2_configOn basic_db2_configOn more_db2_configOn os_monitor_infoOn call_stacksOn db2pd_infoOn db2pd_dumpOn db2trcOn ostrcOn db2_monitoringOn extra_infoOn db2fodc -perf : refer to TOOLS OPTION of /bin/db2cos_perf db2fodc -hang : refer to TOOLS OPTION of /bin/db2cos_hang

© 2010 IBM Corporation Information Management 9 db2fodc for v9.7 Customize the db2fodc –perf full data collection Before After Actual Execution

© 2010 IBM Corporation Information Management 10 db2fodc for v9.7 Customize the db2fodc –hang basic to collect db2look. Before After

© 2010 IBM Corporation Information Management 11 db2fodc for v9.7 Execute the db2fodc –hang basic command. db2fodc output Additional db2look output.

© 2010 IBM Corporation Information Management 12 Enabling and setting db2cos DB2 Callout Script invoked by default when DB2 cannot continue processing. Can be used when diagnostic data is hard to capture (ie. locktimeout, deadlock, sqlcode, or trap). The db2cos script can be modified as needed. By default it only collects only DB2PD Instance related info. The default db2cos scripts is under /bin directory. Place modified db2cos scripts under /adm directory. This will be executed first if exist.

© 2010 IBM Corporation Information Management 13 Enabling and setting db2cos db2cos example usage :  Copy the /sqllib/bin/db2cos to /sqllib/adm/db2cos  Modify db2cos to capture snapshot and db2pd info.  Enable –catch flag to trigger db2cos script db2pdcfg –catch -911,2 locktype=V –alldbp db2pdcfg –catch -911,68 locktype=V –alldbp  Wait for problem reoccurence  To disable : db2pd –catch clear  To verify state : db2pd –catch status

© 2010 IBM Corporation Information Management 14 The db2support Collects environment data from client or server machine. Most important utility in collecting information for a DB2 issue. The following information is collected : db2diag.log All trap file Locklist files Dump files Buffer pool and table space Various system related files Output from various system commands db2cli.ini Command : “db2support. –d ” Output is created on the directory where command is run. Output filename is db2support.zip Db2support will collect all the files in the DIAGPATH incl. old db2diag.logs.

© 2010 IBM Corporation Information Management 15 Collecting db2support with OPT data and db2exfmt Collects additional optimizer (OPT) data. Used to investigate optimizer issues. Can be invoked via –sf and/or –cl option  -sf : SQL filename  -cl : Level of info to collect Level of information collected : 0 = collects only catalogs and db2look 1 = collect 0 plus db2exfmt 2 = collect 1 plus.db2service 3 = collect 2 plus db2batch Commands :  db2support. –d -sf -cl 1  db2support. –d -cl 0 Output will be part of the db2support.zip called db2supp_opt.zip - /OPTIMIZER.

© 2010 IBM Corporation Information Management 16 db2support with OPT data enhancements 1.Collect optimizer data for different OPTLEVEL including db2batch information.  db2support -d -c –cl 3 –sf -ol 0,1,2,3,5,7 –extenddb2batch 2.The –basic option collects only optimizer-related diagnostic information. 3.The –extenddb2batch collects db2batch information when –ol and –cl options are used. 4.No db2look and catalog information collected when “-nl | -nodb2look” and “-nc | -nocatalog” options are used.

© 2010 IBM Corporation Information Management 17 The DB2EXFMT (access plan) Captures information about the access plan, optimizer inputs, and environment of an SQL query. Helps to understand how the SQL query is compiled and executed. Shows how configuration parameter changes impact query performance. Indispensible tool for query problem determination. Explain information includes  Sequence of operations to process the query  Cost information  Predicates and selectivity estimates for each predicate  Statistics for all objects referenced in the SQL query at the time the explain information is captured.

© 2010 IBM Corporation Information Management 18 The DB2EXFMT tool (access plan) Explain tables must be created before the tool can be used.  SYSINSTALLOBJECTS() procedure – call sysproc.sysinstallobjects(‘EXPLAIN’,’C’,NULL, )  EXPLAIN.DDL – db2 –tvf …/sqllib/misc/EXPLAIN.DDL Using the db2exfmt tool :  db2 set current explain mode explain  db2 –tvf  db2 set current explain mode no  db2exfmt –d -1 –o or db2exfmt –d -g TIC –w -1 –n –s % -# 0 –o

© 2010 IBM Corporation Information Management 19 Sending files to IBM Submit files to IBM by using IBM Enhanced Customer Data Repository (ECuRep) Service site. Provides secure and central repository of submitting files to IBM. Important Notes :  Files must be in a compressed format.  Submit files only if a problem record is already opened.  IBM may provide information back via ECuRep as well.

© 2010 IBM Corporation Information Management 20 Sending files to IBM Filename convention : xxxx.bbb.ccc.yyy.yyy Where :xxxxx = PMR Number bbb = Branch ccc = Country Code yyy.yyy = Description of the file type. Example: zip How to submit files to the ftp server : 1.Use a FTP client to connect to ftp.ecurep.ibm.comftp.ecurep.ibm.com 2.Login as anonymous and enter your address as the password. 3.Change the directory to /toibm/im 4.Change to binary transfer mode for example for a FTP connection from a Windows command line, enter: bin. 5.Upload your file. 6.Close your FTP client.

© 2010 IBM Corporation Information Management 21 Important Links/Documents Submitting files to IBM via ECuRep Collecting Data for DB2 Compiler Issues IBM developerWorks IBM Support Portal

© 2010 IBM Corporation Information Management 22 Gotchas :  Db2support will also collect db2fodc diagnostic data as well.  Collect db2cos data if stored outside the DIAGPATH directory.  Use “db2support…-sf -cl 1” for issues involving one query.  Use “db2support…-cl 0” for issues involviong more than one query.  Use db2exfmt tool to collect query access plan as needed or if more than one query is involved.  Advice support analyst via once diagnostic files have been sent via ECuRep.

© 2010 IBM Corporation Information Management 23 Questions?