Efficient Monitoring & Tuning of Dynamic SQL

Size: px
Start display at page:

Download "Efficient Monitoring & Tuning of Dynamic SQL"

Transcription

1 Efficient Monitoring & Tuning of Dynamic SQL Namik Hrle IBM April 16, 2014 Platform: DB2 for z/os

2 Disclaimer Copyright IBM Corporation All rights reserved. U.S. Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp. THE INFORMATION CONTAINED IN THIS PRESENTATION IS PROVIDED FOR INFORMATIONAL PURPOSES ONLY. WHILE EFFORTS WERE MADE TO VERIFY THE COMPLETENESS AND ACCURACY OF THE INFORMATION CONTAINED IN THIS PRESENTATION, IT IS PROVIDED AS IS WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED. IN ADDITION, THIS INFORMATION IS BASED ON IBM S CURRENT PRODUCT PLANS AND STRATEGY, WHICH ARE SUBJECT TO CHANGE BY IBM WITHOUT NOTICE. IBM SHALL NOT BE RESPONSIBLE FOR ANY DAMAGES ARISING OUT OF THE USE OF, OR OTHERWISE RELATED TO, THIS PRESENTATION OR ANY OTHER DOCUMENTATION. NOTHING CONTAINED IN THIS PRESENTATION IS INTENDED TO, NOR SHALL HAVE THE EFFECT OF, CREATING ANY WARRANTIES OR REPRESENTATIONS FROM IBM (OR ITS SUPPLIERS OR LICENSORS), OR ALTERING THE TERMS AND CONDITIONS OF ANY AGREEMENT OR LICENSE GOVERNING THE USE OF IBM PRODUCTS AND/OR SOFTWARE. IBM, the IBM logo, ibm.com, DB2 and DB2 for z/os are trademarks or registered trademarks of International Business Machines Corporation in the United States, other countries, or both. If these and other IBM trademarked terms are marked on their first occurrence in this information with a trademark symbol ( or ), these symbols indicate U.S. registered or common law trademarks owned by IBM at the time this information was published. Such trademarks may also be registered or common law trademarks in other countries. A current list of IBM trademarks is available on the Web at Copyright and trademark information at Other company, product, or service names may be trademarks or service marks of others. 2

3 Agenda Monitoring Systems tuning Applications tuning 3

4 CACHEDYN=YES and KEEPDYNAMIC=YES PREPARE S EXECUTE S EXECUTE S 1 sqlcode=0 sqlcode=0 sqlcode=0 full prepare prepared statement S SKDS S program A thread A PREPARE S EXECUTE S COMMIT EXECUTE S program B sqlcode=0 sqlcode=0 sqlcode=0 sqlcode=0 short prepare prepared statement S no effect on prepared statements thread B avoided prepare EDM Statement Pool 4

5 Agenda Monitoring Global statements cache Local statements cache Specific cached statements Systems tuning Applications tuning 5

6 Monitoring Global Statements Cache Prepare requests QXPREP + QXSTIPRP Not found in cache QXSTNFND 5005 Full prepares QISEDSI 5003 Found in cache QXSTFND Short prepares QISEDSG - QISEDSI Global cache hit ratio QISEDSG - QISEDSI QISEDSG 95% 6

7 Monitoring Local Statements Cache Implicit prepares QXSTIPRP Avoided prepares QXSTNPRP Statements invalidated QXSTDEXP+QXSTDINV 8010 MAXKEEPD exceeded QXSTDEXP 8000 DROP/ALTER/REVOKE/RUNSTATS QXSTDINV 10 Local cache hit ratio QXSTNPRP QXSTNPRP+QXSTIPRP 91% 7

8 Monitoring Cached Statements EXPLAIN support STMTCACHE ALL STMTCACHE STMTID statement-id STMTCACHE STMTTOKEN statement-token Special register: CURRENT EXPLAIN MODE (1) DB2 Trace support IFCID 316 externalizes execution statistics IFCID 317 externalizes full statement text IFCID 318 controls type collected statistics (1) available as of DB2 10 8

9 EXPLAIN STMTCACHE ALL Explains a set of cached statements Populates table DSN_STATEMENT_CACHE_TABLE Qualified by current SQLID value One row for each cached statement All statements included if EXPLAIN executed by SYSADM or SQLADM Otherwise only statements with matching authorization Reports the statement s execution statistics Analogous to IFCIDs 316 and 317 Statistics controlled and reset by means of IFCID 318 Details documented later in the presentation Member specific Need to be executed on all members 9

10 EXPLAIN STMTCACHE STMTID Explains a specific statement identified by its id Can be either integer constant or host variable It is assigned by DB2 at prepare time and it uniquely identifies cached statement It can be retrieved via IFI call from IFCIDs 316 and 124 also available in IFCIDs 172, 196, 337 Value reported in PLAN_TABLE s QUERYNO column EXPLAIN populates following tables: PLAN_TABLE, DSN_STATEMNT_TABLE, DSN_FUNCTION_TABLE Identifies actual access path details for specified statement providing it is still in the cache DSN_STATEMENT_CACHE_TABLE Reports execution statistics for the specified statement 10

11 EXPLAIN STMTCACHE STMTTOKEN Explains a specific statement identified by its token Can be either string constant or host variable Up to 240 characters It is assigned by application at prepare time RRSAF SET_ID function for local applications sqlseti API for remote applications Value reported in PLAN_TABLE s STMTTOKEN column EXPLAIN populates following tables: PLAN_TABLE, DSN_STATEMNT_TABLE, DSN_FUNCTION_TABLE Identifies actual access path details for specified statement providing it is still in the cache DSN_STATEMENT_CACHE_TABLE Reports execution statistics for the specified statement. 11

12 Special Register CURRENT EXPLAIN MODE 12 Prior to DB2 10, performance monitoring and tuning of dynamic SQL statements was not ideally suited for application programmers There is no equivalent of EXPLAIN bind option that is provided for static SQL Each monitored statements need to be changed (adding STMTTOKEN) Alternatively, time consuming and complex analysis of performance traces or DSN_STATEMENT_CACHE_TABLE is needed Statement could be purged from the cache before having a chance to retrieve its performance characteristics DB2 10 addresses these challenges Application programmers can turn on/off collection of access path details and performance data for dynamic SQL statements SET CURRENT EXPLAIN MODE = NO YES EXPLAIN JCC connection property: currentexplainmode ODBC/CLI: keyword DB2Explain in db2cli.ini file, or Setting SQL_ATTR_DB2EXPLAIN with SQLSetConnectAttr() function For YES and EXPLAIN, access path details are written in standard explain tables This also applies to CACHEDYN=NO and REOPT(ALWAYS) cases For YES, performance data are written in DSN_STATEMENTS_CACHE_TABLE

13 Correlating EXPLAIN Tables PLAN_TABLE QUERYNO COLLID DSN_STATEMENT_ CACHE_TABLE STMT_ID COLLID The key correlation value. DB2 generates the value when the statement got inserted into cache. One of the constants: DSNDYNAMICSQLCACHE DSNEXPLAINMODEYES (1) (2) DSNEXPLAINMODEEXPLAIN (1) (2) STMT_TOKEN STMT_TOKEN Optionally present only if specified by the application BIND_TIME CACHED_TS (2) The time when the statement got inserted into the cache. TIMESTAMP or EXPLAIN_TIME (1) EXPLAIN_TS (2) The time when EXPLAIN STMTCACHE was executed The same statement can have multiple entries in PLAN_TABLE and DSN_STATEMENT_CACHE_TABLE but wih different TIMESTAMP i.e. EXPLAIN_TIME and EXPLAIN_TS values, respectively. As of DB2 10 TIMESTAMP is deprecated; use EXPLAIN_TIME instead (1) Available as of DB2 10 (2) For DSN_STATEMENT_CACHE_TABLE entries created by EXPLAIN STMTCACHE ALL, use CACHED_TS=BIND_TIME For DSN_STATEMENT_CACHE_TABLE entries created by EXPLAIN MODE=YES EXPLAIN, use EXPLAIN_TS=BIND_TIME 13

14 DB2 Trace Support IFCID 316 Externalises statement-level statistics Prior to DB2 10, the statistics available for statements that are found in the dynamic statements cache at retrieval time Retrieved via IFI READS request Require active Monitor Trace Class 1 In DB2 10 the statistics is also available for statements that were removed from the dynamic statements cache These are retrieved via IFI READA request or by post-processing SMF/GTF data Require active Monitor trace Class 29 Side remark: IFCID 400 as an analogue to IFCID 316 is introduced for static SQL IFCID 317 statements Complements IFCID 316 Provides full statement text for a give statement ID 14 For detailed usage information see DB2 documentation library, e.g. 'Managing Performance' manual in DB2 10

15 DB2 Trace Support IFCID 318 This is a switch that controls what gets externalised in IFCID 316 Performance Trace user defined Class, e.g. 30 DB2 10 adds Monitor trace Class 29 Accounting Class 3 required for suspension timers Statistics reset at performance class stop Side remark: IFCID 401 as an analogue to IFCID 318 is introduced for static SQL statements. Included in Monitor trace Class Techniques to limit the number of reported statements Prior to DB2 10, the result set can be limited to the statements that: exceeded a given threshold, e.g. number of executions, number of getpages, belong to a top list by a given performance indicator, e.g. elapsed time, CPU, time, match a given statement ID (single statement retrieval) As of DB2 10 the result set can be also limited to the statements that: were executed for a given end-user ID, transaction/application ID, workstation name refer to a specific table were prepared after specific time were re-executed after specific time

16 Statement Level Indicators: Correlation DSN_STATEMENT_CACHE_TABLE IFCID Statement ID (generated by DB2) STMT_ID QW0316ID Statement token (provided by application) STMT_TOKEN QW0316UI Collection ID COLLID Package/DBRM that performed PREPARE PROGRAM_NAME QW0316X1 Precompiler line number for PREPARE statement LINES QW0316LX Transaction name QW0316X2 Primary authorization ID who did initial prepare PRIMAUTH QW0316X3 Current SQLID of user who did initial prepare CURSQLID QW0316X4 CURRENT SCHEMA special register content SCHEMA QW0316SC Data sharing member name (1) GROUP_MEMBER QW0316MBR Table qualifier QW0316QD Table name QW0316TD First 60 characters of statement text QW0316ST Full statement text STMT_TEXT QW0317TX Literal replacement ('&') indication (1) LITERAL_REPL QW0317LR 16 (1) available as of DB2 10

17 Statement Level Indicators: Status DSN_STATEMENT_CACHE_TABLE IFCID Timestamp of initial prepare CACHED_TS QW0316TM Timestamp of statistics last update QW0316UT Timestamp of last IFCID 318 activation STAT_TS QW0316TS Status: valid or reason for invalidation (LRU,RUNSTATS,REVOKE,DROP/ALTER) INV_LRU, INV_RUNSTATS INV_REVOKE, INV_DROPALT QW0316FL Value of QUALIFIER bind option BIND_QUALIFIER QW0316X5 Value of ISOLATION bind option BIND_ISO QW0316X6 Value of CURRENTDATA bind option BIND_CDATA QW0316X7 Value of DYNAMICRULES bind option BIND_DYNRL QW0316X8 Value of CURRENT DEGREE special register BIND_DEGRE QW0316X9 Value of CURRENT RULES special register BIND_SQLRL QW0316XA Number of REBINDs due to REOPT(AUTO) BIND_RA_TOT Value of REOPT option (1) BIND_RO_TYPE Value of CURRENT PRECISION special register QW0316XB Cursor WITH HOLD identification BIND_CHOLD QW0316XC 17 (1) available as of DB2 10

18 Statement Level Indicators: Statistics DSN_STATEMENT_CACHE_TABLE IFCID Locally cached copies currently used (1) USERS QW0316US Locally cached copies total (1) COPIES QW0316CP Statement executions (1) STAT_EXEC or STAT_EXECB (2) QW0316NE Synchronous reads (1) STAT_SYNR or STAT_SYNRB (2) QW0316NB Synchronous writes (1) STAT_WRIT or STAT_WRITB (2) QW0316NW Getpages (1) STAT_GPAG or STAT_GPAGB (2) QW0316NG Rows examined (1) STAT_EROW or STAT_EROWB (2) QW0316NR Rows processed (1) STAT_PROW or STAT_PROWB (2) QW0316NP Sorts performed (1) STAT_SORT or STAT_SORTB (2) QW0316NS Index scans performed (1) STAT_INDX or STAT_INDXB (2) QW0316NI Tablespace scans performed (1) STAT_RSCN or STAT_RSCNB (2) QW0316NT RID List failures: no storage (1) STAT_RIDSTOR or STAT_RIDSTORB (2) QW0316RS RID List failures: limit exceeded (1) STAT_RIDLIMIT or STAT_RIDLIMITB (2) QW0316RT Parallel groups created (1) STAT_PGRP or STAT_PGRPB (2) QW0316NL 18 (1) available only if IFCID 318 is activated (2) as of DB2 10 use columns with suffix 'B' (BIGINT)

19 Statement Level Indicators: Timers DSN_STATEMENT_CACHE_TABLE IFCID Elapsed time (1) STAT_ELAP QW0316AE CPU time (1) STAT_CPU QW0316CT Wait time for synchronous I/O (1) (2) STAT_SUS_SYNIO QW0316W1 Wait time for locks (1) (2) (3) STAT_SUS_LOCK QW0316W2 Wait time for synchronous execution unit switch (1) (2) STAT_SUS_SWIT QW0316W3 Wait time for global locks (1) (2) STAT_SUS_GLCK QW0316W4 Wait time for other agents reads (1) (2) STAT_SUS_OTHR QW0316W5 Wait time for other agents writes (1) (2) STAT_SUS_OTHW QW0316W6 Wait time for latches (1) (2) (4) STAT_SUS_LATCH QW0316W7 Wait time for page latches (1) (2) (4) STAT_SUS_PLATCH QW0316W8 Wait time for drain locks (1) (2) (4) STAT_SUS_DRAIN QW0316W9 Wait time for releasing of claims (1) (2) (4) STAT_SUS_CLAIM QW0316WA Wait time for log writes (1) (2) (4) STAT_SUS_LOG QW0316WB 19 (1) available only if IFCID 318 is activated (2) available only Accounting Class 3 is activated (3) priot to DB2 10 the timer includes latches as well (4) available as of DB2 10

20 Statement Type Indicators DB2 10 adds an indicator whether a statement is dynamic or static to the following trace events: Event IFCID SQL statement end 58 SQL statement text at bind/prepare 63 and 350 Currently executing SQL statement 124 Deadlock details 172 Timeout details 196 Lock escalation details 337 The statement type indicator is also added to the applicable messages. 20

21 Agenda Monitoring Systems tuning EDM storage Thread storage Controlling virtual storage consumption IBM DB2 Analytics Accelerator considerations Applications tuning 21

22 EDM Statement Pool The dynamic statements are cached in the EDM Statement Pool which belongs to EDM storage. EDM Statement Pool Skeleton dynamic statements (SKDS) zparm EDMSTMTC As of DB2 V8 above-the-bar EDM DBD Pool Database Descriptors (DBDs) zparm EDMDBDC As of DB2 V8 above-the-bar EDM Skeleton Pool Skeleton Cursor (SKCT) and Package Tables (SKPT) zparm EDM_SKELETON_POOL As of DB2 9 above-the-bar EDM RDS Pool Cursor (CT) and Package Tables (PT) zparm EDMPOOL As of DB2 9 partially above-the-bar As of DB2 10 entirely above-the-bar V9 Statement Pool DBD Pool Skeleton Pool RDS Pool DBM1 V10 Statement Pool DBD Pool Skeleton Pool RDS Pool 2GB 22

23 EDM Statement Pool Considerations EDM Statement Pool resides entirely above-the-bar Therefore, not critical as a virtual storage constraint Of course, do not over-commit real storage Use zparm EDMSTMTC to specify the EDM Statement Pool size Can be updated online For applications that rely on dynamic SQL allocate a large pool E.g. In SAP case, start with 300MB Adjust upwards in increments of 20MB if the global cache hit ratio keeps consistently below 95% Beware of the effects of multiple authorization IDs Result in separate cache entries even for identical statements Keep zparm EDMBFIT at its default: NO Otherwise you can expect large increase in class 24 latches 23

24 Thread Virtual Storage Prior to DB2 10, dynamic statements caching can consume lots of DBM1 virtual storage below the 2GB bar, especially with Local caching, i.e. KEEPDYNAMIC(YES) A large portion (up to 50%) of virtual storage that holds locally cached statements (particularly INSERTs) moved above-the-bar in V9 Long running threads Even worse with long units of recovery Selected knobs to control thread virtual storage utilization KEEPDYNAMIC bind parameter MAXKEEPD zparm CACHEDYN_FREELOCAL zparm CONTSTOR zparm MINSTOR zparm Keep an eye on DB2 service Informational APARs: II04309 and II10817 DB2 10 brings radical improvements in this space Runtime structure moved to agent local storage above the bar 24

25 KEEPDYNAMIC Considerations KEEPDYNAMIC(YES) turns on so called local statements caching Results in reduced number of explicit prepares Preserves statement text across commits Automatically closes withheld cursors in DRDA at SQLCODE=+100 reduces message traffic and locks duration It is incompatible with REOPT(ALWAYS), but compatible with REOPT(ONCE) and REOPT(AUTO) DDF server threads that execute KEEPDYNAMIC(YES) packages remain active (CMTSTAT=INACTIVE is ignored) Active DDF server threads are subject to idle thread timeouts Although CMTSTAT=INACTIVE is ignored, it s needed for transaction-level accounting data and changes WLM enclaves at transaction boundaries Prior to V10 it puts lots of pressure on thread virtual storage Recommendation: Set KEEPDYNAMIC to NO, i.e. do not use local statements caching unless you fully understand ramifications or the application (e.g. SAP) requires it 25

26 26 MAXKEEPD Considerations MAXKEEPD limits number of cached executables It enables prepare avoidance at cost of virtual storage It is checked at system level, but enforced at thread level FIFO method regarding prepare operation Online zparm range , default 5000 DB2 10 opens opportunity to be more relaxed with this parameter, subject to appropriate availability of real storage MAXKEEPD = 0 disables keeping statement executables across commits Statements text is still preserved Reasons for setting MAXKEEPD to 0 and KEEPDYNAMIC to YES: Reduced number of explicit prepares Cutting accounting records at commit WLM flexibility Reduced CPU utilization associated with package allocation

27 27 CONTSTOR and MINSTOR zparms CONTSTOR Default is NO in V8 and V9, but changed to YES in V10 Updateable online If set to YES, DB2 releases unused thread storage at commit instead of deallocation The check is done after certain number of commits Recommendation: CONTSTOR = YES MINSTOR Default keeps changing V8: NO V9: YES V10: NO Updateable online If set to YES, DB2 regularly reduces thread s virtual storage footprint Recommendation: V8, V9: MINSTOR=YES V10: MINSTOR=NO.

28 CACHEDYN_FREELOCAL zparm Introduced in DB2 V8, APAR PK21861 New serviceability functionality added by PM24696 Updateable online In case of below-the-bar virtual storage stress conditions, DB2 frees cached statement and releases associated virtual storage upon statement s completion, i.e. does not wait for a commit to do that. If the statement is re-referenced after being freed, DB2 performs implicit prepare, so the process is transparent to the applications Unless there are concurrent DROPs or ALTERs affecting associated objects, in which case -204 could be returned to the application executing the freed statement Applies only to statements bound with KEEPDYNAMIC(YES) Possible values 0 : Feature is disabled. Default value in DB2 V8. 1 : Feature is enabled. Default value in DB2 9 and 10 2, 3, etc are serviceability values 28

29 IBM DB2 Analytics Accelerator Considerations The queries that qualify for routing to the accelerator are not stored in the Dynamic Statement Cache Every prepare is a full prepare Not a concern because of the relative cost of prepare vs. query execution IBM DB2 Analytics Accelerator Studio monitoring capabilities compensate for the lack of statement-level execution statistics provided for the cached statements 29 Queries that do not qualify for routing to the accelerator are stored in the Dynamic Statement Cache There is no practically measurable overhead for short prepares, i.e. the queries that have already been stored in the cache The cache is searched prior to the extensive checking whether the query qualifies for routing to the accelerator There are two cases when the cached entries need to be explicitly invalidated in order to give the optimizer chance to consider the accelerator DSN_PROFILE_ATRIBUTES table is updated to set new values for the accelerator relevant heuristics parameters (SMALLTABLE_THRESHOLD, CHECK_RESULTSET, RESULTSET_THRESHOLD) A new table has been defined, loaded and enabled for acceleration In both cases, the most efficient way to invalidate the relevant cached entries is to run RUNSTATS REPORT NO UPDATE NONE for the corresponding tablespaces

30 IBM DB2 Analytics Accelerator Considerations There are only few cases where the cost of short prepares is slightly higher than without IDAA Table not enabled (but defined or loaded) Table does not reside in the same accelerator as the rest of the tables referenced by the query A column has been added to the DB2 table after it has been defined and loaded to IDAA For each of these you can have simple, self-explanatory tuning actions The full prepares that are somewhat more expensive, but only if there is at least one IDAA started and the special register CURRENT ACCELERATION is set to ENABLE or ENABLE with FAILBACK Assuming that your system is connected to a started IDAA, make sure to set the special register to NONE (which is the default) if: There are no queries that should be considered for acceleration There are lots of full prepares for queries that do not qualify for acceleration. In this case set the special register explicitly to ENABLE or ENABLE with FAILBACK for the queries you want to accelerate and set it back to NONE for other queries. 30

31 Agenda Monitoring Systems tuning Applications tuning Parameter markers considerations Reoptimization options 31

32 Writing Cache Friendly Applications Use dynamic SQL statements SELECT, UPDATE, INSERT, DELETE local and distributed Understand statements matching criteria Statements must be identical character-for-character including imbedded blanks as of DB2 10 the trailing blanks are removed from the matching criteria SELECT list considerations Prior to DB2 10 caching was of limited value unless using parameter markers Major enhancement in DB2 10 with CONCENTRATE STATEMENTS option Authorization IDs must be identical Selected bind options such as ISOLATION and CURRENTDATA must be identical Selected special registers such as CURRENT DEGREE must be identical If using local caching do not explicitly re-prepare statements after commits Still provide for possible sqlcode -514 or -518 No caching for REOPT(ALWAYS) 32

33 Concentrating Cached Statements in DB Use of literals typically results in dynamic statements cache inefficiency A short (cost effective) prepare is possible only if the new statement matches a cached statement character-for-character New copies of statements that could have shared already cached statement 'thrash' dynamic statements cache Usage of literals cannot be always avoided, e.g. for some CLI applications, Ruby on Rails, PHP DB2 10 introduces option to reuse a cached, previously prepared statement irrespective of literal values CONCENTRATE STATEMENTS WITH LITERALS New option for ATTRIBUTES on PREPARE New JCC driver's datasource/connection property enableliteralreplacement='yes' New keyword LITERALREPLACEMENT in the ODBC initialization file CONCENTRATE STATEMENTS OFF (default) causes pre-v10 behaviour Before a prepared statement is cached each literal is replaced by a single & Additionally, DB2 removes the trailing blacks that follow the statement & s are shown instead of literals in instrumentation (e.g. IFCID 317) Subsequent prepares of the same statement with different literals can result in short prepares The exact match has a precedence over matching with & The literals must be reusable in the prepare context Mixture of parameter markers? and literals results in the pre-v10 behaviour Monitoring support in DSN_STATEMENT_CACHE_TABLE (column LITERAL_REPL) and IFCID 316: values R, D or

34 All-Columns INSERT, UPDATE, MERGE in DB2 10 Dynamic statements cache efficiency is reduced by using different subsets of columns in otherwise identical INSERT, UPDATE and MERGE statements Prior to V10 the applications had to prepare separate statements for each combination of columns to be inserted, updated or merged typical case for data entry/update applications The reason is a lack of mechanism to indicate that no value is provided for the target column DB2 10 introduces new extended indicator variables The extended indicator variable is activated via: PREPARE attributes WITH / WITHOUT EXTENDED INDICATORS BIND parameter EXTENDEDINDICATOR = YES / NO A value of -5 means that target column is to be set to its default value A value of -7 means that target column is to be treated as if it had not been specified Example: prior to V10 stmt1 = 'UPDATE T1 SET C1=?' PREPARE S1 FROM stmt1 stmt2 = 'UPDATE T1 SET C2=?' PREPARE S2 FROM stmt2 EXECUTE S1 USING :inputvar1 EXECUTE S2 USING :inputvar2 in V10 stmt = 'UPDATE T1 SET C1=?, C2=?' PREPARE S1 ATTRIBUTES WITH EXTENDED INDICATORS FROM stmt IND1 = -7 IND2 = -7 EXECUTE S1 USING :inputvar1, :IND2 EXECUTE S1 USING :IND1, :inputvar2 34

35 Parameter marker Optimizer Challanges When parameter markers are used for dynamic SQL, the DB2 Optimizer cannot take advantage of columns values distribution. A simple example is: PREPARE... SELECT... FROM T WHERE C1 =? For a low card(c1) this most often results in tablespace scan which is very bad if the cursor is opened with a non-existing value of C1. The same negative effect exist whenever there is a skew in column values distribution. REOPT(ALWAYS) is often too strong medicine with significant downsides in performance, concurrency and monitoring. 35

36 REOPT (ONCE) Bind option REOPT(ONCE) results in following: Delaying optimization until the first execute At that time the parameter marker values are known DB2 optimizer can use the values and take full advantage of their frequency distribution Fixing the access plan into the statements cache Consequently take full advantage of caching Statement-level hints (given via Access Path Repository) allow different REOPT settings for different statements within the same package In effect only for dynamic SQL and if global caching is activated Use the feature if the first set of values is more representative than the application agnostic set of default values which must be assumed by DB2 otherwise 36 Traditional EXPLAIN is not suitable See the Monitoring section in this presentation

37 REOPT (AUTO) REOPT(AUTO) addresses REOPT(ONCE) exposure which occurs when: The first set of parameter marker values is not representative regarding DB2 optimization Bind option REOPT(AUTO) instructs DB2 to automatically determine if a new access path is needed to further optimize performance. In effect only for dynamic SQL and if global caching is activated Use the feature if the parameter marker values vary across statement executions so much that occasional reprepare is needed, but still REOPT(ALWAYS) would be an overkill. Traditional EXPLAIN is not suitable See the Monitoring section in this presentation DSN_STATEMENT_CACHE_TABLE includes two new columns to support REOPT(AUTO): BIND_RO_TYPE The current specification of REOPT for the statement: N REOPT(NONE) 1 REOPT(ONCE) A REOPT(AUTO) 0 The current plan is deemed optimal and there is no need for REOPT(AUTO) BIND_RA_TOT Total number of REBINDs executed due to REOPT(AUTO) 37

38 References DB2 for z/os Product Documentation DB2 10 for z/os: Managing Performance, SC DB2 9 for z/os: Performance Monitoring and Tuning Guide, SC DB2 for z/os and OS/390 : Squeezing the Most Out of Dynamic SQL - Redbook SG DB2 for z/os: Considerations on Small and Large Packages - Redpaper REDP-4424 Dynamic Statements Cache: Getting the Most Out of It by Namik Hrle - IDUG Solutions Journal Volume 8 Number 2 Memory Management for Dynamic SQL by Thomas Baumann - IDUG NA

39 Namik Hrle IBM Title: Efficient Monitoring & Tuning of Dynamic SQL Please fill out your session evaluation before leaving!

Collecting Cached SQL Data and Its Related Analytics. Gerald Hodge HLS Technologies, Inc.

Collecting Cached SQL Data and Its Related Analytics. Gerald Hodge HLS Technologies, Inc. Collecting Cached SQL Data and Its Related Analytics Gerald Hodge HLS Technologies, Inc. Agenda Quick Review of SQL Prepare CACHEDYN=YES and KEEPDYNAMIC=YES CACHEDYN=YES and KEEPDYNAMIC=YES with COMMIT

More information

Enhanced Monitoring Support in DB2 10 for z/os

Enhanced Monitoring Support in DB2 10 for z/os DB2 for z/os Version 10 Enhanced Monitoring Support in DB2 10 for z/os Baltimore/Washington DB2 Users Group December 8, 2010 Mark Rader IBM Advanced Technical Skills Disclaimer Copyright IBM Corporation

More information

Dynamic SQL Re-Examined

Dynamic SQL Re-Examined Dynamic SQL Re-Examined William Favero Senior Certified IT Specialist DB2 for z/os Software Sales Specialist IBM Sales and Distribution West Region, Americas Page 1 of 33 Disclaimer The information contained

More information

Workload Insights Without a Trace - Introducing DB2 z/os SQL tracking SOFTWARE ENGINEERING GMBH and SEGUS Inc. 1

Workload Insights Without a Trace - Introducing DB2 z/os SQL tracking SOFTWARE ENGINEERING GMBH and SEGUS Inc. 1 Workload Insights Without a Trace - Introducing DB2 z/os SQL tracking 2011 SOFTWARE ENGINEERING GMBH and SEGUS Inc. 1 Agenda What s new in DB2 10 What s of interest for geeks in DB2 10 What s of interest

More information

Can I control a dynamic world? - Dynamic SQL Management for DB2 z/os

Can I control a dynamic world? - Dynamic SQL Management for DB2 z/os Can I control a dynamic world? - Dynamic SQL Management for DB2 z/os Ulf Heinrich SEGUS Inc Session Code: Y02 TBD Platform: DB2 z/os Agenda Dynamic SQL basics: What is the difference to static SQL? How

More information

What s new in DB2 9 for z/os for Applications

What s new in DB2 9 for z/os for Applications What s new in DB2 9 for z/os for Applications Patrick Bossman bossman@us.ibm.com Senior software engineer IBM Silicon Valley Lab 9/8/2009 Disclaimer Copyright IBM Corporation [current year]. All rights

More information

DB2 10 for z/os Optimization and Query Performance Improvements

DB2 10 for z/os Optimization and Query Performance Improvements DB2 10 for z/os Optimization and Query Performance Improvements James Guo DB2 for z/os Performance IBM Silicon Valley Lab August 11, 2011 6 PM 7 PM Session Number 9524 Disclaimer Copyright IBM Corporation

More information

An A-Z of System Performance for DB2 for z/os

An A-Z of System Performance for DB2 for z/os Phil Grainger, Lead Product Manager BMC Software March, 2016 An A-Z of System Performance for DB2 for z/os The Challenge Simplistically, DB2 will be doing one (and only one) of the following at any one

More information

Enhanced Monitoring Support in DB2 10 for z/os

Enhanced Monitoring Support in DB2 10 for z/os Enhanced Monitoring Support in DB2 10 for z/os March 8, 2012 Mark Rader, IBM mrader@us.ibm.com Agenda Click to edit Master title style 2 Enhancements for problem determination and performance monitoring

More information

The Present and Future of Large Memory in DB2. Jay Yothers DB2 for z/os Development, IBM

The Present and Future of Large Memory in DB2. Jay Yothers DB2 for z/os Development, IBM The Present and Future of Large Memory in DB2 Jay Yothers DB2 for z/os Development, IBM Moore s Law and Mainframe Evolution The observation made in 1965 by Gordon Moore, that density of transistors on

More information

DB2 Performance A Primer. Bill Arledge Principal Consultant CA Technologies Sept 14 th, 2011

DB2 Performance A Primer. Bill Arledge Principal Consultant CA Technologies Sept 14 th, 2011 DB2 Performance A Primer Bill Arledge Principal Consultant CA Technologies Sept 14 th, 2011 Agenda Performance Defined DB2 Instrumentation Sources of performance metrics DB2 Performance Disciplines System

More information

DB2 and Memory Exploitation. Fabio Massimo Ottaviani - EPV Technologies. It s important to be aware that DB2 memory exploitation can provide:

DB2 and Memory Exploitation. Fabio Massimo Ottaviani - EPV Technologies. It s important to be aware that DB2 memory exploitation can provide: White Paper DB2 and Memory Exploitation Fabio Massimo Ottaviani - EPV Technologies 1 Introduction For many years, z/os and DB2 system programmers have been fighting for memory: the former to defend the

More information

Stabilizing dynamic SQL (and static enhancements too)

Stabilizing dynamic SQL (and static enhancements too) Stabilizing dynamic SQL (and static enhancements too) Patrick Bossman Email: bossman@us.ibm.com Linkedin: www.linkedin.com/in/bossman/ YouTube Channel: DB2z DevOps Agenda Overview and Problem statement

More information

[Slide 2: disclaimer]

[Slide 2: disclaimer] Slide 1: Hello this is John Campbell from DB2 development, and welcome to this next lecture in this series related to DB2 for z/os best practices. The subject of today's web lecture is about the EDM pool

More information

V9 Migration KBC. Ronny Vandegehuchte

V9 Migration KBC. Ronny Vandegehuchte V9 Migration Experiences @ KBC Ronny Vandegehuchte KBC Configuration 50 subsystems (15 in production) Datasharing (3 way) 24X7 sandbox, development, acceptance, production Timings Environment DB2 V9 CM

More information

Monitoring SQL Performance Using the DB2 Statement Cache

Monitoring SQL Performance Using the DB2 Statement Cache Session: G01 Monitoring SQL Performance Using the DB2 Statement Cache Mike Perry BMC Software Oct 13, 2008 11:15 a.m. 12:15 p.m. Platform: DB2 for z/os This session discusses a low cost method of detecting

More information

How to Setup Application Server to Access DB2 z/os with High Availability

How to Setup Application Server to Access DB2 z/os with High Availability How to Setup Application Server to Access DB2 z/os with High Availability Maryela Weihrauch DE, IBM Silicon Valley Lab Aug 13 th, 2008 11:00 am #1330 Important Disclaimer THE INFORMATION CONTAINED IN THIS

More information

DB2 9 for z/os Hints and Tips for Database Administrators

DB2 9 for z/os Hints and Tips for Database Administrators DB2 9 for z/os Hints and Tips for Database Administrators par Namik Hrle IBM Réunion du Guide DB2 pour z/os France Vendredi 27 novembre 2009 Tour Euro Plaza, Paris-La Défense Disclaimer Copyright IBM Corporation

More information

The Present and Future of Large Memory in DB2

The Present and Future of Large Memory in DB2 The Present and Future of Large Memory in DB2 John B. Tobler Senior Technical Staff Member DB2 for z/os, IBM Michael Schultz Advisory Software Engineer DB2 for z/os, IBM Monday August 12, 2013 3:00PM -

More information

What Developers must know about DB2 for z/os indexes

What Developers must know about DB2 for z/os indexes CRISTIAN MOLARO CRISTIAN@MOLARO.BE What Developers must know about DB2 for z/os indexes Mardi 22 novembre 2016 Tour Europlaza, Paris-La Défense What Developers must know about DB2 for z/os indexes Introduction

More information

Reducing MIPS Using InfoSphere Optim Query Workload Tuner TDZ-2755A. Lloyd Matthews, U.S. Senate

Reducing MIPS Using InfoSphere Optim Query Workload Tuner TDZ-2755A. Lloyd Matthews, U.S. Senate Reducing MIPS Using InfoSphere Optim Query Workload Tuner TDZ-2755A Lloyd Matthews, U.S. Senate 0 Disclaimer Copyright IBM Corporation 2010. All rights reserved. U.S. Government Users Restricted Rights

More information

Monitoring SQL Performance Using the DB2 Statement Cache

Monitoring SQL Performance Using the DB2 Statement Cache Session: I02 Monitoring SQL Performance Using the DB2 Statement Cache Mike Perry BMC Software May 19, 2008 11:00 a.m. 12:00 p.m. Platform: DB2 for z/os This session discusses a low cost method of detecting

More information

Do these DB2 10 for z/os Optimizer Enhancments apply to me?

Do these DB2 10 for z/os Optimizer Enhancments apply to me? Do these DB2 10 for z/os Optimizer Enhancments apply to me? Andrei Lurie IBM Silicon Valley Lab February 4, 2013 Session Number 12739 Agenda Introduction IN-list and complex ORs Predicate simplification

More information

DB2 10 for z/os High Availability Updates for Distributed Access

DB2 10 for z/os High Availability Updates for Distributed Access DB2 10 for z/os High Availability Updates for Distributed Access Shivram Ganduri IBM, Senior Software Engineer August 12, 2011 Session Number : 9838 Disclaimer Copyright IBM Corporation [current year].

More information

Vendor: IBM. Exam Code: Exam Name: IBM Certified Database Administrator - DB2 10 for z/os. Version: Demo

Vendor: IBM. Exam Code: Exam Name: IBM Certified Database Administrator - DB2 10 for z/os. Version: Demo Vendor: IBM Exam Code: 000-612 Exam Name: IBM Certified Database Administrator - DB2 10 for z/os Version: Demo QUESTION NO: 1 Workload Manager (WLM) manages how many concurrent stored procedures can run

More information

DB2 for z/os Backup and Recovery Update - V9 and V10

DB2 for z/os Backup and Recovery Update - V9 and V10 DB2 for z/os Backup and Recovery Update - V9 and V10 James Teng, Ph.D. Distinguished Engineer IBM Silicon Valley Laboratory August 9, 2011 October 25 29, 2009 Mandalay Bay Las Vegas, Nevada Disclaimer

More information

Empowering DBA's with IBM Data Studio. Deb Jenson, Data Studio Product Manager,

Empowering DBA's with IBM Data Studio. Deb Jenson, Data Studio Product Manager, Empowering DBA's with IBM Data Studio Deb Jenson, Data Studio Product Manager, dejenson@us.ibm.com Disclaimer Copyright IBM Corporation [current year]. All rights reserved. U.S. Government Users Restricted

More information

DB2 10 Capturing Tuning and Trending for SQL Workloads - a resource and cost saving approach

DB2 10 Capturing Tuning and Trending for SQL Workloads - a resource and cost saving approach DB2 10 Capturing Tuning and Trending for SQL Workloads - a resource and cost saving approach Roy Boxwell SOFTWARE ENGINEERING GmbH Session Code: V05 15.10.2013, 11:30 12:30 Platform: DB2 z/os 2 Agenda

More information

Scalable Analytics: IBM System z Approach

Scalable Analytics: IBM System z Approach Namik Hrle IBM Distinguished Engineer hrle@de.ibm.com Scalable Analytics: IBM System z Approach Symposium on Scalable Analytics - Industry meets Academia FGDB 2012 FG Datenbanksysteme der Gesellschaft

More information

Optimizing Data Transformation with Db2 for z/os and Db2 Analytics Accelerator

Optimizing Data Transformation with Db2 for z/os and Db2 Analytics Accelerator Optimizing Data Transformation with Db2 for z/os and Db2 Analytics Accelerator Maryela Weihrauch, IBM Distinguished Engineer, WW Analytics on System z March, 2017 Please note IBM s statements regarding

More information

DB2 11 for z/os Application Compatibility What you Need to Know

DB2 11 for z/os Application Compatibility What you Need to Know DB2 11 for z/os Application Compatibility What you Need to Know Christopher J. Crone IBM Platform: DB2 for z/os Disclaimer 1 Information regarding potential future products is intended to outline our general

More information

Stored Procedure Monitoring and Analysis

Stored Procedure Monitoring and Analysis Stored Procedure Monitoring and Analysis Paul Bartak, IBM DB2 Advisor Agenda What are stored procedures? Benefits of stored procedures Stored procedure analysis Issues and solutions Monitoring stored procedures

More information

Memory for MIPS: Leveraging Big Memory on System z to Enhance DB2 CPU Efficiency

Memory for MIPS: Leveraging Big Memory on System z to Enhance DB2 CPU Efficiency Robert Catterall, IBM rfcatter@us.ibm.com Memory for MIPS: Leveraging Big Memory on System z to Enhance DB2 CPU Efficiency Midwest DB2 Users Group December 5, 2013 Information Management Agenda The current

More information

Control your own destiny with Optimization Hints

Control your own destiny with Optimization Hints Control your own destiny with Optimization Hints Patrick Bossman IBM Silicon Valley Lab December 13, 2006 Columbia, MD 1 Agenda Overview Reasons for using Environment setup Preparation Sample cases Verifying

More information

Optimizing Insert Performance - Part 1

Optimizing Insert Performance - Part 1 Optimizing Insert Performance - Part 1 John Campbell Distinguished Engineer DB2 for z/os development CAMPBELJ@uk.ibm.com 2 Disclaimer/Trademarks The information contained in this document has not been

More information

DB2 for z/os: Programmer Essentials for Designing, Building and Tuning

DB2 for z/os: Programmer Essentials for Designing, Building and Tuning Brett Elam bjelam@us.ibm.com - DB2 for z/os: Programmer Essentials for Designing, Building and Tuning April 4, 2013 DB2 for z/os: Programmer Essentials for Designing, Building and Tuning Information Management

More information

DB2 10 Capturing Tuning and Trending for SQL Workloads - a resource and cost saving approach. Roy Boxwell SOFTWARE ENGINEERING GmbH

DB2 10 Capturing Tuning and Trending for SQL Workloads - a resource and cost saving approach. Roy Boxwell SOFTWARE ENGINEERING GmbH 1 DB2 10 Capturing Tuning and Trending for SQL Workloads - a resource and cost saving approach Roy Boxwell SOFTWARE ENGINEERING GmbH 3 Agenda 1. DB2 10 technology used by SQL WorkloadExpert (WLX) 2. The

More information

Session: E01 E02 What Every DBA Should Know About Dynamic SQL

Session: E01 E02 What Every DBA Should Know About Dynamic SQL Session: E01 E02 What Every DBA Should Know About Dynamic SQL Suresh Sane DST Systems, Inc. Mon, Oct 2, 2006 11:15 am -12:15 pm Mon, Oct 2, 2006 1:30 pm 2:30 pm Platform: z/os A DBA depressed with Dynamic

More information

Click to edit the title text format

Click to edit the title text format Click to edit the title text format DB2 10 for z/os Performance Preview John Second B. Tobler Outline Level IBM Software Third Outline Engineer Level Session Code: A13 Wednesday November Eighth 10, Outline

More information

Pass IBM C Exam

Pass IBM C Exam Pass IBM C2090-612 Exam Number: C2090-612 Passing Score: 800 Time Limit: 120 min File Version: 37.4 http://www.gratisexam.com/ Exam Code: C2090-612 Exam Name: DB2 10 DBA for z/os Certkey QUESTION 1 Workload

More information

Db2 Analytics Accelerator V5.1 What s new in PTF 5

Db2 Analytics Accelerator V5.1 What s new in PTF 5 Ute Baumbach, Christopher Watson IBM Boeblingen Laboratory Db2 Analytics Accelerator V5.1 What s new in PTF 5 Legal Disclaimer IBM Corporation 2017. All Rights Reserved. The information contained in this

More information

TMON for DB2 Release Notes Version 1.5

TMON for DB2 Release Notes Version 1.5 TMON for DB2 Release Notes Version 1.5 TMON for DB2 Release Notes Version 1.5 Copyright Notice Copyright IBM Corporation 2001 All rights reserved. May only be used pursuant to a Tivoli Systems Software

More information

Expert Stored Procedure Monitoring, Analysis and Tuning on System z

Expert Stored Procedure Monitoring, Analysis and Tuning on System z Expert Stored Procedure Monitoring, Analysis and Tuning on System z Steve Fafard, Product Manager, IBM OMEGAMON XE for DB2 Performance Expert on z/os August 16, 2013 13824 Agenda What are stored procedures?

More information

DB2 10 for z/os Technical Overview

DB2 10 for z/os Technical Overview DB2 10 for z/os Technical Overview John Campbell Distinguished Engineer DB2 for z/os Development IBM Silicon Valley Lab Email: CampbelJ@uk.ibm.com 2010 IBM Corporation DB2 10 for z/os IBM Software Group

More information

Building and Managing Efficient data access to DB2. Vijay Bommireddipalli, Solutions Architect, Optim

Building and Managing Efficient data access to DB2. Vijay Bommireddipalli, Solutions Architect, Optim Building and Managing Efficient data access to DB2 Vijay Bommireddipalli, vijayrb@us.ibm.com Solutions Architect, Optim September 16, 2010 Information Management Disclaimer THE INFORMATION CONTAINED IN

More information

Db2 System Profile Monitoring

Db2 System Profile Monitoring Db2 System Profile Monitoring Denis Tronin CA Technologies Denis.Tronin@ca.com Réunion du Guide Db2 pour z/os France Mardi 10 Octobre 2017 CA Tour Opus, Paris-La Défense Abstract Db2 System Profile monitoring

More information

DB2 12 for z/os: Technical Overview and Highlights

DB2 12 for z/os: Technical Overview and Highlights DB2 12 for z/os: Technical Overview and Highlights by John Campbell and Gareth Jones Introduction Cloud, Analytics, and Mobile are changing the landscape for enterprise customers. These technology trends

More information

Best practices. IBMr. How to use OMEGAMON XE for DB2 Performance Expert on z/os to identify DB2 deadlock and timeout. IBM DB2 Tools for z/os

Best practices. IBMr. How to use OMEGAMON XE for DB2 Performance Expert on z/os to identify DB2 deadlock and timeout. IBM DB2 Tools for z/os IBMr IBM DB2 Tools for z/os Best practices How to use OMEGAMON XE for DB2 Performance Expert on z/os to identify DB2 deadlock and timeout Hong Zhou Advisory Software Engineer zhouh@us.ibm.com Issued: December,

More information

IFCID Instrumentation Accounting Data This topic shows detailed information about Record Trace - IFCID Instrumentation Accounting Data.

IFCID Instrumentation Accounting Data This topic shows detailed information about Record Trace - IFCID Instrumentation Accounting Data. This topic shows detailed information about Record Trace - IFCID 003 - Instrumentation Accounting Data. Note: IFCID 003 and IFCID 147 have the same layout. IFCID 003 - Instrumentation Accounting Data Record

More information

Key Metrics for DB2 for z/os Subsystem and Application Performance Monitoring (Part 1)

Key Metrics for DB2 for z/os Subsystem and Application Performance Monitoring (Part 1) Key Metrics for DB2 for z/os Subsystem and Application Performance Monitoring (Part 1) Robert Catterall IBM March 12, 2014 Session 14610 Insert Custom Session QR if Desired. The genesis of this presentation

More information

IDAA v4.1 PTF 5 - Update The Fillmore Group June 2015 A Premier IBM Business Partner

IDAA v4.1 PTF 5 - Update The Fillmore Group June 2015 A Premier IBM Business Partner IDAA v4.1 PTF 5 - Update The Fillmore Group June 2015 A Premier IBM Business Partner History The Fillmore Group, Inc. Founded in the US in Maryland, 1987 IBM Business Partner since 1989 Delivering IBM

More information

Innovate 2013 Automated Mobile Testing

Innovate 2013 Automated Mobile Testing Innovate 2013 Automated Mobile Testing Marc van Lint IBM Netherlands 2013 IBM Corporation Please note the following IBM s statements regarding its plans, directions, and intent are subject to change or

More information

IBM DB2 Query Patroller. Administration Guide. Version 7 SC

IBM DB2 Query Patroller. Administration Guide. Version 7 SC IBM DB2 Query Patroller Administration Guide Version 7 SC09-2958-00 IBM DB2 Query Patroller Administration Guide Version 7 SC09-2958-00 Before using this information and the product it supports, be sure

More information

DB2 Stored Procedures Monitoring, Analysis, and Tuning on System z

DB2 Stored Procedures Monitoring, Analysis, and Tuning on System z DB2 Stored Procedures Monitoring, Analysis, and Tuning on System z Charles Lewis, DB2 Advisor IBM System z Software Technical Professional September 11, 2013 Agenda What are stored procedures? Benefits

More information

Best Practices. Deploying Optim Performance Manager in large scale environments. IBM Optim Performance Manager Extended Edition V4.1.0.

Best Practices. Deploying Optim Performance Manager in large scale environments. IBM Optim Performance Manager Extended Edition V4.1.0. IBM Optim Performance Manager Extended Edition V4.1.0.1 Best Practices Deploying Optim Performance Manager in large scale environments Ute Baumbach (bmb@de.ibm.com) Optim Performance Manager Development

More information

DB2 S-TAP, IMS S-TAP, VSAM S-TAP

DB2 S-TAP, IMS S-TAP, VSAM S-TAP IBM InfoSphere Guardium Version 8.2 IBM InfoSphere Guardium 8.2 offers the most complete database protection solution for reducing risk, simplifying compliance and lowering audit cost. Version 8.2 contains

More information

DB2 for z/os Optimizer: What have you done for me lately?

DB2 for z/os Optimizer: What have you done for me lately? Session: A08 DB2 for z/os Optimizer: What have you done for me lately? Terry Purcell IBM Silicon Valley Lab 14 th October 2008 16:45 17:45 Platform: DB2 for z/os You can always read about the features/enhancements

More information

TPF Debugger / Toolkit update PUT 12 contributions!

TPF Debugger / Toolkit update PUT 12 contributions! TPF Debugger / Toolkit update PUT 12 contributions! Matt Gritter TPF Toolkit Technical Lead! IBM z/tpf April 12, 2016! Copyright IBM Corporation 2016. U.S. Government Users Restricted Rights - Use, duplication

More information

DB2 10: For Developers Only

DB2 10: For Developers Only DB2 10: For Developers Only for z/os Sponsored by: align http://www.softbase.com 2011 Mullins Consulting, Inc. Craig S. Mullins Mullins Consulting, Inc. http://www.craigsmullins.com Author This presentation

More information

CA Unified Infrastructure Management Snap

CA Unified Infrastructure Management Snap CA Unified Infrastructure Management Snap Configuration Guide for DB2 Database Monitoring db2 v4.0 series Copyright Notice This online help system (the "System") is for your informational purposes only

More information

IBM Infrastructure Suite for z/vm and Linux: Introduction IBM Tivoli OMEGAMON XE on z/vm and Linux

IBM Infrastructure Suite for z/vm and Linux: Introduction IBM Tivoli OMEGAMON XE on z/vm and Linux IBM Infrastructure Suite for z/vm and Linux: Introduction IBM Tivoli OMEGAMON XE on z/vm and Linux August/September 2015 Please Note IBM s statements regarding its plans, directions, and intent are subject

More information

Understanding Distributed Processing Inside DB2 for z/os. DB2 GSE Belux March2014 Paul Oostvogels BMC Software

Understanding Distributed Processing Inside DB2 for z/os. DB2 GSE Belux March2014 Paul Oostvogels BMC Software Understanding Distributed Processing Inside DB2 for z/os DB2 GSE Belux March2014 Paul Oostvogels BMC Software AGENDA Terminology clearing up the confusion Distributed threads What can I see? DDF and DB2

More information

PBR RPN & Other Availability Improvements in Db2 12

PBR RPN & Other Availability Improvements in Db2 12 PBR RPN & Other Availability Improvements in Db2 12 Haakon Roberts IBM Session code: A11 07.11.2018 11:00-12:00 Platform: Db2 for z/os 1 Disclaimer IBM s statements regarding its plans, directions, and

More information

IBM Optim Performance Manager Extended Edition What s New. Ute Baumbach September 6, IBM Corporation

IBM Optim Performance Manager Extended Edition What s New. Ute Baumbach September 6, IBM Corporation IBM Optim Performance Manager Extended Edition 4.1.1 What s New Ute Baumbach (bmb@de.ibm.com) September 6, 2011 What s New in 4.1.1 Enhancements Summary September 6, 2011 Optim Performance Manager 4.1.1

More information

DDF Connectivity. John Campbell Distinguished Engineer DB2 for z/os Development IBM Corporation

DDF Connectivity. John Campbell Distinguished Engineer DB2 for z/os Development IBM Corporation DDF Connectivity John Campbell Distinguished Engineer DB2 for z/os Development CAMPBELJ@uk.ibm.com Disclaimer/Trademarks THE INFORMATION CONTAINED IN THIS DOCUMENT HAS NOT BEEN SUBMITTED TO ANY FORMAL

More information

DB2 12 for z Optimizer

DB2 12 for z Optimizer Front cover DB2 12 for z Optimizer Terry Purcell Redpaper Introduction There has been a considerable focus on performance improvements as one of the main themes in recent IBM DB2 releases, and DB2 12

More information

DB2 11 for z/os Application Functionality (Check out these New Features) Randy Ebersole IBM

DB2 11 for z/os Application Functionality (Check out these New Features) Randy Ebersole IBM DB2 11 for z/os Application Functionality (Check out these New Features) Randy Ebersole IBM ebersole@us.ibm.com Please note IBM s statements regarding its plans, directions, and intent are subject to change

More information

IBM Tivoli Monitoring for Databases. Release Notes. Version SC

IBM Tivoli Monitoring for Databases. Release Notes. Version SC IBM Tivoli Monitoring for Databases Release Notes Version 5.1.1 SC23-4851-00 IBM Tivoli Monitoring for Databases Release Notes Version 5.1.1 SC23-4851-00 Note Before using this information and the product

More information

How to Modernize the IMS Queries Landscape with IDAA

How to Modernize the IMS Queries Landscape with IDAA How to Modernize the IMS Queries Landscape with IDAA Session C12 Deepak Kohli IBM Senior Software Engineer deepakk@us.ibm.com * IMS Technical Symposium Acknowledgements and Disclaimers Availability. References

More information

IBM i 7.3 Features for SAP clients A sortiment of enhancements

IBM i 7.3 Features for SAP clients A sortiment of enhancements IBM i 7.3 Features for SAP clients A sortiment of enhancements Scott Forstie DB2 for i Business Architect Eric Kass SAP on IBM i Database Driver and Kernel Engineer Agenda Independent ASP Vary on improvements

More information

InfoSphere Guardium 9.1 TechTalk Reporting 101

InfoSphere Guardium 9.1 TechTalk Reporting 101 InfoSphere Guardium 9.1 TechTalk Reporting 101 Click to add text Dario Kramer, Senior System Architect dariokramer@us.ibm.com 2013 IBM Corporation Acknowledgements and Disclaimers Availability. References

More information

IMS V13 Overview. Deepak Kohli IMS Product Management

IMS V13 Overview. Deepak Kohli IMS Product Management IMS V13 Overview Deepak Kohli IMS Product Management deepakk@us.ibm.com 1 Announcements IMS 13 QPP announce date: October 3, 2012 IMS 13 QPP start date: December 14, 2012 IMS 13, IMS 13 DB VUE & IMS Enterprise

More information

Memory Management for Dynamic SQL

Memory Management for Dynamic SQL Memory Management for Dynamic SQL Thomas Baumann, La Mobilière (Suisse) thomas.baumann@mobi.ch Réunion du Guide DB2A Jeudi 3 avril 2008 Infotel, Bagnolet (93) France Dynamic queries use many memory resources

More information

Innovations in Network Management with NetView for z/os

Innovations in Network Management with NetView for z/os Innovations in Network Management with NetView for z/os Larry Green IBM greenl@us.ibm.com Twitter: @lgreenibm Insert Custom Session QR if Desired. Thursday, August 7, 2014 Session 16083 Abstract NetView

More information

Continuous Availability with the IBM DB2 purescale Feature IBM Redbooks Solution Guide

Continuous Availability with the IBM DB2 purescale Feature IBM Redbooks Solution Guide Continuous Availability with the IBM DB2 purescale Feature IBM Redbooks Solution Guide Designed for organizations that run online transaction processing (OLTP) applications, the IBM DB2 purescale Feature

More information

IBM i Version 7.3. Database Administration IBM

IBM i Version 7.3. Database Administration IBM IBM i Version 7.3 Database Administration IBM IBM i Version 7.3 Database Administration IBM Note Before using this information and the product it supports, read the information in Notices on page 45.

More information

IBM Application Performance Analyzer for z/os Version IBM Corporation

IBM Application Performance Analyzer for z/os Version IBM Corporation IBM Application Performance Analyzer for z/os Version 11 IBM Application Performance Analyzer for z/os Agenda Introduction to Application Performance Analyzer for z/os A tour of Application Performance

More information

Continuous Availability and Scalability with DB2 for z/os and WebSphere

Continuous Availability and Scalability with DB2 for z/os and WebSphere Continuous Availability and Scalability with DB2 for z/os and WebSphere Maryela Weihrauch Distinguished Engineer DB2 for z/os, IBM weihrau@in.ibm.com Pallavi Priyadarshini Architect JCC DB2 Connect, IBM

More information

Contents. Using. Dynamic SQL 44. Bag of Tricks 56. Complex SQL Guidelines 90. Working with Nulls 115. Aggregate Functions 135

Contents. Using. Dynamic SQL 44. Bag of Tricks 56. Complex SQL Guidelines 90. Working with Nulls 115. Aggregate Functions 135 Contents Preface xxiii Part I SQL Techniques, Tips, and Tricks 1 The Magic Words 3 An Overview of SQL 4 SQL Tools of the Trade 13 Static SQL 42 Dynamic SQL 44 SQL Performance Factors 45 2 Data Manipulation

More information

PBR RPN & Other Availability Enhancements In Db2 12 Dec IBM z Analytics

PBR RPN & Other Availability Enhancements In Db2 12 Dec IBM z Analytics PBR RPN & Other Availability Enhancements In Db2 12 Dec 2018 IBM z Analytics Disclaimer IBM s statements regarding its plans, directions, and intent are subject to change or withdrawal without notice at

More information

Hands-on Lab Session 9909 Introduction to Application Performance Management: Monitoring. Timothy Burris, Cloud Adoption & Technical Enablement

Hands-on Lab Session 9909 Introduction to Application Performance Management: Monitoring. Timothy Burris, Cloud Adoption & Technical Enablement Hands-on Lab Session 9909 Introduction to Application Performance Management: Monitoring Timothy Burris, Cloud Adoption & Technical Enablement Copyright IBM Corporation 2017 IBM, the IBM logo and ibm.com

More information

IBM Informix xC2 Enhancements IBM Corporation

IBM Informix xC2 Enhancements IBM Corporation IBM Informix 12.10.xC2 Enhancements 2013 IBM Corporation Acknowledgements and Disclaimers Availability. References in this presentation to IBM products, programs, or services do not imply that they will

More information

Gain insight into DB2 9 and DB2 10 for z/os performance updates and save costs

Gain insight into DB2 9 and DB2 10 for z/os performance updates and save costs BWDB2UG Gain insight into DB2 9 and DB2 10 for z/os performance updates and save costs John Iczkovits DB2 ATS iczkovit@us.ibm.com June 21, 2011 Disclaimer: Information regarding potential future products

More information

DB2 Performance Essentials

DB2 Performance Essentials DB2 Performance Essentials Philip K. Gunning Certified Advanced DB2 Expert Consultant, Lecturer, Author DISCLAIMER This material references numerous hardware and software products by their trade names.

More information

WebSphere/DB2 Connect: Dive into connection pools

WebSphere/DB2 Connect: Dive into connection pools H12 WebSphere/DB2 Connect: Dive into connection pools Jim Knisley Fifth Third Bank Thursday, May 11, 2006 08:30 a.m. 09:40 a.m. Platform: DB2 z/os and DB2 LUW 1 Session H12 WebSphere/DB2 Connect: Dive

More information

DB2 REST API and z/os Connect SQL/Stored Procedures Play a Role in Mobile and API Economics

DB2 REST API and z/os Connect SQL/Stored Procedures Play a Role in Mobile and API Economics DB2 REST API and z/os Connect SQL/Stored Procedures Play a Role in Mobile and API Economics Maryela Weihrauch IBM Distinguished Engineer z Systems Analytics WW Technical Sales and Client Champion Please

More information

Why did the DB2 for z/os optimizer choose that access path?

Why did the DB2 for z/os optimizer choose that access path? Why did the DB2 for z/os optimizer choose that access path? Terry Purcell IBM tpurcel@us.ibm.com Saghi Amirsoleymani IBM amirsole@us.ibm.com Session Code: A10 Thursday May 13 th, 9:45am 10:45am Platform:

More information

DB2 for z/os Utilities Update

DB2 for z/os Utilities Update Information Management for System z DB2 for z/os Utilities Update Haakon Roberts DE, DB2 for z/os & Tools Development haakon@us.ibm.com 1 Disclaimer Information regarding potential future products is intended

More information

IBM DB2 Analytics Accelerator

IBM DB2 Analytics Accelerator June, 2017 IBM DB2 Analytics Accelerator DB2 Analytics Accelerator for z/os on Cloud for z/os Update Peter Bendel IBM STSM Disclaimer IBM s statements regarding its plans, directions, and intent are subject

More information

DB2 UDB: App Programming - Advanced

DB2 UDB: App Programming - Advanced A Access Methods... 8:6 Access Path Selection... 8:6 Access Paths... 5:22 ACQUIRE(ALLOCATE) / RELEASE(DEALLOCATE)... 5:14 ACQUIRE(USE) / RELEASE(DEALLOCATE)... 5:14 Active Log... 9:3 Active Logs - Determining

More information

IBM Data Studio for Mainframe Developers. David Simpson, Senior Technical Advisor Themis, Inc.

IBM Data Studio for Mainframe Developers. David Simpson, Senior Technical Advisor Themis, Inc. IBM Data Studio for Mainframe Developers David Simpson, Senior Technical Advisor Themis, Inc. dsimpson@themisinc.com www.themisinc.com IBM Data Studio for Mainframe Developers Themis and Themis, Inc. are

More information

Using Hive for Data Warehousing

Using Hive for Data Warehousing An IBM Proof of Technology Using Hive for Data Warehousing Unit 5: Hive Storage Formats An IBM Proof of Technology Catalog Number Copyright IBM Corporation, 2015 US Government Users Restricted Rights -

More information

Lotus Technical Night School XPages and RDBMS

Lotus Technical Night School XPages and RDBMS Lotus Technical Night School XPages and RDBMS Note: Information regarding potential future products is intended to outline our general product direction and it should not be relied on in making a purchasing

More information

DB2 9 for z/os V9 migration status update

DB2 9 for z/os V9 migration status update IBM Software Group DB2 9 for z/os V9 migration status update July, 2008 Bart Steegmans DB2 for z/os L2 Performance Acknowledgement and Disclaimer i Measurement data included in this presentation are obtained

More information

DB2 for z/os: Data Sharing Update

DB2 for z/os: Data Sharing Update DB2 for z/os: Data Sharing Update Mark Rader IBM Corporation August 4, 2014 Session 15940 www.share.org Acknowledgements and Disclaimers Availability. References in this presentation to IBM products, programs,

More information

C Exam code: C Exam name: IBM DB2 11 DBA for z/os. Version 15.0

C Exam code: C Exam name: IBM DB2 11 DBA for z/os. Version 15.0 C2090-312 Number: C2090-312 Passing Score: 800 Time Limit: 120 min File Version: 15.0 http://www.gratisexam.com/ Exam code: C2090-312 Exam name: IBM DB2 11 DBA for z/os Version 15.0 C2090-312 QUESTION

More information

Performance Tuning Guide

Performance Tuning Guide IBM Security Identity Governance and Intelligence Version 5.2.1 Performance Tuning Guide Note: Before using this information and the product it supports, read the information in Notices. 1st Edition notice

More information

IT Best Practices Audit TCS offers a wide range of IT Best Practices Audit content covering 15 subjects and over 2200 topics, including:

IT Best Practices Audit TCS offers a wide range of IT Best Practices Audit content covering 15 subjects and over 2200 topics, including: IT Best Practices Audit TCS offers a wide range of IT Best Practices Audit content covering 15 subjects and over 2200 topics, including: 1. IT Cost Containment 84 topics 2. Cloud Computing Readiness 225

More information

DB2 for z/os in the Big Memory Era

DB2 for z/os in the Big Memory Era DB2 for z/os in the Big Memory Era Julian Stuhler Triton Consulting Session Code: IH 12.00, Wed 2 nd Nov 2016 Disclaimer Information regarding potential future products is intended to outline IBM s general

More information

Using Hive for Data Warehousing

Using Hive for Data Warehousing An IBM Proof of Technology Using Hive for Data Warehousing Unit 5: Hive Storage Formats An IBM Proof of Technology Catalog Number Copyright IBM Corporation, 2013 US Government Users Restricted Rights -

More information