slide 1 - parallels plesk control panel 8.6.0

58
IBM Software Group | DB2 Information Management Software IBM Software Group © 2002 IBM Corporation IBM Technical Exchange Colorado DB2 User group for z/OS Kevin Harrison Certified IT Architect IBM Data Management Software-West Region Technical Support DB2 for z/OS [email protected]

Upload: webhostingguy

Post on 17-Jun-2015

4.130 views

Category:

Documents


2 download

TRANSCRIPT

Page 1: Slide 1 - Parallels Plesk Control Panel 8.6.0

IBM Software Group | DB2 Information Management Software

IBM Software Group

copy 2002 IBM Corporation

IBM Technical Exchange

Colorado DB2 User group for zOS

Kevin HarrisonCertified IT Architect IBM Data Management Software-West Region Technical Support DB2 for zOS kharrisonusibmcom

IBM Software Group | DB2 Information Management Software

SOA Reference Architecture

Ap

ps

amp

Info

Ass

ets

Business Innovation amp Optimization Services

De

ve

lop

me

nt

Se

rvic

es

Interaction Services Process Services Information Services

Partner Services Business App Services Access Services

Integrated environment

for design and creation of solution

assets

Manage and secure services

applications amp

resources

Facilitates better decision-making with real-time business information

Enables collaboration between people

processes amp information

Orchestrate and automate business

processes

Manages diverse data and content in a

unified manner

Connect with trading partners

Build on a robust scaleable and secure services

environment

Facilitates interactions with existing

information and application assets

ESBFacilitates communication between services

IT S

erv

ice

Ma

na

ge

me

nt

Infrastructure Services

Optimizes throughput availability and performance

Model Assemble Deploy Manage

The next generation of infrastructure and applications must support information availability

IBM Software Group | DB2 Information Management Software

StaticSystems

AgileBusiness

Maximizing Business

Value

Effectively Manage

Information Assets

Efficiently Manage Data

AssetsData Assets amp SystemsFiles Storage Servers Networks

Information ServicesData Management Information Integration Business Intelligence

Content Management Master Data Management

Information AcceleratorsIndustry Specific Services Models Maps Schemas amp Policies

Business ApplicationsCommercial Internally Developed Composite-Based

Business ProcessesManage Collaborate Optimize

IT S

ervi

ce M

anag

emen

tP

rovi

sion

S

ecur

e M

onito

r O

ptim

ize

Bu

sin

ess

Dri

ven

Dev

elo

pm

ent

Mod

el

Des

ign

Dev

elop

T

est

Model Assemble Deploy Manage

IncreasingVirtualization

Strategic Business Application and Process Information Enablement Requires an Ecosystem of Services

IBM Software Group | DB2 Information Management Software

Thoughts and Musings from the DB2 Tech Conference amp SVL

bull Maintenancebull Service Stream New Functionbull Performance Itemsbull Virtual Storagebull DB2 JAVAbull DB2 Futures

IBM Software Group | DB2 Information Management Software

V8 Maintenance

bull Please stay more current on maintenance bull History for my customers own migrations have

demonstrated that if you arendash Backlevel ndash you have problemsfail or open more PMRs

ndash Currentndash you are successful with fewer PMRs and problems

IBM Software Group | DB2 Information Management Software

How do I find which PTFs are included in an RSU or PUT level

bull To find which PTFs are included in an RSU or PUT level complete the following steps ndash Click the following link ftpserviceboulderibmcoms390assigns ndash Open the file that matches the RSU or PUT level that you want to check

and see what PTFs are included in the RSU or PUTndash Alternatively you can find the RSU or PUT level from the DB2reg

Universal Database for zOSreg support page by completing the following steps

bull Go to the main DB2 for zOS support page httpwwwibmcomsoftwaredatadb2zossupporthtml

bull On left side under the topic Related services click IBM Consolidated Service Test

bull In the menu located on the left click Getting an RSU bull Click RSUyymmtxt bull Find the file that matches the RSU or PUT level that you want to check bull Open it and see the PTFs that are included in the RSU or PUT

IBM Software Group | DB2 Information Management Software

V8 Maintenance

bull PK11355- FETCH FIRST n ROWS impacts IP traffic ndash Fixes an internal code path problem in DB2 where it always followed the branch

for a one row answer set (thus didnt do any blocking) -- regardless of the number of rows specified

bull DFSORTtrade APAR PQ68263 is a prerequisite for DB2reg Version 8 utilities

bull I14047 USE OF DFSORT BY DB2 UTILITIES

bull XES APAR OA03194 (PE) can cause DB2 to hang or performance degradation Do not apply this APAR The content of this document applies only to data sharing users

IBM Software Group | DB2 Information Management Software

DB2 Maintenancebull 1H2005

ndash PQ97261 - PREPARATION FOR WEB SERVICES PROVIDERndash PQ77702 - ADD NEW STORED PROCEDURE DSNAIMS TO ACCESS IMS

TRANSACTIONS AND COMMANDS THROUGH DB2 ndash PQ79716 - ADDING THE NEW FEATURE MQLISTENER TO DB2 V7 AND V8ndash PQ80526 - PRECONDITION FOR MQLISTENERndash PK01614 - UPDATE JCLIN PARAMETERS IN HDB8810J FOR DSNAIMS STORED

PROCEDURE ndash PQ98170 - PERMIT SPUFI AND DSNTEP2 TO SELECT UTF-16 DATA WHEN THE

CURRENT APPLICATION ENCODING SCHEME IS A SBCS CCSID ndash PQ95284 - NEW DB2 UNIVERSAL DRIVER RELEASE 25ndash PQ97156 - ADD NEW INITIALIZATION (INI) FILE KEYWORD TRACETIMESTAMPndash PK01404 - PRECOMPILER MODIFICATIONS FOR SERVICEABILITY OF DB2-

SUPPLIED APPLICATIONS ndash PQ98148 - COMPILER ERROR IBM1633I WHILE PROCESSING THE FETCH

STATEMENT AND SQLCODE504 WHILE PROCESSING CLOSE CUROSR STATEMENT

IBM Software Group | DB2 Information Management Software

DB2 Maintenancebull PK00615 - DB2 UNIVERSAL JDBC DRIVER RELEASE 25 SERVICE PRIMARILY TYPE-4 XA -4499 SAVEPOINT

ISSUES AND STMT CLOSE HANG bull PK01245 - ADDITIONAL RESTART MESSAGEbull PQ95205 - ENCRYPT AUTHID PASSWORD IN SYSIBMUSERNAMES TABLEbull PK01971 - ADD VERSION TO DSNREXX DBRMbull PQ97373 - ALLOW SPUFI USER TO CHANGE SPUFI PLAN NAMES ON DEFAULT PANELbull PQ97645 - ENCLAVE SUPPORT FOR IRLM BOOST IN DXR167E CASE FOR DDF DIST ENCLAVES MSGDXR167E

DELAY IN ASIDXXXX bull PQ95795 - NEW BUILT-IN FUNCTIONS ASCII() AND TIMESTAMPDIFF()bull PQ93857 - DCR DJ288 IMPLEMENTATIONbull PK03946 - OPTIONAL SUPPORT FOR UNION RESULT COLUMN NAME FOR DESCRIBE LIYANZbull PQ91509 - PRELIMINARY DDF EWLM SUPPORTbull PQ91914 - ALLOW LONG PACKAGE NAMES (UP TO 128 CHARACTERS) TO BE RECEIVED AT A DB2ZOS V8

SERVER bull PK00563 - SQL DEBUGGER V82 ON DB2 FOR ZOSbull PK05818 - DB2 RRS BACKOUT EXITS WILL BE PROCESSED IN THE APPROPRIATE ORDER TO FAVOR CANCELED

THREADSbull PK00579 - ALLOW SCALAR FULLSELECT ON RIGHT-HAND-SIDE OF ASSIGNMENT STATEMENT IN SQL

PROCEDURES bull PK06381 - EIB NEW FUNCTION MODE INDICATOR FOR DB2 ATTACHMENTSbull PK05146 - RAS - DIS THD SERVICE WAIT ENHANCEMENTSbull PK05211 - IRLM SUPPORT FOR DB2 APAR PK01502 - TIMEOUTbull PQ92749 - CHECK INDEX AVAILABILITY IMPROVEMENTbull PQ99205 - MISCELLANEOUS PRECOMPILER FIXES FOR CCSID ISSUESbull PK06018 - POOR QUERY PERFORMANCE WHEN A MATERIALIZED VIEW IS CHOSEN FOR THE INNER TABLE OF A

NESTED LOOP JOIN

IBM Software Group | DB2 Information Management Software

DB2 Maintenancebull PK00615 - DB2 UNIVERSAL JDBC DRIVER RELEASE 25 SERVICE PRIMARILY TYPE-4 XA -4499 SAVEPOINT

ISSUES AND STMT CLOSE HANG bull PK01245 - ADDITIONAL RESTART MESSAGEbull PQ95205 - ENCRYPT AUTHID PASSWORD IN SYSIBMUSERNAMES TABLEbull PK01971 - ADD VERSION TO DSNREXX DBRMbull PQ97373 - ALLOW SPUFI USER TO CHANGE SPUFI PLAN NAMES ON DEFAULT PANELbull PQ97645 - ENCLAVE SUPPORT FOR IRLM BOOST IN DXR167E CASE FOR DDF DIST ENCLAVES MSGDXR167E

DELAY IN ASIDXXXX bull PQ95795 - NEW BUILT-IN FUNCTIONS ASCII() AND TIMESTAMPDIFF()bull PQ93857 - DCR DJ288 IMPLEMENTATIONbull PK03946 - OPTIONAL SUPPORT FOR UNION RESULT COLUMN NAME FOR DESCRIBE LIYANZbull PQ91509 - PRELIMINARY DDF EWLM SUPPORTbull PQ91914 - ALLOW LONG PACKAGE NAMES (UP TO 128 CHARACTERS) TO BE RECEIVED AT A DB2ZOS V8

SERVER bull PK00563 - SQL DEBUGGER V82 ON DB2 FOR ZOSbull PK05818 - DB2 RRS BACKOUT EXITS WILL BE PROCESSED IN THE APPROPRIATE ORDER TO FAVOR CANCELED

THREADSbull PK00579 - ALLOW SCALAR FULLSELECT ON RIGHT-HAND-SIDE OF ASSIGNMENT STATEMENT IN SQL

PROCEDURES bull PK06381 - EIB NEW FUNCTION MODE INDICATOR FOR DB2 ATTACHMENTSbull PK05146 - RAS - DIS THD SERVICE WAIT ENHANCEMENTSbull PK05211 - IRLM SUPPORT FOR DB2 APAR PK01502 - TIMEOUTbull PQ92749 - CHECK INDEX AVAILABILITY IMPROVEMENTbull PQ99205 - MISCELLANEOUS PRECOMPILER FIXES FOR CCSID ISSUESbull PK06018 - POOR QUERY PERFORMANCE WHEN A MATERIALIZED VIEW IS CHOSEN FOR THE INNER TABLE OF A

NESTED LOOP JOIN

IBM Software Group | DB2 Information Management Software

DB2 Maintenancebull 2004 -- some may be V6 or V7

ndash PQ80772 - SUPPORT FOR THE LONG LONG VARIABLE TYPE IN EMBEDDED SQL STATEMENTS IN CC++ HOST LANGUAGE PROGRAMS

ndash PQ84976 - XPLINK SUPPORT FOR ODBC V8ndash PQ71775 - PERFORMANCE IMPROVEMENTS FOR DB2 CATALOG CONSISTENCY QUERIES (V6 V7)ndash PQ90432 - DSN1LOGP SERVICEABILITY ENHANCEMENT ndash PQ95328 - DSN1LOGP SERVICEABILITY ENHANCEMENTndash PQ91101 - RAS ENHANCEMENT TO IFC225ndash PQ86083 - ENHANCEMENT TO V8 DUMP FORMATTERndash PQ95332 - DSNDQJ00 DESCRIPTION OF DDF LOG RECORDS CONTAINING XIDndash PQ87848 - NEW FUNCTION IFCID173 WILL BE ADDED TO MONITOR DYNAMIC SQL STATEMENT THAT

EXCEEDED RLF ASUTIME LIMIT SQLCODE905 ndash PQ89174 - ALLOW ENABLE QUERY OPTIMIZATION CLAUSE IN REFERENTIAL-CONSTRAINT CLAUSE IN

ALTER TABLEndash PQ84421 - ADD DSNTIJP8 - V8 PREMIGRATION CHECKOUT JOB - TO V7ndash PQ90022 - ADD VE SAMPLE STORED PROC DSN8EXPndash PQ89409 - NEW CHANGES FOR DSNTIJMC AND DSNTIJSGndash PQ83834 - IRLM220 HIR2220 SERVICE ROLL-UP 5 MAINTENANCE SINCE PQ80788ndash PQ86904 - IRLM220 HIR2220 SERVICE ROLL-UP 6 MAINTENANCE SINCE PQ83834ndash PQ82063 - REPAIR LOB DELETE SERVICEABILITY ENHANCEMENT ndash PQ47759 - DB2 SERVICEABILITY ENHANCEMENT - DUMP FORMATTINGndash PQ82390 - ALLOW SKIP OF UNCOMMITTED INSERTS BY CS AND RS TRANSACTIONS ndash PQ86108 - LONG MESSAGE TOKEN SUPPORT FOR SPUFI AND DCLGENndash PQ88213 - ENHANCE DSNTEP2 TO IMPROVE PERFORMANCE ndash PQ91763 - DSNTIAUL UNLOAD INCORRECTLY DUE TO MISSING QLWARN DETECTION

IBM Software Group | DB2 Information Management Software

DB2 Maintenancebull PQ89018 - ISSUE SPUFI WARNING IF THE ISPF CCSID IS NOT THE SAME AS DB2S bull PQ88151 - DB2 CUSTOMIZATION CENTER UPDATES FOR PQ86108 CHANGESbull PQ90222 - DB2 CUSTOMIZATION CENTER UPDATES FOR PQ86159 CHANGESbull PQ88983 - ALLOW CANCEL ROLLBACK AFTER LOG DATA SET ACCESS ERRORDCR DJ286 bull PQ90936 - DISPLAY ARCHIVE COMMAND ENHANCEMENT - DJ296 bull PQ93548 - SCAN FOR PRIOR CHECKPOINT DURING RESTART DCR DJ303bull PQ94039 - PAGE PROTECT DB2 EARLY CODEbull PQ95159 - ARCHIVE LOG READ IO ERROR MESSAGEbull PQ87444 - MINIMIZE DDF DEPENDENCY ON SUPER_USER AUTHORITYbull PQ91009 - ENSURE DDF LOCATION NAME IS SPECIFIED DURING DB2 STARTUPbull PQ87786 - ACCUMULATED DEFECT FIXES AND ENHANCEMENTS FOR DB2 UNIVERSAL JDBC DRIVER

bull PQ93458 - NEW DB2 UNIVERSAL DRIVER RELEASE 2372bull PQ85700 - HANDSHAKING BETWEEN DB2 SQL COPROCESSOR AND COMPILERSbull PQ86907 - ENABLING PRINTING OF DSNH4760 AND DSNH4761 WARNINGINFO MSGS FOR NON-COBOL PROGRAM bull PQ90147 - SUPPORT GREATER THAN 245 SECONDARY AUTHORIZATION IDSbull PQ89070 - LOCK AVOIDANCE FOR SINGLETON SELECT WITH ISO(CS) AND CURRENTDATA(YES) bull PQ75974 - ACTIVATE CONTROL CENTER V82 OBJECT MAINTENANCE AUTOMATION AND DSN SUBCOMMANDS

BINDREBINDFREE FOR DB2 FOR OS390ZOS V7 bull PQ94548 - ADD GRANT ALL ON CREATED TEMPORARY TABLES IN DSNTIJCCbull PQ87298 - INSERTING UCS-2 DATA BOUND TO C DATA TYPE SQL_C_WCHAR RESULTS IN SQLSTATE 22001

SQLCODE -99999 bull PQ88582 - ODBC SUPPORT FOR 2MB SQL STATEMENT

IBM Software Group | DB2 Information Management Software

Service Stream Features (selected)

IBM Software Group | DB2 Information Management Software

Allow user to change SPUFI plan name

bull Problem SPUFI userrsquos terminal CCSID is different from the DB2 system EBCDIC CCSID (DSNHDECP SCCSID value)

bull Solution can now create copies of the SPUFI plan for each CCSID needed by users

bull SPUFI user can change plan name to the appropriate name for his CCSID

APAR PTF PTF Avail PUT

PQ97373 UK02448

(also V7)

20050511 F505

IBM Software Group | DB2 Information Management Software

ODBC support for 2 MB statement

bull When connecting to DB2 for zOS V8 NFM system maximum SQL statement length is 2 MB

ndash previously 32K

bull ODBC DBRMs will now precompile with CCSID(1047) instead of default CCSID

APAR PTF PTF Avail PUT

PQ88582 UQ91257 20040909 F409

IBM Software Group | DB2 Information Management Software

DB2 Coprocessor ldquolevelrdquo

bull DB2 Coprocessor ldquolevelrdquo corresponds to NEWFUN precompiler optionndash level 1 NEWFUN (NO)

ndash level 2 NEWFUN (YES)

ndash new message DSNH4760I indicates level

ndash new message DSNH4761I -- level 2 requested but compiler only supports level 1

APAR PTF PTF Avail PUT

PQ85700 COBOL

PQ86907 PLI

UQ86392

UQ87641

20040323

20040601

F403

F405

IBM Software Group | DB2 Information Management Software

CHECK INDEX enhancement

bull CHECK INDEX becomes implicitly SHRLEVEL REFERENCE

bull APAR for PQ96956 (DB2 Utilities Suite -- open) Online CHECK INDEX

ndash CHECK INDEX SHRLEVEL CHANGE

APAR PTF PTF Avail PUT

PQ92749

(DB2 base)

UK04683 20050708 1000

IBM Software Group | DB2 Information Management Software

Stalled restart detection

bull DB2 restart can be stalled eg for archive log tape mounts or HSM recalls

bull A DB2 timer task will now monitor recovery phase of restart

bull If the restart processor has been suspended more than 2 minutes issue new messages

DSNR055I csect RESTART SUSPENDED SINCE time

DSNR056I csect RESTART SUSPENDED ON IRLM REQUEST

DSNR057I csect RESOURCE INFORMATION DBID

DSNR058I csect ACCESSING ARCHIVE LOG data-set-name

APAR PTF PTF Avail PUT

PK01245 UK01653

(also V7)

20050406 F504

IBM Software Group | DB2 Information Management Software

Encrypt userid pw for DDF

bull Problem NEWAUTHID and PASSWORD are stored in the clear in SYSIBMUSERNAMES

bull New stored proc SYSPROCDSNLEUSR stores authid and password in encrypted form

bull Values are decrypted prior to sending to remote server

bull Requires DB2 V8 NFM and zOS Integrated Cryptographic Services Facility (ISCF)

bull wwwibmcomsupport ndash Flash 1208122

APAR PTF PTF Avail PUT

PQ95205 UK02094 20050420 F504

IBM Software Group | DB2 Information Management Software

Hung thread diagnosis

bull When a thread is hung it is often necessary to force a console dump to gather information

-DIS THD() SERVICE(WAIT)

will display threads suspended 2x IRLM timeout (minimum 60 sec) -- additional information if suspended for IRLM lock or DB2 latch contention

APAR PTF PTF Avail PUT

PQ83649 UQ87013

(also V7)

20040420 F404

IBM Software Group | DB2 Information Management Software

Storage monitoring

bull V7 amp V8 ICFID 225 adds real storage statisticsndash number of real frames (4K) in use

ndash number of auxilary slots (4K) in use

(conrsquot)

APAR PTF PTF Avail PUT

PQ91101 UQ92441

(also V7)

20040928 F409

IBM Software Group | DB2 Information Management Software

Preliminary DDF EWLM support

bull IBM Virtualization Engine Enterprise Workload Manager for zOS V110

bull Enterprise Workload Manager enables you to automatically monitor and manage multi-tiered distributed heterogeneous or homogeneous workloads -- extends WLM to other platforms

bull Available starting with zOS 16

bull This APAR allows DDF to act as a server to TCPIP connections to be monitored within an EWLM domain

bull Announcement letter 204-305

APAR PTF PTF Avail PUT

PQ91509 UK03835 20050617 1000

IBM Software Group | DB2 Information Management Software

Monitoring lsquoRLF limit exceededrsquo

bull Problem exceeding RLF ASUTIME for dynamic SQL gets SQLCODE -905 but little info

bull Solution new IFCID 173 to provide plan name collection package name authid time used user ASUTIME

APAR PTF PTF Avail PUT

PQ87848 UQ90756

(also V7)

20040803 F408

IBM Software Group | DB2 Information Management Software

New JDBC driver releases (conrsquot)

bull DB2 Universal JDBC Driver release 25ndash Type-2 control over accounting records at COMMIT or end of physical connection

ndash Plus 29 other maintenance items

APAR PTF PTF Avail PUT

PQ95284 UK00182

(also V7)

20050202 F502

IBM Software Group | DB2 Information Management Software

QMF multi-row FETCH INSERT

bull QMF V8 NFM with DB2 V8 NFM automatically transforms your queries to multi-row operations

APAR PTF PTF Avail PUT

PQ99482 UK06848 20050902 1000

IBM Software Group | DB2 Information Management Software

Performance Imperatives

bull If necessary reduce MAXKEEPD to reduce local DSC rely more on global DSC which is above 2GB

bull V8 PQ96772 205 to move dynamic statement cache control blocks above 2GB

bull PK01911 605 Increased cpu time in Index and Storage processing sometimes accompanied by high LC32 contention

bull PQ99608 205 Excessive log write iorsquos triggered by insert into table with identity column

bull Incorrect Runstats values

bull 1048707 PK01510 505 NPI cluster ratio

bull 1048707 PK03469 505 Non-uniform distribution stats

bull PK04107 Bidirectional indexability for unicode to ebcdic

bull PK05360 Hybrid join with multi-row Fetch

bull PK04076 505 Load default of No Sortkeys if only one index and sorted input

IBM Software Group | DB2 Information Management Software

IBM Software Group

copy 2004 IBM Corporation2 IBM Confidential

V7V8 PK09158 705 Dramatic speedup and elimination of non linear performance problem in deletes via SCT02 or SPT01 in Bind Replace or Free

ndash Resolved a half dozen performance PMRs recently raised

V8 PK01911 605 Fix general V8 performance degradation brought about by V8 PQ93318 1204

V8 Multi-row Fetch performance problems

ndash PK05360 opened 505 No hybrid join support

ndash PQ88009 504 disabled parallelism for the last group of the top level query block if there is no Groupby or Orderby

ndash PK10021 opened 805 query abend with host variable or special register

V8 PQ92072 805 to support implicit multi-row Insert by ODBC array input

Recent major performance-related apars

IBM Software Group | DB2 Information Management Software

Performance Imperatives ( conthellip)

bull V8 PK05644 Preformatting up to 2 cylinders at a time to minimize preformat time

bull V7 PQ86037 304 Insert at end option for member cluster tablespace (V7V8 PQ87381 More robust version coming in 2005)

ndash Avoid re-reading spacemap pages from the beginning before dataset extend by always searching forward for freespace when zero PCTFREE and FREEPAGE

ndash Can support steady and continuous high insert rate without rapidly increasing Getpage

ndash Especially useful for heavy insert without delete

IBM Software Group | DB2 Information Management Software

Insert CPU Usage

bull 1048707 Most affected by the number of indexesbull 1048707 DB2 Estimator recommended for more detailed analysisbull 1048707 Rule-of-Thumb Z990(2) cpu time per row inserted inbull microseconds (us) =bull [26 online transaction or 20 batch]bull + 11 for 1 index + 21 for each additional indexbull + 20to30 x pagesread x 13(30 additional for write)bull + 2 if class2 acctg (1)bull + 12 if DB2CICS without TS22 threadsafe option (1)bull - up to 10 if multi-row insert

bull (1) Can disappear if multi-row insertbull (2) Use cpu time multiplier from wwws390ibmcomlspr for other processor models

IBM Software Group | DB2 Information Management Software

Virtual Storage items

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

Java Universal Driver

bull Significant reengineering of Java support for DB2 Connect CAE and DB2 for OS390 and zOS client softwarendash Uses DRDA protocols for all client communication

ndash Eliminates DB2RA and net driver protocols

ndash Traditional DB2 client configuration (CCA) is optional

ndash Much better handling of different clientserver software levels

ndash Improved DB2 Connect consistencyperformance

ndash much higher percentage of common code

ndash fewer unique code paths for specific hardware configurations

ndash Several significant improvements to DRDA

ndash support for long SQL names and statements

ndash DRDA query block sizes can now be up to 2M bytes

ndash rely on server-supplied stored procedures for SQL error messagesdatabase metadata etc

ndash many internal performance improvements

IBM Software Group | DB2 Information Management Software

Java Universal Driver

bull Why use itndash Legacy Drivers functionally stabilized amp will be deprecated

ndash Single driver for all platforms

ndash Client Accounting String

ndash Performance monitor methods

ndash Better performance

IBM Software Group | DB2 Information Management Software

SQLJ usage is increasing

bull Static SQL performance for Java applicationsndash less code written by the application programmer

ndash resulting code is easier to maintain

ndash significant performance advantage over JDBC

ndash Static SQL authorization model

bull Provides Java with a stronger authorization modelndash Monitoringmanageability

ndash static SQL packages for accountingmonitoring

bull Static SQL locks in access path so that access path changes dont occur without a conscious choice

IBM Software Group | DB2 Information Management Software

JDBC vs SQLJ example

bull Retrieve a single row from DB2bull SQLJ

sql [con] SELECT ADDRESS INTO addr FROM EMP WHERE NAME=name

bull JDBCjavasqlPreparedStatement ps = conprepareStatement(SELECT ADDRESS FROM EMP WHERE NAME=)pssetString(1 name)javasqlResultSet names = psexecuteQuery()namesnext()addr = namesgetString(1)namesclose()

bull -- portable across platforms and DBMSsbull -- compilebind time schema checkingbull -- static SQL performance and authorizationbull -- concisebull -- strong typing

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

DB2 Futures

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

DB2 Redbooks - 2Q 2004 httpwwwibmcomredbooks

bull Business Performance Management Meets Business Intelligence (SG24-6340)

bull The Business Value of DB2 UDB for zOS (SG24-6763)bull Data Mart Consolidation Getting Control of Your Enterprise

Information(SG24-6653)bull DB2 UDB for zOS Version 8 Performance Topics (SG24-6465)bull Microsoft SQL Server to IBM DB2 UDB Conversion Guide (SG24-

6672)bull DB2 for zOS and WebSphere The Perfect Couple (SG24-6319)bull Copying the DB2 UDB for zOS catalog using the COPY utility Copying the DB2 UDB for zOS catalog using the COPY utility

(TIPS0587)(TIPS0587)bull Systems Programmers Guide to Resource Recovery Services (RRS) Systems Programmers Guide to Resource Recovery Services (RRS)

(SG24-6980)(SG24-6980)

IBM Software Group | DB2 Information Management Software

Education

bull DB2 Version 8 Migration Workshopsndash Let us know if you need one

bull DB2 Version 8 Transition classndash CG381 amp CG382

IBM Software Group | DB2 Information Management Software

Education ( Design)

IBM Software Group | DB2 Information Management Software

Education (Development)

IBM Software Group | DB2 Information Management Software

Education ( Administration)

IBM Software Group | DB2 Information Management Software

Education (Troubleshooting)

IBM Software Group | DB2 Information Management Software

Intelligent Visual Explain

bull Where to obtain the codebull httpwwwibmcomsoftwaredatadb2zososcvebull Fixpack 7 available nowbull Key prerequisites

ndash Windows NT Version 40 Windows 2000 or Windows XPndash 150 MB of hard disk spacendash 256 MB of RAMndash Pentium III equivalent or abovendash Either DB2 ConnecttradePersonal Edition Version 7 (or later) or DB2

Client Application Enablertrade(CAE) with a DB2 Connect Enterprise Edition Version 7 (or later) gateway installed

ndash A TCPIP connection to a DB2 for zOS Version 7 or Version 8 host system

ndash A java-enabled browser to view HTML files

IBM Software Group | DB2 Information Management Software

Reference URLs

httpwwwibmcomsoftwaredatadb2zosindexhtmlDB2 for zOS

httpwww-306ibmcomsoftwaredatadb2zossupporthtmlDB2 for zOS technical support page

httpwww-306ibmcomsoftwaredatadb2zososcveindexhtmlDB2 VE download

httpwwwunicodeorg Unicode Home pagehttpwwwunicodeorgunicodestandardprincipleshtmlThe Unicode Standard amp Basic Principlesftpftpsoftwareibmcomsoftwaredatadb2zosdppdpdfDB2 for zOS Distribute Performance analysisftpftpsoftwareibmcomsoftwaredb2storedproceduredb2zos390techdocsH01PDFDB2-Java Performance and Tuning

IBM Software Group | DB2 Information Management Software

Reference URLs

www-106ibmcomdeveloperworksdb2librarytecharticle0203shibamiya0203shibamiya2htmlInsert vs Load Performance White paper

IBM Software Group | DB2 Information Management Software

Acknowledgements to My Friends

Mark Wilson ndash DB2 Product Introduction CenterAkira Shibamiya - SVLCurt Cotner ndash SVLJohn Campbell ndash SVL

Page 2: Slide 1 - Parallels Plesk Control Panel 8.6.0

IBM Software Group | DB2 Information Management Software

SOA Reference Architecture

Ap

ps

amp

Info

Ass

ets

Business Innovation amp Optimization Services

De

ve

lop

me

nt

Se

rvic

es

Interaction Services Process Services Information Services

Partner Services Business App Services Access Services

Integrated environment

for design and creation of solution

assets

Manage and secure services

applications amp

resources

Facilitates better decision-making with real-time business information

Enables collaboration between people

processes amp information

Orchestrate and automate business

processes

Manages diverse data and content in a

unified manner

Connect with trading partners

Build on a robust scaleable and secure services

environment

Facilitates interactions with existing

information and application assets

ESBFacilitates communication between services

IT S

erv

ice

Ma

na

ge

me

nt

Infrastructure Services

Optimizes throughput availability and performance

Model Assemble Deploy Manage

The next generation of infrastructure and applications must support information availability

IBM Software Group | DB2 Information Management Software

StaticSystems

AgileBusiness

Maximizing Business

Value

Effectively Manage

Information Assets

Efficiently Manage Data

AssetsData Assets amp SystemsFiles Storage Servers Networks

Information ServicesData Management Information Integration Business Intelligence

Content Management Master Data Management

Information AcceleratorsIndustry Specific Services Models Maps Schemas amp Policies

Business ApplicationsCommercial Internally Developed Composite-Based

Business ProcessesManage Collaborate Optimize

IT S

ervi

ce M

anag

emen

tP

rovi

sion

S

ecur

e M

onito

r O

ptim

ize

Bu

sin

ess

Dri

ven

Dev

elo

pm

ent

Mod

el

Des

ign

Dev

elop

T

est

Model Assemble Deploy Manage

IncreasingVirtualization

Strategic Business Application and Process Information Enablement Requires an Ecosystem of Services

IBM Software Group | DB2 Information Management Software

Thoughts and Musings from the DB2 Tech Conference amp SVL

bull Maintenancebull Service Stream New Functionbull Performance Itemsbull Virtual Storagebull DB2 JAVAbull DB2 Futures

IBM Software Group | DB2 Information Management Software

V8 Maintenance

bull Please stay more current on maintenance bull History for my customers own migrations have

demonstrated that if you arendash Backlevel ndash you have problemsfail or open more PMRs

ndash Currentndash you are successful with fewer PMRs and problems

IBM Software Group | DB2 Information Management Software

How do I find which PTFs are included in an RSU or PUT level

bull To find which PTFs are included in an RSU or PUT level complete the following steps ndash Click the following link ftpserviceboulderibmcoms390assigns ndash Open the file that matches the RSU or PUT level that you want to check

and see what PTFs are included in the RSU or PUTndash Alternatively you can find the RSU or PUT level from the DB2reg

Universal Database for zOSreg support page by completing the following steps

bull Go to the main DB2 for zOS support page httpwwwibmcomsoftwaredatadb2zossupporthtml

bull On left side under the topic Related services click IBM Consolidated Service Test

bull In the menu located on the left click Getting an RSU bull Click RSUyymmtxt bull Find the file that matches the RSU or PUT level that you want to check bull Open it and see the PTFs that are included in the RSU or PUT

IBM Software Group | DB2 Information Management Software

V8 Maintenance

bull PK11355- FETCH FIRST n ROWS impacts IP traffic ndash Fixes an internal code path problem in DB2 where it always followed the branch

for a one row answer set (thus didnt do any blocking) -- regardless of the number of rows specified

bull DFSORTtrade APAR PQ68263 is a prerequisite for DB2reg Version 8 utilities

bull I14047 USE OF DFSORT BY DB2 UTILITIES

bull XES APAR OA03194 (PE) can cause DB2 to hang or performance degradation Do not apply this APAR The content of this document applies only to data sharing users

IBM Software Group | DB2 Information Management Software

DB2 Maintenancebull 1H2005

ndash PQ97261 - PREPARATION FOR WEB SERVICES PROVIDERndash PQ77702 - ADD NEW STORED PROCEDURE DSNAIMS TO ACCESS IMS

TRANSACTIONS AND COMMANDS THROUGH DB2 ndash PQ79716 - ADDING THE NEW FEATURE MQLISTENER TO DB2 V7 AND V8ndash PQ80526 - PRECONDITION FOR MQLISTENERndash PK01614 - UPDATE JCLIN PARAMETERS IN HDB8810J FOR DSNAIMS STORED

PROCEDURE ndash PQ98170 - PERMIT SPUFI AND DSNTEP2 TO SELECT UTF-16 DATA WHEN THE

CURRENT APPLICATION ENCODING SCHEME IS A SBCS CCSID ndash PQ95284 - NEW DB2 UNIVERSAL DRIVER RELEASE 25ndash PQ97156 - ADD NEW INITIALIZATION (INI) FILE KEYWORD TRACETIMESTAMPndash PK01404 - PRECOMPILER MODIFICATIONS FOR SERVICEABILITY OF DB2-

SUPPLIED APPLICATIONS ndash PQ98148 - COMPILER ERROR IBM1633I WHILE PROCESSING THE FETCH

STATEMENT AND SQLCODE504 WHILE PROCESSING CLOSE CUROSR STATEMENT

IBM Software Group | DB2 Information Management Software

DB2 Maintenancebull PK00615 - DB2 UNIVERSAL JDBC DRIVER RELEASE 25 SERVICE PRIMARILY TYPE-4 XA -4499 SAVEPOINT

ISSUES AND STMT CLOSE HANG bull PK01245 - ADDITIONAL RESTART MESSAGEbull PQ95205 - ENCRYPT AUTHID PASSWORD IN SYSIBMUSERNAMES TABLEbull PK01971 - ADD VERSION TO DSNREXX DBRMbull PQ97373 - ALLOW SPUFI USER TO CHANGE SPUFI PLAN NAMES ON DEFAULT PANELbull PQ97645 - ENCLAVE SUPPORT FOR IRLM BOOST IN DXR167E CASE FOR DDF DIST ENCLAVES MSGDXR167E

DELAY IN ASIDXXXX bull PQ95795 - NEW BUILT-IN FUNCTIONS ASCII() AND TIMESTAMPDIFF()bull PQ93857 - DCR DJ288 IMPLEMENTATIONbull PK03946 - OPTIONAL SUPPORT FOR UNION RESULT COLUMN NAME FOR DESCRIBE LIYANZbull PQ91509 - PRELIMINARY DDF EWLM SUPPORTbull PQ91914 - ALLOW LONG PACKAGE NAMES (UP TO 128 CHARACTERS) TO BE RECEIVED AT A DB2ZOS V8

SERVER bull PK00563 - SQL DEBUGGER V82 ON DB2 FOR ZOSbull PK05818 - DB2 RRS BACKOUT EXITS WILL BE PROCESSED IN THE APPROPRIATE ORDER TO FAVOR CANCELED

THREADSbull PK00579 - ALLOW SCALAR FULLSELECT ON RIGHT-HAND-SIDE OF ASSIGNMENT STATEMENT IN SQL

PROCEDURES bull PK06381 - EIB NEW FUNCTION MODE INDICATOR FOR DB2 ATTACHMENTSbull PK05146 - RAS - DIS THD SERVICE WAIT ENHANCEMENTSbull PK05211 - IRLM SUPPORT FOR DB2 APAR PK01502 - TIMEOUTbull PQ92749 - CHECK INDEX AVAILABILITY IMPROVEMENTbull PQ99205 - MISCELLANEOUS PRECOMPILER FIXES FOR CCSID ISSUESbull PK06018 - POOR QUERY PERFORMANCE WHEN A MATERIALIZED VIEW IS CHOSEN FOR THE INNER TABLE OF A

NESTED LOOP JOIN

IBM Software Group | DB2 Information Management Software

DB2 Maintenancebull PK00615 - DB2 UNIVERSAL JDBC DRIVER RELEASE 25 SERVICE PRIMARILY TYPE-4 XA -4499 SAVEPOINT

ISSUES AND STMT CLOSE HANG bull PK01245 - ADDITIONAL RESTART MESSAGEbull PQ95205 - ENCRYPT AUTHID PASSWORD IN SYSIBMUSERNAMES TABLEbull PK01971 - ADD VERSION TO DSNREXX DBRMbull PQ97373 - ALLOW SPUFI USER TO CHANGE SPUFI PLAN NAMES ON DEFAULT PANELbull PQ97645 - ENCLAVE SUPPORT FOR IRLM BOOST IN DXR167E CASE FOR DDF DIST ENCLAVES MSGDXR167E

DELAY IN ASIDXXXX bull PQ95795 - NEW BUILT-IN FUNCTIONS ASCII() AND TIMESTAMPDIFF()bull PQ93857 - DCR DJ288 IMPLEMENTATIONbull PK03946 - OPTIONAL SUPPORT FOR UNION RESULT COLUMN NAME FOR DESCRIBE LIYANZbull PQ91509 - PRELIMINARY DDF EWLM SUPPORTbull PQ91914 - ALLOW LONG PACKAGE NAMES (UP TO 128 CHARACTERS) TO BE RECEIVED AT A DB2ZOS V8

SERVER bull PK00563 - SQL DEBUGGER V82 ON DB2 FOR ZOSbull PK05818 - DB2 RRS BACKOUT EXITS WILL BE PROCESSED IN THE APPROPRIATE ORDER TO FAVOR CANCELED

THREADSbull PK00579 - ALLOW SCALAR FULLSELECT ON RIGHT-HAND-SIDE OF ASSIGNMENT STATEMENT IN SQL

PROCEDURES bull PK06381 - EIB NEW FUNCTION MODE INDICATOR FOR DB2 ATTACHMENTSbull PK05146 - RAS - DIS THD SERVICE WAIT ENHANCEMENTSbull PK05211 - IRLM SUPPORT FOR DB2 APAR PK01502 - TIMEOUTbull PQ92749 - CHECK INDEX AVAILABILITY IMPROVEMENTbull PQ99205 - MISCELLANEOUS PRECOMPILER FIXES FOR CCSID ISSUESbull PK06018 - POOR QUERY PERFORMANCE WHEN A MATERIALIZED VIEW IS CHOSEN FOR THE INNER TABLE OF A

NESTED LOOP JOIN

IBM Software Group | DB2 Information Management Software

DB2 Maintenancebull 2004 -- some may be V6 or V7

ndash PQ80772 - SUPPORT FOR THE LONG LONG VARIABLE TYPE IN EMBEDDED SQL STATEMENTS IN CC++ HOST LANGUAGE PROGRAMS

ndash PQ84976 - XPLINK SUPPORT FOR ODBC V8ndash PQ71775 - PERFORMANCE IMPROVEMENTS FOR DB2 CATALOG CONSISTENCY QUERIES (V6 V7)ndash PQ90432 - DSN1LOGP SERVICEABILITY ENHANCEMENT ndash PQ95328 - DSN1LOGP SERVICEABILITY ENHANCEMENTndash PQ91101 - RAS ENHANCEMENT TO IFC225ndash PQ86083 - ENHANCEMENT TO V8 DUMP FORMATTERndash PQ95332 - DSNDQJ00 DESCRIPTION OF DDF LOG RECORDS CONTAINING XIDndash PQ87848 - NEW FUNCTION IFCID173 WILL BE ADDED TO MONITOR DYNAMIC SQL STATEMENT THAT

EXCEEDED RLF ASUTIME LIMIT SQLCODE905 ndash PQ89174 - ALLOW ENABLE QUERY OPTIMIZATION CLAUSE IN REFERENTIAL-CONSTRAINT CLAUSE IN

ALTER TABLEndash PQ84421 - ADD DSNTIJP8 - V8 PREMIGRATION CHECKOUT JOB - TO V7ndash PQ90022 - ADD VE SAMPLE STORED PROC DSN8EXPndash PQ89409 - NEW CHANGES FOR DSNTIJMC AND DSNTIJSGndash PQ83834 - IRLM220 HIR2220 SERVICE ROLL-UP 5 MAINTENANCE SINCE PQ80788ndash PQ86904 - IRLM220 HIR2220 SERVICE ROLL-UP 6 MAINTENANCE SINCE PQ83834ndash PQ82063 - REPAIR LOB DELETE SERVICEABILITY ENHANCEMENT ndash PQ47759 - DB2 SERVICEABILITY ENHANCEMENT - DUMP FORMATTINGndash PQ82390 - ALLOW SKIP OF UNCOMMITTED INSERTS BY CS AND RS TRANSACTIONS ndash PQ86108 - LONG MESSAGE TOKEN SUPPORT FOR SPUFI AND DCLGENndash PQ88213 - ENHANCE DSNTEP2 TO IMPROVE PERFORMANCE ndash PQ91763 - DSNTIAUL UNLOAD INCORRECTLY DUE TO MISSING QLWARN DETECTION

IBM Software Group | DB2 Information Management Software

DB2 Maintenancebull PQ89018 - ISSUE SPUFI WARNING IF THE ISPF CCSID IS NOT THE SAME AS DB2S bull PQ88151 - DB2 CUSTOMIZATION CENTER UPDATES FOR PQ86108 CHANGESbull PQ90222 - DB2 CUSTOMIZATION CENTER UPDATES FOR PQ86159 CHANGESbull PQ88983 - ALLOW CANCEL ROLLBACK AFTER LOG DATA SET ACCESS ERRORDCR DJ286 bull PQ90936 - DISPLAY ARCHIVE COMMAND ENHANCEMENT - DJ296 bull PQ93548 - SCAN FOR PRIOR CHECKPOINT DURING RESTART DCR DJ303bull PQ94039 - PAGE PROTECT DB2 EARLY CODEbull PQ95159 - ARCHIVE LOG READ IO ERROR MESSAGEbull PQ87444 - MINIMIZE DDF DEPENDENCY ON SUPER_USER AUTHORITYbull PQ91009 - ENSURE DDF LOCATION NAME IS SPECIFIED DURING DB2 STARTUPbull PQ87786 - ACCUMULATED DEFECT FIXES AND ENHANCEMENTS FOR DB2 UNIVERSAL JDBC DRIVER

bull PQ93458 - NEW DB2 UNIVERSAL DRIVER RELEASE 2372bull PQ85700 - HANDSHAKING BETWEEN DB2 SQL COPROCESSOR AND COMPILERSbull PQ86907 - ENABLING PRINTING OF DSNH4760 AND DSNH4761 WARNINGINFO MSGS FOR NON-COBOL PROGRAM bull PQ90147 - SUPPORT GREATER THAN 245 SECONDARY AUTHORIZATION IDSbull PQ89070 - LOCK AVOIDANCE FOR SINGLETON SELECT WITH ISO(CS) AND CURRENTDATA(YES) bull PQ75974 - ACTIVATE CONTROL CENTER V82 OBJECT MAINTENANCE AUTOMATION AND DSN SUBCOMMANDS

BINDREBINDFREE FOR DB2 FOR OS390ZOS V7 bull PQ94548 - ADD GRANT ALL ON CREATED TEMPORARY TABLES IN DSNTIJCCbull PQ87298 - INSERTING UCS-2 DATA BOUND TO C DATA TYPE SQL_C_WCHAR RESULTS IN SQLSTATE 22001

SQLCODE -99999 bull PQ88582 - ODBC SUPPORT FOR 2MB SQL STATEMENT

IBM Software Group | DB2 Information Management Software

Service Stream Features (selected)

IBM Software Group | DB2 Information Management Software

Allow user to change SPUFI plan name

bull Problem SPUFI userrsquos terminal CCSID is different from the DB2 system EBCDIC CCSID (DSNHDECP SCCSID value)

bull Solution can now create copies of the SPUFI plan for each CCSID needed by users

bull SPUFI user can change plan name to the appropriate name for his CCSID

APAR PTF PTF Avail PUT

PQ97373 UK02448

(also V7)

20050511 F505

IBM Software Group | DB2 Information Management Software

ODBC support for 2 MB statement

bull When connecting to DB2 for zOS V8 NFM system maximum SQL statement length is 2 MB

ndash previously 32K

bull ODBC DBRMs will now precompile with CCSID(1047) instead of default CCSID

APAR PTF PTF Avail PUT

PQ88582 UQ91257 20040909 F409

IBM Software Group | DB2 Information Management Software

DB2 Coprocessor ldquolevelrdquo

bull DB2 Coprocessor ldquolevelrdquo corresponds to NEWFUN precompiler optionndash level 1 NEWFUN (NO)

ndash level 2 NEWFUN (YES)

ndash new message DSNH4760I indicates level

ndash new message DSNH4761I -- level 2 requested but compiler only supports level 1

APAR PTF PTF Avail PUT

PQ85700 COBOL

PQ86907 PLI

UQ86392

UQ87641

20040323

20040601

F403

F405

IBM Software Group | DB2 Information Management Software

CHECK INDEX enhancement

bull CHECK INDEX becomes implicitly SHRLEVEL REFERENCE

bull APAR for PQ96956 (DB2 Utilities Suite -- open) Online CHECK INDEX

ndash CHECK INDEX SHRLEVEL CHANGE

APAR PTF PTF Avail PUT

PQ92749

(DB2 base)

UK04683 20050708 1000

IBM Software Group | DB2 Information Management Software

Stalled restart detection

bull DB2 restart can be stalled eg for archive log tape mounts or HSM recalls

bull A DB2 timer task will now monitor recovery phase of restart

bull If the restart processor has been suspended more than 2 minutes issue new messages

DSNR055I csect RESTART SUSPENDED SINCE time

DSNR056I csect RESTART SUSPENDED ON IRLM REQUEST

DSNR057I csect RESOURCE INFORMATION DBID

DSNR058I csect ACCESSING ARCHIVE LOG data-set-name

APAR PTF PTF Avail PUT

PK01245 UK01653

(also V7)

20050406 F504

IBM Software Group | DB2 Information Management Software

Encrypt userid pw for DDF

bull Problem NEWAUTHID and PASSWORD are stored in the clear in SYSIBMUSERNAMES

bull New stored proc SYSPROCDSNLEUSR stores authid and password in encrypted form

bull Values are decrypted prior to sending to remote server

bull Requires DB2 V8 NFM and zOS Integrated Cryptographic Services Facility (ISCF)

bull wwwibmcomsupport ndash Flash 1208122

APAR PTF PTF Avail PUT

PQ95205 UK02094 20050420 F504

IBM Software Group | DB2 Information Management Software

Hung thread diagnosis

bull When a thread is hung it is often necessary to force a console dump to gather information

-DIS THD() SERVICE(WAIT)

will display threads suspended 2x IRLM timeout (minimum 60 sec) -- additional information if suspended for IRLM lock or DB2 latch contention

APAR PTF PTF Avail PUT

PQ83649 UQ87013

(also V7)

20040420 F404

IBM Software Group | DB2 Information Management Software

Storage monitoring

bull V7 amp V8 ICFID 225 adds real storage statisticsndash number of real frames (4K) in use

ndash number of auxilary slots (4K) in use

(conrsquot)

APAR PTF PTF Avail PUT

PQ91101 UQ92441

(also V7)

20040928 F409

IBM Software Group | DB2 Information Management Software

Preliminary DDF EWLM support

bull IBM Virtualization Engine Enterprise Workload Manager for zOS V110

bull Enterprise Workload Manager enables you to automatically monitor and manage multi-tiered distributed heterogeneous or homogeneous workloads -- extends WLM to other platforms

bull Available starting with zOS 16

bull This APAR allows DDF to act as a server to TCPIP connections to be monitored within an EWLM domain

bull Announcement letter 204-305

APAR PTF PTF Avail PUT

PQ91509 UK03835 20050617 1000

IBM Software Group | DB2 Information Management Software

Monitoring lsquoRLF limit exceededrsquo

bull Problem exceeding RLF ASUTIME for dynamic SQL gets SQLCODE -905 but little info

bull Solution new IFCID 173 to provide plan name collection package name authid time used user ASUTIME

APAR PTF PTF Avail PUT

PQ87848 UQ90756

(also V7)

20040803 F408

IBM Software Group | DB2 Information Management Software

New JDBC driver releases (conrsquot)

bull DB2 Universal JDBC Driver release 25ndash Type-2 control over accounting records at COMMIT or end of physical connection

ndash Plus 29 other maintenance items

APAR PTF PTF Avail PUT

PQ95284 UK00182

(also V7)

20050202 F502

IBM Software Group | DB2 Information Management Software

QMF multi-row FETCH INSERT

bull QMF V8 NFM with DB2 V8 NFM automatically transforms your queries to multi-row operations

APAR PTF PTF Avail PUT

PQ99482 UK06848 20050902 1000

IBM Software Group | DB2 Information Management Software

Performance Imperatives

bull If necessary reduce MAXKEEPD to reduce local DSC rely more on global DSC which is above 2GB

bull V8 PQ96772 205 to move dynamic statement cache control blocks above 2GB

bull PK01911 605 Increased cpu time in Index and Storage processing sometimes accompanied by high LC32 contention

bull PQ99608 205 Excessive log write iorsquos triggered by insert into table with identity column

bull Incorrect Runstats values

bull 1048707 PK01510 505 NPI cluster ratio

bull 1048707 PK03469 505 Non-uniform distribution stats

bull PK04107 Bidirectional indexability for unicode to ebcdic

bull PK05360 Hybrid join with multi-row Fetch

bull PK04076 505 Load default of No Sortkeys if only one index and sorted input

IBM Software Group | DB2 Information Management Software

IBM Software Group

copy 2004 IBM Corporation2 IBM Confidential

V7V8 PK09158 705 Dramatic speedup and elimination of non linear performance problem in deletes via SCT02 or SPT01 in Bind Replace or Free

ndash Resolved a half dozen performance PMRs recently raised

V8 PK01911 605 Fix general V8 performance degradation brought about by V8 PQ93318 1204

V8 Multi-row Fetch performance problems

ndash PK05360 opened 505 No hybrid join support

ndash PQ88009 504 disabled parallelism for the last group of the top level query block if there is no Groupby or Orderby

ndash PK10021 opened 805 query abend with host variable or special register

V8 PQ92072 805 to support implicit multi-row Insert by ODBC array input

Recent major performance-related apars

IBM Software Group | DB2 Information Management Software

Performance Imperatives ( conthellip)

bull V8 PK05644 Preformatting up to 2 cylinders at a time to minimize preformat time

bull V7 PQ86037 304 Insert at end option for member cluster tablespace (V7V8 PQ87381 More robust version coming in 2005)

ndash Avoid re-reading spacemap pages from the beginning before dataset extend by always searching forward for freespace when zero PCTFREE and FREEPAGE

ndash Can support steady and continuous high insert rate without rapidly increasing Getpage

ndash Especially useful for heavy insert without delete

IBM Software Group | DB2 Information Management Software

Insert CPU Usage

bull 1048707 Most affected by the number of indexesbull 1048707 DB2 Estimator recommended for more detailed analysisbull 1048707 Rule-of-Thumb Z990(2) cpu time per row inserted inbull microseconds (us) =bull [26 online transaction or 20 batch]bull + 11 for 1 index + 21 for each additional indexbull + 20to30 x pagesread x 13(30 additional for write)bull + 2 if class2 acctg (1)bull + 12 if DB2CICS without TS22 threadsafe option (1)bull - up to 10 if multi-row insert

bull (1) Can disappear if multi-row insertbull (2) Use cpu time multiplier from wwws390ibmcomlspr for other processor models

IBM Software Group | DB2 Information Management Software

Virtual Storage items

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

Java Universal Driver

bull Significant reengineering of Java support for DB2 Connect CAE and DB2 for OS390 and zOS client softwarendash Uses DRDA protocols for all client communication

ndash Eliminates DB2RA and net driver protocols

ndash Traditional DB2 client configuration (CCA) is optional

ndash Much better handling of different clientserver software levels

ndash Improved DB2 Connect consistencyperformance

ndash much higher percentage of common code

ndash fewer unique code paths for specific hardware configurations

ndash Several significant improvements to DRDA

ndash support for long SQL names and statements

ndash DRDA query block sizes can now be up to 2M bytes

ndash rely on server-supplied stored procedures for SQL error messagesdatabase metadata etc

ndash many internal performance improvements

IBM Software Group | DB2 Information Management Software

Java Universal Driver

bull Why use itndash Legacy Drivers functionally stabilized amp will be deprecated

ndash Single driver for all platforms

ndash Client Accounting String

ndash Performance monitor methods

ndash Better performance

IBM Software Group | DB2 Information Management Software

SQLJ usage is increasing

bull Static SQL performance for Java applicationsndash less code written by the application programmer

ndash resulting code is easier to maintain

ndash significant performance advantage over JDBC

ndash Static SQL authorization model

bull Provides Java with a stronger authorization modelndash Monitoringmanageability

ndash static SQL packages for accountingmonitoring

bull Static SQL locks in access path so that access path changes dont occur without a conscious choice

IBM Software Group | DB2 Information Management Software

JDBC vs SQLJ example

bull Retrieve a single row from DB2bull SQLJ

sql [con] SELECT ADDRESS INTO addr FROM EMP WHERE NAME=name

bull JDBCjavasqlPreparedStatement ps = conprepareStatement(SELECT ADDRESS FROM EMP WHERE NAME=)pssetString(1 name)javasqlResultSet names = psexecuteQuery()namesnext()addr = namesgetString(1)namesclose()

bull -- portable across platforms and DBMSsbull -- compilebind time schema checkingbull -- static SQL performance and authorizationbull -- concisebull -- strong typing

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

DB2 Futures

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

DB2 Redbooks - 2Q 2004 httpwwwibmcomredbooks

bull Business Performance Management Meets Business Intelligence (SG24-6340)

bull The Business Value of DB2 UDB for zOS (SG24-6763)bull Data Mart Consolidation Getting Control of Your Enterprise

Information(SG24-6653)bull DB2 UDB for zOS Version 8 Performance Topics (SG24-6465)bull Microsoft SQL Server to IBM DB2 UDB Conversion Guide (SG24-

6672)bull DB2 for zOS and WebSphere The Perfect Couple (SG24-6319)bull Copying the DB2 UDB for zOS catalog using the COPY utility Copying the DB2 UDB for zOS catalog using the COPY utility

(TIPS0587)(TIPS0587)bull Systems Programmers Guide to Resource Recovery Services (RRS) Systems Programmers Guide to Resource Recovery Services (RRS)

(SG24-6980)(SG24-6980)

IBM Software Group | DB2 Information Management Software

Education

bull DB2 Version 8 Migration Workshopsndash Let us know if you need one

bull DB2 Version 8 Transition classndash CG381 amp CG382

IBM Software Group | DB2 Information Management Software

Education ( Design)

IBM Software Group | DB2 Information Management Software

Education (Development)

IBM Software Group | DB2 Information Management Software

Education ( Administration)

IBM Software Group | DB2 Information Management Software

Education (Troubleshooting)

IBM Software Group | DB2 Information Management Software

Intelligent Visual Explain

bull Where to obtain the codebull httpwwwibmcomsoftwaredatadb2zososcvebull Fixpack 7 available nowbull Key prerequisites

ndash Windows NT Version 40 Windows 2000 or Windows XPndash 150 MB of hard disk spacendash 256 MB of RAMndash Pentium III equivalent or abovendash Either DB2 ConnecttradePersonal Edition Version 7 (or later) or DB2

Client Application Enablertrade(CAE) with a DB2 Connect Enterprise Edition Version 7 (or later) gateway installed

ndash A TCPIP connection to a DB2 for zOS Version 7 or Version 8 host system

ndash A java-enabled browser to view HTML files

IBM Software Group | DB2 Information Management Software

Reference URLs

httpwwwibmcomsoftwaredatadb2zosindexhtmlDB2 for zOS

httpwww-306ibmcomsoftwaredatadb2zossupporthtmlDB2 for zOS technical support page

httpwww-306ibmcomsoftwaredatadb2zososcveindexhtmlDB2 VE download

httpwwwunicodeorg Unicode Home pagehttpwwwunicodeorgunicodestandardprincipleshtmlThe Unicode Standard amp Basic Principlesftpftpsoftwareibmcomsoftwaredatadb2zosdppdpdfDB2 for zOS Distribute Performance analysisftpftpsoftwareibmcomsoftwaredb2storedproceduredb2zos390techdocsH01PDFDB2-Java Performance and Tuning

IBM Software Group | DB2 Information Management Software

Reference URLs

www-106ibmcomdeveloperworksdb2librarytecharticle0203shibamiya0203shibamiya2htmlInsert vs Load Performance White paper

IBM Software Group | DB2 Information Management Software

Acknowledgements to My Friends

Mark Wilson ndash DB2 Product Introduction CenterAkira Shibamiya - SVLCurt Cotner ndash SVLJohn Campbell ndash SVL

Page 3: Slide 1 - Parallels Plesk Control Panel 8.6.0

IBM Software Group | DB2 Information Management Software

StaticSystems

AgileBusiness

Maximizing Business

Value

Effectively Manage

Information Assets

Efficiently Manage Data

AssetsData Assets amp SystemsFiles Storage Servers Networks

Information ServicesData Management Information Integration Business Intelligence

Content Management Master Data Management

Information AcceleratorsIndustry Specific Services Models Maps Schemas amp Policies

Business ApplicationsCommercial Internally Developed Composite-Based

Business ProcessesManage Collaborate Optimize

IT S

ervi

ce M

anag

emen

tP

rovi

sion

S

ecur

e M

onito

r O

ptim

ize

Bu

sin

ess

Dri

ven

Dev

elo

pm

ent

Mod

el

Des

ign

Dev

elop

T

est

Model Assemble Deploy Manage

IncreasingVirtualization

Strategic Business Application and Process Information Enablement Requires an Ecosystem of Services

IBM Software Group | DB2 Information Management Software

Thoughts and Musings from the DB2 Tech Conference amp SVL

bull Maintenancebull Service Stream New Functionbull Performance Itemsbull Virtual Storagebull DB2 JAVAbull DB2 Futures

IBM Software Group | DB2 Information Management Software

V8 Maintenance

bull Please stay more current on maintenance bull History for my customers own migrations have

demonstrated that if you arendash Backlevel ndash you have problemsfail or open more PMRs

ndash Currentndash you are successful with fewer PMRs and problems

IBM Software Group | DB2 Information Management Software

How do I find which PTFs are included in an RSU or PUT level

bull To find which PTFs are included in an RSU or PUT level complete the following steps ndash Click the following link ftpserviceboulderibmcoms390assigns ndash Open the file that matches the RSU or PUT level that you want to check

and see what PTFs are included in the RSU or PUTndash Alternatively you can find the RSU or PUT level from the DB2reg

Universal Database for zOSreg support page by completing the following steps

bull Go to the main DB2 for zOS support page httpwwwibmcomsoftwaredatadb2zossupporthtml

bull On left side under the topic Related services click IBM Consolidated Service Test

bull In the menu located on the left click Getting an RSU bull Click RSUyymmtxt bull Find the file that matches the RSU or PUT level that you want to check bull Open it and see the PTFs that are included in the RSU or PUT

IBM Software Group | DB2 Information Management Software

V8 Maintenance

bull PK11355- FETCH FIRST n ROWS impacts IP traffic ndash Fixes an internal code path problem in DB2 where it always followed the branch

for a one row answer set (thus didnt do any blocking) -- regardless of the number of rows specified

bull DFSORTtrade APAR PQ68263 is a prerequisite for DB2reg Version 8 utilities

bull I14047 USE OF DFSORT BY DB2 UTILITIES

bull XES APAR OA03194 (PE) can cause DB2 to hang or performance degradation Do not apply this APAR The content of this document applies only to data sharing users

IBM Software Group | DB2 Information Management Software

DB2 Maintenancebull 1H2005

ndash PQ97261 - PREPARATION FOR WEB SERVICES PROVIDERndash PQ77702 - ADD NEW STORED PROCEDURE DSNAIMS TO ACCESS IMS

TRANSACTIONS AND COMMANDS THROUGH DB2 ndash PQ79716 - ADDING THE NEW FEATURE MQLISTENER TO DB2 V7 AND V8ndash PQ80526 - PRECONDITION FOR MQLISTENERndash PK01614 - UPDATE JCLIN PARAMETERS IN HDB8810J FOR DSNAIMS STORED

PROCEDURE ndash PQ98170 - PERMIT SPUFI AND DSNTEP2 TO SELECT UTF-16 DATA WHEN THE

CURRENT APPLICATION ENCODING SCHEME IS A SBCS CCSID ndash PQ95284 - NEW DB2 UNIVERSAL DRIVER RELEASE 25ndash PQ97156 - ADD NEW INITIALIZATION (INI) FILE KEYWORD TRACETIMESTAMPndash PK01404 - PRECOMPILER MODIFICATIONS FOR SERVICEABILITY OF DB2-

SUPPLIED APPLICATIONS ndash PQ98148 - COMPILER ERROR IBM1633I WHILE PROCESSING THE FETCH

STATEMENT AND SQLCODE504 WHILE PROCESSING CLOSE CUROSR STATEMENT

IBM Software Group | DB2 Information Management Software

DB2 Maintenancebull PK00615 - DB2 UNIVERSAL JDBC DRIVER RELEASE 25 SERVICE PRIMARILY TYPE-4 XA -4499 SAVEPOINT

ISSUES AND STMT CLOSE HANG bull PK01245 - ADDITIONAL RESTART MESSAGEbull PQ95205 - ENCRYPT AUTHID PASSWORD IN SYSIBMUSERNAMES TABLEbull PK01971 - ADD VERSION TO DSNREXX DBRMbull PQ97373 - ALLOW SPUFI USER TO CHANGE SPUFI PLAN NAMES ON DEFAULT PANELbull PQ97645 - ENCLAVE SUPPORT FOR IRLM BOOST IN DXR167E CASE FOR DDF DIST ENCLAVES MSGDXR167E

DELAY IN ASIDXXXX bull PQ95795 - NEW BUILT-IN FUNCTIONS ASCII() AND TIMESTAMPDIFF()bull PQ93857 - DCR DJ288 IMPLEMENTATIONbull PK03946 - OPTIONAL SUPPORT FOR UNION RESULT COLUMN NAME FOR DESCRIBE LIYANZbull PQ91509 - PRELIMINARY DDF EWLM SUPPORTbull PQ91914 - ALLOW LONG PACKAGE NAMES (UP TO 128 CHARACTERS) TO BE RECEIVED AT A DB2ZOS V8

SERVER bull PK00563 - SQL DEBUGGER V82 ON DB2 FOR ZOSbull PK05818 - DB2 RRS BACKOUT EXITS WILL BE PROCESSED IN THE APPROPRIATE ORDER TO FAVOR CANCELED

THREADSbull PK00579 - ALLOW SCALAR FULLSELECT ON RIGHT-HAND-SIDE OF ASSIGNMENT STATEMENT IN SQL

PROCEDURES bull PK06381 - EIB NEW FUNCTION MODE INDICATOR FOR DB2 ATTACHMENTSbull PK05146 - RAS - DIS THD SERVICE WAIT ENHANCEMENTSbull PK05211 - IRLM SUPPORT FOR DB2 APAR PK01502 - TIMEOUTbull PQ92749 - CHECK INDEX AVAILABILITY IMPROVEMENTbull PQ99205 - MISCELLANEOUS PRECOMPILER FIXES FOR CCSID ISSUESbull PK06018 - POOR QUERY PERFORMANCE WHEN A MATERIALIZED VIEW IS CHOSEN FOR THE INNER TABLE OF A

NESTED LOOP JOIN

IBM Software Group | DB2 Information Management Software

DB2 Maintenancebull PK00615 - DB2 UNIVERSAL JDBC DRIVER RELEASE 25 SERVICE PRIMARILY TYPE-4 XA -4499 SAVEPOINT

ISSUES AND STMT CLOSE HANG bull PK01245 - ADDITIONAL RESTART MESSAGEbull PQ95205 - ENCRYPT AUTHID PASSWORD IN SYSIBMUSERNAMES TABLEbull PK01971 - ADD VERSION TO DSNREXX DBRMbull PQ97373 - ALLOW SPUFI USER TO CHANGE SPUFI PLAN NAMES ON DEFAULT PANELbull PQ97645 - ENCLAVE SUPPORT FOR IRLM BOOST IN DXR167E CASE FOR DDF DIST ENCLAVES MSGDXR167E

DELAY IN ASIDXXXX bull PQ95795 - NEW BUILT-IN FUNCTIONS ASCII() AND TIMESTAMPDIFF()bull PQ93857 - DCR DJ288 IMPLEMENTATIONbull PK03946 - OPTIONAL SUPPORT FOR UNION RESULT COLUMN NAME FOR DESCRIBE LIYANZbull PQ91509 - PRELIMINARY DDF EWLM SUPPORTbull PQ91914 - ALLOW LONG PACKAGE NAMES (UP TO 128 CHARACTERS) TO BE RECEIVED AT A DB2ZOS V8

SERVER bull PK00563 - SQL DEBUGGER V82 ON DB2 FOR ZOSbull PK05818 - DB2 RRS BACKOUT EXITS WILL BE PROCESSED IN THE APPROPRIATE ORDER TO FAVOR CANCELED

THREADSbull PK00579 - ALLOW SCALAR FULLSELECT ON RIGHT-HAND-SIDE OF ASSIGNMENT STATEMENT IN SQL

PROCEDURES bull PK06381 - EIB NEW FUNCTION MODE INDICATOR FOR DB2 ATTACHMENTSbull PK05146 - RAS - DIS THD SERVICE WAIT ENHANCEMENTSbull PK05211 - IRLM SUPPORT FOR DB2 APAR PK01502 - TIMEOUTbull PQ92749 - CHECK INDEX AVAILABILITY IMPROVEMENTbull PQ99205 - MISCELLANEOUS PRECOMPILER FIXES FOR CCSID ISSUESbull PK06018 - POOR QUERY PERFORMANCE WHEN A MATERIALIZED VIEW IS CHOSEN FOR THE INNER TABLE OF A

NESTED LOOP JOIN

IBM Software Group | DB2 Information Management Software

DB2 Maintenancebull 2004 -- some may be V6 or V7

ndash PQ80772 - SUPPORT FOR THE LONG LONG VARIABLE TYPE IN EMBEDDED SQL STATEMENTS IN CC++ HOST LANGUAGE PROGRAMS

ndash PQ84976 - XPLINK SUPPORT FOR ODBC V8ndash PQ71775 - PERFORMANCE IMPROVEMENTS FOR DB2 CATALOG CONSISTENCY QUERIES (V6 V7)ndash PQ90432 - DSN1LOGP SERVICEABILITY ENHANCEMENT ndash PQ95328 - DSN1LOGP SERVICEABILITY ENHANCEMENTndash PQ91101 - RAS ENHANCEMENT TO IFC225ndash PQ86083 - ENHANCEMENT TO V8 DUMP FORMATTERndash PQ95332 - DSNDQJ00 DESCRIPTION OF DDF LOG RECORDS CONTAINING XIDndash PQ87848 - NEW FUNCTION IFCID173 WILL BE ADDED TO MONITOR DYNAMIC SQL STATEMENT THAT

EXCEEDED RLF ASUTIME LIMIT SQLCODE905 ndash PQ89174 - ALLOW ENABLE QUERY OPTIMIZATION CLAUSE IN REFERENTIAL-CONSTRAINT CLAUSE IN

ALTER TABLEndash PQ84421 - ADD DSNTIJP8 - V8 PREMIGRATION CHECKOUT JOB - TO V7ndash PQ90022 - ADD VE SAMPLE STORED PROC DSN8EXPndash PQ89409 - NEW CHANGES FOR DSNTIJMC AND DSNTIJSGndash PQ83834 - IRLM220 HIR2220 SERVICE ROLL-UP 5 MAINTENANCE SINCE PQ80788ndash PQ86904 - IRLM220 HIR2220 SERVICE ROLL-UP 6 MAINTENANCE SINCE PQ83834ndash PQ82063 - REPAIR LOB DELETE SERVICEABILITY ENHANCEMENT ndash PQ47759 - DB2 SERVICEABILITY ENHANCEMENT - DUMP FORMATTINGndash PQ82390 - ALLOW SKIP OF UNCOMMITTED INSERTS BY CS AND RS TRANSACTIONS ndash PQ86108 - LONG MESSAGE TOKEN SUPPORT FOR SPUFI AND DCLGENndash PQ88213 - ENHANCE DSNTEP2 TO IMPROVE PERFORMANCE ndash PQ91763 - DSNTIAUL UNLOAD INCORRECTLY DUE TO MISSING QLWARN DETECTION

IBM Software Group | DB2 Information Management Software

DB2 Maintenancebull PQ89018 - ISSUE SPUFI WARNING IF THE ISPF CCSID IS NOT THE SAME AS DB2S bull PQ88151 - DB2 CUSTOMIZATION CENTER UPDATES FOR PQ86108 CHANGESbull PQ90222 - DB2 CUSTOMIZATION CENTER UPDATES FOR PQ86159 CHANGESbull PQ88983 - ALLOW CANCEL ROLLBACK AFTER LOG DATA SET ACCESS ERRORDCR DJ286 bull PQ90936 - DISPLAY ARCHIVE COMMAND ENHANCEMENT - DJ296 bull PQ93548 - SCAN FOR PRIOR CHECKPOINT DURING RESTART DCR DJ303bull PQ94039 - PAGE PROTECT DB2 EARLY CODEbull PQ95159 - ARCHIVE LOG READ IO ERROR MESSAGEbull PQ87444 - MINIMIZE DDF DEPENDENCY ON SUPER_USER AUTHORITYbull PQ91009 - ENSURE DDF LOCATION NAME IS SPECIFIED DURING DB2 STARTUPbull PQ87786 - ACCUMULATED DEFECT FIXES AND ENHANCEMENTS FOR DB2 UNIVERSAL JDBC DRIVER

bull PQ93458 - NEW DB2 UNIVERSAL DRIVER RELEASE 2372bull PQ85700 - HANDSHAKING BETWEEN DB2 SQL COPROCESSOR AND COMPILERSbull PQ86907 - ENABLING PRINTING OF DSNH4760 AND DSNH4761 WARNINGINFO MSGS FOR NON-COBOL PROGRAM bull PQ90147 - SUPPORT GREATER THAN 245 SECONDARY AUTHORIZATION IDSbull PQ89070 - LOCK AVOIDANCE FOR SINGLETON SELECT WITH ISO(CS) AND CURRENTDATA(YES) bull PQ75974 - ACTIVATE CONTROL CENTER V82 OBJECT MAINTENANCE AUTOMATION AND DSN SUBCOMMANDS

BINDREBINDFREE FOR DB2 FOR OS390ZOS V7 bull PQ94548 - ADD GRANT ALL ON CREATED TEMPORARY TABLES IN DSNTIJCCbull PQ87298 - INSERTING UCS-2 DATA BOUND TO C DATA TYPE SQL_C_WCHAR RESULTS IN SQLSTATE 22001

SQLCODE -99999 bull PQ88582 - ODBC SUPPORT FOR 2MB SQL STATEMENT

IBM Software Group | DB2 Information Management Software

Service Stream Features (selected)

IBM Software Group | DB2 Information Management Software

Allow user to change SPUFI plan name

bull Problem SPUFI userrsquos terminal CCSID is different from the DB2 system EBCDIC CCSID (DSNHDECP SCCSID value)

bull Solution can now create copies of the SPUFI plan for each CCSID needed by users

bull SPUFI user can change plan name to the appropriate name for his CCSID

APAR PTF PTF Avail PUT

PQ97373 UK02448

(also V7)

20050511 F505

IBM Software Group | DB2 Information Management Software

ODBC support for 2 MB statement

bull When connecting to DB2 for zOS V8 NFM system maximum SQL statement length is 2 MB

ndash previously 32K

bull ODBC DBRMs will now precompile with CCSID(1047) instead of default CCSID

APAR PTF PTF Avail PUT

PQ88582 UQ91257 20040909 F409

IBM Software Group | DB2 Information Management Software

DB2 Coprocessor ldquolevelrdquo

bull DB2 Coprocessor ldquolevelrdquo corresponds to NEWFUN precompiler optionndash level 1 NEWFUN (NO)

ndash level 2 NEWFUN (YES)

ndash new message DSNH4760I indicates level

ndash new message DSNH4761I -- level 2 requested but compiler only supports level 1

APAR PTF PTF Avail PUT

PQ85700 COBOL

PQ86907 PLI

UQ86392

UQ87641

20040323

20040601

F403

F405

IBM Software Group | DB2 Information Management Software

CHECK INDEX enhancement

bull CHECK INDEX becomes implicitly SHRLEVEL REFERENCE

bull APAR for PQ96956 (DB2 Utilities Suite -- open) Online CHECK INDEX

ndash CHECK INDEX SHRLEVEL CHANGE

APAR PTF PTF Avail PUT

PQ92749

(DB2 base)

UK04683 20050708 1000

IBM Software Group | DB2 Information Management Software

Stalled restart detection

bull DB2 restart can be stalled eg for archive log tape mounts or HSM recalls

bull A DB2 timer task will now monitor recovery phase of restart

bull If the restart processor has been suspended more than 2 minutes issue new messages

DSNR055I csect RESTART SUSPENDED SINCE time

DSNR056I csect RESTART SUSPENDED ON IRLM REQUEST

DSNR057I csect RESOURCE INFORMATION DBID

DSNR058I csect ACCESSING ARCHIVE LOG data-set-name

APAR PTF PTF Avail PUT

PK01245 UK01653

(also V7)

20050406 F504

IBM Software Group | DB2 Information Management Software

Encrypt userid pw for DDF

bull Problem NEWAUTHID and PASSWORD are stored in the clear in SYSIBMUSERNAMES

bull New stored proc SYSPROCDSNLEUSR stores authid and password in encrypted form

bull Values are decrypted prior to sending to remote server

bull Requires DB2 V8 NFM and zOS Integrated Cryptographic Services Facility (ISCF)

bull wwwibmcomsupport ndash Flash 1208122

APAR PTF PTF Avail PUT

PQ95205 UK02094 20050420 F504

IBM Software Group | DB2 Information Management Software

Hung thread diagnosis

bull When a thread is hung it is often necessary to force a console dump to gather information

-DIS THD() SERVICE(WAIT)

will display threads suspended 2x IRLM timeout (minimum 60 sec) -- additional information if suspended for IRLM lock or DB2 latch contention

APAR PTF PTF Avail PUT

PQ83649 UQ87013

(also V7)

20040420 F404

IBM Software Group | DB2 Information Management Software

Storage monitoring

bull V7 amp V8 ICFID 225 adds real storage statisticsndash number of real frames (4K) in use

ndash number of auxilary slots (4K) in use

(conrsquot)

APAR PTF PTF Avail PUT

PQ91101 UQ92441

(also V7)

20040928 F409

IBM Software Group | DB2 Information Management Software

Preliminary DDF EWLM support

bull IBM Virtualization Engine Enterprise Workload Manager for zOS V110

bull Enterprise Workload Manager enables you to automatically monitor and manage multi-tiered distributed heterogeneous or homogeneous workloads -- extends WLM to other platforms

bull Available starting with zOS 16

bull This APAR allows DDF to act as a server to TCPIP connections to be monitored within an EWLM domain

bull Announcement letter 204-305

APAR PTF PTF Avail PUT

PQ91509 UK03835 20050617 1000

IBM Software Group | DB2 Information Management Software

Monitoring lsquoRLF limit exceededrsquo

bull Problem exceeding RLF ASUTIME for dynamic SQL gets SQLCODE -905 but little info

bull Solution new IFCID 173 to provide plan name collection package name authid time used user ASUTIME

APAR PTF PTF Avail PUT

PQ87848 UQ90756

(also V7)

20040803 F408

IBM Software Group | DB2 Information Management Software

New JDBC driver releases (conrsquot)

bull DB2 Universal JDBC Driver release 25ndash Type-2 control over accounting records at COMMIT or end of physical connection

ndash Plus 29 other maintenance items

APAR PTF PTF Avail PUT

PQ95284 UK00182

(also V7)

20050202 F502

IBM Software Group | DB2 Information Management Software

QMF multi-row FETCH INSERT

bull QMF V8 NFM with DB2 V8 NFM automatically transforms your queries to multi-row operations

APAR PTF PTF Avail PUT

PQ99482 UK06848 20050902 1000

IBM Software Group | DB2 Information Management Software

Performance Imperatives

bull If necessary reduce MAXKEEPD to reduce local DSC rely more on global DSC which is above 2GB

bull V8 PQ96772 205 to move dynamic statement cache control blocks above 2GB

bull PK01911 605 Increased cpu time in Index and Storage processing sometimes accompanied by high LC32 contention

bull PQ99608 205 Excessive log write iorsquos triggered by insert into table with identity column

bull Incorrect Runstats values

bull 1048707 PK01510 505 NPI cluster ratio

bull 1048707 PK03469 505 Non-uniform distribution stats

bull PK04107 Bidirectional indexability for unicode to ebcdic

bull PK05360 Hybrid join with multi-row Fetch

bull PK04076 505 Load default of No Sortkeys if only one index and sorted input

IBM Software Group | DB2 Information Management Software

IBM Software Group

copy 2004 IBM Corporation2 IBM Confidential

V7V8 PK09158 705 Dramatic speedup and elimination of non linear performance problem in deletes via SCT02 or SPT01 in Bind Replace or Free

ndash Resolved a half dozen performance PMRs recently raised

V8 PK01911 605 Fix general V8 performance degradation brought about by V8 PQ93318 1204

V8 Multi-row Fetch performance problems

ndash PK05360 opened 505 No hybrid join support

ndash PQ88009 504 disabled parallelism for the last group of the top level query block if there is no Groupby or Orderby

ndash PK10021 opened 805 query abend with host variable or special register

V8 PQ92072 805 to support implicit multi-row Insert by ODBC array input

Recent major performance-related apars

IBM Software Group | DB2 Information Management Software

Performance Imperatives ( conthellip)

bull V8 PK05644 Preformatting up to 2 cylinders at a time to minimize preformat time

bull V7 PQ86037 304 Insert at end option for member cluster tablespace (V7V8 PQ87381 More robust version coming in 2005)

ndash Avoid re-reading spacemap pages from the beginning before dataset extend by always searching forward for freespace when zero PCTFREE and FREEPAGE

ndash Can support steady and continuous high insert rate without rapidly increasing Getpage

ndash Especially useful for heavy insert without delete

IBM Software Group | DB2 Information Management Software

Insert CPU Usage

bull 1048707 Most affected by the number of indexesbull 1048707 DB2 Estimator recommended for more detailed analysisbull 1048707 Rule-of-Thumb Z990(2) cpu time per row inserted inbull microseconds (us) =bull [26 online transaction or 20 batch]bull + 11 for 1 index + 21 for each additional indexbull + 20to30 x pagesread x 13(30 additional for write)bull + 2 if class2 acctg (1)bull + 12 if DB2CICS without TS22 threadsafe option (1)bull - up to 10 if multi-row insert

bull (1) Can disappear if multi-row insertbull (2) Use cpu time multiplier from wwws390ibmcomlspr for other processor models

IBM Software Group | DB2 Information Management Software

Virtual Storage items

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

Java Universal Driver

bull Significant reengineering of Java support for DB2 Connect CAE and DB2 for OS390 and zOS client softwarendash Uses DRDA protocols for all client communication

ndash Eliminates DB2RA and net driver protocols

ndash Traditional DB2 client configuration (CCA) is optional

ndash Much better handling of different clientserver software levels

ndash Improved DB2 Connect consistencyperformance

ndash much higher percentage of common code

ndash fewer unique code paths for specific hardware configurations

ndash Several significant improvements to DRDA

ndash support for long SQL names and statements

ndash DRDA query block sizes can now be up to 2M bytes

ndash rely on server-supplied stored procedures for SQL error messagesdatabase metadata etc

ndash many internal performance improvements

IBM Software Group | DB2 Information Management Software

Java Universal Driver

bull Why use itndash Legacy Drivers functionally stabilized amp will be deprecated

ndash Single driver for all platforms

ndash Client Accounting String

ndash Performance monitor methods

ndash Better performance

IBM Software Group | DB2 Information Management Software

SQLJ usage is increasing

bull Static SQL performance for Java applicationsndash less code written by the application programmer

ndash resulting code is easier to maintain

ndash significant performance advantage over JDBC

ndash Static SQL authorization model

bull Provides Java with a stronger authorization modelndash Monitoringmanageability

ndash static SQL packages for accountingmonitoring

bull Static SQL locks in access path so that access path changes dont occur without a conscious choice

IBM Software Group | DB2 Information Management Software

JDBC vs SQLJ example

bull Retrieve a single row from DB2bull SQLJ

sql [con] SELECT ADDRESS INTO addr FROM EMP WHERE NAME=name

bull JDBCjavasqlPreparedStatement ps = conprepareStatement(SELECT ADDRESS FROM EMP WHERE NAME=)pssetString(1 name)javasqlResultSet names = psexecuteQuery()namesnext()addr = namesgetString(1)namesclose()

bull -- portable across platforms and DBMSsbull -- compilebind time schema checkingbull -- static SQL performance and authorizationbull -- concisebull -- strong typing

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

DB2 Futures

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

DB2 Redbooks - 2Q 2004 httpwwwibmcomredbooks

bull Business Performance Management Meets Business Intelligence (SG24-6340)

bull The Business Value of DB2 UDB for zOS (SG24-6763)bull Data Mart Consolidation Getting Control of Your Enterprise

Information(SG24-6653)bull DB2 UDB for zOS Version 8 Performance Topics (SG24-6465)bull Microsoft SQL Server to IBM DB2 UDB Conversion Guide (SG24-

6672)bull DB2 for zOS and WebSphere The Perfect Couple (SG24-6319)bull Copying the DB2 UDB for zOS catalog using the COPY utility Copying the DB2 UDB for zOS catalog using the COPY utility

(TIPS0587)(TIPS0587)bull Systems Programmers Guide to Resource Recovery Services (RRS) Systems Programmers Guide to Resource Recovery Services (RRS)

(SG24-6980)(SG24-6980)

IBM Software Group | DB2 Information Management Software

Education

bull DB2 Version 8 Migration Workshopsndash Let us know if you need one

bull DB2 Version 8 Transition classndash CG381 amp CG382

IBM Software Group | DB2 Information Management Software

Education ( Design)

IBM Software Group | DB2 Information Management Software

Education (Development)

IBM Software Group | DB2 Information Management Software

Education ( Administration)

IBM Software Group | DB2 Information Management Software

Education (Troubleshooting)

IBM Software Group | DB2 Information Management Software

Intelligent Visual Explain

bull Where to obtain the codebull httpwwwibmcomsoftwaredatadb2zososcvebull Fixpack 7 available nowbull Key prerequisites

ndash Windows NT Version 40 Windows 2000 or Windows XPndash 150 MB of hard disk spacendash 256 MB of RAMndash Pentium III equivalent or abovendash Either DB2 ConnecttradePersonal Edition Version 7 (or later) or DB2

Client Application Enablertrade(CAE) with a DB2 Connect Enterprise Edition Version 7 (or later) gateway installed

ndash A TCPIP connection to a DB2 for zOS Version 7 or Version 8 host system

ndash A java-enabled browser to view HTML files

IBM Software Group | DB2 Information Management Software

Reference URLs

httpwwwibmcomsoftwaredatadb2zosindexhtmlDB2 for zOS

httpwww-306ibmcomsoftwaredatadb2zossupporthtmlDB2 for zOS technical support page

httpwww-306ibmcomsoftwaredatadb2zososcveindexhtmlDB2 VE download

httpwwwunicodeorg Unicode Home pagehttpwwwunicodeorgunicodestandardprincipleshtmlThe Unicode Standard amp Basic Principlesftpftpsoftwareibmcomsoftwaredatadb2zosdppdpdfDB2 for zOS Distribute Performance analysisftpftpsoftwareibmcomsoftwaredb2storedproceduredb2zos390techdocsH01PDFDB2-Java Performance and Tuning

IBM Software Group | DB2 Information Management Software

Reference URLs

www-106ibmcomdeveloperworksdb2librarytecharticle0203shibamiya0203shibamiya2htmlInsert vs Load Performance White paper

IBM Software Group | DB2 Information Management Software

Acknowledgements to My Friends

Mark Wilson ndash DB2 Product Introduction CenterAkira Shibamiya - SVLCurt Cotner ndash SVLJohn Campbell ndash SVL

Page 4: Slide 1 - Parallels Plesk Control Panel 8.6.0

IBM Software Group | DB2 Information Management Software

Thoughts and Musings from the DB2 Tech Conference amp SVL

bull Maintenancebull Service Stream New Functionbull Performance Itemsbull Virtual Storagebull DB2 JAVAbull DB2 Futures

IBM Software Group | DB2 Information Management Software

V8 Maintenance

bull Please stay more current on maintenance bull History for my customers own migrations have

demonstrated that if you arendash Backlevel ndash you have problemsfail or open more PMRs

ndash Currentndash you are successful with fewer PMRs and problems

IBM Software Group | DB2 Information Management Software

How do I find which PTFs are included in an RSU or PUT level

bull To find which PTFs are included in an RSU or PUT level complete the following steps ndash Click the following link ftpserviceboulderibmcoms390assigns ndash Open the file that matches the RSU or PUT level that you want to check

and see what PTFs are included in the RSU or PUTndash Alternatively you can find the RSU or PUT level from the DB2reg

Universal Database for zOSreg support page by completing the following steps

bull Go to the main DB2 for zOS support page httpwwwibmcomsoftwaredatadb2zossupporthtml

bull On left side under the topic Related services click IBM Consolidated Service Test

bull In the menu located on the left click Getting an RSU bull Click RSUyymmtxt bull Find the file that matches the RSU or PUT level that you want to check bull Open it and see the PTFs that are included in the RSU or PUT

IBM Software Group | DB2 Information Management Software

V8 Maintenance

bull PK11355- FETCH FIRST n ROWS impacts IP traffic ndash Fixes an internal code path problem in DB2 where it always followed the branch

for a one row answer set (thus didnt do any blocking) -- regardless of the number of rows specified

bull DFSORTtrade APAR PQ68263 is a prerequisite for DB2reg Version 8 utilities

bull I14047 USE OF DFSORT BY DB2 UTILITIES

bull XES APAR OA03194 (PE) can cause DB2 to hang or performance degradation Do not apply this APAR The content of this document applies only to data sharing users

IBM Software Group | DB2 Information Management Software

DB2 Maintenancebull 1H2005

ndash PQ97261 - PREPARATION FOR WEB SERVICES PROVIDERndash PQ77702 - ADD NEW STORED PROCEDURE DSNAIMS TO ACCESS IMS

TRANSACTIONS AND COMMANDS THROUGH DB2 ndash PQ79716 - ADDING THE NEW FEATURE MQLISTENER TO DB2 V7 AND V8ndash PQ80526 - PRECONDITION FOR MQLISTENERndash PK01614 - UPDATE JCLIN PARAMETERS IN HDB8810J FOR DSNAIMS STORED

PROCEDURE ndash PQ98170 - PERMIT SPUFI AND DSNTEP2 TO SELECT UTF-16 DATA WHEN THE

CURRENT APPLICATION ENCODING SCHEME IS A SBCS CCSID ndash PQ95284 - NEW DB2 UNIVERSAL DRIVER RELEASE 25ndash PQ97156 - ADD NEW INITIALIZATION (INI) FILE KEYWORD TRACETIMESTAMPndash PK01404 - PRECOMPILER MODIFICATIONS FOR SERVICEABILITY OF DB2-

SUPPLIED APPLICATIONS ndash PQ98148 - COMPILER ERROR IBM1633I WHILE PROCESSING THE FETCH

STATEMENT AND SQLCODE504 WHILE PROCESSING CLOSE CUROSR STATEMENT

IBM Software Group | DB2 Information Management Software

DB2 Maintenancebull PK00615 - DB2 UNIVERSAL JDBC DRIVER RELEASE 25 SERVICE PRIMARILY TYPE-4 XA -4499 SAVEPOINT

ISSUES AND STMT CLOSE HANG bull PK01245 - ADDITIONAL RESTART MESSAGEbull PQ95205 - ENCRYPT AUTHID PASSWORD IN SYSIBMUSERNAMES TABLEbull PK01971 - ADD VERSION TO DSNREXX DBRMbull PQ97373 - ALLOW SPUFI USER TO CHANGE SPUFI PLAN NAMES ON DEFAULT PANELbull PQ97645 - ENCLAVE SUPPORT FOR IRLM BOOST IN DXR167E CASE FOR DDF DIST ENCLAVES MSGDXR167E

DELAY IN ASIDXXXX bull PQ95795 - NEW BUILT-IN FUNCTIONS ASCII() AND TIMESTAMPDIFF()bull PQ93857 - DCR DJ288 IMPLEMENTATIONbull PK03946 - OPTIONAL SUPPORT FOR UNION RESULT COLUMN NAME FOR DESCRIBE LIYANZbull PQ91509 - PRELIMINARY DDF EWLM SUPPORTbull PQ91914 - ALLOW LONG PACKAGE NAMES (UP TO 128 CHARACTERS) TO BE RECEIVED AT A DB2ZOS V8

SERVER bull PK00563 - SQL DEBUGGER V82 ON DB2 FOR ZOSbull PK05818 - DB2 RRS BACKOUT EXITS WILL BE PROCESSED IN THE APPROPRIATE ORDER TO FAVOR CANCELED

THREADSbull PK00579 - ALLOW SCALAR FULLSELECT ON RIGHT-HAND-SIDE OF ASSIGNMENT STATEMENT IN SQL

PROCEDURES bull PK06381 - EIB NEW FUNCTION MODE INDICATOR FOR DB2 ATTACHMENTSbull PK05146 - RAS - DIS THD SERVICE WAIT ENHANCEMENTSbull PK05211 - IRLM SUPPORT FOR DB2 APAR PK01502 - TIMEOUTbull PQ92749 - CHECK INDEX AVAILABILITY IMPROVEMENTbull PQ99205 - MISCELLANEOUS PRECOMPILER FIXES FOR CCSID ISSUESbull PK06018 - POOR QUERY PERFORMANCE WHEN A MATERIALIZED VIEW IS CHOSEN FOR THE INNER TABLE OF A

NESTED LOOP JOIN

IBM Software Group | DB2 Information Management Software

DB2 Maintenancebull PK00615 - DB2 UNIVERSAL JDBC DRIVER RELEASE 25 SERVICE PRIMARILY TYPE-4 XA -4499 SAVEPOINT

ISSUES AND STMT CLOSE HANG bull PK01245 - ADDITIONAL RESTART MESSAGEbull PQ95205 - ENCRYPT AUTHID PASSWORD IN SYSIBMUSERNAMES TABLEbull PK01971 - ADD VERSION TO DSNREXX DBRMbull PQ97373 - ALLOW SPUFI USER TO CHANGE SPUFI PLAN NAMES ON DEFAULT PANELbull PQ97645 - ENCLAVE SUPPORT FOR IRLM BOOST IN DXR167E CASE FOR DDF DIST ENCLAVES MSGDXR167E

DELAY IN ASIDXXXX bull PQ95795 - NEW BUILT-IN FUNCTIONS ASCII() AND TIMESTAMPDIFF()bull PQ93857 - DCR DJ288 IMPLEMENTATIONbull PK03946 - OPTIONAL SUPPORT FOR UNION RESULT COLUMN NAME FOR DESCRIBE LIYANZbull PQ91509 - PRELIMINARY DDF EWLM SUPPORTbull PQ91914 - ALLOW LONG PACKAGE NAMES (UP TO 128 CHARACTERS) TO BE RECEIVED AT A DB2ZOS V8

SERVER bull PK00563 - SQL DEBUGGER V82 ON DB2 FOR ZOSbull PK05818 - DB2 RRS BACKOUT EXITS WILL BE PROCESSED IN THE APPROPRIATE ORDER TO FAVOR CANCELED

THREADSbull PK00579 - ALLOW SCALAR FULLSELECT ON RIGHT-HAND-SIDE OF ASSIGNMENT STATEMENT IN SQL

PROCEDURES bull PK06381 - EIB NEW FUNCTION MODE INDICATOR FOR DB2 ATTACHMENTSbull PK05146 - RAS - DIS THD SERVICE WAIT ENHANCEMENTSbull PK05211 - IRLM SUPPORT FOR DB2 APAR PK01502 - TIMEOUTbull PQ92749 - CHECK INDEX AVAILABILITY IMPROVEMENTbull PQ99205 - MISCELLANEOUS PRECOMPILER FIXES FOR CCSID ISSUESbull PK06018 - POOR QUERY PERFORMANCE WHEN A MATERIALIZED VIEW IS CHOSEN FOR THE INNER TABLE OF A

NESTED LOOP JOIN

IBM Software Group | DB2 Information Management Software

DB2 Maintenancebull 2004 -- some may be V6 or V7

ndash PQ80772 - SUPPORT FOR THE LONG LONG VARIABLE TYPE IN EMBEDDED SQL STATEMENTS IN CC++ HOST LANGUAGE PROGRAMS

ndash PQ84976 - XPLINK SUPPORT FOR ODBC V8ndash PQ71775 - PERFORMANCE IMPROVEMENTS FOR DB2 CATALOG CONSISTENCY QUERIES (V6 V7)ndash PQ90432 - DSN1LOGP SERVICEABILITY ENHANCEMENT ndash PQ95328 - DSN1LOGP SERVICEABILITY ENHANCEMENTndash PQ91101 - RAS ENHANCEMENT TO IFC225ndash PQ86083 - ENHANCEMENT TO V8 DUMP FORMATTERndash PQ95332 - DSNDQJ00 DESCRIPTION OF DDF LOG RECORDS CONTAINING XIDndash PQ87848 - NEW FUNCTION IFCID173 WILL BE ADDED TO MONITOR DYNAMIC SQL STATEMENT THAT

EXCEEDED RLF ASUTIME LIMIT SQLCODE905 ndash PQ89174 - ALLOW ENABLE QUERY OPTIMIZATION CLAUSE IN REFERENTIAL-CONSTRAINT CLAUSE IN

ALTER TABLEndash PQ84421 - ADD DSNTIJP8 - V8 PREMIGRATION CHECKOUT JOB - TO V7ndash PQ90022 - ADD VE SAMPLE STORED PROC DSN8EXPndash PQ89409 - NEW CHANGES FOR DSNTIJMC AND DSNTIJSGndash PQ83834 - IRLM220 HIR2220 SERVICE ROLL-UP 5 MAINTENANCE SINCE PQ80788ndash PQ86904 - IRLM220 HIR2220 SERVICE ROLL-UP 6 MAINTENANCE SINCE PQ83834ndash PQ82063 - REPAIR LOB DELETE SERVICEABILITY ENHANCEMENT ndash PQ47759 - DB2 SERVICEABILITY ENHANCEMENT - DUMP FORMATTINGndash PQ82390 - ALLOW SKIP OF UNCOMMITTED INSERTS BY CS AND RS TRANSACTIONS ndash PQ86108 - LONG MESSAGE TOKEN SUPPORT FOR SPUFI AND DCLGENndash PQ88213 - ENHANCE DSNTEP2 TO IMPROVE PERFORMANCE ndash PQ91763 - DSNTIAUL UNLOAD INCORRECTLY DUE TO MISSING QLWARN DETECTION

IBM Software Group | DB2 Information Management Software

DB2 Maintenancebull PQ89018 - ISSUE SPUFI WARNING IF THE ISPF CCSID IS NOT THE SAME AS DB2S bull PQ88151 - DB2 CUSTOMIZATION CENTER UPDATES FOR PQ86108 CHANGESbull PQ90222 - DB2 CUSTOMIZATION CENTER UPDATES FOR PQ86159 CHANGESbull PQ88983 - ALLOW CANCEL ROLLBACK AFTER LOG DATA SET ACCESS ERRORDCR DJ286 bull PQ90936 - DISPLAY ARCHIVE COMMAND ENHANCEMENT - DJ296 bull PQ93548 - SCAN FOR PRIOR CHECKPOINT DURING RESTART DCR DJ303bull PQ94039 - PAGE PROTECT DB2 EARLY CODEbull PQ95159 - ARCHIVE LOG READ IO ERROR MESSAGEbull PQ87444 - MINIMIZE DDF DEPENDENCY ON SUPER_USER AUTHORITYbull PQ91009 - ENSURE DDF LOCATION NAME IS SPECIFIED DURING DB2 STARTUPbull PQ87786 - ACCUMULATED DEFECT FIXES AND ENHANCEMENTS FOR DB2 UNIVERSAL JDBC DRIVER

bull PQ93458 - NEW DB2 UNIVERSAL DRIVER RELEASE 2372bull PQ85700 - HANDSHAKING BETWEEN DB2 SQL COPROCESSOR AND COMPILERSbull PQ86907 - ENABLING PRINTING OF DSNH4760 AND DSNH4761 WARNINGINFO MSGS FOR NON-COBOL PROGRAM bull PQ90147 - SUPPORT GREATER THAN 245 SECONDARY AUTHORIZATION IDSbull PQ89070 - LOCK AVOIDANCE FOR SINGLETON SELECT WITH ISO(CS) AND CURRENTDATA(YES) bull PQ75974 - ACTIVATE CONTROL CENTER V82 OBJECT MAINTENANCE AUTOMATION AND DSN SUBCOMMANDS

BINDREBINDFREE FOR DB2 FOR OS390ZOS V7 bull PQ94548 - ADD GRANT ALL ON CREATED TEMPORARY TABLES IN DSNTIJCCbull PQ87298 - INSERTING UCS-2 DATA BOUND TO C DATA TYPE SQL_C_WCHAR RESULTS IN SQLSTATE 22001

SQLCODE -99999 bull PQ88582 - ODBC SUPPORT FOR 2MB SQL STATEMENT

IBM Software Group | DB2 Information Management Software

Service Stream Features (selected)

IBM Software Group | DB2 Information Management Software

Allow user to change SPUFI plan name

bull Problem SPUFI userrsquos terminal CCSID is different from the DB2 system EBCDIC CCSID (DSNHDECP SCCSID value)

bull Solution can now create copies of the SPUFI plan for each CCSID needed by users

bull SPUFI user can change plan name to the appropriate name for his CCSID

APAR PTF PTF Avail PUT

PQ97373 UK02448

(also V7)

20050511 F505

IBM Software Group | DB2 Information Management Software

ODBC support for 2 MB statement

bull When connecting to DB2 for zOS V8 NFM system maximum SQL statement length is 2 MB

ndash previously 32K

bull ODBC DBRMs will now precompile with CCSID(1047) instead of default CCSID

APAR PTF PTF Avail PUT

PQ88582 UQ91257 20040909 F409

IBM Software Group | DB2 Information Management Software

DB2 Coprocessor ldquolevelrdquo

bull DB2 Coprocessor ldquolevelrdquo corresponds to NEWFUN precompiler optionndash level 1 NEWFUN (NO)

ndash level 2 NEWFUN (YES)

ndash new message DSNH4760I indicates level

ndash new message DSNH4761I -- level 2 requested but compiler only supports level 1

APAR PTF PTF Avail PUT

PQ85700 COBOL

PQ86907 PLI

UQ86392

UQ87641

20040323

20040601

F403

F405

IBM Software Group | DB2 Information Management Software

CHECK INDEX enhancement

bull CHECK INDEX becomes implicitly SHRLEVEL REFERENCE

bull APAR for PQ96956 (DB2 Utilities Suite -- open) Online CHECK INDEX

ndash CHECK INDEX SHRLEVEL CHANGE

APAR PTF PTF Avail PUT

PQ92749

(DB2 base)

UK04683 20050708 1000

IBM Software Group | DB2 Information Management Software

Stalled restart detection

bull DB2 restart can be stalled eg for archive log tape mounts or HSM recalls

bull A DB2 timer task will now monitor recovery phase of restart

bull If the restart processor has been suspended more than 2 minutes issue new messages

DSNR055I csect RESTART SUSPENDED SINCE time

DSNR056I csect RESTART SUSPENDED ON IRLM REQUEST

DSNR057I csect RESOURCE INFORMATION DBID

DSNR058I csect ACCESSING ARCHIVE LOG data-set-name

APAR PTF PTF Avail PUT

PK01245 UK01653

(also V7)

20050406 F504

IBM Software Group | DB2 Information Management Software

Encrypt userid pw for DDF

bull Problem NEWAUTHID and PASSWORD are stored in the clear in SYSIBMUSERNAMES

bull New stored proc SYSPROCDSNLEUSR stores authid and password in encrypted form

bull Values are decrypted prior to sending to remote server

bull Requires DB2 V8 NFM and zOS Integrated Cryptographic Services Facility (ISCF)

bull wwwibmcomsupport ndash Flash 1208122

APAR PTF PTF Avail PUT

PQ95205 UK02094 20050420 F504

IBM Software Group | DB2 Information Management Software

Hung thread diagnosis

bull When a thread is hung it is often necessary to force a console dump to gather information

-DIS THD() SERVICE(WAIT)

will display threads suspended 2x IRLM timeout (minimum 60 sec) -- additional information if suspended for IRLM lock or DB2 latch contention

APAR PTF PTF Avail PUT

PQ83649 UQ87013

(also V7)

20040420 F404

IBM Software Group | DB2 Information Management Software

Storage monitoring

bull V7 amp V8 ICFID 225 adds real storage statisticsndash number of real frames (4K) in use

ndash number of auxilary slots (4K) in use

(conrsquot)

APAR PTF PTF Avail PUT

PQ91101 UQ92441

(also V7)

20040928 F409

IBM Software Group | DB2 Information Management Software

Preliminary DDF EWLM support

bull IBM Virtualization Engine Enterprise Workload Manager for zOS V110

bull Enterprise Workload Manager enables you to automatically monitor and manage multi-tiered distributed heterogeneous or homogeneous workloads -- extends WLM to other platforms

bull Available starting with zOS 16

bull This APAR allows DDF to act as a server to TCPIP connections to be monitored within an EWLM domain

bull Announcement letter 204-305

APAR PTF PTF Avail PUT

PQ91509 UK03835 20050617 1000

IBM Software Group | DB2 Information Management Software

Monitoring lsquoRLF limit exceededrsquo

bull Problem exceeding RLF ASUTIME for dynamic SQL gets SQLCODE -905 but little info

bull Solution new IFCID 173 to provide plan name collection package name authid time used user ASUTIME

APAR PTF PTF Avail PUT

PQ87848 UQ90756

(also V7)

20040803 F408

IBM Software Group | DB2 Information Management Software

New JDBC driver releases (conrsquot)

bull DB2 Universal JDBC Driver release 25ndash Type-2 control over accounting records at COMMIT or end of physical connection

ndash Plus 29 other maintenance items

APAR PTF PTF Avail PUT

PQ95284 UK00182

(also V7)

20050202 F502

IBM Software Group | DB2 Information Management Software

QMF multi-row FETCH INSERT

bull QMF V8 NFM with DB2 V8 NFM automatically transforms your queries to multi-row operations

APAR PTF PTF Avail PUT

PQ99482 UK06848 20050902 1000

IBM Software Group | DB2 Information Management Software

Performance Imperatives

bull If necessary reduce MAXKEEPD to reduce local DSC rely more on global DSC which is above 2GB

bull V8 PQ96772 205 to move dynamic statement cache control blocks above 2GB

bull PK01911 605 Increased cpu time in Index and Storage processing sometimes accompanied by high LC32 contention

bull PQ99608 205 Excessive log write iorsquos triggered by insert into table with identity column

bull Incorrect Runstats values

bull 1048707 PK01510 505 NPI cluster ratio

bull 1048707 PK03469 505 Non-uniform distribution stats

bull PK04107 Bidirectional indexability for unicode to ebcdic

bull PK05360 Hybrid join with multi-row Fetch

bull PK04076 505 Load default of No Sortkeys if only one index and sorted input

IBM Software Group | DB2 Information Management Software

IBM Software Group

copy 2004 IBM Corporation2 IBM Confidential

V7V8 PK09158 705 Dramatic speedup and elimination of non linear performance problem in deletes via SCT02 or SPT01 in Bind Replace or Free

ndash Resolved a half dozen performance PMRs recently raised

V8 PK01911 605 Fix general V8 performance degradation brought about by V8 PQ93318 1204

V8 Multi-row Fetch performance problems

ndash PK05360 opened 505 No hybrid join support

ndash PQ88009 504 disabled parallelism for the last group of the top level query block if there is no Groupby or Orderby

ndash PK10021 opened 805 query abend with host variable or special register

V8 PQ92072 805 to support implicit multi-row Insert by ODBC array input

Recent major performance-related apars

IBM Software Group | DB2 Information Management Software

Performance Imperatives ( conthellip)

bull V8 PK05644 Preformatting up to 2 cylinders at a time to minimize preformat time

bull V7 PQ86037 304 Insert at end option for member cluster tablespace (V7V8 PQ87381 More robust version coming in 2005)

ndash Avoid re-reading spacemap pages from the beginning before dataset extend by always searching forward for freespace when zero PCTFREE and FREEPAGE

ndash Can support steady and continuous high insert rate without rapidly increasing Getpage

ndash Especially useful for heavy insert without delete

IBM Software Group | DB2 Information Management Software

Insert CPU Usage

bull 1048707 Most affected by the number of indexesbull 1048707 DB2 Estimator recommended for more detailed analysisbull 1048707 Rule-of-Thumb Z990(2) cpu time per row inserted inbull microseconds (us) =bull [26 online transaction or 20 batch]bull + 11 for 1 index + 21 for each additional indexbull + 20to30 x pagesread x 13(30 additional for write)bull + 2 if class2 acctg (1)bull + 12 if DB2CICS without TS22 threadsafe option (1)bull - up to 10 if multi-row insert

bull (1) Can disappear if multi-row insertbull (2) Use cpu time multiplier from wwws390ibmcomlspr for other processor models

IBM Software Group | DB2 Information Management Software

Virtual Storage items

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

Java Universal Driver

bull Significant reengineering of Java support for DB2 Connect CAE and DB2 for OS390 and zOS client softwarendash Uses DRDA protocols for all client communication

ndash Eliminates DB2RA and net driver protocols

ndash Traditional DB2 client configuration (CCA) is optional

ndash Much better handling of different clientserver software levels

ndash Improved DB2 Connect consistencyperformance

ndash much higher percentage of common code

ndash fewer unique code paths for specific hardware configurations

ndash Several significant improvements to DRDA

ndash support for long SQL names and statements

ndash DRDA query block sizes can now be up to 2M bytes

ndash rely on server-supplied stored procedures for SQL error messagesdatabase metadata etc

ndash many internal performance improvements

IBM Software Group | DB2 Information Management Software

Java Universal Driver

bull Why use itndash Legacy Drivers functionally stabilized amp will be deprecated

ndash Single driver for all platforms

ndash Client Accounting String

ndash Performance monitor methods

ndash Better performance

IBM Software Group | DB2 Information Management Software

SQLJ usage is increasing

bull Static SQL performance for Java applicationsndash less code written by the application programmer

ndash resulting code is easier to maintain

ndash significant performance advantage over JDBC

ndash Static SQL authorization model

bull Provides Java with a stronger authorization modelndash Monitoringmanageability

ndash static SQL packages for accountingmonitoring

bull Static SQL locks in access path so that access path changes dont occur without a conscious choice

IBM Software Group | DB2 Information Management Software

JDBC vs SQLJ example

bull Retrieve a single row from DB2bull SQLJ

sql [con] SELECT ADDRESS INTO addr FROM EMP WHERE NAME=name

bull JDBCjavasqlPreparedStatement ps = conprepareStatement(SELECT ADDRESS FROM EMP WHERE NAME=)pssetString(1 name)javasqlResultSet names = psexecuteQuery()namesnext()addr = namesgetString(1)namesclose()

bull -- portable across platforms and DBMSsbull -- compilebind time schema checkingbull -- static SQL performance and authorizationbull -- concisebull -- strong typing

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

DB2 Futures

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

DB2 Redbooks - 2Q 2004 httpwwwibmcomredbooks

bull Business Performance Management Meets Business Intelligence (SG24-6340)

bull The Business Value of DB2 UDB for zOS (SG24-6763)bull Data Mart Consolidation Getting Control of Your Enterprise

Information(SG24-6653)bull DB2 UDB for zOS Version 8 Performance Topics (SG24-6465)bull Microsoft SQL Server to IBM DB2 UDB Conversion Guide (SG24-

6672)bull DB2 for zOS and WebSphere The Perfect Couple (SG24-6319)bull Copying the DB2 UDB for zOS catalog using the COPY utility Copying the DB2 UDB for zOS catalog using the COPY utility

(TIPS0587)(TIPS0587)bull Systems Programmers Guide to Resource Recovery Services (RRS) Systems Programmers Guide to Resource Recovery Services (RRS)

(SG24-6980)(SG24-6980)

IBM Software Group | DB2 Information Management Software

Education

bull DB2 Version 8 Migration Workshopsndash Let us know if you need one

bull DB2 Version 8 Transition classndash CG381 amp CG382

IBM Software Group | DB2 Information Management Software

Education ( Design)

IBM Software Group | DB2 Information Management Software

Education (Development)

IBM Software Group | DB2 Information Management Software

Education ( Administration)

IBM Software Group | DB2 Information Management Software

Education (Troubleshooting)

IBM Software Group | DB2 Information Management Software

Intelligent Visual Explain

bull Where to obtain the codebull httpwwwibmcomsoftwaredatadb2zososcvebull Fixpack 7 available nowbull Key prerequisites

ndash Windows NT Version 40 Windows 2000 or Windows XPndash 150 MB of hard disk spacendash 256 MB of RAMndash Pentium III equivalent or abovendash Either DB2 ConnecttradePersonal Edition Version 7 (or later) or DB2

Client Application Enablertrade(CAE) with a DB2 Connect Enterprise Edition Version 7 (or later) gateway installed

ndash A TCPIP connection to a DB2 for zOS Version 7 or Version 8 host system

ndash A java-enabled browser to view HTML files

IBM Software Group | DB2 Information Management Software

Reference URLs

httpwwwibmcomsoftwaredatadb2zosindexhtmlDB2 for zOS

httpwww-306ibmcomsoftwaredatadb2zossupporthtmlDB2 for zOS technical support page

httpwww-306ibmcomsoftwaredatadb2zososcveindexhtmlDB2 VE download

httpwwwunicodeorg Unicode Home pagehttpwwwunicodeorgunicodestandardprincipleshtmlThe Unicode Standard amp Basic Principlesftpftpsoftwareibmcomsoftwaredatadb2zosdppdpdfDB2 for zOS Distribute Performance analysisftpftpsoftwareibmcomsoftwaredb2storedproceduredb2zos390techdocsH01PDFDB2-Java Performance and Tuning

IBM Software Group | DB2 Information Management Software

Reference URLs

www-106ibmcomdeveloperworksdb2librarytecharticle0203shibamiya0203shibamiya2htmlInsert vs Load Performance White paper

IBM Software Group | DB2 Information Management Software

Acknowledgements to My Friends

Mark Wilson ndash DB2 Product Introduction CenterAkira Shibamiya - SVLCurt Cotner ndash SVLJohn Campbell ndash SVL

Page 5: Slide 1 - Parallels Plesk Control Panel 8.6.0

IBM Software Group | DB2 Information Management Software

V8 Maintenance

bull Please stay more current on maintenance bull History for my customers own migrations have

demonstrated that if you arendash Backlevel ndash you have problemsfail or open more PMRs

ndash Currentndash you are successful with fewer PMRs and problems

IBM Software Group | DB2 Information Management Software

How do I find which PTFs are included in an RSU or PUT level

bull To find which PTFs are included in an RSU or PUT level complete the following steps ndash Click the following link ftpserviceboulderibmcoms390assigns ndash Open the file that matches the RSU or PUT level that you want to check

and see what PTFs are included in the RSU or PUTndash Alternatively you can find the RSU or PUT level from the DB2reg

Universal Database for zOSreg support page by completing the following steps

bull Go to the main DB2 for zOS support page httpwwwibmcomsoftwaredatadb2zossupporthtml

bull On left side under the topic Related services click IBM Consolidated Service Test

bull In the menu located on the left click Getting an RSU bull Click RSUyymmtxt bull Find the file that matches the RSU or PUT level that you want to check bull Open it and see the PTFs that are included in the RSU or PUT

IBM Software Group | DB2 Information Management Software

V8 Maintenance

bull PK11355- FETCH FIRST n ROWS impacts IP traffic ndash Fixes an internal code path problem in DB2 where it always followed the branch

for a one row answer set (thus didnt do any blocking) -- regardless of the number of rows specified

bull DFSORTtrade APAR PQ68263 is a prerequisite for DB2reg Version 8 utilities

bull I14047 USE OF DFSORT BY DB2 UTILITIES

bull XES APAR OA03194 (PE) can cause DB2 to hang or performance degradation Do not apply this APAR The content of this document applies only to data sharing users

IBM Software Group | DB2 Information Management Software

DB2 Maintenancebull 1H2005

ndash PQ97261 - PREPARATION FOR WEB SERVICES PROVIDERndash PQ77702 - ADD NEW STORED PROCEDURE DSNAIMS TO ACCESS IMS

TRANSACTIONS AND COMMANDS THROUGH DB2 ndash PQ79716 - ADDING THE NEW FEATURE MQLISTENER TO DB2 V7 AND V8ndash PQ80526 - PRECONDITION FOR MQLISTENERndash PK01614 - UPDATE JCLIN PARAMETERS IN HDB8810J FOR DSNAIMS STORED

PROCEDURE ndash PQ98170 - PERMIT SPUFI AND DSNTEP2 TO SELECT UTF-16 DATA WHEN THE

CURRENT APPLICATION ENCODING SCHEME IS A SBCS CCSID ndash PQ95284 - NEW DB2 UNIVERSAL DRIVER RELEASE 25ndash PQ97156 - ADD NEW INITIALIZATION (INI) FILE KEYWORD TRACETIMESTAMPndash PK01404 - PRECOMPILER MODIFICATIONS FOR SERVICEABILITY OF DB2-

SUPPLIED APPLICATIONS ndash PQ98148 - COMPILER ERROR IBM1633I WHILE PROCESSING THE FETCH

STATEMENT AND SQLCODE504 WHILE PROCESSING CLOSE CUROSR STATEMENT

IBM Software Group | DB2 Information Management Software

DB2 Maintenancebull PK00615 - DB2 UNIVERSAL JDBC DRIVER RELEASE 25 SERVICE PRIMARILY TYPE-4 XA -4499 SAVEPOINT

ISSUES AND STMT CLOSE HANG bull PK01245 - ADDITIONAL RESTART MESSAGEbull PQ95205 - ENCRYPT AUTHID PASSWORD IN SYSIBMUSERNAMES TABLEbull PK01971 - ADD VERSION TO DSNREXX DBRMbull PQ97373 - ALLOW SPUFI USER TO CHANGE SPUFI PLAN NAMES ON DEFAULT PANELbull PQ97645 - ENCLAVE SUPPORT FOR IRLM BOOST IN DXR167E CASE FOR DDF DIST ENCLAVES MSGDXR167E

DELAY IN ASIDXXXX bull PQ95795 - NEW BUILT-IN FUNCTIONS ASCII() AND TIMESTAMPDIFF()bull PQ93857 - DCR DJ288 IMPLEMENTATIONbull PK03946 - OPTIONAL SUPPORT FOR UNION RESULT COLUMN NAME FOR DESCRIBE LIYANZbull PQ91509 - PRELIMINARY DDF EWLM SUPPORTbull PQ91914 - ALLOW LONG PACKAGE NAMES (UP TO 128 CHARACTERS) TO BE RECEIVED AT A DB2ZOS V8

SERVER bull PK00563 - SQL DEBUGGER V82 ON DB2 FOR ZOSbull PK05818 - DB2 RRS BACKOUT EXITS WILL BE PROCESSED IN THE APPROPRIATE ORDER TO FAVOR CANCELED

THREADSbull PK00579 - ALLOW SCALAR FULLSELECT ON RIGHT-HAND-SIDE OF ASSIGNMENT STATEMENT IN SQL

PROCEDURES bull PK06381 - EIB NEW FUNCTION MODE INDICATOR FOR DB2 ATTACHMENTSbull PK05146 - RAS - DIS THD SERVICE WAIT ENHANCEMENTSbull PK05211 - IRLM SUPPORT FOR DB2 APAR PK01502 - TIMEOUTbull PQ92749 - CHECK INDEX AVAILABILITY IMPROVEMENTbull PQ99205 - MISCELLANEOUS PRECOMPILER FIXES FOR CCSID ISSUESbull PK06018 - POOR QUERY PERFORMANCE WHEN A MATERIALIZED VIEW IS CHOSEN FOR THE INNER TABLE OF A

NESTED LOOP JOIN

IBM Software Group | DB2 Information Management Software

DB2 Maintenancebull PK00615 - DB2 UNIVERSAL JDBC DRIVER RELEASE 25 SERVICE PRIMARILY TYPE-4 XA -4499 SAVEPOINT

ISSUES AND STMT CLOSE HANG bull PK01245 - ADDITIONAL RESTART MESSAGEbull PQ95205 - ENCRYPT AUTHID PASSWORD IN SYSIBMUSERNAMES TABLEbull PK01971 - ADD VERSION TO DSNREXX DBRMbull PQ97373 - ALLOW SPUFI USER TO CHANGE SPUFI PLAN NAMES ON DEFAULT PANELbull PQ97645 - ENCLAVE SUPPORT FOR IRLM BOOST IN DXR167E CASE FOR DDF DIST ENCLAVES MSGDXR167E

DELAY IN ASIDXXXX bull PQ95795 - NEW BUILT-IN FUNCTIONS ASCII() AND TIMESTAMPDIFF()bull PQ93857 - DCR DJ288 IMPLEMENTATIONbull PK03946 - OPTIONAL SUPPORT FOR UNION RESULT COLUMN NAME FOR DESCRIBE LIYANZbull PQ91509 - PRELIMINARY DDF EWLM SUPPORTbull PQ91914 - ALLOW LONG PACKAGE NAMES (UP TO 128 CHARACTERS) TO BE RECEIVED AT A DB2ZOS V8

SERVER bull PK00563 - SQL DEBUGGER V82 ON DB2 FOR ZOSbull PK05818 - DB2 RRS BACKOUT EXITS WILL BE PROCESSED IN THE APPROPRIATE ORDER TO FAVOR CANCELED

THREADSbull PK00579 - ALLOW SCALAR FULLSELECT ON RIGHT-HAND-SIDE OF ASSIGNMENT STATEMENT IN SQL

PROCEDURES bull PK06381 - EIB NEW FUNCTION MODE INDICATOR FOR DB2 ATTACHMENTSbull PK05146 - RAS - DIS THD SERVICE WAIT ENHANCEMENTSbull PK05211 - IRLM SUPPORT FOR DB2 APAR PK01502 - TIMEOUTbull PQ92749 - CHECK INDEX AVAILABILITY IMPROVEMENTbull PQ99205 - MISCELLANEOUS PRECOMPILER FIXES FOR CCSID ISSUESbull PK06018 - POOR QUERY PERFORMANCE WHEN A MATERIALIZED VIEW IS CHOSEN FOR THE INNER TABLE OF A

NESTED LOOP JOIN

IBM Software Group | DB2 Information Management Software

DB2 Maintenancebull 2004 -- some may be V6 or V7

ndash PQ80772 - SUPPORT FOR THE LONG LONG VARIABLE TYPE IN EMBEDDED SQL STATEMENTS IN CC++ HOST LANGUAGE PROGRAMS

ndash PQ84976 - XPLINK SUPPORT FOR ODBC V8ndash PQ71775 - PERFORMANCE IMPROVEMENTS FOR DB2 CATALOG CONSISTENCY QUERIES (V6 V7)ndash PQ90432 - DSN1LOGP SERVICEABILITY ENHANCEMENT ndash PQ95328 - DSN1LOGP SERVICEABILITY ENHANCEMENTndash PQ91101 - RAS ENHANCEMENT TO IFC225ndash PQ86083 - ENHANCEMENT TO V8 DUMP FORMATTERndash PQ95332 - DSNDQJ00 DESCRIPTION OF DDF LOG RECORDS CONTAINING XIDndash PQ87848 - NEW FUNCTION IFCID173 WILL BE ADDED TO MONITOR DYNAMIC SQL STATEMENT THAT

EXCEEDED RLF ASUTIME LIMIT SQLCODE905 ndash PQ89174 - ALLOW ENABLE QUERY OPTIMIZATION CLAUSE IN REFERENTIAL-CONSTRAINT CLAUSE IN

ALTER TABLEndash PQ84421 - ADD DSNTIJP8 - V8 PREMIGRATION CHECKOUT JOB - TO V7ndash PQ90022 - ADD VE SAMPLE STORED PROC DSN8EXPndash PQ89409 - NEW CHANGES FOR DSNTIJMC AND DSNTIJSGndash PQ83834 - IRLM220 HIR2220 SERVICE ROLL-UP 5 MAINTENANCE SINCE PQ80788ndash PQ86904 - IRLM220 HIR2220 SERVICE ROLL-UP 6 MAINTENANCE SINCE PQ83834ndash PQ82063 - REPAIR LOB DELETE SERVICEABILITY ENHANCEMENT ndash PQ47759 - DB2 SERVICEABILITY ENHANCEMENT - DUMP FORMATTINGndash PQ82390 - ALLOW SKIP OF UNCOMMITTED INSERTS BY CS AND RS TRANSACTIONS ndash PQ86108 - LONG MESSAGE TOKEN SUPPORT FOR SPUFI AND DCLGENndash PQ88213 - ENHANCE DSNTEP2 TO IMPROVE PERFORMANCE ndash PQ91763 - DSNTIAUL UNLOAD INCORRECTLY DUE TO MISSING QLWARN DETECTION

IBM Software Group | DB2 Information Management Software

DB2 Maintenancebull PQ89018 - ISSUE SPUFI WARNING IF THE ISPF CCSID IS NOT THE SAME AS DB2S bull PQ88151 - DB2 CUSTOMIZATION CENTER UPDATES FOR PQ86108 CHANGESbull PQ90222 - DB2 CUSTOMIZATION CENTER UPDATES FOR PQ86159 CHANGESbull PQ88983 - ALLOW CANCEL ROLLBACK AFTER LOG DATA SET ACCESS ERRORDCR DJ286 bull PQ90936 - DISPLAY ARCHIVE COMMAND ENHANCEMENT - DJ296 bull PQ93548 - SCAN FOR PRIOR CHECKPOINT DURING RESTART DCR DJ303bull PQ94039 - PAGE PROTECT DB2 EARLY CODEbull PQ95159 - ARCHIVE LOG READ IO ERROR MESSAGEbull PQ87444 - MINIMIZE DDF DEPENDENCY ON SUPER_USER AUTHORITYbull PQ91009 - ENSURE DDF LOCATION NAME IS SPECIFIED DURING DB2 STARTUPbull PQ87786 - ACCUMULATED DEFECT FIXES AND ENHANCEMENTS FOR DB2 UNIVERSAL JDBC DRIVER

bull PQ93458 - NEW DB2 UNIVERSAL DRIVER RELEASE 2372bull PQ85700 - HANDSHAKING BETWEEN DB2 SQL COPROCESSOR AND COMPILERSbull PQ86907 - ENABLING PRINTING OF DSNH4760 AND DSNH4761 WARNINGINFO MSGS FOR NON-COBOL PROGRAM bull PQ90147 - SUPPORT GREATER THAN 245 SECONDARY AUTHORIZATION IDSbull PQ89070 - LOCK AVOIDANCE FOR SINGLETON SELECT WITH ISO(CS) AND CURRENTDATA(YES) bull PQ75974 - ACTIVATE CONTROL CENTER V82 OBJECT MAINTENANCE AUTOMATION AND DSN SUBCOMMANDS

BINDREBINDFREE FOR DB2 FOR OS390ZOS V7 bull PQ94548 - ADD GRANT ALL ON CREATED TEMPORARY TABLES IN DSNTIJCCbull PQ87298 - INSERTING UCS-2 DATA BOUND TO C DATA TYPE SQL_C_WCHAR RESULTS IN SQLSTATE 22001

SQLCODE -99999 bull PQ88582 - ODBC SUPPORT FOR 2MB SQL STATEMENT

IBM Software Group | DB2 Information Management Software

Service Stream Features (selected)

IBM Software Group | DB2 Information Management Software

Allow user to change SPUFI plan name

bull Problem SPUFI userrsquos terminal CCSID is different from the DB2 system EBCDIC CCSID (DSNHDECP SCCSID value)

bull Solution can now create copies of the SPUFI plan for each CCSID needed by users

bull SPUFI user can change plan name to the appropriate name for his CCSID

APAR PTF PTF Avail PUT

PQ97373 UK02448

(also V7)

20050511 F505

IBM Software Group | DB2 Information Management Software

ODBC support for 2 MB statement

bull When connecting to DB2 for zOS V8 NFM system maximum SQL statement length is 2 MB

ndash previously 32K

bull ODBC DBRMs will now precompile with CCSID(1047) instead of default CCSID

APAR PTF PTF Avail PUT

PQ88582 UQ91257 20040909 F409

IBM Software Group | DB2 Information Management Software

DB2 Coprocessor ldquolevelrdquo

bull DB2 Coprocessor ldquolevelrdquo corresponds to NEWFUN precompiler optionndash level 1 NEWFUN (NO)

ndash level 2 NEWFUN (YES)

ndash new message DSNH4760I indicates level

ndash new message DSNH4761I -- level 2 requested but compiler only supports level 1

APAR PTF PTF Avail PUT

PQ85700 COBOL

PQ86907 PLI

UQ86392

UQ87641

20040323

20040601

F403

F405

IBM Software Group | DB2 Information Management Software

CHECK INDEX enhancement

bull CHECK INDEX becomes implicitly SHRLEVEL REFERENCE

bull APAR for PQ96956 (DB2 Utilities Suite -- open) Online CHECK INDEX

ndash CHECK INDEX SHRLEVEL CHANGE

APAR PTF PTF Avail PUT

PQ92749

(DB2 base)

UK04683 20050708 1000

IBM Software Group | DB2 Information Management Software

Stalled restart detection

bull DB2 restart can be stalled eg for archive log tape mounts or HSM recalls

bull A DB2 timer task will now monitor recovery phase of restart

bull If the restart processor has been suspended more than 2 minutes issue new messages

DSNR055I csect RESTART SUSPENDED SINCE time

DSNR056I csect RESTART SUSPENDED ON IRLM REQUEST

DSNR057I csect RESOURCE INFORMATION DBID

DSNR058I csect ACCESSING ARCHIVE LOG data-set-name

APAR PTF PTF Avail PUT

PK01245 UK01653

(also V7)

20050406 F504

IBM Software Group | DB2 Information Management Software

Encrypt userid pw for DDF

bull Problem NEWAUTHID and PASSWORD are stored in the clear in SYSIBMUSERNAMES

bull New stored proc SYSPROCDSNLEUSR stores authid and password in encrypted form

bull Values are decrypted prior to sending to remote server

bull Requires DB2 V8 NFM and zOS Integrated Cryptographic Services Facility (ISCF)

bull wwwibmcomsupport ndash Flash 1208122

APAR PTF PTF Avail PUT

PQ95205 UK02094 20050420 F504

IBM Software Group | DB2 Information Management Software

Hung thread diagnosis

bull When a thread is hung it is often necessary to force a console dump to gather information

-DIS THD() SERVICE(WAIT)

will display threads suspended 2x IRLM timeout (minimum 60 sec) -- additional information if suspended for IRLM lock or DB2 latch contention

APAR PTF PTF Avail PUT

PQ83649 UQ87013

(also V7)

20040420 F404

IBM Software Group | DB2 Information Management Software

Storage monitoring

bull V7 amp V8 ICFID 225 adds real storage statisticsndash number of real frames (4K) in use

ndash number of auxilary slots (4K) in use

(conrsquot)

APAR PTF PTF Avail PUT

PQ91101 UQ92441

(also V7)

20040928 F409

IBM Software Group | DB2 Information Management Software

Preliminary DDF EWLM support

bull IBM Virtualization Engine Enterprise Workload Manager for zOS V110

bull Enterprise Workload Manager enables you to automatically monitor and manage multi-tiered distributed heterogeneous or homogeneous workloads -- extends WLM to other platforms

bull Available starting with zOS 16

bull This APAR allows DDF to act as a server to TCPIP connections to be monitored within an EWLM domain

bull Announcement letter 204-305

APAR PTF PTF Avail PUT

PQ91509 UK03835 20050617 1000

IBM Software Group | DB2 Information Management Software

Monitoring lsquoRLF limit exceededrsquo

bull Problem exceeding RLF ASUTIME for dynamic SQL gets SQLCODE -905 but little info

bull Solution new IFCID 173 to provide plan name collection package name authid time used user ASUTIME

APAR PTF PTF Avail PUT

PQ87848 UQ90756

(also V7)

20040803 F408

IBM Software Group | DB2 Information Management Software

New JDBC driver releases (conrsquot)

bull DB2 Universal JDBC Driver release 25ndash Type-2 control over accounting records at COMMIT or end of physical connection

ndash Plus 29 other maintenance items

APAR PTF PTF Avail PUT

PQ95284 UK00182

(also V7)

20050202 F502

IBM Software Group | DB2 Information Management Software

QMF multi-row FETCH INSERT

bull QMF V8 NFM with DB2 V8 NFM automatically transforms your queries to multi-row operations

APAR PTF PTF Avail PUT

PQ99482 UK06848 20050902 1000

IBM Software Group | DB2 Information Management Software

Performance Imperatives

bull If necessary reduce MAXKEEPD to reduce local DSC rely more on global DSC which is above 2GB

bull V8 PQ96772 205 to move dynamic statement cache control blocks above 2GB

bull PK01911 605 Increased cpu time in Index and Storage processing sometimes accompanied by high LC32 contention

bull PQ99608 205 Excessive log write iorsquos triggered by insert into table with identity column

bull Incorrect Runstats values

bull 1048707 PK01510 505 NPI cluster ratio

bull 1048707 PK03469 505 Non-uniform distribution stats

bull PK04107 Bidirectional indexability for unicode to ebcdic

bull PK05360 Hybrid join with multi-row Fetch

bull PK04076 505 Load default of No Sortkeys if only one index and sorted input

IBM Software Group | DB2 Information Management Software

IBM Software Group

copy 2004 IBM Corporation2 IBM Confidential

V7V8 PK09158 705 Dramatic speedup and elimination of non linear performance problem in deletes via SCT02 or SPT01 in Bind Replace or Free

ndash Resolved a half dozen performance PMRs recently raised

V8 PK01911 605 Fix general V8 performance degradation brought about by V8 PQ93318 1204

V8 Multi-row Fetch performance problems

ndash PK05360 opened 505 No hybrid join support

ndash PQ88009 504 disabled parallelism for the last group of the top level query block if there is no Groupby or Orderby

ndash PK10021 opened 805 query abend with host variable or special register

V8 PQ92072 805 to support implicit multi-row Insert by ODBC array input

Recent major performance-related apars

IBM Software Group | DB2 Information Management Software

Performance Imperatives ( conthellip)

bull V8 PK05644 Preformatting up to 2 cylinders at a time to minimize preformat time

bull V7 PQ86037 304 Insert at end option for member cluster tablespace (V7V8 PQ87381 More robust version coming in 2005)

ndash Avoid re-reading spacemap pages from the beginning before dataset extend by always searching forward for freespace when zero PCTFREE and FREEPAGE

ndash Can support steady and continuous high insert rate without rapidly increasing Getpage

ndash Especially useful for heavy insert without delete

IBM Software Group | DB2 Information Management Software

Insert CPU Usage

bull 1048707 Most affected by the number of indexesbull 1048707 DB2 Estimator recommended for more detailed analysisbull 1048707 Rule-of-Thumb Z990(2) cpu time per row inserted inbull microseconds (us) =bull [26 online transaction or 20 batch]bull + 11 for 1 index + 21 for each additional indexbull + 20to30 x pagesread x 13(30 additional for write)bull + 2 if class2 acctg (1)bull + 12 if DB2CICS without TS22 threadsafe option (1)bull - up to 10 if multi-row insert

bull (1) Can disappear if multi-row insertbull (2) Use cpu time multiplier from wwws390ibmcomlspr for other processor models

IBM Software Group | DB2 Information Management Software

Virtual Storage items

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

Java Universal Driver

bull Significant reengineering of Java support for DB2 Connect CAE and DB2 for OS390 and zOS client softwarendash Uses DRDA protocols for all client communication

ndash Eliminates DB2RA and net driver protocols

ndash Traditional DB2 client configuration (CCA) is optional

ndash Much better handling of different clientserver software levels

ndash Improved DB2 Connect consistencyperformance

ndash much higher percentage of common code

ndash fewer unique code paths for specific hardware configurations

ndash Several significant improvements to DRDA

ndash support for long SQL names and statements

ndash DRDA query block sizes can now be up to 2M bytes

ndash rely on server-supplied stored procedures for SQL error messagesdatabase metadata etc

ndash many internal performance improvements

IBM Software Group | DB2 Information Management Software

Java Universal Driver

bull Why use itndash Legacy Drivers functionally stabilized amp will be deprecated

ndash Single driver for all platforms

ndash Client Accounting String

ndash Performance monitor methods

ndash Better performance

IBM Software Group | DB2 Information Management Software

SQLJ usage is increasing

bull Static SQL performance for Java applicationsndash less code written by the application programmer

ndash resulting code is easier to maintain

ndash significant performance advantage over JDBC

ndash Static SQL authorization model

bull Provides Java with a stronger authorization modelndash Monitoringmanageability

ndash static SQL packages for accountingmonitoring

bull Static SQL locks in access path so that access path changes dont occur without a conscious choice

IBM Software Group | DB2 Information Management Software

JDBC vs SQLJ example

bull Retrieve a single row from DB2bull SQLJ

sql [con] SELECT ADDRESS INTO addr FROM EMP WHERE NAME=name

bull JDBCjavasqlPreparedStatement ps = conprepareStatement(SELECT ADDRESS FROM EMP WHERE NAME=)pssetString(1 name)javasqlResultSet names = psexecuteQuery()namesnext()addr = namesgetString(1)namesclose()

bull -- portable across platforms and DBMSsbull -- compilebind time schema checkingbull -- static SQL performance and authorizationbull -- concisebull -- strong typing

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

DB2 Futures

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

DB2 Redbooks - 2Q 2004 httpwwwibmcomredbooks

bull Business Performance Management Meets Business Intelligence (SG24-6340)

bull The Business Value of DB2 UDB for zOS (SG24-6763)bull Data Mart Consolidation Getting Control of Your Enterprise

Information(SG24-6653)bull DB2 UDB for zOS Version 8 Performance Topics (SG24-6465)bull Microsoft SQL Server to IBM DB2 UDB Conversion Guide (SG24-

6672)bull DB2 for zOS and WebSphere The Perfect Couple (SG24-6319)bull Copying the DB2 UDB for zOS catalog using the COPY utility Copying the DB2 UDB for zOS catalog using the COPY utility

(TIPS0587)(TIPS0587)bull Systems Programmers Guide to Resource Recovery Services (RRS) Systems Programmers Guide to Resource Recovery Services (RRS)

(SG24-6980)(SG24-6980)

IBM Software Group | DB2 Information Management Software

Education

bull DB2 Version 8 Migration Workshopsndash Let us know if you need one

bull DB2 Version 8 Transition classndash CG381 amp CG382

IBM Software Group | DB2 Information Management Software

Education ( Design)

IBM Software Group | DB2 Information Management Software

Education (Development)

IBM Software Group | DB2 Information Management Software

Education ( Administration)

IBM Software Group | DB2 Information Management Software

Education (Troubleshooting)

IBM Software Group | DB2 Information Management Software

Intelligent Visual Explain

bull Where to obtain the codebull httpwwwibmcomsoftwaredatadb2zososcvebull Fixpack 7 available nowbull Key prerequisites

ndash Windows NT Version 40 Windows 2000 or Windows XPndash 150 MB of hard disk spacendash 256 MB of RAMndash Pentium III equivalent or abovendash Either DB2 ConnecttradePersonal Edition Version 7 (or later) or DB2

Client Application Enablertrade(CAE) with a DB2 Connect Enterprise Edition Version 7 (or later) gateway installed

ndash A TCPIP connection to a DB2 for zOS Version 7 or Version 8 host system

ndash A java-enabled browser to view HTML files

IBM Software Group | DB2 Information Management Software

Reference URLs

httpwwwibmcomsoftwaredatadb2zosindexhtmlDB2 for zOS

httpwww-306ibmcomsoftwaredatadb2zossupporthtmlDB2 for zOS technical support page

httpwww-306ibmcomsoftwaredatadb2zososcveindexhtmlDB2 VE download

httpwwwunicodeorg Unicode Home pagehttpwwwunicodeorgunicodestandardprincipleshtmlThe Unicode Standard amp Basic Principlesftpftpsoftwareibmcomsoftwaredatadb2zosdppdpdfDB2 for zOS Distribute Performance analysisftpftpsoftwareibmcomsoftwaredb2storedproceduredb2zos390techdocsH01PDFDB2-Java Performance and Tuning

IBM Software Group | DB2 Information Management Software

Reference URLs

www-106ibmcomdeveloperworksdb2librarytecharticle0203shibamiya0203shibamiya2htmlInsert vs Load Performance White paper

IBM Software Group | DB2 Information Management Software

Acknowledgements to My Friends

Mark Wilson ndash DB2 Product Introduction CenterAkira Shibamiya - SVLCurt Cotner ndash SVLJohn Campbell ndash SVL

Page 6: Slide 1 - Parallels Plesk Control Panel 8.6.0

IBM Software Group | DB2 Information Management Software

How do I find which PTFs are included in an RSU or PUT level

bull To find which PTFs are included in an RSU or PUT level complete the following steps ndash Click the following link ftpserviceboulderibmcoms390assigns ndash Open the file that matches the RSU or PUT level that you want to check

and see what PTFs are included in the RSU or PUTndash Alternatively you can find the RSU or PUT level from the DB2reg

Universal Database for zOSreg support page by completing the following steps

bull Go to the main DB2 for zOS support page httpwwwibmcomsoftwaredatadb2zossupporthtml

bull On left side under the topic Related services click IBM Consolidated Service Test

bull In the menu located on the left click Getting an RSU bull Click RSUyymmtxt bull Find the file that matches the RSU or PUT level that you want to check bull Open it and see the PTFs that are included in the RSU or PUT

IBM Software Group | DB2 Information Management Software

V8 Maintenance

bull PK11355- FETCH FIRST n ROWS impacts IP traffic ndash Fixes an internal code path problem in DB2 where it always followed the branch

for a one row answer set (thus didnt do any blocking) -- regardless of the number of rows specified

bull DFSORTtrade APAR PQ68263 is a prerequisite for DB2reg Version 8 utilities

bull I14047 USE OF DFSORT BY DB2 UTILITIES

bull XES APAR OA03194 (PE) can cause DB2 to hang or performance degradation Do not apply this APAR The content of this document applies only to data sharing users

IBM Software Group | DB2 Information Management Software

DB2 Maintenancebull 1H2005

ndash PQ97261 - PREPARATION FOR WEB SERVICES PROVIDERndash PQ77702 - ADD NEW STORED PROCEDURE DSNAIMS TO ACCESS IMS

TRANSACTIONS AND COMMANDS THROUGH DB2 ndash PQ79716 - ADDING THE NEW FEATURE MQLISTENER TO DB2 V7 AND V8ndash PQ80526 - PRECONDITION FOR MQLISTENERndash PK01614 - UPDATE JCLIN PARAMETERS IN HDB8810J FOR DSNAIMS STORED

PROCEDURE ndash PQ98170 - PERMIT SPUFI AND DSNTEP2 TO SELECT UTF-16 DATA WHEN THE

CURRENT APPLICATION ENCODING SCHEME IS A SBCS CCSID ndash PQ95284 - NEW DB2 UNIVERSAL DRIVER RELEASE 25ndash PQ97156 - ADD NEW INITIALIZATION (INI) FILE KEYWORD TRACETIMESTAMPndash PK01404 - PRECOMPILER MODIFICATIONS FOR SERVICEABILITY OF DB2-

SUPPLIED APPLICATIONS ndash PQ98148 - COMPILER ERROR IBM1633I WHILE PROCESSING THE FETCH

STATEMENT AND SQLCODE504 WHILE PROCESSING CLOSE CUROSR STATEMENT

IBM Software Group | DB2 Information Management Software

DB2 Maintenancebull PK00615 - DB2 UNIVERSAL JDBC DRIVER RELEASE 25 SERVICE PRIMARILY TYPE-4 XA -4499 SAVEPOINT

ISSUES AND STMT CLOSE HANG bull PK01245 - ADDITIONAL RESTART MESSAGEbull PQ95205 - ENCRYPT AUTHID PASSWORD IN SYSIBMUSERNAMES TABLEbull PK01971 - ADD VERSION TO DSNREXX DBRMbull PQ97373 - ALLOW SPUFI USER TO CHANGE SPUFI PLAN NAMES ON DEFAULT PANELbull PQ97645 - ENCLAVE SUPPORT FOR IRLM BOOST IN DXR167E CASE FOR DDF DIST ENCLAVES MSGDXR167E

DELAY IN ASIDXXXX bull PQ95795 - NEW BUILT-IN FUNCTIONS ASCII() AND TIMESTAMPDIFF()bull PQ93857 - DCR DJ288 IMPLEMENTATIONbull PK03946 - OPTIONAL SUPPORT FOR UNION RESULT COLUMN NAME FOR DESCRIBE LIYANZbull PQ91509 - PRELIMINARY DDF EWLM SUPPORTbull PQ91914 - ALLOW LONG PACKAGE NAMES (UP TO 128 CHARACTERS) TO BE RECEIVED AT A DB2ZOS V8

SERVER bull PK00563 - SQL DEBUGGER V82 ON DB2 FOR ZOSbull PK05818 - DB2 RRS BACKOUT EXITS WILL BE PROCESSED IN THE APPROPRIATE ORDER TO FAVOR CANCELED

THREADSbull PK00579 - ALLOW SCALAR FULLSELECT ON RIGHT-HAND-SIDE OF ASSIGNMENT STATEMENT IN SQL

PROCEDURES bull PK06381 - EIB NEW FUNCTION MODE INDICATOR FOR DB2 ATTACHMENTSbull PK05146 - RAS - DIS THD SERVICE WAIT ENHANCEMENTSbull PK05211 - IRLM SUPPORT FOR DB2 APAR PK01502 - TIMEOUTbull PQ92749 - CHECK INDEX AVAILABILITY IMPROVEMENTbull PQ99205 - MISCELLANEOUS PRECOMPILER FIXES FOR CCSID ISSUESbull PK06018 - POOR QUERY PERFORMANCE WHEN A MATERIALIZED VIEW IS CHOSEN FOR THE INNER TABLE OF A

NESTED LOOP JOIN

IBM Software Group | DB2 Information Management Software

DB2 Maintenancebull PK00615 - DB2 UNIVERSAL JDBC DRIVER RELEASE 25 SERVICE PRIMARILY TYPE-4 XA -4499 SAVEPOINT

ISSUES AND STMT CLOSE HANG bull PK01245 - ADDITIONAL RESTART MESSAGEbull PQ95205 - ENCRYPT AUTHID PASSWORD IN SYSIBMUSERNAMES TABLEbull PK01971 - ADD VERSION TO DSNREXX DBRMbull PQ97373 - ALLOW SPUFI USER TO CHANGE SPUFI PLAN NAMES ON DEFAULT PANELbull PQ97645 - ENCLAVE SUPPORT FOR IRLM BOOST IN DXR167E CASE FOR DDF DIST ENCLAVES MSGDXR167E

DELAY IN ASIDXXXX bull PQ95795 - NEW BUILT-IN FUNCTIONS ASCII() AND TIMESTAMPDIFF()bull PQ93857 - DCR DJ288 IMPLEMENTATIONbull PK03946 - OPTIONAL SUPPORT FOR UNION RESULT COLUMN NAME FOR DESCRIBE LIYANZbull PQ91509 - PRELIMINARY DDF EWLM SUPPORTbull PQ91914 - ALLOW LONG PACKAGE NAMES (UP TO 128 CHARACTERS) TO BE RECEIVED AT A DB2ZOS V8

SERVER bull PK00563 - SQL DEBUGGER V82 ON DB2 FOR ZOSbull PK05818 - DB2 RRS BACKOUT EXITS WILL BE PROCESSED IN THE APPROPRIATE ORDER TO FAVOR CANCELED

THREADSbull PK00579 - ALLOW SCALAR FULLSELECT ON RIGHT-HAND-SIDE OF ASSIGNMENT STATEMENT IN SQL

PROCEDURES bull PK06381 - EIB NEW FUNCTION MODE INDICATOR FOR DB2 ATTACHMENTSbull PK05146 - RAS - DIS THD SERVICE WAIT ENHANCEMENTSbull PK05211 - IRLM SUPPORT FOR DB2 APAR PK01502 - TIMEOUTbull PQ92749 - CHECK INDEX AVAILABILITY IMPROVEMENTbull PQ99205 - MISCELLANEOUS PRECOMPILER FIXES FOR CCSID ISSUESbull PK06018 - POOR QUERY PERFORMANCE WHEN A MATERIALIZED VIEW IS CHOSEN FOR THE INNER TABLE OF A

NESTED LOOP JOIN

IBM Software Group | DB2 Information Management Software

DB2 Maintenancebull 2004 -- some may be V6 or V7

ndash PQ80772 - SUPPORT FOR THE LONG LONG VARIABLE TYPE IN EMBEDDED SQL STATEMENTS IN CC++ HOST LANGUAGE PROGRAMS

ndash PQ84976 - XPLINK SUPPORT FOR ODBC V8ndash PQ71775 - PERFORMANCE IMPROVEMENTS FOR DB2 CATALOG CONSISTENCY QUERIES (V6 V7)ndash PQ90432 - DSN1LOGP SERVICEABILITY ENHANCEMENT ndash PQ95328 - DSN1LOGP SERVICEABILITY ENHANCEMENTndash PQ91101 - RAS ENHANCEMENT TO IFC225ndash PQ86083 - ENHANCEMENT TO V8 DUMP FORMATTERndash PQ95332 - DSNDQJ00 DESCRIPTION OF DDF LOG RECORDS CONTAINING XIDndash PQ87848 - NEW FUNCTION IFCID173 WILL BE ADDED TO MONITOR DYNAMIC SQL STATEMENT THAT

EXCEEDED RLF ASUTIME LIMIT SQLCODE905 ndash PQ89174 - ALLOW ENABLE QUERY OPTIMIZATION CLAUSE IN REFERENTIAL-CONSTRAINT CLAUSE IN

ALTER TABLEndash PQ84421 - ADD DSNTIJP8 - V8 PREMIGRATION CHECKOUT JOB - TO V7ndash PQ90022 - ADD VE SAMPLE STORED PROC DSN8EXPndash PQ89409 - NEW CHANGES FOR DSNTIJMC AND DSNTIJSGndash PQ83834 - IRLM220 HIR2220 SERVICE ROLL-UP 5 MAINTENANCE SINCE PQ80788ndash PQ86904 - IRLM220 HIR2220 SERVICE ROLL-UP 6 MAINTENANCE SINCE PQ83834ndash PQ82063 - REPAIR LOB DELETE SERVICEABILITY ENHANCEMENT ndash PQ47759 - DB2 SERVICEABILITY ENHANCEMENT - DUMP FORMATTINGndash PQ82390 - ALLOW SKIP OF UNCOMMITTED INSERTS BY CS AND RS TRANSACTIONS ndash PQ86108 - LONG MESSAGE TOKEN SUPPORT FOR SPUFI AND DCLGENndash PQ88213 - ENHANCE DSNTEP2 TO IMPROVE PERFORMANCE ndash PQ91763 - DSNTIAUL UNLOAD INCORRECTLY DUE TO MISSING QLWARN DETECTION

IBM Software Group | DB2 Information Management Software

DB2 Maintenancebull PQ89018 - ISSUE SPUFI WARNING IF THE ISPF CCSID IS NOT THE SAME AS DB2S bull PQ88151 - DB2 CUSTOMIZATION CENTER UPDATES FOR PQ86108 CHANGESbull PQ90222 - DB2 CUSTOMIZATION CENTER UPDATES FOR PQ86159 CHANGESbull PQ88983 - ALLOW CANCEL ROLLBACK AFTER LOG DATA SET ACCESS ERRORDCR DJ286 bull PQ90936 - DISPLAY ARCHIVE COMMAND ENHANCEMENT - DJ296 bull PQ93548 - SCAN FOR PRIOR CHECKPOINT DURING RESTART DCR DJ303bull PQ94039 - PAGE PROTECT DB2 EARLY CODEbull PQ95159 - ARCHIVE LOG READ IO ERROR MESSAGEbull PQ87444 - MINIMIZE DDF DEPENDENCY ON SUPER_USER AUTHORITYbull PQ91009 - ENSURE DDF LOCATION NAME IS SPECIFIED DURING DB2 STARTUPbull PQ87786 - ACCUMULATED DEFECT FIXES AND ENHANCEMENTS FOR DB2 UNIVERSAL JDBC DRIVER

bull PQ93458 - NEW DB2 UNIVERSAL DRIVER RELEASE 2372bull PQ85700 - HANDSHAKING BETWEEN DB2 SQL COPROCESSOR AND COMPILERSbull PQ86907 - ENABLING PRINTING OF DSNH4760 AND DSNH4761 WARNINGINFO MSGS FOR NON-COBOL PROGRAM bull PQ90147 - SUPPORT GREATER THAN 245 SECONDARY AUTHORIZATION IDSbull PQ89070 - LOCK AVOIDANCE FOR SINGLETON SELECT WITH ISO(CS) AND CURRENTDATA(YES) bull PQ75974 - ACTIVATE CONTROL CENTER V82 OBJECT MAINTENANCE AUTOMATION AND DSN SUBCOMMANDS

BINDREBINDFREE FOR DB2 FOR OS390ZOS V7 bull PQ94548 - ADD GRANT ALL ON CREATED TEMPORARY TABLES IN DSNTIJCCbull PQ87298 - INSERTING UCS-2 DATA BOUND TO C DATA TYPE SQL_C_WCHAR RESULTS IN SQLSTATE 22001

SQLCODE -99999 bull PQ88582 - ODBC SUPPORT FOR 2MB SQL STATEMENT

IBM Software Group | DB2 Information Management Software

Service Stream Features (selected)

IBM Software Group | DB2 Information Management Software

Allow user to change SPUFI plan name

bull Problem SPUFI userrsquos terminal CCSID is different from the DB2 system EBCDIC CCSID (DSNHDECP SCCSID value)

bull Solution can now create copies of the SPUFI plan for each CCSID needed by users

bull SPUFI user can change plan name to the appropriate name for his CCSID

APAR PTF PTF Avail PUT

PQ97373 UK02448

(also V7)

20050511 F505

IBM Software Group | DB2 Information Management Software

ODBC support for 2 MB statement

bull When connecting to DB2 for zOS V8 NFM system maximum SQL statement length is 2 MB

ndash previously 32K

bull ODBC DBRMs will now precompile with CCSID(1047) instead of default CCSID

APAR PTF PTF Avail PUT

PQ88582 UQ91257 20040909 F409

IBM Software Group | DB2 Information Management Software

DB2 Coprocessor ldquolevelrdquo

bull DB2 Coprocessor ldquolevelrdquo corresponds to NEWFUN precompiler optionndash level 1 NEWFUN (NO)

ndash level 2 NEWFUN (YES)

ndash new message DSNH4760I indicates level

ndash new message DSNH4761I -- level 2 requested but compiler only supports level 1

APAR PTF PTF Avail PUT

PQ85700 COBOL

PQ86907 PLI

UQ86392

UQ87641

20040323

20040601

F403

F405

IBM Software Group | DB2 Information Management Software

CHECK INDEX enhancement

bull CHECK INDEX becomes implicitly SHRLEVEL REFERENCE

bull APAR for PQ96956 (DB2 Utilities Suite -- open) Online CHECK INDEX

ndash CHECK INDEX SHRLEVEL CHANGE

APAR PTF PTF Avail PUT

PQ92749

(DB2 base)

UK04683 20050708 1000

IBM Software Group | DB2 Information Management Software

Stalled restart detection

bull DB2 restart can be stalled eg for archive log tape mounts or HSM recalls

bull A DB2 timer task will now monitor recovery phase of restart

bull If the restart processor has been suspended more than 2 minutes issue new messages

DSNR055I csect RESTART SUSPENDED SINCE time

DSNR056I csect RESTART SUSPENDED ON IRLM REQUEST

DSNR057I csect RESOURCE INFORMATION DBID

DSNR058I csect ACCESSING ARCHIVE LOG data-set-name

APAR PTF PTF Avail PUT

PK01245 UK01653

(also V7)

20050406 F504

IBM Software Group | DB2 Information Management Software

Encrypt userid pw for DDF

bull Problem NEWAUTHID and PASSWORD are stored in the clear in SYSIBMUSERNAMES

bull New stored proc SYSPROCDSNLEUSR stores authid and password in encrypted form

bull Values are decrypted prior to sending to remote server

bull Requires DB2 V8 NFM and zOS Integrated Cryptographic Services Facility (ISCF)

bull wwwibmcomsupport ndash Flash 1208122

APAR PTF PTF Avail PUT

PQ95205 UK02094 20050420 F504

IBM Software Group | DB2 Information Management Software

Hung thread diagnosis

bull When a thread is hung it is often necessary to force a console dump to gather information

-DIS THD() SERVICE(WAIT)

will display threads suspended 2x IRLM timeout (minimum 60 sec) -- additional information if suspended for IRLM lock or DB2 latch contention

APAR PTF PTF Avail PUT

PQ83649 UQ87013

(also V7)

20040420 F404

IBM Software Group | DB2 Information Management Software

Storage monitoring

bull V7 amp V8 ICFID 225 adds real storage statisticsndash number of real frames (4K) in use

ndash number of auxilary slots (4K) in use

(conrsquot)

APAR PTF PTF Avail PUT

PQ91101 UQ92441

(also V7)

20040928 F409

IBM Software Group | DB2 Information Management Software

Preliminary DDF EWLM support

bull IBM Virtualization Engine Enterprise Workload Manager for zOS V110

bull Enterprise Workload Manager enables you to automatically monitor and manage multi-tiered distributed heterogeneous or homogeneous workloads -- extends WLM to other platforms

bull Available starting with zOS 16

bull This APAR allows DDF to act as a server to TCPIP connections to be monitored within an EWLM domain

bull Announcement letter 204-305

APAR PTF PTF Avail PUT

PQ91509 UK03835 20050617 1000

IBM Software Group | DB2 Information Management Software

Monitoring lsquoRLF limit exceededrsquo

bull Problem exceeding RLF ASUTIME for dynamic SQL gets SQLCODE -905 but little info

bull Solution new IFCID 173 to provide plan name collection package name authid time used user ASUTIME

APAR PTF PTF Avail PUT

PQ87848 UQ90756

(also V7)

20040803 F408

IBM Software Group | DB2 Information Management Software

New JDBC driver releases (conrsquot)

bull DB2 Universal JDBC Driver release 25ndash Type-2 control over accounting records at COMMIT or end of physical connection

ndash Plus 29 other maintenance items

APAR PTF PTF Avail PUT

PQ95284 UK00182

(also V7)

20050202 F502

IBM Software Group | DB2 Information Management Software

QMF multi-row FETCH INSERT

bull QMF V8 NFM with DB2 V8 NFM automatically transforms your queries to multi-row operations

APAR PTF PTF Avail PUT

PQ99482 UK06848 20050902 1000

IBM Software Group | DB2 Information Management Software

Performance Imperatives

bull If necessary reduce MAXKEEPD to reduce local DSC rely more on global DSC which is above 2GB

bull V8 PQ96772 205 to move dynamic statement cache control blocks above 2GB

bull PK01911 605 Increased cpu time in Index and Storage processing sometimes accompanied by high LC32 contention

bull PQ99608 205 Excessive log write iorsquos triggered by insert into table with identity column

bull Incorrect Runstats values

bull 1048707 PK01510 505 NPI cluster ratio

bull 1048707 PK03469 505 Non-uniform distribution stats

bull PK04107 Bidirectional indexability for unicode to ebcdic

bull PK05360 Hybrid join with multi-row Fetch

bull PK04076 505 Load default of No Sortkeys if only one index and sorted input

IBM Software Group | DB2 Information Management Software

IBM Software Group

copy 2004 IBM Corporation2 IBM Confidential

V7V8 PK09158 705 Dramatic speedup and elimination of non linear performance problem in deletes via SCT02 or SPT01 in Bind Replace or Free

ndash Resolved a half dozen performance PMRs recently raised

V8 PK01911 605 Fix general V8 performance degradation brought about by V8 PQ93318 1204

V8 Multi-row Fetch performance problems

ndash PK05360 opened 505 No hybrid join support

ndash PQ88009 504 disabled parallelism for the last group of the top level query block if there is no Groupby or Orderby

ndash PK10021 opened 805 query abend with host variable or special register

V8 PQ92072 805 to support implicit multi-row Insert by ODBC array input

Recent major performance-related apars

IBM Software Group | DB2 Information Management Software

Performance Imperatives ( conthellip)

bull V8 PK05644 Preformatting up to 2 cylinders at a time to minimize preformat time

bull V7 PQ86037 304 Insert at end option for member cluster tablespace (V7V8 PQ87381 More robust version coming in 2005)

ndash Avoid re-reading spacemap pages from the beginning before dataset extend by always searching forward for freespace when zero PCTFREE and FREEPAGE

ndash Can support steady and continuous high insert rate without rapidly increasing Getpage

ndash Especially useful for heavy insert without delete

IBM Software Group | DB2 Information Management Software

Insert CPU Usage

bull 1048707 Most affected by the number of indexesbull 1048707 DB2 Estimator recommended for more detailed analysisbull 1048707 Rule-of-Thumb Z990(2) cpu time per row inserted inbull microseconds (us) =bull [26 online transaction or 20 batch]bull + 11 for 1 index + 21 for each additional indexbull + 20to30 x pagesread x 13(30 additional for write)bull + 2 if class2 acctg (1)bull + 12 if DB2CICS without TS22 threadsafe option (1)bull - up to 10 if multi-row insert

bull (1) Can disappear if multi-row insertbull (2) Use cpu time multiplier from wwws390ibmcomlspr for other processor models

IBM Software Group | DB2 Information Management Software

Virtual Storage items

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

Java Universal Driver

bull Significant reengineering of Java support for DB2 Connect CAE and DB2 for OS390 and zOS client softwarendash Uses DRDA protocols for all client communication

ndash Eliminates DB2RA and net driver protocols

ndash Traditional DB2 client configuration (CCA) is optional

ndash Much better handling of different clientserver software levels

ndash Improved DB2 Connect consistencyperformance

ndash much higher percentage of common code

ndash fewer unique code paths for specific hardware configurations

ndash Several significant improvements to DRDA

ndash support for long SQL names and statements

ndash DRDA query block sizes can now be up to 2M bytes

ndash rely on server-supplied stored procedures for SQL error messagesdatabase metadata etc

ndash many internal performance improvements

IBM Software Group | DB2 Information Management Software

Java Universal Driver

bull Why use itndash Legacy Drivers functionally stabilized amp will be deprecated

ndash Single driver for all platforms

ndash Client Accounting String

ndash Performance monitor methods

ndash Better performance

IBM Software Group | DB2 Information Management Software

SQLJ usage is increasing

bull Static SQL performance for Java applicationsndash less code written by the application programmer

ndash resulting code is easier to maintain

ndash significant performance advantage over JDBC

ndash Static SQL authorization model

bull Provides Java with a stronger authorization modelndash Monitoringmanageability

ndash static SQL packages for accountingmonitoring

bull Static SQL locks in access path so that access path changes dont occur without a conscious choice

IBM Software Group | DB2 Information Management Software

JDBC vs SQLJ example

bull Retrieve a single row from DB2bull SQLJ

sql [con] SELECT ADDRESS INTO addr FROM EMP WHERE NAME=name

bull JDBCjavasqlPreparedStatement ps = conprepareStatement(SELECT ADDRESS FROM EMP WHERE NAME=)pssetString(1 name)javasqlResultSet names = psexecuteQuery()namesnext()addr = namesgetString(1)namesclose()

bull -- portable across platforms and DBMSsbull -- compilebind time schema checkingbull -- static SQL performance and authorizationbull -- concisebull -- strong typing

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

DB2 Futures

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

DB2 Redbooks - 2Q 2004 httpwwwibmcomredbooks

bull Business Performance Management Meets Business Intelligence (SG24-6340)

bull The Business Value of DB2 UDB for zOS (SG24-6763)bull Data Mart Consolidation Getting Control of Your Enterprise

Information(SG24-6653)bull DB2 UDB for zOS Version 8 Performance Topics (SG24-6465)bull Microsoft SQL Server to IBM DB2 UDB Conversion Guide (SG24-

6672)bull DB2 for zOS and WebSphere The Perfect Couple (SG24-6319)bull Copying the DB2 UDB for zOS catalog using the COPY utility Copying the DB2 UDB for zOS catalog using the COPY utility

(TIPS0587)(TIPS0587)bull Systems Programmers Guide to Resource Recovery Services (RRS) Systems Programmers Guide to Resource Recovery Services (RRS)

(SG24-6980)(SG24-6980)

IBM Software Group | DB2 Information Management Software

Education

bull DB2 Version 8 Migration Workshopsndash Let us know if you need one

bull DB2 Version 8 Transition classndash CG381 amp CG382

IBM Software Group | DB2 Information Management Software

Education ( Design)

IBM Software Group | DB2 Information Management Software

Education (Development)

IBM Software Group | DB2 Information Management Software

Education ( Administration)

IBM Software Group | DB2 Information Management Software

Education (Troubleshooting)

IBM Software Group | DB2 Information Management Software

Intelligent Visual Explain

bull Where to obtain the codebull httpwwwibmcomsoftwaredatadb2zososcvebull Fixpack 7 available nowbull Key prerequisites

ndash Windows NT Version 40 Windows 2000 or Windows XPndash 150 MB of hard disk spacendash 256 MB of RAMndash Pentium III equivalent or abovendash Either DB2 ConnecttradePersonal Edition Version 7 (or later) or DB2

Client Application Enablertrade(CAE) with a DB2 Connect Enterprise Edition Version 7 (or later) gateway installed

ndash A TCPIP connection to a DB2 for zOS Version 7 or Version 8 host system

ndash A java-enabled browser to view HTML files

IBM Software Group | DB2 Information Management Software

Reference URLs

httpwwwibmcomsoftwaredatadb2zosindexhtmlDB2 for zOS

httpwww-306ibmcomsoftwaredatadb2zossupporthtmlDB2 for zOS technical support page

httpwww-306ibmcomsoftwaredatadb2zososcveindexhtmlDB2 VE download

httpwwwunicodeorg Unicode Home pagehttpwwwunicodeorgunicodestandardprincipleshtmlThe Unicode Standard amp Basic Principlesftpftpsoftwareibmcomsoftwaredatadb2zosdppdpdfDB2 for zOS Distribute Performance analysisftpftpsoftwareibmcomsoftwaredb2storedproceduredb2zos390techdocsH01PDFDB2-Java Performance and Tuning

IBM Software Group | DB2 Information Management Software

Reference URLs

www-106ibmcomdeveloperworksdb2librarytecharticle0203shibamiya0203shibamiya2htmlInsert vs Load Performance White paper

IBM Software Group | DB2 Information Management Software

Acknowledgements to My Friends

Mark Wilson ndash DB2 Product Introduction CenterAkira Shibamiya - SVLCurt Cotner ndash SVLJohn Campbell ndash SVL

Page 7: Slide 1 - Parallels Plesk Control Panel 8.6.0

IBM Software Group | DB2 Information Management Software

V8 Maintenance

bull PK11355- FETCH FIRST n ROWS impacts IP traffic ndash Fixes an internal code path problem in DB2 where it always followed the branch

for a one row answer set (thus didnt do any blocking) -- regardless of the number of rows specified

bull DFSORTtrade APAR PQ68263 is a prerequisite for DB2reg Version 8 utilities

bull I14047 USE OF DFSORT BY DB2 UTILITIES

bull XES APAR OA03194 (PE) can cause DB2 to hang or performance degradation Do not apply this APAR The content of this document applies only to data sharing users

IBM Software Group | DB2 Information Management Software

DB2 Maintenancebull 1H2005

ndash PQ97261 - PREPARATION FOR WEB SERVICES PROVIDERndash PQ77702 - ADD NEW STORED PROCEDURE DSNAIMS TO ACCESS IMS

TRANSACTIONS AND COMMANDS THROUGH DB2 ndash PQ79716 - ADDING THE NEW FEATURE MQLISTENER TO DB2 V7 AND V8ndash PQ80526 - PRECONDITION FOR MQLISTENERndash PK01614 - UPDATE JCLIN PARAMETERS IN HDB8810J FOR DSNAIMS STORED

PROCEDURE ndash PQ98170 - PERMIT SPUFI AND DSNTEP2 TO SELECT UTF-16 DATA WHEN THE

CURRENT APPLICATION ENCODING SCHEME IS A SBCS CCSID ndash PQ95284 - NEW DB2 UNIVERSAL DRIVER RELEASE 25ndash PQ97156 - ADD NEW INITIALIZATION (INI) FILE KEYWORD TRACETIMESTAMPndash PK01404 - PRECOMPILER MODIFICATIONS FOR SERVICEABILITY OF DB2-

SUPPLIED APPLICATIONS ndash PQ98148 - COMPILER ERROR IBM1633I WHILE PROCESSING THE FETCH

STATEMENT AND SQLCODE504 WHILE PROCESSING CLOSE CUROSR STATEMENT

IBM Software Group | DB2 Information Management Software

DB2 Maintenancebull PK00615 - DB2 UNIVERSAL JDBC DRIVER RELEASE 25 SERVICE PRIMARILY TYPE-4 XA -4499 SAVEPOINT

ISSUES AND STMT CLOSE HANG bull PK01245 - ADDITIONAL RESTART MESSAGEbull PQ95205 - ENCRYPT AUTHID PASSWORD IN SYSIBMUSERNAMES TABLEbull PK01971 - ADD VERSION TO DSNREXX DBRMbull PQ97373 - ALLOW SPUFI USER TO CHANGE SPUFI PLAN NAMES ON DEFAULT PANELbull PQ97645 - ENCLAVE SUPPORT FOR IRLM BOOST IN DXR167E CASE FOR DDF DIST ENCLAVES MSGDXR167E

DELAY IN ASIDXXXX bull PQ95795 - NEW BUILT-IN FUNCTIONS ASCII() AND TIMESTAMPDIFF()bull PQ93857 - DCR DJ288 IMPLEMENTATIONbull PK03946 - OPTIONAL SUPPORT FOR UNION RESULT COLUMN NAME FOR DESCRIBE LIYANZbull PQ91509 - PRELIMINARY DDF EWLM SUPPORTbull PQ91914 - ALLOW LONG PACKAGE NAMES (UP TO 128 CHARACTERS) TO BE RECEIVED AT A DB2ZOS V8

SERVER bull PK00563 - SQL DEBUGGER V82 ON DB2 FOR ZOSbull PK05818 - DB2 RRS BACKOUT EXITS WILL BE PROCESSED IN THE APPROPRIATE ORDER TO FAVOR CANCELED

THREADSbull PK00579 - ALLOW SCALAR FULLSELECT ON RIGHT-HAND-SIDE OF ASSIGNMENT STATEMENT IN SQL

PROCEDURES bull PK06381 - EIB NEW FUNCTION MODE INDICATOR FOR DB2 ATTACHMENTSbull PK05146 - RAS - DIS THD SERVICE WAIT ENHANCEMENTSbull PK05211 - IRLM SUPPORT FOR DB2 APAR PK01502 - TIMEOUTbull PQ92749 - CHECK INDEX AVAILABILITY IMPROVEMENTbull PQ99205 - MISCELLANEOUS PRECOMPILER FIXES FOR CCSID ISSUESbull PK06018 - POOR QUERY PERFORMANCE WHEN A MATERIALIZED VIEW IS CHOSEN FOR THE INNER TABLE OF A

NESTED LOOP JOIN

IBM Software Group | DB2 Information Management Software

DB2 Maintenancebull PK00615 - DB2 UNIVERSAL JDBC DRIVER RELEASE 25 SERVICE PRIMARILY TYPE-4 XA -4499 SAVEPOINT

ISSUES AND STMT CLOSE HANG bull PK01245 - ADDITIONAL RESTART MESSAGEbull PQ95205 - ENCRYPT AUTHID PASSWORD IN SYSIBMUSERNAMES TABLEbull PK01971 - ADD VERSION TO DSNREXX DBRMbull PQ97373 - ALLOW SPUFI USER TO CHANGE SPUFI PLAN NAMES ON DEFAULT PANELbull PQ97645 - ENCLAVE SUPPORT FOR IRLM BOOST IN DXR167E CASE FOR DDF DIST ENCLAVES MSGDXR167E

DELAY IN ASIDXXXX bull PQ95795 - NEW BUILT-IN FUNCTIONS ASCII() AND TIMESTAMPDIFF()bull PQ93857 - DCR DJ288 IMPLEMENTATIONbull PK03946 - OPTIONAL SUPPORT FOR UNION RESULT COLUMN NAME FOR DESCRIBE LIYANZbull PQ91509 - PRELIMINARY DDF EWLM SUPPORTbull PQ91914 - ALLOW LONG PACKAGE NAMES (UP TO 128 CHARACTERS) TO BE RECEIVED AT A DB2ZOS V8

SERVER bull PK00563 - SQL DEBUGGER V82 ON DB2 FOR ZOSbull PK05818 - DB2 RRS BACKOUT EXITS WILL BE PROCESSED IN THE APPROPRIATE ORDER TO FAVOR CANCELED

THREADSbull PK00579 - ALLOW SCALAR FULLSELECT ON RIGHT-HAND-SIDE OF ASSIGNMENT STATEMENT IN SQL

PROCEDURES bull PK06381 - EIB NEW FUNCTION MODE INDICATOR FOR DB2 ATTACHMENTSbull PK05146 - RAS - DIS THD SERVICE WAIT ENHANCEMENTSbull PK05211 - IRLM SUPPORT FOR DB2 APAR PK01502 - TIMEOUTbull PQ92749 - CHECK INDEX AVAILABILITY IMPROVEMENTbull PQ99205 - MISCELLANEOUS PRECOMPILER FIXES FOR CCSID ISSUESbull PK06018 - POOR QUERY PERFORMANCE WHEN A MATERIALIZED VIEW IS CHOSEN FOR THE INNER TABLE OF A

NESTED LOOP JOIN

IBM Software Group | DB2 Information Management Software

DB2 Maintenancebull 2004 -- some may be V6 or V7

ndash PQ80772 - SUPPORT FOR THE LONG LONG VARIABLE TYPE IN EMBEDDED SQL STATEMENTS IN CC++ HOST LANGUAGE PROGRAMS

ndash PQ84976 - XPLINK SUPPORT FOR ODBC V8ndash PQ71775 - PERFORMANCE IMPROVEMENTS FOR DB2 CATALOG CONSISTENCY QUERIES (V6 V7)ndash PQ90432 - DSN1LOGP SERVICEABILITY ENHANCEMENT ndash PQ95328 - DSN1LOGP SERVICEABILITY ENHANCEMENTndash PQ91101 - RAS ENHANCEMENT TO IFC225ndash PQ86083 - ENHANCEMENT TO V8 DUMP FORMATTERndash PQ95332 - DSNDQJ00 DESCRIPTION OF DDF LOG RECORDS CONTAINING XIDndash PQ87848 - NEW FUNCTION IFCID173 WILL BE ADDED TO MONITOR DYNAMIC SQL STATEMENT THAT

EXCEEDED RLF ASUTIME LIMIT SQLCODE905 ndash PQ89174 - ALLOW ENABLE QUERY OPTIMIZATION CLAUSE IN REFERENTIAL-CONSTRAINT CLAUSE IN

ALTER TABLEndash PQ84421 - ADD DSNTIJP8 - V8 PREMIGRATION CHECKOUT JOB - TO V7ndash PQ90022 - ADD VE SAMPLE STORED PROC DSN8EXPndash PQ89409 - NEW CHANGES FOR DSNTIJMC AND DSNTIJSGndash PQ83834 - IRLM220 HIR2220 SERVICE ROLL-UP 5 MAINTENANCE SINCE PQ80788ndash PQ86904 - IRLM220 HIR2220 SERVICE ROLL-UP 6 MAINTENANCE SINCE PQ83834ndash PQ82063 - REPAIR LOB DELETE SERVICEABILITY ENHANCEMENT ndash PQ47759 - DB2 SERVICEABILITY ENHANCEMENT - DUMP FORMATTINGndash PQ82390 - ALLOW SKIP OF UNCOMMITTED INSERTS BY CS AND RS TRANSACTIONS ndash PQ86108 - LONG MESSAGE TOKEN SUPPORT FOR SPUFI AND DCLGENndash PQ88213 - ENHANCE DSNTEP2 TO IMPROVE PERFORMANCE ndash PQ91763 - DSNTIAUL UNLOAD INCORRECTLY DUE TO MISSING QLWARN DETECTION

IBM Software Group | DB2 Information Management Software

DB2 Maintenancebull PQ89018 - ISSUE SPUFI WARNING IF THE ISPF CCSID IS NOT THE SAME AS DB2S bull PQ88151 - DB2 CUSTOMIZATION CENTER UPDATES FOR PQ86108 CHANGESbull PQ90222 - DB2 CUSTOMIZATION CENTER UPDATES FOR PQ86159 CHANGESbull PQ88983 - ALLOW CANCEL ROLLBACK AFTER LOG DATA SET ACCESS ERRORDCR DJ286 bull PQ90936 - DISPLAY ARCHIVE COMMAND ENHANCEMENT - DJ296 bull PQ93548 - SCAN FOR PRIOR CHECKPOINT DURING RESTART DCR DJ303bull PQ94039 - PAGE PROTECT DB2 EARLY CODEbull PQ95159 - ARCHIVE LOG READ IO ERROR MESSAGEbull PQ87444 - MINIMIZE DDF DEPENDENCY ON SUPER_USER AUTHORITYbull PQ91009 - ENSURE DDF LOCATION NAME IS SPECIFIED DURING DB2 STARTUPbull PQ87786 - ACCUMULATED DEFECT FIXES AND ENHANCEMENTS FOR DB2 UNIVERSAL JDBC DRIVER

bull PQ93458 - NEW DB2 UNIVERSAL DRIVER RELEASE 2372bull PQ85700 - HANDSHAKING BETWEEN DB2 SQL COPROCESSOR AND COMPILERSbull PQ86907 - ENABLING PRINTING OF DSNH4760 AND DSNH4761 WARNINGINFO MSGS FOR NON-COBOL PROGRAM bull PQ90147 - SUPPORT GREATER THAN 245 SECONDARY AUTHORIZATION IDSbull PQ89070 - LOCK AVOIDANCE FOR SINGLETON SELECT WITH ISO(CS) AND CURRENTDATA(YES) bull PQ75974 - ACTIVATE CONTROL CENTER V82 OBJECT MAINTENANCE AUTOMATION AND DSN SUBCOMMANDS

BINDREBINDFREE FOR DB2 FOR OS390ZOS V7 bull PQ94548 - ADD GRANT ALL ON CREATED TEMPORARY TABLES IN DSNTIJCCbull PQ87298 - INSERTING UCS-2 DATA BOUND TO C DATA TYPE SQL_C_WCHAR RESULTS IN SQLSTATE 22001

SQLCODE -99999 bull PQ88582 - ODBC SUPPORT FOR 2MB SQL STATEMENT

IBM Software Group | DB2 Information Management Software

Service Stream Features (selected)

IBM Software Group | DB2 Information Management Software

Allow user to change SPUFI plan name

bull Problem SPUFI userrsquos terminal CCSID is different from the DB2 system EBCDIC CCSID (DSNHDECP SCCSID value)

bull Solution can now create copies of the SPUFI plan for each CCSID needed by users

bull SPUFI user can change plan name to the appropriate name for his CCSID

APAR PTF PTF Avail PUT

PQ97373 UK02448

(also V7)

20050511 F505

IBM Software Group | DB2 Information Management Software

ODBC support for 2 MB statement

bull When connecting to DB2 for zOS V8 NFM system maximum SQL statement length is 2 MB

ndash previously 32K

bull ODBC DBRMs will now precompile with CCSID(1047) instead of default CCSID

APAR PTF PTF Avail PUT

PQ88582 UQ91257 20040909 F409

IBM Software Group | DB2 Information Management Software

DB2 Coprocessor ldquolevelrdquo

bull DB2 Coprocessor ldquolevelrdquo corresponds to NEWFUN precompiler optionndash level 1 NEWFUN (NO)

ndash level 2 NEWFUN (YES)

ndash new message DSNH4760I indicates level

ndash new message DSNH4761I -- level 2 requested but compiler only supports level 1

APAR PTF PTF Avail PUT

PQ85700 COBOL

PQ86907 PLI

UQ86392

UQ87641

20040323

20040601

F403

F405

IBM Software Group | DB2 Information Management Software

CHECK INDEX enhancement

bull CHECK INDEX becomes implicitly SHRLEVEL REFERENCE

bull APAR for PQ96956 (DB2 Utilities Suite -- open) Online CHECK INDEX

ndash CHECK INDEX SHRLEVEL CHANGE

APAR PTF PTF Avail PUT

PQ92749

(DB2 base)

UK04683 20050708 1000

IBM Software Group | DB2 Information Management Software

Stalled restart detection

bull DB2 restart can be stalled eg for archive log tape mounts or HSM recalls

bull A DB2 timer task will now monitor recovery phase of restart

bull If the restart processor has been suspended more than 2 minutes issue new messages

DSNR055I csect RESTART SUSPENDED SINCE time

DSNR056I csect RESTART SUSPENDED ON IRLM REQUEST

DSNR057I csect RESOURCE INFORMATION DBID

DSNR058I csect ACCESSING ARCHIVE LOG data-set-name

APAR PTF PTF Avail PUT

PK01245 UK01653

(also V7)

20050406 F504

IBM Software Group | DB2 Information Management Software

Encrypt userid pw for DDF

bull Problem NEWAUTHID and PASSWORD are stored in the clear in SYSIBMUSERNAMES

bull New stored proc SYSPROCDSNLEUSR stores authid and password in encrypted form

bull Values are decrypted prior to sending to remote server

bull Requires DB2 V8 NFM and zOS Integrated Cryptographic Services Facility (ISCF)

bull wwwibmcomsupport ndash Flash 1208122

APAR PTF PTF Avail PUT

PQ95205 UK02094 20050420 F504

IBM Software Group | DB2 Information Management Software

Hung thread diagnosis

bull When a thread is hung it is often necessary to force a console dump to gather information

-DIS THD() SERVICE(WAIT)

will display threads suspended 2x IRLM timeout (minimum 60 sec) -- additional information if suspended for IRLM lock or DB2 latch contention

APAR PTF PTF Avail PUT

PQ83649 UQ87013

(also V7)

20040420 F404

IBM Software Group | DB2 Information Management Software

Storage monitoring

bull V7 amp V8 ICFID 225 adds real storage statisticsndash number of real frames (4K) in use

ndash number of auxilary slots (4K) in use

(conrsquot)

APAR PTF PTF Avail PUT

PQ91101 UQ92441

(also V7)

20040928 F409

IBM Software Group | DB2 Information Management Software

Preliminary DDF EWLM support

bull IBM Virtualization Engine Enterprise Workload Manager for zOS V110

bull Enterprise Workload Manager enables you to automatically monitor and manage multi-tiered distributed heterogeneous or homogeneous workloads -- extends WLM to other platforms

bull Available starting with zOS 16

bull This APAR allows DDF to act as a server to TCPIP connections to be monitored within an EWLM domain

bull Announcement letter 204-305

APAR PTF PTF Avail PUT

PQ91509 UK03835 20050617 1000

IBM Software Group | DB2 Information Management Software

Monitoring lsquoRLF limit exceededrsquo

bull Problem exceeding RLF ASUTIME for dynamic SQL gets SQLCODE -905 but little info

bull Solution new IFCID 173 to provide plan name collection package name authid time used user ASUTIME

APAR PTF PTF Avail PUT

PQ87848 UQ90756

(also V7)

20040803 F408

IBM Software Group | DB2 Information Management Software

New JDBC driver releases (conrsquot)

bull DB2 Universal JDBC Driver release 25ndash Type-2 control over accounting records at COMMIT or end of physical connection

ndash Plus 29 other maintenance items

APAR PTF PTF Avail PUT

PQ95284 UK00182

(also V7)

20050202 F502

IBM Software Group | DB2 Information Management Software

QMF multi-row FETCH INSERT

bull QMF V8 NFM with DB2 V8 NFM automatically transforms your queries to multi-row operations

APAR PTF PTF Avail PUT

PQ99482 UK06848 20050902 1000

IBM Software Group | DB2 Information Management Software

Performance Imperatives

bull If necessary reduce MAXKEEPD to reduce local DSC rely more on global DSC which is above 2GB

bull V8 PQ96772 205 to move dynamic statement cache control blocks above 2GB

bull PK01911 605 Increased cpu time in Index and Storage processing sometimes accompanied by high LC32 contention

bull PQ99608 205 Excessive log write iorsquos triggered by insert into table with identity column

bull Incorrect Runstats values

bull 1048707 PK01510 505 NPI cluster ratio

bull 1048707 PK03469 505 Non-uniform distribution stats

bull PK04107 Bidirectional indexability for unicode to ebcdic

bull PK05360 Hybrid join with multi-row Fetch

bull PK04076 505 Load default of No Sortkeys if only one index and sorted input

IBM Software Group | DB2 Information Management Software

IBM Software Group

copy 2004 IBM Corporation2 IBM Confidential

V7V8 PK09158 705 Dramatic speedup and elimination of non linear performance problem in deletes via SCT02 or SPT01 in Bind Replace or Free

ndash Resolved a half dozen performance PMRs recently raised

V8 PK01911 605 Fix general V8 performance degradation brought about by V8 PQ93318 1204

V8 Multi-row Fetch performance problems

ndash PK05360 opened 505 No hybrid join support

ndash PQ88009 504 disabled parallelism for the last group of the top level query block if there is no Groupby or Orderby

ndash PK10021 opened 805 query abend with host variable or special register

V8 PQ92072 805 to support implicit multi-row Insert by ODBC array input

Recent major performance-related apars

IBM Software Group | DB2 Information Management Software

Performance Imperatives ( conthellip)

bull V8 PK05644 Preformatting up to 2 cylinders at a time to minimize preformat time

bull V7 PQ86037 304 Insert at end option for member cluster tablespace (V7V8 PQ87381 More robust version coming in 2005)

ndash Avoid re-reading spacemap pages from the beginning before dataset extend by always searching forward for freespace when zero PCTFREE and FREEPAGE

ndash Can support steady and continuous high insert rate without rapidly increasing Getpage

ndash Especially useful for heavy insert without delete

IBM Software Group | DB2 Information Management Software

Insert CPU Usage

bull 1048707 Most affected by the number of indexesbull 1048707 DB2 Estimator recommended for more detailed analysisbull 1048707 Rule-of-Thumb Z990(2) cpu time per row inserted inbull microseconds (us) =bull [26 online transaction or 20 batch]bull + 11 for 1 index + 21 for each additional indexbull + 20to30 x pagesread x 13(30 additional for write)bull + 2 if class2 acctg (1)bull + 12 if DB2CICS without TS22 threadsafe option (1)bull - up to 10 if multi-row insert

bull (1) Can disappear if multi-row insertbull (2) Use cpu time multiplier from wwws390ibmcomlspr for other processor models

IBM Software Group | DB2 Information Management Software

Virtual Storage items

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

Java Universal Driver

bull Significant reengineering of Java support for DB2 Connect CAE and DB2 for OS390 and zOS client softwarendash Uses DRDA protocols for all client communication

ndash Eliminates DB2RA and net driver protocols

ndash Traditional DB2 client configuration (CCA) is optional

ndash Much better handling of different clientserver software levels

ndash Improved DB2 Connect consistencyperformance

ndash much higher percentage of common code

ndash fewer unique code paths for specific hardware configurations

ndash Several significant improvements to DRDA

ndash support for long SQL names and statements

ndash DRDA query block sizes can now be up to 2M bytes

ndash rely on server-supplied stored procedures for SQL error messagesdatabase metadata etc

ndash many internal performance improvements

IBM Software Group | DB2 Information Management Software

Java Universal Driver

bull Why use itndash Legacy Drivers functionally stabilized amp will be deprecated

ndash Single driver for all platforms

ndash Client Accounting String

ndash Performance monitor methods

ndash Better performance

IBM Software Group | DB2 Information Management Software

SQLJ usage is increasing

bull Static SQL performance for Java applicationsndash less code written by the application programmer

ndash resulting code is easier to maintain

ndash significant performance advantage over JDBC

ndash Static SQL authorization model

bull Provides Java with a stronger authorization modelndash Monitoringmanageability

ndash static SQL packages for accountingmonitoring

bull Static SQL locks in access path so that access path changes dont occur without a conscious choice

IBM Software Group | DB2 Information Management Software

JDBC vs SQLJ example

bull Retrieve a single row from DB2bull SQLJ

sql [con] SELECT ADDRESS INTO addr FROM EMP WHERE NAME=name

bull JDBCjavasqlPreparedStatement ps = conprepareStatement(SELECT ADDRESS FROM EMP WHERE NAME=)pssetString(1 name)javasqlResultSet names = psexecuteQuery()namesnext()addr = namesgetString(1)namesclose()

bull -- portable across platforms and DBMSsbull -- compilebind time schema checkingbull -- static SQL performance and authorizationbull -- concisebull -- strong typing

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

DB2 Futures

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

DB2 Redbooks - 2Q 2004 httpwwwibmcomredbooks

bull Business Performance Management Meets Business Intelligence (SG24-6340)

bull The Business Value of DB2 UDB for zOS (SG24-6763)bull Data Mart Consolidation Getting Control of Your Enterprise

Information(SG24-6653)bull DB2 UDB for zOS Version 8 Performance Topics (SG24-6465)bull Microsoft SQL Server to IBM DB2 UDB Conversion Guide (SG24-

6672)bull DB2 for zOS and WebSphere The Perfect Couple (SG24-6319)bull Copying the DB2 UDB for zOS catalog using the COPY utility Copying the DB2 UDB for zOS catalog using the COPY utility

(TIPS0587)(TIPS0587)bull Systems Programmers Guide to Resource Recovery Services (RRS) Systems Programmers Guide to Resource Recovery Services (RRS)

(SG24-6980)(SG24-6980)

IBM Software Group | DB2 Information Management Software

Education

bull DB2 Version 8 Migration Workshopsndash Let us know if you need one

bull DB2 Version 8 Transition classndash CG381 amp CG382

IBM Software Group | DB2 Information Management Software

Education ( Design)

IBM Software Group | DB2 Information Management Software

Education (Development)

IBM Software Group | DB2 Information Management Software

Education ( Administration)

IBM Software Group | DB2 Information Management Software

Education (Troubleshooting)

IBM Software Group | DB2 Information Management Software

Intelligent Visual Explain

bull Where to obtain the codebull httpwwwibmcomsoftwaredatadb2zososcvebull Fixpack 7 available nowbull Key prerequisites

ndash Windows NT Version 40 Windows 2000 or Windows XPndash 150 MB of hard disk spacendash 256 MB of RAMndash Pentium III equivalent or abovendash Either DB2 ConnecttradePersonal Edition Version 7 (or later) or DB2

Client Application Enablertrade(CAE) with a DB2 Connect Enterprise Edition Version 7 (or later) gateway installed

ndash A TCPIP connection to a DB2 for zOS Version 7 or Version 8 host system

ndash A java-enabled browser to view HTML files

IBM Software Group | DB2 Information Management Software

Reference URLs

httpwwwibmcomsoftwaredatadb2zosindexhtmlDB2 for zOS

httpwww-306ibmcomsoftwaredatadb2zossupporthtmlDB2 for zOS technical support page

httpwww-306ibmcomsoftwaredatadb2zososcveindexhtmlDB2 VE download

httpwwwunicodeorg Unicode Home pagehttpwwwunicodeorgunicodestandardprincipleshtmlThe Unicode Standard amp Basic Principlesftpftpsoftwareibmcomsoftwaredatadb2zosdppdpdfDB2 for zOS Distribute Performance analysisftpftpsoftwareibmcomsoftwaredb2storedproceduredb2zos390techdocsH01PDFDB2-Java Performance and Tuning

IBM Software Group | DB2 Information Management Software

Reference URLs

www-106ibmcomdeveloperworksdb2librarytecharticle0203shibamiya0203shibamiya2htmlInsert vs Load Performance White paper

IBM Software Group | DB2 Information Management Software

Acknowledgements to My Friends

Mark Wilson ndash DB2 Product Introduction CenterAkira Shibamiya - SVLCurt Cotner ndash SVLJohn Campbell ndash SVL

Page 8: Slide 1 - Parallels Plesk Control Panel 8.6.0

IBM Software Group | DB2 Information Management Software

DB2 Maintenancebull 1H2005

ndash PQ97261 - PREPARATION FOR WEB SERVICES PROVIDERndash PQ77702 - ADD NEW STORED PROCEDURE DSNAIMS TO ACCESS IMS

TRANSACTIONS AND COMMANDS THROUGH DB2 ndash PQ79716 - ADDING THE NEW FEATURE MQLISTENER TO DB2 V7 AND V8ndash PQ80526 - PRECONDITION FOR MQLISTENERndash PK01614 - UPDATE JCLIN PARAMETERS IN HDB8810J FOR DSNAIMS STORED

PROCEDURE ndash PQ98170 - PERMIT SPUFI AND DSNTEP2 TO SELECT UTF-16 DATA WHEN THE

CURRENT APPLICATION ENCODING SCHEME IS A SBCS CCSID ndash PQ95284 - NEW DB2 UNIVERSAL DRIVER RELEASE 25ndash PQ97156 - ADD NEW INITIALIZATION (INI) FILE KEYWORD TRACETIMESTAMPndash PK01404 - PRECOMPILER MODIFICATIONS FOR SERVICEABILITY OF DB2-

SUPPLIED APPLICATIONS ndash PQ98148 - COMPILER ERROR IBM1633I WHILE PROCESSING THE FETCH

STATEMENT AND SQLCODE504 WHILE PROCESSING CLOSE CUROSR STATEMENT

IBM Software Group | DB2 Information Management Software

DB2 Maintenancebull PK00615 - DB2 UNIVERSAL JDBC DRIVER RELEASE 25 SERVICE PRIMARILY TYPE-4 XA -4499 SAVEPOINT

ISSUES AND STMT CLOSE HANG bull PK01245 - ADDITIONAL RESTART MESSAGEbull PQ95205 - ENCRYPT AUTHID PASSWORD IN SYSIBMUSERNAMES TABLEbull PK01971 - ADD VERSION TO DSNREXX DBRMbull PQ97373 - ALLOW SPUFI USER TO CHANGE SPUFI PLAN NAMES ON DEFAULT PANELbull PQ97645 - ENCLAVE SUPPORT FOR IRLM BOOST IN DXR167E CASE FOR DDF DIST ENCLAVES MSGDXR167E

DELAY IN ASIDXXXX bull PQ95795 - NEW BUILT-IN FUNCTIONS ASCII() AND TIMESTAMPDIFF()bull PQ93857 - DCR DJ288 IMPLEMENTATIONbull PK03946 - OPTIONAL SUPPORT FOR UNION RESULT COLUMN NAME FOR DESCRIBE LIYANZbull PQ91509 - PRELIMINARY DDF EWLM SUPPORTbull PQ91914 - ALLOW LONG PACKAGE NAMES (UP TO 128 CHARACTERS) TO BE RECEIVED AT A DB2ZOS V8

SERVER bull PK00563 - SQL DEBUGGER V82 ON DB2 FOR ZOSbull PK05818 - DB2 RRS BACKOUT EXITS WILL BE PROCESSED IN THE APPROPRIATE ORDER TO FAVOR CANCELED

THREADSbull PK00579 - ALLOW SCALAR FULLSELECT ON RIGHT-HAND-SIDE OF ASSIGNMENT STATEMENT IN SQL

PROCEDURES bull PK06381 - EIB NEW FUNCTION MODE INDICATOR FOR DB2 ATTACHMENTSbull PK05146 - RAS - DIS THD SERVICE WAIT ENHANCEMENTSbull PK05211 - IRLM SUPPORT FOR DB2 APAR PK01502 - TIMEOUTbull PQ92749 - CHECK INDEX AVAILABILITY IMPROVEMENTbull PQ99205 - MISCELLANEOUS PRECOMPILER FIXES FOR CCSID ISSUESbull PK06018 - POOR QUERY PERFORMANCE WHEN A MATERIALIZED VIEW IS CHOSEN FOR THE INNER TABLE OF A

NESTED LOOP JOIN

IBM Software Group | DB2 Information Management Software

DB2 Maintenancebull PK00615 - DB2 UNIVERSAL JDBC DRIVER RELEASE 25 SERVICE PRIMARILY TYPE-4 XA -4499 SAVEPOINT

ISSUES AND STMT CLOSE HANG bull PK01245 - ADDITIONAL RESTART MESSAGEbull PQ95205 - ENCRYPT AUTHID PASSWORD IN SYSIBMUSERNAMES TABLEbull PK01971 - ADD VERSION TO DSNREXX DBRMbull PQ97373 - ALLOW SPUFI USER TO CHANGE SPUFI PLAN NAMES ON DEFAULT PANELbull PQ97645 - ENCLAVE SUPPORT FOR IRLM BOOST IN DXR167E CASE FOR DDF DIST ENCLAVES MSGDXR167E

DELAY IN ASIDXXXX bull PQ95795 - NEW BUILT-IN FUNCTIONS ASCII() AND TIMESTAMPDIFF()bull PQ93857 - DCR DJ288 IMPLEMENTATIONbull PK03946 - OPTIONAL SUPPORT FOR UNION RESULT COLUMN NAME FOR DESCRIBE LIYANZbull PQ91509 - PRELIMINARY DDF EWLM SUPPORTbull PQ91914 - ALLOW LONG PACKAGE NAMES (UP TO 128 CHARACTERS) TO BE RECEIVED AT A DB2ZOS V8

SERVER bull PK00563 - SQL DEBUGGER V82 ON DB2 FOR ZOSbull PK05818 - DB2 RRS BACKOUT EXITS WILL BE PROCESSED IN THE APPROPRIATE ORDER TO FAVOR CANCELED

THREADSbull PK00579 - ALLOW SCALAR FULLSELECT ON RIGHT-HAND-SIDE OF ASSIGNMENT STATEMENT IN SQL

PROCEDURES bull PK06381 - EIB NEW FUNCTION MODE INDICATOR FOR DB2 ATTACHMENTSbull PK05146 - RAS - DIS THD SERVICE WAIT ENHANCEMENTSbull PK05211 - IRLM SUPPORT FOR DB2 APAR PK01502 - TIMEOUTbull PQ92749 - CHECK INDEX AVAILABILITY IMPROVEMENTbull PQ99205 - MISCELLANEOUS PRECOMPILER FIXES FOR CCSID ISSUESbull PK06018 - POOR QUERY PERFORMANCE WHEN A MATERIALIZED VIEW IS CHOSEN FOR THE INNER TABLE OF A

NESTED LOOP JOIN

IBM Software Group | DB2 Information Management Software

DB2 Maintenancebull 2004 -- some may be V6 or V7

ndash PQ80772 - SUPPORT FOR THE LONG LONG VARIABLE TYPE IN EMBEDDED SQL STATEMENTS IN CC++ HOST LANGUAGE PROGRAMS

ndash PQ84976 - XPLINK SUPPORT FOR ODBC V8ndash PQ71775 - PERFORMANCE IMPROVEMENTS FOR DB2 CATALOG CONSISTENCY QUERIES (V6 V7)ndash PQ90432 - DSN1LOGP SERVICEABILITY ENHANCEMENT ndash PQ95328 - DSN1LOGP SERVICEABILITY ENHANCEMENTndash PQ91101 - RAS ENHANCEMENT TO IFC225ndash PQ86083 - ENHANCEMENT TO V8 DUMP FORMATTERndash PQ95332 - DSNDQJ00 DESCRIPTION OF DDF LOG RECORDS CONTAINING XIDndash PQ87848 - NEW FUNCTION IFCID173 WILL BE ADDED TO MONITOR DYNAMIC SQL STATEMENT THAT

EXCEEDED RLF ASUTIME LIMIT SQLCODE905 ndash PQ89174 - ALLOW ENABLE QUERY OPTIMIZATION CLAUSE IN REFERENTIAL-CONSTRAINT CLAUSE IN

ALTER TABLEndash PQ84421 - ADD DSNTIJP8 - V8 PREMIGRATION CHECKOUT JOB - TO V7ndash PQ90022 - ADD VE SAMPLE STORED PROC DSN8EXPndash PQ89409 - NEW CHANGES FOR DSNTIJMC AND DSNTIJSGndash PQ83834 - IRLM220 HIR2220 SERVICE ROLL-UP 5 MAINTENANCE SINCE PQ80788ndash PQ86904 - IRLM220 HIR2220 SERVICE ROLL-UP 6 MAINTENANCE SINCE PQ83834ndash PQ82063 - REPAIR LOB DELETE SERVICEABILITY ENHANCEMENT ndash PQ47759 - DB2 SERVICEABILITY ENHANCEMENT - DUMP FORMATTINGndash PQ82390 - ALLOW SKIP OF UNCOMMITTED INSERTS BY CS AND RS TRANSACTIONS ndash PQ86108 - LONG MESSAGE TOKEN SUPPORT FOR SPUFI AND DCLGENndash PQ88213 - ENHANCE DSNTEP2 TO IMPROVE PERFORMANCE ndash PQ91763 - DSNTIAUL UNLOAD INCORRECTLY DUE TO MISSING QLWARN DETECTION

IBM Software Group | DB2 Information Management Software

DB2 Maintenancebull PQ89018 - ISSUE SPUFI WARNING IF THE ISPF CCSID IS NOT THE SAME AS DB2S bull PQ88151 - DB2 CUSTOMIZATION CENTER UPDATES FOR PQ86108 CHANGESbull PQ90222 - DB2 CUSTOMIZATION CENTER UPDATES FOR PQ86159 CHANGESbull PQ88983 - ALLOW CANCEL ROLLBACK AFTER LOG DATA SET ACCESS ERRORDCR DJ286 bull PQ90936 - DISPLAY ARCHIVE COMMAND ENHANCEMENT - DJ296 bull PQ93548 - SCAN FOR PRIOR CHECKPOINT DURING RESTART DCR DJ303bull PQ94039 - PAGE PROTECT DB2 EARLY CODEbull PQ95159 - ARCHIVE LOG READ IO ERROR MESSAGEbull PQ87444 - MINIMIZE DDF DEPENDENCY ON SUPER_USER AUTHORITYbull PQ91009 - ENSURE DDF LOCATION NAME IS SPECIFIED DURING DB2 STARTUPbull PQ87786 - ACCUMULATED DEFECT FIXES AND ENHANCEMENTS FOR DB2 UNIVERSAL JDBC DRIVER

bull PQ93458 - NEW DB2 UNIVERSAL DRIVER RELEASE 2372bull PQ85700 - HANDSHAKING BETWEEN DB2 SQL COPROCESSOR AND COMPILERSbull PQ86907 - ENABLING PRINTING OF DSNH4760 AND DSNH4761 WARNINGINFO MSGS FOR NON-COBOL PROGRAM bull PQ90147 - SUPPORT GREATER THAN 245 SECONDARY AUTHORIZATION IDSbull PQ89070 - LOCK AVOIDANCE FOR SINGLETON SELECT WITH ISO(CS) AND CURRENTDATA(YES) bull PQ75974 - ACTIVATE CONTROL CENTER V82 OBJECT MAINTENANCE AUTOMATION AND DSN SUBCOMMANDS

BINDREBINDFREE FOR DB2 FOR OS390ZOS V7 bull PQ94548 - ADD GRANT ALL ON CREATED TEMPORARY TABLES IN DSNTIJCCbull PQ87298 - INSERTING UCS-2 DATA BOUND TO C DATA TYPE SQL_C_WCHAR RESULTS IN SQLSTATE 22001

SQLCODE -99999 bull PQ88582 - ODBC SUPPORT FOR 2MB SQL STATEMENT

IBM Software Group | DB2 Information Management Software

Service Stream Features (selected)

IBM Software Group | DB2 Information Management Software

Allow user to change SPUFI plan name

bull Problem SPUFI userrsquos terminal CCSID is different from the DB2 system EBCDIC CCSID (DSNHDECP SCCSID value)

bull Solution can now create copies of the SPUFI plan for each CCSID needed by users

bull SPUFI user can change plan name to the appropriate name for his CCSID

APAR PTF PTF Avail PUT

PQ97373 UK02448

(also V7)

20050511 F505

IBM Software Group | DB2 Information Management Software

ODBC support for 2 MB statement

bull When connecting to DB2 for zOS V8 NFM system maximum SQL statement length is 2 MB

ndash previously 32K

bull ODBC DBRMs will now precompile with CCSID(1047) instead of default CCSID

APAR PTF PTF Avail PUT

PQ88582 UQ91257 20040909 F409

IBM Software Group | DB2 Information Management Software

DB2 Coprocessor ldquolevelrdquo

bull DB2 Coprocessor ldquolevelrdquo corresponds to NEWFUN precompiler optionndash level 1 NEWFUN (NO)

ndash level 2 NEWFUN (YES)

ndash new message DSNH4760I indicates level

ndash new message DSNH4761I -- level 2 requested but compiler only supports level 1

APAR PTF PTF Avail PUT

PQ85700 COBOL

PQ86907 PLI

UQ86392

UQ87641

20040323

20040601

F403

F405

IBM Software Group | DB2 Information Management Software

CHECK INDEX enhancement

bull CHECK INDEX becomes implicitly SHRLEVEL REFERENCE

bull APAR for PQ96956 (DB2 Utilities Suite -- open) Online CHECK INDEX

ndash CHECK INDEX SHRLEVEL CHANGE

APAR PTF PTF Avail PUT

PQ92749

(DB2 base)

UK04683 20050708 1000

IBM Software Group | DB2 Information Management Software

Stalled restart detection

bull DB2 restart can be stalled eg for archive log tape mounts or HSM recalls

bull A DB2 timer task will now monitor recovery phase of restart

bull If the restart processor has been suspended more than 2 minutes issue new messages

DSNR055I csect RESTART SUSPENDED SINCE time

DSNR056I csect RESTART SUSPENDED ON IRLM REQUEST

DSNR057I csect RESOURCE INFORMATION DBID

DSNR058I csect ACCESSING ARCHIVE LOG data-set-name

APAR PTF PTF Avail PUT

PK01245 UK01653

(also V7)

20050406 F504

IBM Software Group | DB2 Information Management Software

Encrypt userid pw for DDF

bull Problem NEWAUTHID and PASSWORD are stored in the clear in SYSIBMUSERNAMES

bull New stored proc SYSPROCDSNLEUSR stores authid and password in encrypted form

bull Values are decrypted prior to sending to remote server

bull Requires DB2 V8 NFM and zOS Integrated Cryptographic Services Facility (ISCF)

bull wwwibmcomsupport ndash Flash 1208122

APAR PTF PTF Avail PUT

PQ95205 UK02094 20050420 F504

IBM Software Group | DB2 Information Management Software

Hung thread diagnosis

bull When a thread is hung it is often necessary to force a console dump to gather information

-DIS THD() SERVICE(WAIT)

will display threads suspended 2x IRLM timeout (minimum 60 sec) -- additional information if suspended for IRLM lock or DB2 latch contention

APAR PTF PTF Avail PUT

PQ83649 UQ87013

(also V7)

20040420 F404

IBM Software Group | DB2 Information Management Software

Storage monitoring

bull V7 amp V8 ICFID 225 adds real storage statisticsndash number of real frames (4K) in use

ndash number of auxilary slots (4K) in use

(conrsquot)

APAR PTF PTF Avail PUT

PQ91101 UQ92441

(also V7)

20040928 F409

IBM Software Group | DB2 Information Management Software

Preliminary DDF EWLM support

bull IBM Virtualization Engine Enterprise Workload Manager for zOS V110

bull Enterprise Workload Manager enables you to automatically monitor and manage multi-tiered distributed heterogeneous or homogeneous workloads -- extends WLM to other platforms

bull Available starting with zOS 16

bull This APAR allows DDF to act as a server to TCPIP connections to be monitored within an EWLM domain

bull Announcement letter 204-305

APAR PTF PTF Avail PUT

PQ91509 UK03835 20050617 1000

IBM Software Group | DB2 Information Management Software

Monitoring lsquoRLF limit exceededrsquo

bull Problem exceeding RLF ASUTIME for dynamic SQL gets SQLCODE -905 but little info

bull Solution new IFCID 173 to provide plan name collection package name authid time used user ASUTIME

APAR PTF PTF Avail PUT

PQ87848 UQ90756

(also V7)

20040803 F408

IBM Software Group | DB2 Information Management Software

New JDBC driver releases (conrsquot)

bull DB2 Universal JDBC Driver release 25ndash Type-2 control over accounting records at COMMIT or end of physical connection

ndash Plus 29 other maintenance items

APAR PTF PTF Avail PUT

PQ95284 UK00182

(also V7)

20050202 F502

IBM Software Group | DB2 Information Management Software

QMF multi-row FETCH INSERT

bull QMF V8 NFM with DB2 V8 NFM automatically transforms your queries to multi-row operations

APAR PTF PTF Avail PUT

PQ99482 UK06848 20050902 1000

IBM Software Group | DB2 Information Management Software

Performance Imperatives

bull If necessary reduce MAXKEEPD to reduce local DSC rely more on global DSC which is above 2GB

bull V8 PQ96772 205 to move dynamic statement cache control blocks above 2GB

bull PK01911 605 Increased cpu time in Index and Storage processing sometimes accompanied by high LC32 contention

bull PQ99608 205 Excessive log write iorsquos triggered by insert into table with identity column

bull Incorrect Runstats values

bull 1048707 PK01510 505 NPI cluster ratio

bull 1048707 PK03469 505 Non-uniform distribution stats

bull PK04107 Bidirectional indexability for unicode to ebcdic

bull PK05360 Hybrid join with multi-row Fetch

bull PK04076 505 Load default of No Sortkeys if only one index and sorted input

IBM Software Group | DB2 Information Management Software

IBM Software Group

copy 2004 IBM Corporation2 IBM Confidential

V7V8 PK09158 705 Dramatic speedup and elimination of non linear performance problem in deletes via SCT02 or SPT01 in Bind Replace or Free

ndash Resolved a half dozen performance PMRs recently raised

V8 PK01911 605 Fix general V8 performance degradation brought about by V8 PQ93318 1204

V8 Multi-row Fetch performance problems

ndash PK05360 opened 505 No hybrid join support

ndash PQ88009 504 disabled parallelism for the last group of the top level query block if there is no Groupby or Orderby

ndash PK10021 opened 805 query abend with host variable or special register

V8 PQ92072 805 to support implicit multi-row Insert by ODBC array input

Recent major performance-related apars

IBM Software Group | DB2 Information Management Software

Performance Imperatives ( conthellip)

bull V8 PK05644 Preformatting up to 2 cylinders at a time to minimize preformat time

bull V7 PQ86037 304 Insert at end option for member cluster tablespace (V7V8 PQ87381 More robust version coming in 2005)

ndash Avoid re-reading spacemap pages from the beginning before dataset extend by always searching forward for freespace when zero PCTFREE and FREEPAGE

ndash Can support steady and continuous high insert rate without rapidly increasing Getpage

ndash Especially useful for heavy insert without delete

IBM Software Group | DB2 Information Management Software

Insert CPU Usage

bull 1048707 Most affected by the number of indexesbull 1048707 DB2 Estimator recommended for more detailed analysisbull 1048707 Rule-of-Thumb Z990(2) cpu time per row inserted inbull microseconds (us) =bull [26 online transaction or 20 batch]bull + 11 for 1 index + 21 for each additional indexbull + 20to30 x pagesread x 13(30 additional for write)bull + 2 if class2 acctg (1)bull + 12 if DB2CICS without TS22 threadsafe option (1)bull - up to 10 if multi-row insert

bull (1) Can disappear if multi-row insertbull (2) Use cpu time multiplier from wwws390ibmcomlspr for other processor models

IBM Software Group | DB2 Information Management Software

Virtual Storage items

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

Java Universal Driver

bull Significant reengineering of Java support for DB2 Connect CAE and DB2 for OS390 and zOS client softwarendash Uses DRDA protocols for all client communication

ndash Eliminates DB2RA and net driver protocols

ndash Traditional DB2 client configuration (CCA) is optional

ndash Much better handling of different clientserver software levels

ndash Improved DB2 Connect consistencyperformance

ndash much higher percentage of common code

ndash fewer unique code paths for specific hardware configurations

ndash Several significant improvements to DRDA

ndash support for long SQL names and statements

ndash DRDA query block sizes can now be up to 2M bytes

ndash rely on server-supplied stored procedures for SQL error messagesdatabase metadata etc

ndash many internal performance improvements

IBM Software Group | DB2 Information Management Software

Java Universal Driver

bull Why use itndash Legacy Drivers functionally stabilized amp will be deprecated

ndash Single driver for all platforms

ndash Client Accounting String

ndash Performance monitor methods

ndash Better performance

IBM Software Group | DB2 Information Management Software

SQLJ usage is increasing

bull Static SQL performance for Java applicationsndash less code written by the application programmer

ndash resulting code is easier to maintain

ndash significant performance advantage over JDBC

ndash Static SQL authorization model

bull Provides Java with a stronger authorization modelndash Monitoringmanageability

ndash static SQL packages for accountingmonitoring

bull Static SQL locks in access path so that access path changes dont occur without a conscious choice

IBM Software Group | DB2 Information Management Software

JDBC vs SQLJ example

bull Retrieve a single row from DB2bull SQLJ

sql [con] SELECT ADDRESS INTO addr FROM EMP WHERE NAME=name

bull JDBCjavasqlPreparedStatement ps = conprepareStatement(SELECT ADDRESS FROM EMP WHERE NAME=)pssetString(1 name)javasqlResultSet names = psexecuteQuery()namesnext()addr = namesgetString(1)namesclose()

bull -- portable across platforms and DBMSsbull -- compilebind time schema checkingbull -- static SQL performance and authorizationbull -- concisebull -- strong typing

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

DB2 Futures

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

DB2 Redbooks - 2Q 2004 httpwwwibmcomredbooks

bull Business Performance Management Meets Business Intelligence (SG24-6340)

bull The Business Value of DB2 UDB for zOS (SG24-6763)bull Data Mart Consolidation Getting Control of Your Enterprise

Information(SG24-6653)bull DB2 UDB for zOS Version 8 Performance Topics (SG24-6465)bull Microsoft SQL Server to IBM DB2 UDB Conversion Guide (SG24-

6672)bull DB2 for zOS and WebSphere The Perfect Couple (SG24-6319)bull Copying the DB2 UDB for zOS catalog using the COPY utility Copying the DB2 UDB for zOS catalog using the COPY utility

(TIPS0587)(TIPS0587)bull Systems Programmers Guide to Resource Recovery Services (RRS) Systems Programmers Guide to Resource Recovery Services (RRS)

(SG24-6980)(SG24-6980)

IBM Software Group | DB2 Information Management Software

Education

bull DB2 Version 8 Migration Workshopsndash Let us know if you need one

bull DB2 Version 8 Transition classndash CG381 amp CG382

IBM Software Group | DB2 Information Management Software

Education ( Design)

IBM Software Group | DB2 Information Management Software

Education (Development)

IBM Software Group | DB2 Information Management Software

Education ( Administration)

IBM Software Group | DB2 Information Management Software

Education (Troubleshooting)

IBM Software Group | DB2 Information Management Software

Intelligent Visual Explain

bull Where to obtain the codebull httpwwwibmcomsoftwaredatadb2zososcvebull Fixpack 7 available nowbull Key prerequisites

ndash Windows NT Version 40 Windows 2000 or Windows XPndash 150 MB of hard disk spacendash 256 MB of RAMndash Pentium III equivalent or abovendash Either DB2 ConnecttradePersonal Edition Version 7 (or later) or DB2

Client Application Enablertrade(CAE) with a DB2 Connect Enterprise Edition Version 7 (or later) gateway installed

ndash A TCPIP connection to a DB2 for zOS Version 7 or Version 8 host system

ndash A java-enabled browser to view HTML files

IBM Software Group | DB2 Information Management Software

Reference URLs

httpwwwibmcomsoftwaredatadb2zosindexhtmlDB2 for zOS

httpwww-306ibmcomsoftwaredatadb2zossupporthtmlDB2 for zOS technical support page

httpwww-306ibmcomsoftwaredatadb2zososcveindexhtmlDB2 VE download

httpwwwunicodeorg Unicode Home pagehttpwwwunicodeorgunicodestandardprincipleshtmlThe Unicode Standard amp Basic Principlesftpftpsoftwareibmcomsoftwaredatadb2zosdppdpdfDB2 for zOS Distribute Performance analysisftpftpsoftwareibmcomsoftwaredb2storedproceduredb2zos390techdocsH01PDFDB2-Java Performance and Tuning

IBM Software Group | DB2 Information Management Software

Reference URLs

www-106ibmcomdeveloperworksdb2librarytecharticle0203shibamiya0203shibamiya2htmlInsert vs Load Performance White paper

IBM Software Group | DB2 Information Management Software

Acknowledgements to My Friends

Mark Wilson ndash DB2 Product Introduction CenterAkira Shibamiya - SVLCurt Cotner ndash SVLJohn Campbell ndash SVL

Page 9: Slide 1 - Parallels Plesk Control Panel 8.6.0

IBM Software Group | DB2 Information Management Software

DB2 Maintenancebull PK00615 - DB2 UNIVERSAL JDBC DRIVER RELEASE 25 SERVICE PRIMARILY TYPE-4 XA -4499 SAVEPOINT

ISSUES AND STMT CLOSE HANG bull PK01245 - ADDITIONAL RESTART MESSAGEbull PQ95205 - ENCRYPT AUTHID PASSWORD IN SYSIBMUSERNAMES TABLEbull PK01971 - ADD VERSION TO DSNREXX DBRMbull PQ97373 - ALLOW SPUFI USER TO CHANGE SPUFI PLAN NAMES ON DEFAULT PANELbull PQ97645 - ENCLAVE SUPPORT FOR IRLM BOOST IN DXR167E CASE FOR DDF DIST ENCLAVES MSGDXR167E

DELAY IN ASIDXXXX bull PQ95795 - NEW BUILT-IN FUNCTIONS ASCII() AND TIMESTAMPDIFF()bull PQ93857 - DCR DJ288 IMPLEMENTATIONbull PK03946 - OPTIONAL SUPPORT FOR UNION RESULT COLUMN NAME FOR DESCRIBE LIYANZbull PQ91509 - PRELIMINARY DDF EWLM SUPPORTbull PQ91914 - ALLOW LONG PACKAGE NAMES (UP TO 128 CHARACTERS) TO BE RECEIVED AT A DB2ZOS V8

SERVER bull PK00563 - SQL DEBUGGER V82 ON DB2 FOR ZOSbull PK05818 - DB2 RRS BACKOUT EXITS WILL BE PROCESSED IN THE APPROPRIATE ORDER TO FAVOR CANCELED

THREADSbull PK00579 - ALLOW SCALAR FULLSELECT ON RIGHT-HAND-SIDE OF ASSIGNMENT STATEMENT IN SQL

PROCEDURES bull PK06381 - EIB NEW FUNCTION MODE INDICATOR FOR DB2 ATTACHMENTSbull PK05146 - RAS - DIS THD SERVICE WAIT ENHANCEMENTSbull PK05211 - IRLM SUPPORT FOR DB2 APAR PK01502 - TIMEOUTbull PQ92749 - CHECK INDEX AVAILABILITY IMPROVEMENTbull PQ99205 - MISCELLANEOUS PRECOMPILER FIXES FOR CCSID ISSUESbull PK06018 - POOR QUERY PERFORMANCE WHEN A MATERIALIZED VIEW IS CHOSEN FOR THE INNER TABLE OF A

NESTED LOOP JOIN

IBM Software Group | DB2 Information Management Software

DB2 Maintenancebull PK00615 - DB2 UNIVERSAL JDBC DRIVER RELEASE 25 SERVICE PRIMARILY TYPE-4 XA -4499 SAVEPOINT

ISSUES AND STMT CLOSE HANG bull PK01245 - ADDITIONAL RESTART MESSAGEbull PQ95205 - ENCRYPT AUTHID PASSWORD IN SYSIBMUSERNAMES TABLEbull PK01971 - ADD VERSION TO DSNREXX DBRMbull PQ97373 - ALLOW SPUFI USER TO CHANGE SPUFI PLAN NAMES ON DEFAULT PANELbull PQ97645 - ENCLAVE SUPPORT FOR IRLM BOOST IN DXR167E CASE FOR DDF DIST ENCLAVES MSGDXR167E

DELAY IN ASIDXXXX bull PQ95795 - NEW BUILT-IN FUNCTIONS ASCII() AND TIMESTAMPDIFF()bull PQ93857 - DCR DJ288 IMPLEMENTATIONbull PK03946 - OPTIONAL SUPPORT FOR UNION RESULT COLUMN NAME FOR DESCRIBE LIYANZbull PQ91509 - PRELIMINARY DDF EWLM SUPPORTbull PQ91914 - ALLOW LONG PACKAGE NAMES (UP TO 128 CHARACTERS) TO BE RECEIVED AT A DB2ZOS V8

SERVER bull PK00563 - SQL DEBUGGER V82 ON DB2 FOR ZOSbull PK05818 - DB2 RRS BACKOUT EXITS WILL BE PROCESSED IN THE APPROPRIATE ORDER TO FAVOR CANCELED

THREADSbull PK00579 - ALLOW SCALAR FULLSELECT ON RIGHT-HAND-SIDE OF ASSIGNMENT STATEMENT IN SQL

PROCEDURES bull PK06381 - EIB NEW FUNCTION MODE INDICATOR FOR DB2 ATTACHMENTSbull PK05146 - RAS - DIS THD SERVICE WAIT ENHANCEMENTSbull PK05211 - IRLM SUPPORT FOR DB2 APAR PK01502 - TIMEOUTbull PQ92749 - CHECK INDEX AVAILABILITY IMPROVEMENTbull PQ99205 - MISCELLANEOUS PRECOMPILER FIXES FOR CCSID ISSUESbull PK06018 - POOR QUERY PERFORMANCE WHEN A MATERIALIZED VIEW IS CHOSEN FOR THE INNER TABLE OF A

NESTED LOOP JOIN

IBM Software Group | DB2 Information Management Software

DB2 Maintenancebull 2004 -- some may be V6 or V7

ndash PQ80772 - SUPPORT FOR THE LONG LONG VARIABLE TYPE IN EMBEDDED SQL STATEMENTS IN CC++ HOST LANGUAGE PROGRAMS

ndash PQ84976 - XPLINK SUPPORT FOR ODBC V8ndash PQ71775 - PERFORMANCE IMPROVEMENTS FOR DB2 CATALOG CONSISTENCY QUERIES (V6 V7)ndash PQ90432 - DSN1LOGP SERVICEABILITY ENHANCEMENT ndash PQ95328 - DSN1LOGP SERVICEABILITY ENHANCEMENTndash PQ91101 - RAS ENHANCEMENT TO IFC225ndash PQ86083 - ENHANCEMENT TO V8 DUMP FORMATTERndash PQ95332 - DSNDQJ00 DESCRIPTION OF DDF LOG RECORDS CONTAINING XIDndash PQ87848 - NEW FUNCTION IFCID173 WILL BE ADDED TO MONITOR DYNAMIC SQL STATEMENT THAT

EXCEEDED RLF ASUTIME LIMIT SQLCODE905 ndash PQ89174 - ALLOW ENABLE QUERY OPTIMIZATION CLAUSE IN REFERENTIAL-CONSTRAINT CLAUSE IN

ALTER TABLEndash PQ84421 - ADD DSNTIJP8 - V8 PREMIGRATION CHECKOUT JOB - TO V7ndash PQ90022 - ADD VE SAMPLE STORED PROC DSN8EXPndash PQ89409 - NEW CHANGES FOR DSNTIJMC AND DSNTIJSGndash PQ83834 - IRLM220 HIR2220 SERVICE ROLL-UP 5 MAINTENANCE SINCE PQ80788ndash PQ86904 - IRLM220 HIR2220 SERVICE ROLL-UP 6 MAINTENANCE SINCE PQ83834ndash PQ82063 - REPAIR LOB DELETE SERVICEABILITY ENHANCEMENT ndash PQ47759 - DB2 SERVICEABILITY ENHANCEMENT - DUMP FORMATTINGndash PQ82390 - ALLOW SKIP OF UNCOMMITTED INSERTS BY CS AND RS TRANSACTIONS ndash PQ86108 - LONG MESSAGE TOKEN SUPPORT FOR SPUFI AND DCLGENndash PQ88213 - ENHANCE DSNTEP2 TO IMPROVE PERFORMANCE ndash PQ91763 - DSNTIAUL UNLOAD INCORRECTLY DUE TO MISSING QLWARN DETECTION

IBM Software Group | DB2 Information Management Software

DB2 Maintenancebull PQ89018 - ISSUE SPUFI WARNING IF THE ISPF CCSID IS NOT THE SAME AS DB2S bull PQ88151 - DB2 CUSTOMIZATION CENTER UPDATES FOR PQ86108 CHANGESbull PQ90222 - DB2 CUSTOMIZATION CENTER UPDATES FOR PQ86159 CHANGESbull PQ88983 - ALLOW CANCEL ROLLBACK AFTER LOG DATA SET ACCESS ERRORDCR DJ286 bull PQ90936 - DISPLAY ARCHIVE COMMAND ENHANCEMENT - DJ296 bull PQ93548 - SCAN FOR PRIOR CHECKPOINT DURING RESTART DCR DJ303bull PQ94039 - PAGE PROTECT DB2 EARLY CODEbull PQ95159 - ARCHIVE LOG READ IO ERROR MESSAGEbull PQ87444 - MINIMIZE DDF DEPENDENCY ON SUPER_USER AUTHORITYbull PQ91009 - ENSURE DDF LOCATION NAME IS SPECIFIED DURING DB2 STARTUPbull PQ87786 - ACCUMULATED DEFECT FIXES AND ENHANCEMENTS FOR DB2 UNIVERSAL JDBC DRIVER

bull PQ93458 - NEW DB2 UNIVERSAL DRIVER RELEASE 2372bull PQ85700 - HANDSHAKING BETWEEN DB2 SQL COPROCESSOR AND COMPILERSbull PQ86907 - ENABLING PRINTING OF DSNH4760 AND DSNH4761 WARNINGINFO MSGS FOR NON-COBOL PROGRAM bull PQ90147 - SUPPORT GREATER THAN 245 SECONDARY AUTHORIZATION IDSbull PQ89070 - LOCK AVOIDANCE FOR SINGLETON SELECT WITH ISO(CS) AND CURRENTDATA(YES) bull PQ75974 - ACTIVATE CONTROL CENTER V82 OBJECT MAINTENANCE AUTOMATION AND DSN SUBCOMMANDS

BINDREBINDFREE FOR DB2 FOR OS390ZOS V7 bull PQ94548 - ADD GRANT ALL ON CREATED TEMPORARY TABLES IN DSNTIJCCbull PQ87298 - INSERTING UCS-2 DATA BOUND TO C DATA TYPE SQL_C_WCHAR RESULTS IN SQLSTATE 22001

SQLCODE -99999 bull PQ88582 - ODBC SUPPORT FOR 2MB SQL STATEMENT

IBM Software Group | DB2 Information Management Software

Service Stream Features (selected)

IBM Software Group | DB2 Information Management Software

Allow user to change SPUFI plan name

bull Problem SPUFI userrsquos terminal CCSID is different from the DB2 system EBCDIC CCSID (DSNHDECP SCCSID value)

bull Solution can now create copies of the SPUFI plan for each CCSID needed by users

bull SPUFI user can change plan name to the appropriate name for his CCSID

APAR PTF PTF Avail PUT

PQ97373 UK02448

(also V7)

20050511 F505

IBM Software Group | DB2 Information Management Software

ODBC support for 2 MB statement

bull When connecting to DB2 for zOS V8 NFM system maximum SQL statement length is 2 MB

ndash previously 32K

bull ODBC DBRMs will now precompile with CCSID(1047) instead of default CCSID

APAR PTF PTF Avail PUT

PQ88582 UQ91257 20040909 F409

IBM Software Group | DB2 Information Management Software

DB2 Coprocessor ldquolevelrdquo

bull DB2 Coprocessor ldquolevelrdquo corresponds to NEWFUN precompiler optionndash level 1 NEWFUN (NO)

ndash level 2 NEWFUN (YES)

ndash new message DSNH4760I indicates level

ndash new message DSNH4761I -- level 2 requested but compiler only supports level 1

APAR PTF PTF Avail PUT

PQ85700 COBOL

PQ86907 PLI

UQ86392

UQ87641

20040323

20040601

F403

F405

IBM Software Group | DB2 Information Management Software

CHECK INDEX enhancement

bull CHECK INDEX becomes implicitly SHRLEVEL REFERENCE

bull APAR for PQ96956 (DB2 Utilities Suite -- open) Online CHECK INDEX

ndash CHECK INDEX SHRLEVEL CHANGE

APAR PTF PTF Avail PUT

PQ92749

(DB2 base)

UK04683 20050708 1000

IBM Software Group | DB2 Information Management Software

Stalled restart detection

bull DB2 restart can be stalled eg for archive log tape mounts or HSM recalls

bull A DB2 timer task will now monitor recovery phase of restart

bull If the restart processor has been suspended more than 2 minutes issue new messages

DSNR055I csect RESTART SUSPENDED SINCE time

DSNR056I csect RESTART SUSPENDED ON IRLM REQUEST

DSNR057I csect RESOURCE INFORMATION DBID

DSNR058I csect ACCESSING ARCHIVE LOG data-set-name

APAR PTF PTF Avail PUT

PK01245 UK01653

(also V7)

20050406 F504

IBM Software Group | DB2 Information Management Software

Encrypt userid pw for DDF

bull Problem NEWAUTHID and PASSWORD are stored in the clear in SYSIBMUSERNAMES

bull New stored proc SYSPROCDSNLEUSR stores authid and password in encrypted form

bull Values are decrypted prior to sending to remote server

bull Requires DB2 V8 NFM and zOS Integrated Cryptographic Services Facility (ISCF)

bull wwwibmcomsupport ndash Flash 1208122

APAR PTF PTF Avail PUT

PQ95205 UK02094 20050420 F504

IBM Software Group | DB2 Information Management Software

Hung thread diagnosis

bull When a thread is hung it is often necessary to force a console dump to gather information

-DIS THD() SERVICE(WAIT)

will display threads suspended 2x IRLM timeout (minimum 60 sec) -- additional information if suspended for IRLM lock or DB2 latch contention

APAR PTF PTF Avail PUT

PQ83649 UQ87013

(also V7)

20040420 F404

IBM Software Group | DB2 Information Management Software

Storage monitoring

bull V7 amp V8 ICFID 225 adds real storage statisticsndash number of real frames (4K) in use

ndash number of auxilary slots (4K) in use

(conrsquot)

APAR PTF PTF Avail PUT

PQ91101 UQ92441

(also V7)

20040928 F409

IBM Software Group | DB2 Information Management Software

Preliminary DDF EWLM support

bull IBM Virtualization Engine Enterprise Workload Manager for zOS V110

bull Enterprise Workload Manager enables you to automatically monitor and manage multi-tiered distributed heterogeneous or homogeneous workloads -- extends WLM to other platforms

bull Available starting with zOS 16

bull This APAR allows DDF to act as a server to TCPIP connections to be monitored within an EWLM domain

bull Announcement letter 204-305

APAR PTF PTF Avail PUT

PQ91509 UK03835 20050617 1000

IBM Software Group | DB2 Information Management Software

Monitoring lsquoRLF limit exceededrsquo

bull Problem exceeding RLF ASUTIME for dynamic SQL gets SQLCODE -905 but little info

bull Solution new IFCID 173 to provide plan name collection package name authid time used user ASUTIME

APAR PTF PTF Avail PUT

PQ87848 UQ90756

(also V7)

20040803 F408

IBM Software Group | DB2 Information Management Software

New JDBC driver releases (conrsquot)

bull DB2 Universal JDBC Driver release 25ndash Type-2 control over accounting records at COMMIT or end of physical connection

ndash Plus 29 other maintenance items

APAR PTF PTF Avail PUT

PQ95284 UK00182

(also V7)

20050202 F502

IBM Software Group | DB2 Information Management Software

QMF multi-row FETCH INSERT

bull QMF V8 NFM with DB2 V8 NFM automatically transforms your queries to multi-row operations

APAR PTF PTF Avail PUT

PQ99482 UK06848 20050902 1000

IBM Software Group | DB2 Information Management Software

Performance Imperatives

bull If necessary reduce MAXKEEPD to reduce local DSC rely more on global DSC which is above 2GB

bull V8 PQ96772 205 to move dynamic statement cache control blocks above 2GB

bull PK01911 605 Increased cpu time in Index and Storage processing sometimes accompanied by high LC32 contention

bull PQ99608 205 Excessive log write iorsquos triggered by insert into table with identity column

bull Incorrect Runstats values

bull 1048707 PK01510 505 NPI cluster ratio

bull 1048707 PK03469 505 Non-uniform distribution stats

bull PK04107 Bidirectional indexability for unicode to ebcdic

bull PK05360 Hybrid join with multi-row Fetch

bull PK04076 505 Load default of No Sortkeys if only one index and sorted input

IBM Software Group | DB2 Information Management Software

IBM Software Group

copy 2004 IBM Corporation2 IBM Confidential

V7V8 PK09158 705 Dramatic speedup and elimination of non linear performance problem in deletes via SCT02 or SPT01 in Bind Replace or Free

ndash Resolved a half dozen performance PMRs recently raised

V8 PK01911 605 Fix general V8 performance degradation brought about by V8 PQ93318 1204

V8 Multi-row Fetch performance problems

ndash PK05360 opened 505 No hybrid join support

ndash PQ88009 504 disabled parallelism for the last group of the top level query block if there is no Groupby or Orderby

ndash PK10021 opened 805 query abend with host variable or special register

V8 PQ92072 805 to support implicit multi-row Insert by ODBC array input

Recent major performance-related apars

IBM Software Group | DB2 Information Management Software

Performance Imperatives ( conthellip)

bull V8 PK05644 Preformatting up to 2 cylinders at a time to minimize preformat time

bull V7 PQ86037 304 Insert at end option for member cluster tablespace (V7V8 PQ87381 More robust version coming in 2005)

ndash Avoid re-reading spacemap pages from the beginning before dataset extend by always searching forward for freespace when zero PCTFREE and FREEPAGE

ndash Can support steady and continuous high insert rate without rapidly increasing Getpage

ndash Especially useful for heavy insert without delete

IBM Software Group | DB2 Information Management Software

Insert CPU Usage

bull 1048707 Most affected by the number of indexesbull 1048707 DB2 Estimator recommended for more detailed analysisbull 1048707 Rule-of-Thumb Z990(2) cpu time per row inserted inbull microseconds (us) =bull [26 online transaction or 20 batch]bull + 11 for 1 index + 21 for each additional indexbull + 20to30 x pagesread x 13(30 additional for write)bull + 2 if class2 acctg (1)bull + 12 if DB2CICS without TS22 threadsafe option (1)bull - up to 10 if multi-row insert

bull (1) Can disappear if multi-row insertbull (2) Use cpu time multiplier from wwws390ibmcomlspr for other processor models

IBM Software Group | DB2 Information Management Software

Virtual Storage items

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

Java Universal Driver

bull Significant reengineering of Java support for DB2 Connect CAE and DB2 for OS390 and zOS client softwarendash Uses DRDA protocols for all client communication

ndash Eliminates DB2RA and net driver protocols

ndash Traditional DB2 client configuration (CCA) is optional

ndash Much better handling of different clientserver software levels

ndash Improved DB2 Connect consistencyperformance

ndash much higher percentage of common code

ndash fewer unique code paths for specific hardware configurations

ndash Several significant improvements to DRDA

ndash support for long SQL names and statements

ndash DRDA query block sizes can now be up to 2M bytes

ndash rely on server-supplied stored procedures for SQL error messagesdatabase metadata etc

ndash many internal performance improvements

IBM Software Group | DB2 Information Management Software

Java Universal Driver

bull Why use itndash Legacy Drivers functionally stabilized amp will be deprecated

ndash Single driver for all platforms

ndash Client Accounting String

ndash Performance monitor methods

ndash Better performance

IBM Software Group | DB2 Information Management Software

SQLJ usage is increasing

bull Static SQL performance for Java applicationsndash less code written by the application programmer

ndash resulting code is easier to maintain

ndash significant performance advantage over JDBC

ndash Static SQL authorization model

bull Provides Java with a stronger authorization modelndash Monitoringmanageability

ndash static SQL packages for accountingmonitoring

bull Static SQL locks in access path so that access path changes dont occur without a conscious choice

IBM Software Group | DB2 Information Management Software

JDBC vs SQLJ example

bull Retrieve a single row from DB2bull SQLJ

sql [con] SELECT ADDRESS INTO addr FROM EMP WHERE NAME=name

bull JDBCjavasqlPreparedStatement ps = conprepareStatement(SELECT ADDRESS FROM EMP WHERE NAME=)pssetString(1 name)javasqlResultSet names = psexecuteQuery()namesnext()addr = namesgetString(1)namesclose()

bull -- portable across platforms and DBMSsbull -- compilebind time schema checkingbull -- static SQL performance and authorizationbull -- concisebull -- strong typing

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

DB2 Futures

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

DB2 Redbooks - 2Q 2004 httpwwwibmcomredbooks

bull Business Performance Management Meets Business Intelligence (SG24-6340)

bull The Business Value of DB2 UDB for zOS (SG24-6763)bull Data Mart Consolidation Getting Control of Your Enterprise

Information(SG24-6653)bull DB2 UDB for zOS Version 8 Performance Topics (SG24-6465)bull Microsoft SQL Server to IBM DB2 UDB Conversion Guide (SG24-

6672)bull DB2 for zOS and WebSphere The Perfect Couple (SG24-6319)bull Copying the DB2 UDB for zOS catalog using the COPY utility Copying the DB2 UDB for zOS catalog using the COPY utility

(TIPS0587)(TIPS0587)bull Systems Programmers Guide to Resource Recovery Services (RRS) Systems Programmers Guide to Resource Recovery Services (RRS)

(SG24-6980)(SG24-6980)

IBM Software Group | DB2 Information Management Software

Education

bull DB2 Version 8 Migration Workshopsndash Let us know if you need one

bull DB2 Version 8 Transition classndash CG381 amp CG382

IBM Software Group | DB2 Information Management Software

Education ( Design)

IBM Software Group | DB2 Information Management Software

Education (Development)

IBM Software Group | DB2 Information Management Software

Education ( Administration)

IBM Software Group | DB2 Information Management Software

Education (Troubleshooting)

IBM Software Group | DB2 Information Management Software

Intelligent Visual Explain

bull Where to obtain the codebull httpwwwibmcomsoftwaredatadb2zososcvebull Fixpack 7 available nowbull Key prerequisites

ndash Windows NT Version 40 Windows 2000 or Windows XPndash 150 MB of hard disk spacendash 256 MB of RAMndash Pentium III equivalent or abovendash Either DB2 ConnecttradePersonal Edition Version 7 (or later) or DB2

Client Application Enablertrade(CAE) with a DB2 Connect Enterprise Edition Version 7 (or later) gateway installed

ndash A TCPIP connection to a DB2 for zOS Version 7 or Version 8 host system

ndash A java-enabled browser to view HTML files

IBM Software Group | DB2 Information Management Software

Reference URLs

httpwwwibmcomsoftwaredatadb2zosindexhtmlDB2 for zOS

httpwww-306ibmcomsoftwaredatadb2zossupporthtmlDB2 for zOS technical support page

httpwww-306ibmcomsoftwaredatadb2zososcveindexhtmlDB2 VE download

httpwwwunicodeorg Unicode Home pagehttpwwwunicodeorgunicodestandardprincipleshtmlThe Unicode Standard amp Basic Principlesftpftpsoftwareibmcomsoftwaredatadb2zosdppdpdfDB2 for zOS Distribute Performance analysisftpftpsoftwareibmcomsoftwaredb2storedproceduredb2zos390techdocsH01PDFDB2-Java Performance and Tuning

IBM Software Group | DB2 Information Management Software

Reference URLs

www-106ibmcomdeveloperworksdb2librarytecharticle0203shibamiya0203shibamiya2htmlInsert vs Load Performance White paper

IBM Software Group | DB2 Information Management Software

Acknowledgements to My Friends

Mark Wilson ndash DB2 Product Introduction CenterAkira Shibamiya - SVLCurt Cotner ndash SVLJohn Campbell ndash SVL

Page 10: Slide 1 - Parallels Plesk Control Panel 8.6.0

IBM Software Group | DB2 Information Management Software

DB2 Maintenancebull PK00615 - DB2 UNIVERSAL JDBC DRIVER RELEASE 25 SERVICE PRIMARILY TYPE-4 XA -4499 SAVEPOINT

ISSUES AND STMT CLOSE HANG bull PK01245 - ADDITIONAL RESTART MESSAGEbull PQ95205 - ENCRYPT AUTHID PASSWORD IN SYSIBMUSERNAMES TABLEbull PK01971 - ADD VERSION TO DSNREXX DBRMbull PQ97373 - ALLOW SPUFI USER TO CHANGE SPUFI PLAN NAMES ON DEFAULT PANELbull PQ97645 - ENCLAVE SUPPORT FOR IRLM BOOST IN DXR167E CASE FOR DDF DIST ENCLAVES MSGDXR167E

DELAY IN ASIDXXXX bull PQ95795 - NEW BUILT-IN FUNCTIONS ASCII() AND TIMESTAMPDIFF()bull PQ93857 - DCR DJ288 IMPLEMENTATIONbull PK03946 - OPTIONAL SUPPORT FOR UNION RESULT COLUMN NAME FOR DESCRIBE LIYANZbull PQ91509 - PRELIMINARY DDF EWLM SUPPORTbull PQ91914 - ALLOW LONG PACKAGE NAMES (UP TO 128 CHARACTERS) TO BE RECEIVED AT A DB2ZOS V8

SERVER bull PK00563 - SQL DEBUGGER V82 ON DB2 FOR ZOSbull PK05818 - DB2 RRS BACKOUT EXITS WILL BE PROCESSED IN THE APPROPRIATE ORDER TO FAVOR CANCELED

THREADSbull PK00579 - ALLOW SCALAR FULLSELECT ON RIGHT-HAND-SIDE OF ASSIGNMENT STATEMENT IN SQL

PROCEDURES bull PK06381 - EIB NEW FUNCTION MODE INDICATOR FOR DB2 ATTACHMENTSbull PK05146 - RAS - DIS THD SERVICE WAIT ENHANCEMENTSbull PK05211 - IRLM SUPPORT FOR DB2 APAR PK01502 - TIMEOUTbull PQ92749 - CHECK INDEX AVAILABILITY IMPROVEMENTbull PQ99205 - MISCELLANEOUS PRECOMPILER FIXES FOR CCSID ISSUESbull PK06018 - POOR QUERY PERFORMANCE WHEN A MATERIALIZED VIEW IS CHOSEN FOR THE INNER TABLE OF A

NESTED LOOP JOIN

IBM Software Group | DB2 Information Management Software

DB2 Maintenancebull 2004 -- some may be V6 or V7

ndash PQ80772 - SUPPORT FOR THE LONG LONG VARIABLE TYPE IN EMBEDDED SQL STATEMENTS IN CC++ HOST LANGUAGE PROGRAMS

ndash PQ84976 - XPLINK SUPPORT FOR ODBC V8ndash PQ71775 - PERFORMANCE IMPROVEMENTS FOR DB2 CATALOG CONSISTENCY QUERIES (V6 V7)ndash PQ90432 - DSN1LOGP SERVICEABILITY ENHANCEMENT ndash PQ95328 - DSN1LOGP SERVICEABILITY ENHANCEMENTndash PQ91101 - RAS ENHANCEMENT TO IFC225ndash PQ86083 - ENHANCEMENT TO V8 DUMP FORMATTERndash PQ95332 - DSNDQJ00 DESCRIPTION OF DDF LOG RECORDS CONTAINING XIDndash PQ87848 - NEW FUNCTION IFCID173 WILL BE ADDED TO MONITOR DYNAMIC SQL STATEMENT THAT

EXCEEDED RLF ASUTIME LIMIT SQLCODE905 ndash PQ89174 - ALLOW ENABLE QUERY OPTIMIZATION CLAUSE IN REFERENTIAL-CONSTRAINT CLAUSE IN

ALTER TABLEndash PQ84421 - ADD DSNTIJP8 - V8 PREMIGRATION CHECKOUT JOB - TO V7ndash PQ90022 - ADD VE SAMPLE STORED PROC DSN8EXPndash PQ89409 - NEW CHANGES FOR DSNTIJMC AND DSNTIJSGndash PQ83834 - IRLM220 HIR2220 SERVICE ROLL-UP 5 MAINTENANCE SINCE PQ80788ndash PQ86904 - IRLM220 HIR2220 SERVICE ROLL-UP 6 MAINTENANCE SINCE PQ83834ndash PQ82063 - REPAIR LOB DELETE SERVICEABILITY ENHANCEMENT ndash PQ47759 - DB2 SERVICEABILITY ENHANCEMENT - DUMP FORMATTINGndash PQ82390 - ALLOW SKIP OF UNCOMMITTED INSERTS BY CS AND RS TRANSACTIONS ndash PQ86108 - LONG MESSAGE TOKEN SUPPORT FOR SPUFI AND DCLGENndash PQ88213 - ENHANCE DSNTEP2 TO IMPROVE PERFORMANCE ndash PQ91763 - DSNTIAUL UNLOAD INCORRECTLY DUE TO MISSING QLWARN DETECTION

IBM Software Group | DB2 Information Management Software

DB2 Maintenancebull PQ89018 - ISSUE SPUFI WARNING IF THE ISPF CCSID IS NOT THE SAME AS DB2S bull PQ88151 - DB2 CUSTOMIZATION CENTER UPDATES FOR PQ86108 CHANGESbull PQ90222 - DB2 CUSTOMIZATION CENTER UPDATES FOR PQ86159 CHANGESbull PQ88983 - ALLOW CANCEL ROLLBACK AFTER LOG DATA SET ACCESS ERRORDCR DJ286 bull PQ90936 - DISPLAY ARCHIVE COMMAND ENHANCEMENT - DJ296 bull PQ93548 - SCAN FOR PRIOR CHECKPOINT DURING RESTART DCR DJ303bull PQ94039 - PAGE PROTECT DB2 EARLY CODEbull PQ95159 - ARCHIVE LOG READ IO ERROR MESSAGEbull PQ87444 - MINIMIZE DDF DEPENDENCY ON SUPER_USER AUTHORITYbull PQ91009 - ENSURE DDF LOCATION NAME IS SPECIFIED DURING DB2 STARTUPbull PQ87786 - ACCUMULATED DEFECT FIXES AND ENHANCEMENTS FOR DB2 UNIVERSAL JDBC DRIVER

bull PQ93458 - NEW DB2 UNIVERSAL DRIVER RELEASE 2372bull PQ85700 - HANDSHAKING BETWEEN DB2 SQL COPROCESSOR AND COMPILERSbull PQ86907 - ENABLING PRINTING OF DSNH4760 AND DSNH4761 WARNINGINFO MSGS FOR NON-COBOL PROGRAM bull PQ90147 - SUPPORT GREATER THAN 245 SECONDARY AUTHORIZATION IDSbull PQ89070 - LOCK AVOIDANCE FOR SINGLETON SELECT WITH ISO(CS) AND CURRENTDATA(YES) bull PQ75974 - ACTIVATE CONTROL CENTER V82 OBJECT MAINTENANCE AUTOMATION AND DSN SUBCOMMANDS

BINDREBINDFREE FOR DB2 FOR OS390ZOS V7 bull PQ94548 - ADD GRANT ALL ON CREATED TEMPORARY TABLES IN DSNTIJCCbull PQ87298 - INSERTING UCS-2 DATA BOUND TO C DATA TYPE SQL_C_WCHAR RESULTS IN SQLSTATE 22001

SQLCODE -99999 bull PQ88582 - ODBC SUPPORT FOR 2MB SQL STATEMENT

IBM Software Group | DB2 Information Management Software

Service Stream Features (selected)

IBM Software Group | DB2 Information Management Software

Allow user to change SPUFI plan name

bull Problem SPUFI userrsquos terminal CCSID is different from the DB2 system EBCDIC CCSID (DSNHDECP SCCSID value)

bull Solution can now create copies of the SPUFI plan for each CCSID needed by users

bull SPUFI user can change plan name to the appropriate name for his CCSID

APAR PTF PTF Avail PUT

PQ97373 UK02448

(also V7)

20050511 F505

IBM Software Group | DB2 Information Management Software

ODBC support for 2 MB statement

bull When connecting to DB2 for zOS V8 NFM system maximum SQL statement length is 2 MB

ndash previously 32K

bull ODBC DBRMs will now precompile with CCSID(1047) instead of default CCSID

APAR PTF PTF Avail PUT

PQ88582 UQ91257 20040909 F409

IBM Software Group | DB2 Information Management Software

DB2 Coprocessor ldquolevelrdquo

bull DB2 Coprocessor ldquolevelrdquo corresponds to NEWFUN precompiler optionndash level 1 NEWFUN (NO)

ndash level 2 NEWFUN (YES)

ndash new message DSNH4760I indicates level

ndash new message DSNH4761I -- level 2 requested but compiler only supports level 1

APAR PTF PTF Avail PUT

PQ85700 COBOL

PQ86907 PLI

UQ86392

UQ87641

20040323

20040601

F403

F405

IBM Software Group | DB2 Information Management Software

CHECK INDEX enhancement

bull CHECK INDEX becomes implicitly SHRLEVEL REFERENCE

bull APAR for PQ96956 (DB2 Utilities Suite -- open) Online CHECK INDEX

ndash CHECK INDEX SHRLEVEL CHANGE

APAR PTF PTF Avail PUT

PQ92749

(DB2 base)

UK04683 20050708 1000

IBM Software Group | DB2 Information Management Software

Stalled restart detection

bull DB2 restart can be stalled eg for archive log tape mounts or HSM recalls

bull A DB2 timer task will now monitor recovery phase of restart

bull If the restart processor has been suspended more than 2 minutes issue new messages

DSNR055I csect RESTART SUSPENDED SINCE time

DSNR056I csect RESTART SUSPENDED ON IRLM REQUEST

DSNR057I csect RESOURCE INFORMATION DBID

DSNR058I csect ACCESSING ARCHIVE LOG data-set-name

APAR PTF PTF Avail PUT

PK01245 UK01653

(also V7)

20050406 F504

IBM Software Group | DB2 Information Management Software

Encrypt userid pw for DDF

bull Problem NEWAUTHID and PASSWORD are stored in the clear in SYSIBMUSERNAMES

bull New stored proc SYSPROCDSNLEUSR stores authid and password in encrypted form

bull Values are decrypted prior to sending to remote server

bull Requires DB2 V8 NFM and zOS Integrated Cryptographic Services Facility (ISCF)

bull wwwibmcomsupport ndash Flash 1208122

APAR PTF PTF Avail PUT

PQ95205 UK02094 20050420 F504

IBM Software Group | DB2 Information Management Software

Hung thread diagnosis

bull When a thread is hung it is often necessary to force a console dump to gather information

-DIS THD() SERVICE(WAIT)

will display threads suspended 2x IRLM timeout (minimum 60 sec) -- additional information if suspended for IRLM lock or DB2 latch contention

APAR PTF PTF Avail PUT

PQ83649 UQ87013

(also V7)

20040420 F404

IBM Software Group | DB2 Information Management Software

Storage monitoring

bull V7 amp V8 ICFID 225 adds real storage statisticsndash number of real frames (4K) in use

ndash number of auxilary slots (4K) in use

(conrsquot)

APAR PTF PTF Avail PUT

PQ91101 UQ92441

(also V7)

20040928 F409

IBM Software Group | DB2 Information Management Software

Preliminary DDF EWLM support

bull IBM Virtualization Engine Enterprise Workload Manager for zOS V110

bull Enterprise Workload Manager enables you to automatically monitor and manage multi-tiered distributed heterogeneous or homogeneous workloads -- extends WLM to other platforms

bull Available starting with zOS 16

bull This APAR allows DDF to act as a server to TCPIP connections to be monitored within an EWLM domain

bull Announcement letter 204-305

APAR PTF PTF Avail PUT

PQ91509 UK03835 20050617 1000

IBM Software Group | DB2 Information Management Software

Monitoring lsquoRLF limit exceededrsquo

bull Problem exceeding RLF ASUTIME for dynamic SQL gets SQLCODE -905 but little info

bull Solution new IFCID 173 to provide plan name collection package name authid time used user ASUTIME

APAR PTF PTF Avail PUT

PQ87848 UQ90756

(also V7)

20040803 F408

IBM Software Group | DB2 Information Management Software

New JDBC driver releases (conrsquot)

bull DB2 Universal JDBC Driver release 25ndash Type-2 control over accounting records at COMMIT or end of physical connection

ndash Plus 29 other maintenance items

APAR PTF PTF Avail PUT

PQ95284 UK00182

(also V7)

20050202 F502

IBM Software Group | DB2 Information Management Software

QMF multi-row FETCH INSERT

bull QMF V8 NFM with DB2 V8 NFM automatically transforms your queries to multi-row operations

APAR PTF PTF Avail PUT

PQ99482 UK06848 20050902 1000

IBM Software Group | DB2 Information Management Software

Performance Imperatives

bull If necessary reduce MAXKEEPD to reduce local DSC rely more on global DSC which is above 2GB

bull V8 PQ96772 205 to move dynamic statement cache control blocks above 2GB

bull PK01911 605 Increased cpu time in Index and Storage processing sometimes accompanied by high LC32 contention

bull PQ99608 205 Excessive log write iorsquos triggered by insert into table with identity column

bull Incorrect Runstats values

bull 1048707 PK01510 505 NPI cluster ratio

bull 1048707 PK03469 505 Non-uniform distribution stats

bull PK04107 Bidirectional indexability for unicode to ebcdic

bull PK05360 Hybrid join with multi-row Fetch

bull PK04076 505 Load default of No Sortkeys if only one index and sorted input

IBM Software Group | DB2 Information Management Software

IBM Software Group

copy 2004 IBM Corporation2 IBM Confidential

V7V8 PK09158 705 Dramatic speedup and elimination of non linear performance problem in deletes via SCT02 or SPT01 in Bind Replace or Free

ndash Resolved a half dozen performance PMRs recently raised

V8 PK01911 605 Fix general V8 performance degradation brought about by V8 PQ93318 1204

V8 Multi-row Fetch performance problems

ndash PK05360 opened 505 No hybrid join support

ndash PQ88009 504 disabled parallelism for the last group of the top level query block if there is no Groupby or Orderby

ndash PK10021 opened 805 query abend with host variable or special register

V8 PQ92072 805 to support implicit multi-row Insert by ODBC array input

Recent major performance-related apars

IBM Software Group | DB2 Information Management Software

Performance Imperatives ( conthellip)

bull V8 PK05644 Preformatting up to 2 cylinders at a time to minimize preformat time

bull V7 PQ86037 304 Insert at end option for member cluster tablespace (V7V8 PQ87381 More robust version coming in 2005)

ndash Avoid re-reading spacemap pages from the beginning before dataset extend by always searching forward for freespace when zero PCTFREE and FREEPAGE

ndash Can support steady and continuous high insert rate without rapidly increasing Getpage

ndash Especially useful for heavy insert without delete

IBM Software Group | DB2 Information Management Software

Insert CPU Usage

bull 1048707 Most affected by the number of indexesbull 1048707 DB2 Estimator recommended for more detailed analysisbull 1048707 Rule-of-Thumb Z990(2) cpu time per row inserted inbull microseconds (us) =bull [26 online transaction or 20 batch]bull + 11 for 1 index + 21 for each additional indexbull + 20to30 x pagesread x 13(30 additional for write)bull + 2 if class2 acctg (1)bull + 12 if DB2CICS without TS22 threadsafe option (1)bull - up to 10 if multi-row insert

bull (1) Can disappear if multi-row insertbull (2) Use cpu time multiplier from wwws390ibmcomlspr for other processor models

IBM Software Group | DB2 Information Management Software

Virtual Storage items

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

Java Universal Driver

bull Significant reengineering of Java support for DB2 Connect CAE and DB2 for OS390 and zOS client softwarendash Uses DRDA protocols for all client communication

ndash Eliminates DB2RA and net driver protocols

ndash Traditional DB2 client configuration (CCA) is optional

ndash Much better handling of different clientserver software levels

ndash Improved DB2 Connect consistencyperformance

ndash much higher percentage of common code

ndash fewer unique code paths for specific hardware configurations

ndash Several significant improvements to DRDA

ndash support for long SQL names and statements

ndash DRDA query block sizes can now be up to 2M bytes

ndash rely on server-supplied stored procedures for SQL error messagesdatabase metadata etc

ndash many internal performance improvements

IBM Software Group | DB2 Information Management Software

Java Universal Driver

bull Why use itndash Legacy Drivers functionally stabilized amp will be deprecated

ndash Single driver for all platforms

ndash Client Accounting String

ndash Performance monitor methods

ndash Better performance

IBM Software Group | DB2 Information Management Software

SQLJ usage is increasing

bull Static SQL performance for Java applicationsndash less code written by the application programmer

ndash resulting code is easier to maintain

ndash significant performance advantage over JDBC

ndash Static SQL authorization model

bull Provides Java with a stronger authorization modelndash Monitoringmanageability

ndash static SQL packages for accountingmonitoring

bull Static SQL locks in access path so that access path changes dont occur without a conscious choice

IBM Software Group | DB2 Information Management Software

JDBC vs SQLJ example

bull Retrieve a single row from DB2bull SQLJ

sql [con] SELECT ADDRESS INTO addr FROM EMP WHERE NAME=name

bull JDBCjavasqlPreparedStatement ps = conprepareStatement(SELECT ADDRESS FROM EMP WHERE NAME=)pssetString(1 name)javasqlResultSet names = psexecuteQuery()namesnext()addr = namesgetString(1)namesclose()

bull -- portable across platforms and DBMSsbull -- compilebind time schema checkingbull -- static SQL performance and authorizationbull -- concisebull -- strong typing

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

DB2 Futures

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

DB2 Redbooks - 2Q 2004 httpwwwibmcomredbooks

bull Business Performance Management Meets Business Intelligence (SG24-6340)

bull The Business Value of DB2 UDB for zOS (SG24-6763)bull Data Mart Consolidation Getting Control of Your Enterprise

Information(SG24-6653)bull DB2 UDB for zOS Version 8 Performance Topics (SG24-6465)bull Microsoft SQL Server to IBM DB2 UDB Conversion Guide (SG24-

6672)bull DB2 for zOS and WebSphere The Perfect Couple (SG24-6319)bull Copying the DB2 UDB for zOS catalog using the COPY utility Copying the DB2 UDB for zOS catalog using the COPY utility

(TIPS0587)(TIPS0587)bull Systems Programmers Guide to Resource Recovery Services (RRS) Systems Programmers Guide to Resource Recovery Services (RRS)

(SG24-6980)(SG24-6980)

IBM Software Group | DB2 Information Management Software

Education

bull DB2 Version 8 Migration Workshopsndash Let us know if you need one

bull DB2 Version 8 Transition classndash CG381 amp CG382

IBM Software Group | DB2 Information Management Software

Education ( Design)

IBM Software Group | DB2 Information Management Software

Education (Development)

IBM Software Group | DB2 Information Management Software

Education ( Administration)

IBM Software Group | DB2 Information Management Software

Education (Troubleshooting)

IBM Software Group | DB2 Information Management Software

Intelligent Visual Explain

bull Where to obtain the codebull httpwwwibmcomsoftwaredatadb2zososcvebull Fixpack 7 available nowbull Key prerequisites

ndash Windows NT Version 40 Windows 2000 or Windows XPndash 150 MB of hard disk spacendash 256 MB of RAMndash Pentium III equivalent or abovendash Either DB2 ConnecttradePersonal Edition Version 7 (or later) or DB2

Client Application Enablertrade(CAE) with a DB2 Connect Enterprise Edition Version 7 (or later) gateway installed

ndash A TCPIP connection to a DB2 for zOS Version 7 or Version 8 host system

ndash A java-enabled browser to view HTML files

IBM Software Group | DB2 Information Management Software

Reference URLs

httpwwwibmcomsoftwaredatadb2zosindexhtmlDB2 for zOS

httpwww-306ibmcomsoftwaredatadb2zossupporthtmlDB2 for zOS technical support page

httpwww-306ibmcomsoftwaredatadb2zososcveindexhtmlDB2 VE download

httpwwwunicodeorg Unicode Home pagehttpwwwunicodeorgunicodestandardprincipleshtmlThe Unicode Standard amp Basic Principlesftpftpsoftwareibmcomsoftwaredatadb2zosdppdpdfDB2 for zOS Distribute Performance analysisftpftpsoftwareibmcomsoftwaredb2storedproceduredb2zos390techdocsH01PDFDB2-Java Performance and Tuning

IBM Software Group | DB2 Information Management Software

Reference URLs

www-106ibmcomdeveloperworksdb2librarytecharticle0203shibamiya0203shibamiya2htmlInsert vs Load Performance White paper

IBM Software Group | DB2 Information Management Software

Acknowledgements to My Friends

Mark Wilson ndash DB2 Product Introduction CenterAkira Shibamiya - SVLCurt Cotner ndash SVLJohn Campbell ndash SVL

Page 11: Slide 1 - Parallels Plesk Control Panel 8.6.0

IBM Software Group | DB2 Information Management Software

DB2 Maintenancebull 2004 -- some may be V6 or V7

ndash PQ80772 - SUPPORT FOR THE LONG LONG VARIABLE TYPE IN EMBEDDED SQL STATEMENTS IN CC++ HOST LANGUAGE PROGRAMS

ndash PQ84976 - XPLINK SUPPORT FOR ODBC V8ndash PQ71775 - PERFORMANCE IMPROVEMENTS FOR DB2 CATALOG CONSISTENCY QUERIES (V6 V7)ndash PQ90432 - DSN1LOGP SERVICEABILITY ENHANCEMENT ndash PQ95328 - DSN1LOGP SERVICEABILITY ENHANCEMENTndash PQ91101 - RAS ENHANCEMENT TO IFC225ndash PQ86083 - ENHANCEMENT TO V8 DUMP FORMATTERndash PQ95332 - DSNDQJ00 DESCRIPTION OF DDF LOG RECORDS CONTAINING XIDndash PQ87848 - NEW FUNCTION IFCID173 WILL BE ADDED TO MONITOR DYNAMIC SQL STATEMENT THAT

EXCEEDED RLF ASUTIME LIMIT SQLCODE905 ndash PQ89174 - ALLOW ENABLE QUERY OPTIMIZATION CLAUSE IN REFERENTIAL-CONSTRAINT CLAUSE IN

ALTER TABLEndash PQ84421 - ADD DSNTIJP8 - V8 PREMIGRATION CHECKOUT JOB - TO V7ndash PQ90022 - ADD VE SAMPLE STORED PROC DSN8EXPndash PQ89409 - NEW CHANGES FOR DSNTIJMC AND DSNTIJSGndash PQ83834 - IRLM220 HIR2220 SERVICE ROLL-UP 5 MAINTENANCE SINCE PQ80788ndash PQ86904 - IRLM220 HIR2220 SERVICE ROLL-UP 6 MAINTENANCE SINCE PQ83834ndash PQ82063 - REPAIR LOB DELETE SERVICEABILITY ENHANCEMENT ndash PQ47759 - DB2 SERVICEABILITY ENHANCEMENT - DUMP FORMATTINGndash PQ82390 - ALLOW SKIP OF UNCOMMITTED INSERTS BY CS AND RS TRANSACTIONS ndash PQ86108 - LONG MESSAGE TOKEN SUPPORT FOR SPUFI AND DCLGENndash PQ88213 - ENHANCE DSNTEP2 TO IMPROVE PERFORMANCE ndash PQ91763 - DSNTIAUL UNLOAD INCORRECTLY DUE TO MISSING QLWARN DETECTION

IBM Software Group | DB2 Information Management Software

DB2 Maintenancebull PQ89018 - ISSUE SPUFI WARNING IF THE ISPF CCSID IS NOT THE SAME AS DB2S bull PQ88151 - DB2 CUSTOMIZATION CENTER UPDATES FOR PQ86108 CHANGESbull PQ90222 - DB2 CUSTOMIZATION CENTER UPDATES FOR PQ86159 CHANGESbull PQ88983 - ALLOW CANCEL ROLLBACK AFTER LOG DATA SET ACCESS ERRORDCR DJ286 bull PQ90936 - DISPLAY ARCHIVE COMMAND ENHANCEMENT - DJ296 bull PQ93548 - SCAN FOR PRIOR CHECKPOINT DURING RESTART DCR DJ303bull PQ94039 - PAGE PROTECT DB2 EARLY CODEbull PQ95159 - ARCHIVE LOG READ IO ERROR MESSAGEbull PQ87444 - MINIMIZE DDF DEPENDENCY ON SUPER_USER AUTHORITYbull PQ91009 - ENSURE DDF LOCATION NAME IS SPECIFIED DURING DB2 STARTUPbull PQ87786 - ACCUMULATED DEFECT FIXES AND ENHANCEMENTS FOR DB2 UNIVERSAL JDBC DRIVER

bull PQ93458 - NEW DB2 UNIVERSAL DRIVER RELEASE 2372bull PQ85700 - HANDSHAKING BETWEEN DB2 SQL COPROCESSOR AND COMPILERSbull PQ86907 - ENABLING PRINTING OF DSNH4760 AND DSNH4761 WARNINGINFO MSGS FOR NON-COBOL PROGRAM bull PQ90147 - SUPPORT GREATER THAN 245 SECONDARY AUTHORIZATION IDSbull PQ89070 - LOCK AVOIDANCE FOR SINGLETON SELECT WITH ISO(CS) AND CURRENTDATA(YES) bull PQ75974 - ACTIVATE CONTROL CENTER V82 OBJECT MAINTENANCE AUTOMATION AND DSN SUBCOMMANDS

BINDREBINDFREE FOR DB2 FOR OS390ZOS V7 bull PQ94548 - ADD GRANT ALL ON CREATED TEMPORARY TABLES IN DSNTIJCCbull PQ87298 - INSERTING UCS-2 DATA BOUND TO C DATA TYPE SQL_C_WCHAR RESULTS IN SQLSTATE 22001

SQLCODE -99999 bull PQ88582 - ODBC SUPPORT FOR 2MB SQL STATEMENT

IBM Software Group | DB2 Information Management Software

Service Stream Features (selected)

IBM Software Group | DB2 Information Management Software

Allow user to change SPUFI plan name

bull Problem SPUFI userrsquos terminal CCSID is different from the DB2 system EBCDIC CCSID (DSNHDECP SCCSID value)

bull Solution can now create copies of the SPUFI plan for each CCSID needed by users

bull SPUFI user can change plan name to the appropriate name for his CCSID

APAR PTF PTF Avail PUT

PQ97373 UK02448

(also V7)

20050511 F505

IBM Software Group | DB2 Information Management Software

ODBC support for 2 MB statement

bull When connecting to DB2 for zOS V8 NFM system maximum SQL statement length is 2 MB

ndash previously 32K

bull ODBC DBRMs will now precompile with CCSID(1047) instead of default CCSID

APAR PTF PTF Avail PUT

PQ88582 UQ91257 20040909 F409

IBM Software Group | DB2 Information Management Software

DB2 Coprocessor ldquolevelrdquo

bull DB2 Coprocessor ldquolevelrdquo corresponds to NEWFUN precompiler optionndash level 1 NEWFUN (NO)

ndash level 2 NEWFUN (YES)

ndash new message DSNH4760I indicates level

ndash new message DSNH4761I -- level 2 requested but compiler only supports level 1

APAR PTF PTF Avail PUT

PQ85700 COBOL

PQ86907 PLI

UQ86392

UQ87641

20040323

20040601

F403

F405

IBM Software Group | DB2 Information Management Software

CHECK INDEX enhancement

bull CHECK INDEX becomes implicitly SHRLEVEL REFERENCE

bull APAR for PQ96956 (DB2 Utilities Suite -- open) Online CHECK INDEX

ndash CHECK INDEX SHRLEVEL CHANGE

APAR PTF PTF Avail PUT

PQ92749

(DB2 base)

UK04683 20050708 1000

IBM Software Group | DB2 Information Management Software

Stalled restart detection

bull DB2 restart can be stalled eg for archive log tape mounts or HSM recalls

bull A DB2 timer task will now monitor recovery phase of restart

bull If the restart processor has been suspended more than 2 minutes issue new messages

DSNR055I csect RESTART SUSPENDED SINCE time

DSNR056I csect RESTART SUSPENDED ON IRLM REQUEST

DSNR057I csect RESOURCE INFORMATION DBID

DSNR058I csect ACCESSING ARCHIVE LOG data-set-name

APAR PTF PTF Avail PUT

PK01245 UK01653

(also V7)

20050406 F504

IBM Software Group | DB2 Information Management Software

Encrypt userid pw for DDF

bull Problem NEWAUTHID and PASSWORD are stored in the clear in SYSIBMUSERNAMES

bull New stored proc SYSPROCDSNLEUSR stores authid and password in encrypted form

bull Values are decrypted prior to sending to remote server

bull Requires DB2 V8 NFM and zOS Integrated Cryptographic Services Facility (ISCF)

bull wwwibmcomsupport ndash Flash 1208122

APAR PTF PTF Avail PUT

PQ95205 UK02094 20050420 F504

IBM Software Group | DB2 Information Management Software

Hung thread diagnosis

bull When a thread is hung it is often necessary to force a console dump to gather information

-DIS THD() SERVICE(WAIT)

will display threads suspended 2x IRLM timeout (minimum 60 sec) -- additional information if suspended for IRLM lock or DB2 latch contention

APAR PTF PTF Avail PUT

PQ83649 UQ87013

(also V7)

20040420 F404

IBM Software Group | DB2 Information Management Software

Storage monitoring

bull V7 amp V8 ICFID 225 adds real storage statisticsndash number of real frames (4K) in use

ndash number of auxilary slots (4K) in use

(conrsquot)

APAR PTF PTF Avail PUT

PQ91101 UQ92441

(also V7)

20040928 F409

IBM Software Group | DB2 Information Management Software

Preliminary DDF EWLM support

bull IBM Virtualization Engine Enterprise Workload Manager for zOS V110

bull Enterprise Workload Manager enables you to automatically monitor and manage multi-tiered distributed heterogeneous or homogeneous workloads -- extends WLM to other platforms

bull Available starting with zOS 16

bull This APAR allows DDF to act as a server to TCPIP connections to be monitored within an EWLM domain

bull Announcement letter 204-305

APAR PTF PTF Avail PUT

PQ91509 UK03835 20050617 1000

IBM Software Group | DB2 Information Management Software

Monitoring lsquoRLF limit exceededrsquo

bull Problem exceeding RLF ASUTIME for dynamic SQL gets SQLCODE -905 but little info

bull Solution new IFCID 173 to provide plan name collection package name authid time used user ASUTIME

APAR PTF PTF Avail PUT

PQ87848 UQ90756

(also V7)

20040803 F408

IBM Software Group | DB2 Information Management Software

New JDBC driver releases (conrsquot)

bull DB2 Universal JDBC Driver release 25ndash Type-2 control over accounting records at COMMIT or end of physical connection

ndash Plus 29 other maintenance items

APAR PTF PTF Avail PUT

PQ95284 UK00182

(also V7)

20050202 F502

IBM Software Group | DB2 Information Management Software

QMF multi-row FETCH INSERT

bull QMF V8 NFM with DB2 V8 NFM automatically transforms your queries to multi-row operations

APAR PTF PTF Avail PUT

PQ99482 UK06848 20050902 1000

IBM Software Group | DB2 Information Management Software

Performance Imperatives

bull If necessary reduce MAXKEEPD to reduce local DSC rely more on global DSC which is above 2GB

bull V8 PQ96772 205 to move dynamic statement cache control blocks above 2GB

bull PK01911 605 Increased cpu time in Index and Storage processing sometimes accompanied by high LC32 contention

bull PQ99608 205 Excessive log write iorsquos triggered by insert into table with identity column

bull Incorrect Runstats values

bull 1048707 PK01510 505 NPI cluster ratio

bull 1048707 PK03469 505 Non-uniform distribution stats

bull PK04107 Bidirectional indexability for unicode to ebcdic

bull PK05360 Hybrid join with multi-row Fetch

bull PK04076 505 Load default of No Sortkeys if only one index and sorted input

IBM Software Group | DB2 Information Management Software

IBM Software Group

copy 2004 IBM Corporation2 IBM Confidential

V7V8 PK09158 705 Dramatic speedup and elimination of non linear performance problem in deletes via SCT02 or SPT01 in Bind Replace or Free

ndash Resolved a half dozen performance PMRs recently raised

V8 PK01911 605 Fix general V8 performance degradation brought about by V8 PQ93318 1204

V8 Multi-row Fetch performance problems

ndash PK05360 opened 505 No hybrid join support

ndash PQ88009 504 disabled parallelism for the last group of the top level query block if there is no Groupby or Orderby

ndash PK10021 opened 805 query abend with host variable or special register

V8 PQ92072 805 to support implicit multi-row Insert by ODBC array input

Recent major performance-related apars

IBM Software Group | DB2 Information Management Software

Performance Imperatives ( conthellip)

bull V8 PK05644 Preformatting up to 2 cylinders at a time to minimize preformat time

bull V7 PQ86037 304 Insert at end option for member cluster tablespace (V7V8 PQ87381 More robust version coming in 2005)

ndash Avoid re-reading spacemap pages from the beginning before dataset extend by always searching forward for freespace when zero PCTFREE and FREEPAGE

ndash Can support steady and continuous high insert rate without rapidly increasing Getpage

ndash Especially useful for heavy insert without delete

IBM Software Group | DB2 Information Management Software

Insert CPU Usage

bull 1048707 Most affected by the number of indexesbull 1048707 DB2 Estimator recommended for more detailed analysisbull 1048707 Rule-of-Thumb Z990(2) cpu time per row inserted inbull microseconds (us) =bull [26 online transaction or 20 batch]bull + 11 for 1 index + 21 for each additional indexbull + 20to30 x pagesread x 13(30 additional for write)bull + 2 if class2 acctg (1)bull + 12 if DB2CICS without TS22 threadsafe option (1)bull - up to 10 if multi-row insert

bull (1) Can disappear if multi-row insertbull (2) Use cpu time multiplier from wwws390ibmcomlspr for other processor models

IBM Software Group | DB2 Information Management Software

Virtual Storage items

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

Java Universal Driver

bull Significant reengineering of Java support for DB2 Connect CAE and DB2 for OS390 and zOS client softwarendash Uses DRDA protocols for all client communication

ndash Eliminates DB2RA and net driver protocols

ndash Traditional DB2 client configuration (CCA) is optional

ndash Much better handling of different clientserver software levels

ndash Improved DB2 Connect consistencyperformance

ndash much higher percentage of common code

ndash fewer unique code paths for specific hardware configurations

ndash Several significant improvements to DRDA

ndash support for long SQL names and statements

ndash DRDA query block sizes can now be up to 2M bytes

ndash rely on server-supplied stored procedures for SQL error messagesdatabase metadata etc

ndash many internal performance improvements

IBM Software Group | DB2 Information Management Software

Java Universal Driver

bull Why use itndash Legacy Drivers functionally stabilized amp will be deprecated

ndash Single driver for all platforms

ndash Client Accounting String

ndash Performance monitor methods

ndash Better performance

IBM Software Group | DB2 Information Management Software

SQLJ usage is increasing

bull Static SQL performance for Java applicationsndash less code written by the application programmer

ndash resulting code is easier to maintain

ndash significant performance advantage over JDBC

ndash Static SQL authorization model

bull Provides Java with a stronger authorization modelndash Monitoringmanageability

ndash static SQL packages for accountingmonitoring

bull Static SQL locks in access path so that access path changes dont occur without a conscious choice

IBM Software Group | DB2 Information Management Software

JDBC vs SQLJ example

bull Retrieve a single row from DB2bull SQLJ

sql [con] SELECT ADDRESS INTO addr FROM EMP WHERE NAME=name

bull JDBCjavasqlPreparedStatement ps = conprepareStatement(SELECT ADDRESS FROM EMP WHERE NAME=)pssetString(1 name)javasqlResultSet names = psexecuteQuery()namesnext()addr = namesgetString(1)namesclose()

bull -- portable across platforms and DBMSsbull -- compilebind time schema checkingbull -- static SQL performance and authorizationbull -- concisebull -- strong typing

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

DB2 Futures

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

DB2 Redbooks - 2Q 2004 httpwwwibmcomredbooks

bull Business Performance Management Meets Business Intelligence (SG24-6340)

bull The Business Value of DB2 UDB for zOS (SG24-6763)bull Data Mart Consolidation Getting Control of Your Enterprise

Information(SG24-6653)bull DB2 UDB for zOS Version 8 Performance Topics (SG24-6465)bull Microsoft SQL Server to IBM DB2 UDB Conversion Guide (SG24-

6672)bull DB2 for zOS and WebSphere The Perfect Couple (SG24-6319)bull Copying the DB2 UDB for zOS catalog using the COPY utility Copying the DB2 UDB for zOS catalog using the COPY utility

(TIPS0587)(TIPS0587)bull Systems Programmers Guide to Resource Recovery Services (RRS) Systems Programmers Guide to Resource Recovery Services (RRS)

(SG24-6980)(SG24-6980)

IBM Software Group | DB2 Information Management Software

Education

bull DB2 Version 8 Migration Workshopsndash Let us know if you need one

bull DB2 Version 8 Transition classndash CG381 amp CG382

IBM Software Group | DB2 Information Management Software

Education ( Design)

IBM Software Group | DB2 Information Management Software

Education (Development)

IBM Software Group | DB2 Information Management Software

Education ( Administration)

IBM Software Group | DB2 Information Management Software

Education (Troubleshooting)

IBM Software Group | DB2 Information Management Software

Intelligent Visual Explain

bull Where to obtain the codebull httpwwwibmcomsoftwaredatadb2zososcvebull Fixpack 7 available nowbull Key prerequisites

ndash Windows NT Version 40 Windows 2000 or Windows XPndash 150 MB of hard disk spacendash 256 MB of RAMndash Pentium III equivalent or abovendash Either DB2 ConnecttradePersonal Edition Version 7 (or later) or DB2

Client Application Enablertrade(CAE) with a DB2 Connect Enterprise Edition Version 7 (or later) gateway installed

ndash A TCPIP connection to a DB2 for zOS Version 7 or Version 8 host system

ndash A java-enabled browser to view HTML files

IBM Software Group | DB2 Information Management Software

Reference URLs

httpwwwibmcomsoftwaredatadb2zosindexhtmlDB2 for zOS

httpwww-306ibmcomsoftwaredatadb2zossupporthtmlDB2 for zOS technical support page

httpwww-306ibmcomsoftwaredatadb2zososcveindexhtmlDB2 VE download

httpwwwunicodeorg Unicode Home pagehttpwwwunicodeorgunicodestandardprincipleshtmlThe Unicode Standard amp Basic Principlesftpftpsoftwareibmcomsoftwaredatadb2zosdppdpdfDB2 for zOS Distribute Performance analysisftpftpsoftwareibmcomsoftwaredb2storedproceduredb2zos390techdocsH01PDFDB2-Java Performance and Tuning

IBM Software Group | DB2 Information Management Software

Reference URLs

www-106ibmcomdeveloperworksdb2librarytecharticle0203shibamiya0203shibamiya2htmlInsert vs Load Performance White paper

IBM Software Group | DB2 Information Management Software

Acknowledgements to My Friends

Mark Wilson ndash DB2 Product Introduction CenterAkira Shibamiya - SVLCurt Cotner ndash SVLJohn Campbell ndash SVL

Page 12: Slide 1 - Parallels Plesk Control Panel 8.6.0

IBM Software Group | DB2 Information Management Software

DB2 Maintenancebull PQ89018 - ISSUE SPUFI WARNING IF THE ISPF CCSID IS NOT THE SAME AS DB2S bull PQ88151 - DB2 CUSTOMIZATION CENTER UPDATES FOR PQ86108 CHANGESbull PQ90222 - DB2 CUSTOMIZATION CENTER UPDATES FOR PQ86159 CHANGESbull PQ88983 - ALLOW CANCEL ROLLBACK AFTER LOG DATA SET ACCESS ERRORDCR DJ286 bull PQ90936 - DISPLAY ARCHIVE COMMAND ENHANCEMENT - DJ296 bull PQ93548 - SCAN FOR PRIOR CHECKPOINT DURING RESTART DCR DJ303bull PQ94039 - PAGE PROTECT DB2 EARLY CODEbull PQ95159 - ARCHIVE LOG READ IO ERROR MESSAGEbull PQ87444 - MINIMIZE DDF DEPENDENCY ON SUPER_USER AUTHORITYbull PQ91009 - ENSURE DDF LOCATION NAME IS SPECIFIED DURING DB2 STARTUPbull PQ87786 - ACCUMULATED DEFECT FIXES AND ENHANCEMENTS FOR DB2 UNIVERSAL JDBC DRIVER

bull PQ93458 - NEW DB2 UNIVERSAL DRIVER RELEASE 2372bull PQ85700 - HANDSHAKING BETWEEN DB2 SQL COPROCESSOR AND COMPILERSbull PQ86907 - ENABLING PRINTING OF DSNH4760 AND DSNH4761 WARNINGINFO MSGS FOR NON-COBOL PROGRAM bull PQ90147 - SUPPORT GREATER THAN 245 SECONDARY AUTHORIZATION IDSbull PQ89070 - LOCK AVOIDANCE FOR SINGLETON SELECT WITH ISO(CS) AND CURRENTDATA(YES) bull PQ75974 - ACTIVATE CONTROL CENTER V82 OBJECT MAINTENANCE AUTOMATION AND DSN SUBCOMMANDS

BINDREBINDFREE FOR DB2 FOR OS390ZOS V7 bull PQ94548 - ADD GRANT ALL ON CREATED TEMPORARY TABLES IN DSNTIJCCbull PQ87298 - INSERTING UCS-2 DATA BOUND TO C DATA TYPE SQL_C_WCHAR RESULTS IN SQLSTATE 22001

SQLCODE -99999 bull PQ88582 - ODBC SUPPORT FOR 2MB SQL STATEMENT

IBM Software Group | DB2 Information Management Software

Service Stream Features (selected)

IBM Software Group | DB2 Information Management Software

Allow user to change SPUFI plan name

bull Problem SPUFI userrsquos terminal CCSID is different from the DB2 system EBCDIC CCSID (DSNHDECP SCCSID value)

bull Solution can now create copies of the SPUFI plan for each CCSID needed by users

bull SPUFI user can change plan name to the appropriate name for his CCSID

APAR PTF PTF Avail PUT

PQ97373 UK02448

(also V7)

20050511 F505

IBM Software Group | DB2 Information Management Software

ODBC support for 2 MB statement

bull When connecting to DB2 for zOS V8 NFM system maximum SQL statement length is 2 MB

ndash previously 32K

bull ODBC DBRMs will now precompile with CCSID(1047) instead of default CCSID

APAR PTF PTF Avail PUT

PQ88582 UQ91257 20040909 F409

IBM Software Group | DB2 Information Management Software

DB2 Coprocessor ldquolevelrdquo

bull DB2 Coprocessor ldquolevelrdquo corresponds to NEWFUN precompiler optionndash level 1 NEWFUN (NO)

ndash level 2 NEWFUN (YES)

ndash new message DSNH4760I indicates level

ndash new message DSNH4761I -- level 2 requested but compiler only supports level 1

APAR PTF PTF Avail PUT

PQ85700 COBOL

PQ86907 PLI

UQ86392

UQ87641

20040323

20040601

F403

F405

IBM Software Group | DB2 Information Management Software

CHECK INDEX enhancement

bull CHECK INDEX becomes implicitly SHRLEVEL REFERENCE

bull APAR for PQ96956 (DB2 Utilities Suite -- open) Online CHECK INDEX

ndash CHECK INDEX SHRLEVEL CHANGE

APAR PTF PTF Avail PUT

PQ92749

(DB2 base)

UK04683 20050708 1000

IBM Software Group | DB2 Information Management Software

Stalled restart detection

bull DB2 restart can be stalled eg for archive log tape mounts or HSM recalls

bull A DB2 timer task will now monitor recovery phase of restart

bull If the restart processor has been suspended more than 2 minutes issue new messages

DSNR055I csect RESTART SUSPENDED SINCE time

DSNR056I csect RESTART SUSPENDED ON IRLM REQUEST

DSNR057I csect RESOURCE INFORMATION DBID

DSNR058I csect ACCESSING ARCHIVE LOG data-set-name

APAR PTF PTF Avail PUT

PK01245 UK01653

(also V7)

20050406 F504

IBM Software Group | DB2 Information Management Software

Encrypt userid pw for DDF

bull Problem NEWAUTHID and PASSWORD are stored in the clear in SYSIBMUSERNAMES

bull New stored proc SYSPROCDSNLEUSR stores authid and password in encrypted form

bull Values are decrypted prior to sending to remote server

bull Requires DB2 V8 NFM and zOS Integrated Cryptographic Services Facility (ISCF)

bull wwwibmcomsupport ndash Flash 1208122

APAR PTF PTF Avail PUT

PQ95205 UK02094 20050420 F504

IBM Software Group | DB2 Information Management Software

Hung thread diagnosis

bull When a thread is hung it is often necessary to force a console dump to gather information

-DIS THD() SERVICE(WAIT)

will display threads suspended 2x IRLM timeout (minimum 60 sec) -- additional information if suspended for IRLM lock or DB2 latch contention

APAR PTF PTF Avail PUT

PQ83649 UQ87013

(also V7)

20040420 F404

IBM Software Group | DB2 Information Management Software

Storage monitoring

bull V7 amp V8 ICFID 225 adds real storage statisticsndash number of real frames (4K) in use

ndash number of auxilary slots (4K) in use

(conrsquot)

APAR PTF PTF Avail PUT

PQ91101 UQ92441

(also V7)

20040928 F409

IBM Software Group | DB2 Information Management Software

Preliminary DDF EWLM support

bull IBM Virtualization Engine Enterprise Workload Manager for zOS V110

bull Enterprise Workload Manager enables you to automatically monitor and manage multi-tiered distributed heterogeneous or homogeneous workloads -- extends WLM to other platforms

bull Available starting with zOS 16

bull This APAR allows DDF to act as a server to TCPIP connections to be monitored within an EWLM domain

bull Announcement letter 204-305

APAR PTF PTF Avail PUT

PQ91509 UK03835 20050617 1000

IBM Software Group | DB2 Information Management Software

Monitoring lsquoRLF limit exceededrsquo

bull Problem exceeding RLF ASUTIME for dynamic SQL gets SQLCODE -905 but little info

bull Solution new IFCID 173 to provide plan name collection package name authid time used user ASUTIME

APAR PTF PTF Avail PUT

PQ87848 UQ90756

(also V7)

20040803 F408

IBM Software Group | DB2 Information Management Software

New JDBC driver releases (conrsquot)

bull DB2 Universal JDBC Driver release 25ndash Type-2 control over accounting records at COMMIT or end of physical connection

ndash Plus 29 other maintenance items

APAR PTF PTF Avail PUT

PQ95284 UK00182

(also V7)

20050202 F502

IBM Software Group | DB2 Information Management Software

QMF multi-row FETCH INSERT

bull QMF V8 NFM with DB2 V8 NFM automatically transforms your queries to multi-row operations

APAR PTF PTF Avail PUT

PQ99482 UK06848 20050902 1000

IBM Software Group | DB2 Information Management Software

Performance Imperatives

bull If necessary reduce MAXKEEPD to reduce local DSC rely more on global DSC which is above 2GB

bull V8 PQ96772 205 to move dynamic statement cache control blocks above 2GB

bull PK01911 605 Increased cpu time in Index and Storage processing sometimes accompanied by high LC32 contention

bull PQ99608 205 Excessive log write iorsquos triggered by insert into table with identity column

bull Incorrect Runstats values

bull 1048707 PK01510 505 NPI cluster ratio

bull 1048707 PK03469 505 Non-uniform distribution stats

bull PK04107 Bidirectional indexability for unicode to ebcdic

bull PK05360 Hybrid join with multi-row Fetch

bull PK04076 505 Load default of No Sortkeys if only one index and sorted input

IBM Software Group | DB2 Information Management Software

IBM Software Group

copy 2004 IBM Corporation2 IBM Confidential

V7V8 PK09158 705 Dramatic speedup and elimination of non linear performance problem in deletes via SCT02 or SPT01 in Bind Replace or Free

ndash Resolved a half dozen performance PMRs recently raised

V8 PK01911 605 Fix general V8 performance degradation brought about by V8 PQ93318 1204

V8 Multi-row Fetch performance problems

ndash PK05360 opened 505 No hybrid join support

ndash PQ88009 504 disabled parallelism for the last group of the top level query block if there is no Groupby or Orderby

ndash PK10021 opened 805 query abend with host variable or special register

V8 PQ92072 805 to support implicit multi-row Insert by ODBC array input

Recent major performance-related apars

IBM Software Group | DB2 Information Management Software

Performance Imperatives ( conthellip)

bull V8 PK05644 Preformatting up to 2 cylinders at a time to minimize preformat time

bull V7 PQ86037 304 Insert at end option for member cluster tablespace (V7V8 PQ87381 More robust version coming in 2005)

ndash Avoid re-reading spacemap pages from the beginning before dataset extend by always searching forward for freespace when zero PCTFREE and FREEPAGE

ndash Can support steady and continuous high insert rate without rapidly increasing Getpage

ndash Especially useful for heavy insert without delete

IBM Software Group | DB2 Information Management Software

Insert CPU Usage

bull 1048707 Most affected by the number of indexesbull 1048707 DB2 Estimator recommended for more detailed analysisbull 1048707 Rule-of-Thumb Z990(2) cpu time per row inserted inbull microseconds (us) =bull [26 online transaction or 20 batch]bull + 11 for 1 index + 21 for each additional indexbull + 20to30 x pagesread x 13(30 additional for write)bull + 2 if class2 acctg (1)bull + 12 if DB2CICS without TS22 threadsafe option (1)bull - up to 10 if multi-row insert

bull (1) Can disappear if multi-row insertbull (2) Use cpu time multiplier from wwws390ibmcomlspr for other processor models

IBM Software Group | DB2 Information Management Software

Virtual Storage items

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

Java Universal Driver

bull Significant reengineering of Java support for DB2 Connect CAE and DB2 for OS390 and zOS client softwarendash Uses DRDA protocols for all client communication

ndash Eliminates DB2RA and net driver protocols

ndash Traditional DB2 client configuration (CCA) is optional

ndash Much better handling of different clientserver software levels

ndash Improved DB2 Connect consistencyperformance

ndash much higher percentage of common code

ndash fewer unique code paths for specific hardware configurations

ndash Several significant improvements to DRDA

ndash support for long SQL names and statements

ndash DRDA query block sizes can now be up to 2M bytes

ndash rely on server-supplied stored procedures for SQL error messagesdatabase metadata etc

ndash many internal performance improvements

IBM Software Group | DB2 Information Management Software

Java Universal Driver

bull Why use itndash Legacy Drivers functionally stabilized amp will be deprecated

ndash Single driver for all platforms

ndash Client Accounting String

ndash Performance monitor methods

ndash Better performance

IBM Software Group | DB2 Information Management Software

SQLJ usage is increasing

bull Static SQL performance for Java applicationsndash less code written by the application programmer

ndash resulting code is easier to maintain

ndash significant performance advantage over JDBC

ndash Static SQL authorization model

bull Provides Java with a stronger authorization modelndash Monitoringmanageability

ndash static SQL packages for accountingmonitoring

bull Static SQL locks in access path so that access path changes dont occur without a conscious choice

IBM Software Group | DB2 Information Management Software

JDBC vs SQLJ example

bull Retrieve a single row from DB2bull SQLJ

sql [con] SELECT ADDRESS INTO addr FROM EMP WHERE NAME=name

bull JDBCjavasqlPreparedStatement ps = conprepareStatement(SELECT ADDRESS FROM EMP WHERE NAME=)pssetString(1 name)javasqlResultSet names = psexecuteQuery()namesnext()addr = namesgetString(1)namesclose()

bull -- portable across platforms and DBMSsbull -- compilebind time schema checkingbull -- static SQL performance and authorizationbull -- concisebull -- strong typing

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

DB2 Futures

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

DB2 Redbooks - 2Q 2004 httpwwwibmcomredbooks

bull Business Performance Management Meets Business Intelligence (SG24-6340)

bull The Business Value of DB2 UDB for zOS (SG24-6763)bull Data Mart Consolidation Getting Control of Your Enterprise

Information(SG24-6653)bull DB2 UDB for zOS Version 8 Performance Topics (SG24-6465)bull Microsoft SQL Server to IBM DB2 UDB Conversion Guide (SG24-

6672)bull DB2 for zOS and WebSphere The Perfect Couple (SG24-6319)bull Copying the DB2 UDB for zOS catalog using the COPY utility Copying the DB2 UDB for zOS catalog using the COPY utility

(TIPS0587)(TIPS0587)bull Systems Programmers Guide to Resource Recovery Services (RRS) Systems Programmers Guide to Resource Recovery Services (RRS)

(SG24-6980)(SG24-6980)

IBM Software Group | DB2 Information Management Software

Education

bull DB2 Version 8 Migration Workshopsndash Let us know if you need one

bull DB2 Version 8 Transition classndash CG381 amp CG382

IBM Software Group | DB2 Information Management Software

Education ( Design)

IBM Software Group | DB2 Information Management Software

Education (Development)

IBM Software Group | DB2 Information Management Software

Education ( Administration)

IBM Software Group | DB2 Information Management Software

Education (Troubleshooting)

IBM Software Group | DB2 Information Management Software

Intelligent Visual Explain

bull Where to obtain the codebull httpwwwibmcomsoftwaredatadb2zososcvebull Fixpack 7 available nowbull Key prerequisites

ndash Windows NT Version 40 Windows 2000 or Windows XPndash 150 MB of hard disk spacendash 256 MB of RAMndash Pentium III equivalent or abovendash Either DB2 ConnecttradePersonal Edition Version 7 (or later) or DB2

Client Application Enablertrade(CAE) with a DB2 Connect Enterprise Edition Version 7 (or later) gateway installed

ndash A TCPIP connection to a DB2 for zOS Version 7 or Version 8 host system

ndash A java-enabled browser to view HTML files

IBM Software Group | DB2 Information Management Software

Reference URLs

httpwwwibmcomsoftwaredatadb2zosindexhtmlDB2 for zOS

httpwww-306ibmcomsoftwaredatadb2zossupporthtmlDB2 for zOS technical support page

httpwww-306ibmcomsoftwaredatadb2zososcveindexhtmlDB2 VE download

httpwwwunicodeorg Unicode Home pagehttpwwwunicodeorgunicodestandardprincipleshtmlThe Unicode Standard amp Basic Principlesftpftpsoftwareibmcomsoftwaredatadb2zosdppdpdfDB2 for zOS Distribute Performance analysisftpftpsoftwareibmcomsoftwaredb2storedproceduredb2zos390techdocsH01PDFDB2-Java Performance and Tuning

IBM Software Group | DB2 Information Management Software

Reference URLs

www-106ibmcomdeveloperworksdb2librarytecharticle0203shibamiya0203shibamiya2htmlInsert vs Load Performance White paper

IBM Software Group | DB2 Information Management Software

Acknowledgements to My Friends

Mark Wilson ndash DB2 Product Introduction CenterAkira Shibamiya - SVLCurt Cotner ndash SVLJohn Campbell ndash SVL

Page 13: Slide 1 - Parallels Plesk Control Panel 8.6.0

IBM Software Group | DB2 Information Management Software

Service Stream Features (selected)

IBM Software Group | DB2 Information Management Software

Allow user to change SPUFI plan name

bull Problem SPUFI userrsquos terminal CCSID is different from the DB2 system EBCDIC CCSID (DSNHDECP SCCSID value)

bull Solution can now create copies of the SPUFI plan for each CCSID needed by users

bull SPUFI user can change plan name to the appropriate name for his CCSID

APAR PTF PTF Avail PUT

PQ97373 UK02448

(also V7)

20050511 F505

IBM Software Group | DB2 Information Management Software

ODBC support for 2 MB statement

bull When connecting to DB2 for zOS V8 NFM system maximum SQL statement length is 2 MB

ndash previously 32K

bull ODBC DBRMs will now precompile with CCSID(1047) instead of default CCSID

APAR PTF PTF Avail PUT

PQ88582 UQ91257 20040909 F409

IBM Software Group | DB2 Information Management Software

DB2 Coprocessor ldquolevelrdquo

bull DB2 Coprocessor ldquolevelrdquo corresponds to NEWFUN precompiler optionndash level 1 NEWFUN (NO)

ndash level 2 NEWFUN (YES)

ndash new message DSNH4760I indicates level

ndash new message DSNH4761I -- level 2 requested but compiler only supports level 1

APAR PTF PTF Avail PUT

PQ85700 COBOL

PQ86907 PLI

UQ86392

UQ87641

20040323

20040601

F403

F405

IBM Software Group | DB2 Information Management Software

CHECK INDEX enhancement

bull CHECK INDEX becomes implicitly SHRLEVEL REFERENCE

bull APAR for PQ96956 (DB2 Utilities Suite -- open) Online CHECK INDEX

ndash CHECK INDEX SHRLEVEL CHANGE

APAR PTF PTF Avail PUT

PQ92749

(DB2 base)

UK04683 20050708 1000

IBM Software Group | DB2 Information Management Software

Stalled restart detection

bull DB2 restart can be stalled eg for archive log tape mounts or HSM recalls

bull A DB2 timer task will now monitor recovery phase of restart

bull If the restart processor has been suspended more than 2 minutes issue new messages

DSNR055I csect RESTART SUSPENDED SINCE time

DSNR056I csect RESTART SUSPENDED ON IRLM REQUEST

DSNR057I csect RESOURCE INFORMATION DBID

DSNR058I csect ACCESSING ARCHIVE LOG data-set-name

APAR PTF PTF Avail PUT

PK01245 UK01653

(also V7)

20050406 F504

IBM Software Group | DB2 Information Management Software

Encrypt userid pw for DDF

bull Problem NEWAUTHID and PASSWORD are stored in the clear in SYSIBMUSERNAMES

bull New stored proc SYSPROCDSNLEUSR stores authid and password in encrypted form

bull Values are decrypted prior to sending to remote server

bull Requires DB2 V8 NFM and zOS Integrated Cryptographic Services Facility (ISCF)

bull wwwibmcomsupport ndash Flash 1208122

APAR PTF PTF Avail PUT

PQ95205 UK02094 20050420 F504

IBM Software Group | DB2 Information Management Software

Hung thread diagnosis

bull When a thread is hung it is often necessary to force a console dump to gather information

-DIS THD() SERVICE(WAIT)

will display threads suspended 2x IRLM timeout (minimum 60 sec) -- additional information if suspended for IRLM lock or DB2 latch contention

APAR PTF PTF Avail PUT

PQ83649 UQ87013

(also V7)

20040420 F404

IBM Software Group | DB2 Information Management Software

Storage monitoring

bull V7 amp V8 ICFID 225 adds real storage statisticsndash number of real frames (4K) in use

ndash number of auxilary slots (4K) in use

(conrsquot)

APAR PTF PTF Avail PUT

PQ91101 UQ92441

(also V7)

20040928 F409

IBM Software Group | DB2 Information Management Software

Preliminary DDF EWLM support

bull IBM Virtualization Engine Enterprise Workload Manager for zOS V110

bull Enterprise Workload Manager enables you to automatically monitor and manage multi-tiered distributed heterogeneous or homogeneous workloads -- extends WLM to other platforms

bull Available starting with zOS 16

bull This APAR allows DDF to act as a server to TCPIP connections to be monitored within an EWLM domain

bull Announcement letter 204-305

APAR PTF PTF Avail PUT

PQ91509 UK03835 20050617 1000

IBM Software Group | DB2 Information Management Software

Monitoring lsquoRLF limit exceededrsquo

bull Problem exceeding RLF ASUTIME for dynamic SQL gets SQLCODE -905 but little info

bull Solution new IFCID 173 to provide plan name collection package name authid time used user ASUTIME

APAR PTF PTF Avail PUT

PQ87848 UQ90756

(also V7)

20040803 F408

IBM Software Group | DB2 Information Management Software

New JDBC driver releases (conrsquot)

bull DB2 Universal JDBC Driver release 25ndash Type-2 control over accounting records at COMMIT or end of physical connection

ndash Plus 29 other maintenance items

APAR PTF PTF Avail PUT

PQ95284 UK00182

(also V7)

20050202 F502

IBM Software Group | DB2 Information Management Software

QMF multi-row FETCH INSERT

bull QMF V8 NFM with DB2 V8 NFM automatically transforms your queries to multi-row operations

APAR PTF PTF Avail PUT

PQ99482 UK06848 20050902 1000

IBM Software Group | DB2 Information Management Software

Performance Imperatives

bull If necessary reduce MAXKEEPD to reduce local DSC rely more on global DSC which is above 2GB

bull V8 PQ96772 205 to move dynamic statement cache control blocks above 2GB

bull PK01911 605 Increased cpu time in Index and Storage processing sometimes accompanied by high LC32 contention

bull PQ99608 205 Excessive log write iorsquos triggered by insert into table with identity column

bull Incorrect Runstats values

bull 1048707 PK01510 505 NPI cluster ratio

bull 1048707 PK03469 505 Non-uniform distribution stats

bull PK04107 Bidirectional indexability for unicode to ebcdic

bull PK05360 Hybrid join with multi-row Fetch

bull PK04076 505 Load default of No Sortkeys if only one index and sorted input

IBM Software Group | DB2 Information Management Software

IBM Software Group

copy 2004 IBM Corporation2 IBM Confidential

V7V8 PK09158 705 Dramatic speedup and elimination of non linear performance problem in deletes via SCT02 or SPT01 in Bind Replace or Free

ndash Resolved a half dozen performance PMRs recently raised

V8 PK01911 605 Fix general V8 performance degradation brought about by V8 PQ93318 1204

V8 Multi-row Fetch performance problems

ndash PK05360 opened 505 No hybrid join support

ndash PQ88009 504 disabled parallelism for the last group of the top level query block if there is no Groupby or Orderby

ndash PK10021 opened 805 query abend with host variable or special register

V8 PQ92072 805 to support implicit multi-row Insert by ODBC array input

Recent major performance-related apars

IBM Software Group | DB2 Information Management Software

Performance Imperatives ( conthellip)

bull V8 PK05644 Preformatting up to 2 cylinders at a time to minimize preformat time

bull V7 PQ86037 304 Insert at end option for member cluster tablespace (V7V8 PQ87381 More robust version coming in 2005)

ndash Avoid re-reading spacemap pages from the beginning before dataset extend by always searching forward for freespace when zero PCTFREE and FREEPAGE

ndash Can support steady and continuous high insert rate without rapidly increasing Getpage

ndash Especially useful for heavy insert without delete

IBM Software Group | DB2 Information Management Software

Insert CPU Usage

bull 1048707 Most affected by the number of indexesbull 1048707 DB2 Estimator recommended for more detailed analysisbull 1048707 Rule-of-Thumb Z990(2) cpu time per row inserted inbull microseconds (us) =bull [26 online transaction or 20 batch]bull + 11 for 1 index + 21 for each additional indexbull + 20to30 x pagesread x 13(30 additional for write)bull + 2 if class2 acctg (1)bull + 12 if DB2CICS without TS22 threadsafe option (1)bull - up to 10 if multi-row insert

bull (1) Can disappear if multi-row insertbull (2) Use cpu time multiplier from wwws390ibmcomlspr for other processor models

IBM Software Group | DB2 Information Management Software

Virtual Storage items

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

Java Universal Driver

bull Significant reengineering of Java support for DB2 Connect CAE and DB2 for OS390 and zOS client softwarendash Uses DRDA protocols for all client communication

ndash Eliminates DB2RA and net driver protocols

ndash Traditional DB2 client configuration (CCA) is optional

ndash Much better handling of different clientserver software levels

ndash Improved DB2 Connect consistencyperformance

ndash much higher percentage of common code

ndash fewer unique code paths for specific hardware configurations

ndash Several significant improvements to DRDA

ndash support for long SQL names and statements

ndash DRDA query block sizes can now be up to 2M bytes

ndash rely on server-supplied stored procedures for SQL error messagesdatabase metadata etc

ndash many internal performance improvements

IBM Software Group | DB2 Information Management Software

Java Universal Driver

bull Why use itndash Legacy Drivers functionally stabilized amp will be deprecated

ndash Single driver for all platforms

ndash Client Accounting String

ndash Performance monitor methods

ndash Better performance

IBM Software Group | DB2 Information Management Software

SQLJ usage is increasing

bull Static SQL performance for Java applicationsndash less code written by the application programmer

ndash resulting code is easier to maintain

ndash significant performance advantage over JDBC

ndash Static SQL authorization model

bull Provides Java with a stronger authorization modelndash Monitoringmanageability

ndash static SQL packages for accountingmonitoring

bull Static SQL locks in access path so that access path changes dont occur without a conscious choice

IBM Software Group | DB2 Information Management Software

JDBC vs SQLJ example

bull Retrieve a single row from DB2bull SQLJ

sql [con] SELECT ADDRESS INTO addr FROM EMP WHERE NAME=name

bull JDBCjavasqlPreparedStatement ps = conprepareStatement(SELECT ADDRESS FROM EMP WHERE NAME=)pssetString(1 name)javasqlResultSet names = psexecuteQuery()namesnext()addr = namesgetString(1)namesclose()

bull -- portable across platforms and DBMSsbull -- compilebind time schema checkingbull -- static SQL performance and authorizationbull -- concisebull -- strong typing

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

DB2 Futures

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

DB2 Redbooks - 2Q 2004 httpwwwibmcomredbooks

bull Business Performance Management Meets Business Intelligence (SG24-6340)

bull The Business Value of DB2 UDB for zOS (SG24-6763)bull Data Mart Consolidation Getting Control of Your Enterprise

Information(SG24-6653)bull DB2 UDB for zOS Version 8 Performance Topics (SG24-6465)bull Microsoft SQL Server to IBM DB2 UDB Conversion Guide (SG24-

6672)bull DB2 for zOS and WebSphere The Perfect Couple (SG24-6319)bull Copying the DB2 UDB for zOS catalog using the COPY utility Copying the DB2 UDB for zOS catalog using the COPY utility

(TIPS0587)(TIPS0587)bull Systems Programmers Guide to Resource Recovery Services (RRS) Systems Programmers Guide to Resource Recovery Services (RRS)

(SG24-6980)(SG24-6980)

IBM Software Group | DB2 Information Management Software

Education

bull DB2 Version 8 Migration Workshopsndash Let us know if you need one

bull DB2 Version 8 Transition classndash CG381 amp CG382

IBM Software Group | DB2 Information Management Software

Education ( Design)

IBM Software Group | DB2 Information Management Software

Education (Development)

IBM Software Group | DB2 Information Management Software

Education ( Administration)

IBM Software Group | DB2 Information Management Software

Education (Troubleshooting)

IBM Software Group | DB2 Information Management Software

Intelligent Visual Explain

bull Where to obtain the codebull httpwwwibmcomsoftwaredatadb2zososcvebull Fixpack 7 available nowbull Key prerequisites

ndash Windows NT Version 40 Windows 2000 or Windows XPndash 150 MB of hard disk spacendash 256 MB of RAMndash Pentium III equivalent or abovendash Either DB2 ConnecttradePersonal Edition Version 7 (or later) or DB2

Client Application Enablertrade(CAE) with a DB2 Connect Enterprise Edition Version 7 (or later) gateway installed

ndash A TCPIP connection to a DB2 for zOS Version 7 or Version 8 host system

ndash A java-enabled browser to view HTML files

IBM Software Group | DB2 Information Management Software

Reference URLs

httpwwwibmcomsoftwaredatadb2zosindexhtmlDB2 for zOS

httpwww-306ibmcomsoftwaredatadb2zossupporthtmlDB2 for zOS technical support page

httpwww-306ibmcomsoftwaredatadb2zososcveindexhtmlDB2 VE download

httpwwwunicodeorg Unicode Home pagehttpwwwunicodeorgunicodestandardprincipleshtmlThe Unicode Standard amp Basic Principlesftpftpsoftwareibmcomsoftwaredatadb2zosdppdpdfDB2 for zOS Distribute Performance analysisftpftpsoftwareibmcomsoftwaredb2storedproceduredb2zos390techdocsH01PDFDB2-Java Performance and Tuning

IBM Software Group | DB2 Information Management Software

Reference URLs

www-106ibmcomdeveloperworksdb2librarytecharticle0203shibamiya0203shibamiya2htmlInsert vs Load Performance White paper

IBM Software Group | DB2 Information Management Software

Acknowledgements to My Friends

Mark Wilson ndash DB2 Product Introduction CenterAkira Shibamiya - SVLCurt Cotner ndash SVLJohn Campbell ndash SVL

Page 14: Slide 1 - Parallels Plesk Control Panel 8.6.0

IBM Software Group | DB2 Information Management Software

Allow user to change SPUFI plan name

bull Problem SPUFI userrsquos terminal CCSID is different from the DB2 system EBCDIC CCSID (DSNHDECP SCCSID value)

bull Solution can now create copies of the SPUFI plan for each CCSID needed by users

bull SPUFI user can change plan name to the appropriate name for his CCSID

APAR PTF PTF Avail PUT

PQ97373 UK02448

(also V7)

20050511 F505

IBM Software Group | DB2 Information Management Software

ODBC support for 2 MB statement

bull When connecting to DB2 for zOS V8 NFM system maximum SQL statement length is 2 MB

ndash previously 32K

bull ODBC DBRMs will now precompile with CCSID(1047) instead of default CCSID

APAR PTF PTF Avail PUT

PQ88582 UQ91257 20040909 F409

IBM Software Group | DB2 Information Management Software

DB2 Coprocessor ldquolevelrdquo

bull DB2 Coprocessor ldquolevelrdquo corresponds to NEWFUN precompiler optionndash level 1 NEWFUN (NO)

ndash level 2 NEWFUN (YES)

ndash new message DSNH4760I indicates level

ndash new message DSNH4761I -- level 2 requested but compiler only supports level 1

APAR PTF PTF Avail PUT

PQ85700 COBOL

PQ86907 PLI

UQ86392

UQ87641

20040323

20040601

F403

F405

IBM Software Group | DB2 Information Management Software

CHECK INDEX enhancement

bull CHECK INDEX becomes implicitly SHRLEVEL REFERENCE

bull APAR for PQ96956 (DB2 Utilities Suite -- open) Online CHECK INDEX

ndash CHECK INDEX SHRLEVEL CHANGE

APAR PTF PTF Avail PUT

PQ92749

(DB2 base)

UK04683 20050708 1000

IBM Software Group | DB2 Information Management Software

Stalled restart detection

bull DB2 restart can be stalled eg for archive log tape mounts or HSM recalls

bull A DB2 timer task will now monitor recovery phase of restart

bull If the restart processor has been suspended more than 2 minutes issue new messages

DSNR055I csect RESTART SUSPENDED SINCE time

DSNR056I csect RESTART SUSPENDED ON IRLM REQUEST

DSNR057I csect RESOURCE INFORMATION DBID

DSNR058I csect ACCESSING ARCHIVE LOG data-set-name

APAR PTF PTF Avail PUT

PK01245 UK01653

(also V7)

20050406 F504

IBM Software Group | DB2 Information Management Software

Encrypt userid pw for DDF

bull Problem NEWAUTHID and PASSWORD are stored in the clear in SYSIBMUSERNAMES

bull New stored proc SYSPROCDSNLEUSR stores authid and password in encrypted form

bull Values are decrypted prior to sending to remote server

bull Requires DB2 V8 NFM and zOS Integrated Cryptographic Services Facility (ISCF)

bull wwwibmcomsupport ndash Flash 1208122

APAR PTF PTF Avail PUT

PQ95205 UK02094 20050420 F504

IBM Software Group | DB2 Information Management Software

Hung thread diagnosis

bull When a thread is hung it is often necessary to force a console dump to gather information

-DIS THD() SERVICE(WAIT)

will display threads suspended 2x IRLM timeout (minimum 60 sec) -- additional information if suspended for IRLM lock or DB2 latch contention

APAR PTF PTF Avail PUT

PQ83649 UQ87013

(also V7)

20040420 F404

IBM Software Group | DB2 Information Management Software

Storage monitoring

bull V7 amp V8 ICFID 225 adds real storage statisticsndash number of real frames (4K) in use

ndash number of auxilary slots (4K) in use

(conrsquot)

APAR PTF PTF Avail PUT

PQ91101 UQ92441

(also V7)

20040928 F409

IBM Software Group | DB2 Information Management Software

Preliminary DDF EWLM support

bull IBM Virtualization Engine Enterprise Workload Manager for zOS V110

bull Enterprise Workload Manager enables you to automatically monitor and manage multi-tiered distributed heterogeneous or homogeneous workloads -- extends WLM to other platforms

bull Available starting with zOS 16

bull This APAR allows DDF to act as a server to TCPIP connections to be monitored within an EWLM domain

bull Announcement letter 204-305

APAR PTF PTF Avail PUT

PQ91509 UK03835 20050617 1000

IBM Software Group | DB2 Information Management Software

Monitoring lsquoRLF limit exceededrsquo

bull Problem exceeding RLF ASUTIME for dynamic SQL gets SQLCODE -905 but little info

bull Solution new IFCID 173 to provide plan name collection package name authid time used user ASUTIME

APAR PTF PTF Avail PUT

PQ87848 UQ90756

(also V7)

20040803 F408

IBM Software Group | DB2 Information Management Software

New JDBC driver releases (conrsquot)

bull DB2 Universal JDBC Driver release 25ndash Type-2 control over accounting records at COMMIT or end of physical connection

ndash Plus 29 other maintenance items

APAR PTF PTF Avail PUT

PQ95284 UK00182

(also V7)

20050202 F502

IBM Software Group | DB2 Information Management Software

QMF multi-row FETCH INSERT

bull QMF V8 NFM with DB2 V8 NFM automatically transforms your queries to multi-row operations

APAR PTF PTF Avail PUT

PQ99482 UK06848 20050902 1000

IBM Software Group | DB2 Information Management Software

Performance Imperatives

bull If necessary reduce MAXKEEPD to reduce local DSC rely more on global DSC which is above 2GB

bull V8 PQ96772 205 to move dynamic statement cache control blocks above 2GB

bull PK01911 605 Increased cpu time in Index and Storage processing sometimes accompanied by high LC32 contention

bull PQ99608 205 Excessive log write iorsquos triggered by insert into table with identity column

bull Incorrect Runstats values

bull 1048707 PK01510 505 NPI cluster ratio

bull 1048707 PK03469 505 Non-uniform distribution stats

bull PK04107 Bidirectional indexability for unicode to ebcdic

bull PK05360 Hybrid join with multi-row Fetch

bull PK04076 505 Load default of No Sortkeys if only one index and sorted input

IBM Software Group | DB2 Information Management Software

IBM Software Group

copy 2004 IBM Corporation2 IBM Confidential

V7V8 PK09158 705 Dramatic speedup and elimination of non linear performance problem in deletes via SCT02 or SPT01 in Bind Replace or Free

ndash Resolved a half dozen performance PMRs recently raised

V8 PK01911 605 Fix general V8 performance degradation brought about by V8 PQ93318 1204

V8 Multi-row Fetch performance problems

ndash PK05360 opened 505 No hybrid join support

ndash PQ88009 504 disabled parallelism for the last group of the top level query block if there is no Groupby or Orderby

ndash PK10021 opened 805 query abend with host variable or special register

V8 PQ92072 805 to support implicit multi-row Insert by ODBC array input

Recent major performance-related apars

IBM Software Group | DB2 Information Management Software

Performance Imperatives ( conthellip)

bull V8 PK05644 Preformatting up to 2 cylinders at a time to minimize preformat time

bull V7 PQ86037 304 Insert at end option for member cluster tablespace (V7V8 PQ87381 More robust version coming in 2005)

ndash Avoid re-reading spacemap pages from the beginning before dataset extend by always searching forward for freespace when zero PCTFREE and FREEPAGE

ndash Can support steady and continuous high insert rate without rapidly increasing Getpage

ndash Especially useful for heavy insert without delete

IBM Software Group | DB2 Information Management Software

Insert CPU Usage

bull 1048707 Most affected by the number of indexesbull 1048707 DB2 Estimator recommended for more detailed analysisbull 1048707 Rule-of-Thumb Z990(2) cpu time per row inserted inbull microseconds (us) =bull [26 online transaction or 20 batch]bull + 11 for 1 index + 21 for each additional indexbull + 20to30 x pagesread x 13(30 additional for write)bull + 2 if class2 acctg (1)bull + 12 if DB2CICS without TS22 threadsafe option (1)bull - up to 10 if multi-row insert

bull (1) Can disappear if multi-row insertbull (2) Use cpu time multiplier from wwws390ibmcomlspr for other processor models

IBM Software Group | DB2 Information Management Software

Virtual Storage items

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

Java Universal Driver

bull Significant reengineering of Java support for DB2 Connect CAE and DB2 for OS390 and zOS client softwarendash Uses DRDA protocols for all client communication

ndash Eliminates DB2RA and net driver protocols

ndash Traditional DB2 client configuration (CCA) is optional

ndash Much better handling of different clientserver software levels

ndash Improved DB2 Connect consistencyperformance

ndash much higher percentage of common code

ndash fewer unique code paths for specific hardware configurations

ndash Several significant improvements to DRDA

ndash support for long SQL names and statements

ndash DRDA query block sizes can now be up to 2M bytes

ndash rely on server-supplied stored procedures for SQL error messagesdatabase metadata etc

ndash many internal performance improvements

IBM Software Group | DB2 Information Management Software

Java Universal Driver

bull Why use itndash Legacy Drivers functionally stabilized amp will be deprecated

ndash Single driver for all platforms

ndash Client Accounting String

ndash Performance monitor methods

ndash Better performance

IBM Software Group | DB2 Information Management Software

SQLJ usage is increasing

bull Static SQL performance for Java applicationsndash less code written by the application programmer

ndash resulting code is easier to maintain

ndash significant performance advantage over JDBC

ndash Static SQL authorization model

bull Provides Java with a stronger authorization modelndash Monitoringmanageability

ndash static SQL packages for accountingmonitoring

bull Static SQL locks in access path so that access path changes dont occur without a conscious choice

IBM Software Group | DB2 Information Management Software

JDBC vs SQLJ example

bull Retrieve a single row from DB2bull SQLJ

sql [con] SELECT ADDRESS INTO addr FROM EMP WHERE NAME=name

bull JDBCjavasqlPreparedStatement ps = conprepareStatement(SELECT ADDRESS FROM EMP WHERE NAME=)pssetString(1 name)javasqlResultSet names = psexecuteQuery()namesnext()addr = namesgetString(1)namesclose()

bull -- portable across platforms and DBMSsbull -- compilebind time schema checkingbull -- static SQL performance and authorizationbull -- concisebull -- strong typing

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

DB2 Futures

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

DB2 Redbooks - 2Q 2004 httpwwwibmcomredbooks

bull Business Performance Management Meets Business Intelligence (SG24-6340)

bull The Business Value of DB2 UDB for zOS (SG24-6763)bull Data Mart Consolidation Getting Control of Your Enterprise

Information(SG24-6653)bull DB2 UDB for zOS Version 8 Performance Topics (SG24-6465)bull Microsoft SQL Server to IBM DB2 UDB Conversion Guide (SG24-

6672)bull DB2 for zOS and WebSphere The Perfect Couple (SG24-6319)bull Copying the DB2 UDB for zOS catalog using the COPY utility Copying the DB2 UDB for zOS catalog using the COPY utility

(TIPS0587)(TIPS0587)bull Systems Programmers Guide to Resource Recovery Services (RRS) Systems Programmers Guide to Resource Recovery Services (RRS)

(SG24-6980)(SG24-6980)

IBM Software Group | DB2 Information Management Software

Education

bull DB2 Version 8 Migration Workshopsndash Let us know if you need one

bull DB2 Version 8 Transition classndash CG381 amp CG382

IBM Software Group | DB2 Information Management Software

Education ( Design)

IBM Software Group | DB2 Information Management Software

Education (Development)

IBM Software Group | DB2 Information Management Software

Education ( Administration)

IBM Software Group | DB2 Information Management Software

Education (Troubleshooting)

IBM Software Group | DB2 Information Management Software

Intelligent Visual Explain

bull Where to obtain the codebull httpwwwibmcomsoftwaredatadb2zososcvebull Fixpack 7 available nowbull Key prerequisites

ndash Windows NT Version 40 Windows 2000 or Windows XPndash 150 MB of hard disk spacendash 256 MB of RAMndash Pentium III equivalent or abovendash Either DB2 ConnecttradePersonal Edition Version 7 (or later) or DB2

Client Application Enablertrade(CAE) with a DB2 Connect Enterprise Edition Version 7 (or later) gateway installed

ndash A TCPIP connection to a DB2 for zOS Version 7 or Version 8 host system

ndash A java-enabled browser to view HTML files

IBM Software Group | DB2 Information Management Software

Reference URLs

httpwwwibmcomsoftwaredatadb2zosindexhtmlDB2 for zOS

httpwww-306ibmcomsoftwaredatadb2zossupporthtmlDB2 for zOS technical support page

httpwww-306ibmcomsoftwaredatadb2zososcveindexhtmlDB2 VE download

httpwwwunicodeorg Unicode Home pagehttpwwwunicodeorgunicodestandardprincipleshtmlThe Unicode Standard amp Basic Principlesftpftpsoftwareibmcomsoftwaredatadb2zosdppdpdfDB2 for zOS Distribute Performance analysisftpftpsoftwareibmcomsoftwaredb2storedproceduredb2zos390techdocsH01PDFDB2-Java Performance and Tuning

IBM Software Group | DB2 Information Management Software

Reference URLs

www-106ibmcomdeveloperworksdb2librarytecharticle0203shibamiya0203shibamiya2htmlInsert vs Load Performance White paper

IBM Software Group | DB2 Information Management Software

Acknowledgements to My Friends

Mark Wilson ndash DB2 Product Introduction CenterAkira Shibamiya - SVLCurt Cotner ndash SVLJohn Campbell ndash SVL

Page 15: Slide 1 - Parallels Plesk Control Panel 8.6.0

IBM Software Group | DB2 Information Management Software

ODBC support for 2 MB statement

bull When connecting to DB2 for zOS V8 NFM system maximum SQL statement length is 2 MB

ndash previously 32K

bull ODBC DBRMs will now precompile with CCSID(1047) instead of default CCSID

APAR PTF PTF Avail PUT

PQ88582 UQ91257 20040909 F409

IBM Software Group | DB2 Information Management Software

DB2 Coprocessor ldquolevelrdquo

bull DB2 Coprocessor ldquolevelrdquo corresponds to NEWFUN precompiler optionndash level 1 NEWFUN (NO)

ndash level 2 NEWFUN (YES)

ndash new message DSNH4760I indicates level

ndash new message DSNH4761I -- level 2 requested but compiler only supports level 1

APAR PTF PTF Avail PUT

PQ85700 COBOL

PQ86907 PLI

UQ86392

UQ87641

20040323

20040601

F403

F405

IBM Software Group | DB2 Information Management Software

CHECK INDEX enhancement

bull CHECK INDEX becomes implicitly SHRLEVEL REFERENCE

bull APAR for PQ96956 (DB2 Utilities Suite -- open) Online CHECK INDEX

ndash CHECK INDEX SHRLEVEL CHANGE

APAR PTF PTF Avail PUT

PQ92749

(DB2 base)

UK04683 20050708 1000

IBM Software Group | DB2 Information Management Software

Stalled restart detection

bull DB2 restart can be stalled eg for archive log tape mounts or HSM recalls

bull A DB2 timer task will now monitor recovery phase of restart

bull If the restart processor has been suspended more than 2 minutes issue new messages

DSNR055I csect RESTART SUSPENDED SINCE time

DSNR056I csect RESTART SUSPENDED ON IRLM REQUEST

DSNR057I csect RESOURCE INFORMATION DBID

DSNR058I csect ACCESSING ARCHIVE LOG data-set-name

APAR PTF PTF Avail PUT

PK01245 UK01653

(also V7)

20050406 F504

IBM Software Group | DB2 Information Management Software

Encrypt userid pw for DDF

bull Problem NEWAUTHID and PASSWORD are stored in the clear in SYSIBMUSERNAMES

bull New stored proc SYSPROCDSNLEUSR stores authid and password in encrypted form

bull Values are decrypted prior to sending to remote server

bull Requires DB2 V8 NFM and zOS Integrated Cryptographic Services Facility (ISCF)

bull wwwibmcomsupport ndash Flash 1208122

APAR PTF PTF Avail PUT

PQ95205 UK02094 20050420 F504

IBM Software Group | DB2 Information Management Software

Hung thread diagnosis

bull When a thread is hung it is often necessary to force a console dump to gather information

-DIS THD() SERVICE(WAIT)

will display threads suspended 2x IRLM timeout (minimum 60 sec) -- additional information if suspended for IRLM lock or DB2 latch contention

APAR PTF PTF Avail PUT

PQ83649 UQ87013

(also V7)

20040420 F404

IBM Software Group | DB2 Information Management Software

Storage monitoring

bull V7 amp V8 ICFID 225 adds real storage statisticsndash number of real frames (4K) in use

ndash number of auxilary slots (4K) in use

(conrsquot)

APAR PTF PTF Avail PUT

PQ91101 UQ92441

(also V7)

20040928 F409

IBM Software Group | DB2 Information Management Software

Preliminary DDF EWLM support

bull IBM Virtualization Engine Enterprise Workload Manager for zOS V110

bull Enterprise Workload Manager enables you to automatically monitor and manage multi-tiered distributed heterogeneous or homogeneous workloads -- extends WLM to other platforms

bull Available starting with zOS 16

bull This APAR allows DDF to act as a server to TCPIP connections to be monitored within an EWLM domain

bull Announcement letter 204-305

APAR PTF PTF Avail PUT

PQ91509 UK03835 20050617 1000

IBM Software Group | DB2 Information Management Software

Monitoring lsquoRLF limit exceededrsquo

bull Problem exceeding RLF ASUTIME for dynamic SQL gets SQLCODE -905 but little info

bull Solution new IFCID 173 to provide plan name collection package name authid time used user ASUTIME

APAR PTF PTF Avail PUT

PQ87848 UQ90756

(also V7)

20040803 F408

IBM Software Group | DB2 Information Management Software

New JDBC driver releases (conrsquot)

bull DB2 Universal JDBC Driver release 25ndash Type-2 control over accounting records at COMMIT or end of physical connection

ndash Plus 29 other maintenance items

APAR PTF PTF Avail PUT

PQ95284 UK00182

(also V7)

20050202 F502

IBM Software Group | DB2 Information Management Software

QMF multi-row FETCH INSERT

bull QMF V8 NFM with DB2 V8 NFM automatically transforms your queries to multi-row operations

APAR PTF PTF Avail PUT

PQ99482 UK06848 20050902 1000

IBM Software Group | DB2 Information Management Software

Performance Imperatives

bull If necessary reduce MAXKEEPD to reduce local DSC rely more on global DSC which is above 2GB

bull V8 PQ96772 205 to move dynamic statement cache control blocks above 2GB

bull PK01911 605 Increased cpu time in Index and Storage processing sometimes accompanied by high LC32 contention

bull PQ99608 205 Excessive log write iorsquos triggered by insert into table with identity column

bull Incorrect Runstats values

bull 1048707 PK01510 505 NPI cluster ratio

bull 1048707 PK03469 505 Non-uniform distribution stats

bull PK04107 Bidirectional indexability for unicode to ebcdic

bull PK05360 Hybrid join with multi-row Fetch

bull PK04076 505 Load default of No Sortkeys if only one index and sorted input

IBM Software Group | DB2 Information Management Software

IBM Software Group

copy 2004 IBM Corporation2 IBM Confidential

V7V8 PK09158 705 Dramatic speedup and elimination of non linear performance problem in deletes via SCT02 or SPT01 in Bind Replace or Free

ndash Resolved a half dozen performance PMRs recently raised

V8 PK01911 605 Fix general V8 performance degradation brought about by V8 PQ93318 1204

V8 Multi-row Fetch performance problems

ndash PK05360 opened 505 No hybrid join support

ndash PQ88009 504 disabled parallelism for the last group of the top level query block if there is no Groupby or Orderby

ndash PK10021 opened 805 query abend with host variable or special register

V8 PQ92072 805 to support implicit multi-row Insert by ODBC array input

Recent major performance-related apars

IBM Software Group | DB2 Information Management Software

Performance Imperatives ( conthellip)

bull V8 PK05644 Preformatting up to 2 cylinders at a time to minimize preformat time

bull V7 PQ86037 304 Insert at end option for member cluster tablespace (V7V8 PQ87381 More robust version coming in 2005)

ndash Avoid re-reading spacemap pages from the beginning before dataset extend by always searching forward for freespace when zero PCTFREE and FREEPAGE

ndash Can support steady and continuous high insert rate without rapidly increasing Getpage

ndash Especially useful for heavy insert without delete

IBM Software Group | DB2 Information Management Software

Insert CPU Usage

bull 1048707 Most affected by the number of indexesbull 1048707 DB2 Estimator recommended for more detailed analysisbull 1048707 Rule-of-Thumb Z990(2) cpu time per row inserted inbull microseconds (us) =bull [26 online transaction or 20 batch]bull + 11 for 1 index + 21 for each additional indexbull + 20to30 x pagesread x 13(30 additional for write)bull + 2 if class2 acctg (1)bull + 12 if DB2CICS without TS22 threadsafe option (1)bull - up to 10 if multi-row insert

bull (1) Can disappear if multi-row insertbull (2) Use cpu time multiplier from wwws390ibmcomlspr for other processor models

IBM Software Group | DB2 Information Management Software

Virtual Storage items

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

Java Universal Driver

bull Significant reengineering of Java support for DB2 Connect CAE and DB2 for OS390 and zOS client softwarendash Uses DRDA protocols for all client communication

ndash Eliminates DB2RA and net driver protocols

ndash Traditional DB2 client configuration (CCA) is optional

ndash Much better handling of different clientserver software levels

ndash Improved DB2 Connect consistencyperformance

ndash much higher percentage of common code

ndash fewer unique code paths for specific hardware configurations

ndash Several significant improvements to DRDA

ndash support for long SQL names and statements

ndash DRDA query block sizes can now be up to 2M bytes

ndash rely on server-supplied stored procedures for SQL error messagesdatabase metadata etc

ndash many internal performance improvements

IBM Software Group | DB2 Information Management Software

Java Universal Driver

bull Why use itndash Legacy Drivers functionally stabilized amp will be deprecated

ndash Single driver for all platforms

ndash Client Accounting String

ndash Performance monitor methods

ndash Better performance

IBM Software Group | DB2 Information Management Software

SQLJ usage is increasing

bull Static SQL performance for Java applicationsndash less code written by the application programmer

ndash resulting code is easier to maintain

ndash significant performance advantage over JDBC

ndash Static SQL authorization model

bull Provides Java with a stronger authorization modelndash Monitoringmanageability

ndash static SQL packages for accountingmonitoring

bull Static SQL locks in access path so that access path changes dont occur without a conscious choice

IBM Software Group | DB2 Information Management Software

JDBC vs SQLJ example

bull Retrieve a single row from DB2bull SQLJ

sql [con] SELECT ADDRESS INTO addr FROM EMP WHERE NAME=name

bull JDBCjavasqlPreparedStatement ps = conprepareStatement(SELECT ADDRESS FROM EMP WHERE NAME=)pssetString(1 name)javasqlResultSet names = psexecuteQuery()namesnext()addr = namesgetString(1)namesclose()

bull -- portable across platforms and DBMSsbull -- compilebind time schema checkingbull -- static SQL performance and authorizationbull -- concisebull -- strong typing

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

DB2 Futures

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

DB2 Redbooks - 2Q 2004 httpwwwibmcomredbooks

bull Business Performance Management Meets Business Intelligence (SG24-6340)

bull The Business Value of DB2 UDB for zOS (SG24-6763)bull Data Mart Consolidation Getting Control of Your Enterprise

Information(SG24-6653)bull DB2 UDB for zOS Version 8 Performance Topics (SG24-6465)bull Microsoft SQL Server to IBM DB2 UDB Conversion Guide (SG24-

6672)bull DB2 for zOS and WebSphere The Perfect Couple (SG24-6319)bull Copying the DB2 UDB for zOS catalog using the COPY utility Copying the DB2 UDB for zOS catalog using the COPY utility

(TIPS0587)(TIPS0587)bull Systems Programmers Guide to Resource Recovery Services (RRS) Systems Programmers Guide to Resource Recovery Services (RRS)

(SG24-6980)(SG24-6980)

IBM Software Group | DB2 Information Management Software

Education

bull DB2 Version 8 Migration Workshopsndash Let us know if you need one

bull DB2 Version 8 Transition classndash CG381 amp CG382

IBM Software Group | DB2 Information Management Software

Education ( Design)

IBM Software Group | DB2 Information Management Software

Education (Development)

IBM Software Group | DB2 Information Management Software

Education ( Administration)

IBM Software Group | DB2 Information Management Software

Education (Troubleshooting)

IBM Software Group | DB2 Information Management Software

Intelligent Visual Explain

bull Where to obtain the codebull httpwwwibmcomsoftwaredatadb2zososcvebull Fixpack 7 available nowbull Key prerequisites

ndash Windows NT Version 40 Windows 2000 or Windows XPndash 150 MB of hard disk spacendash 256 MB of RAMndash Pentium III equivalent or abovendash Either DB2 ConnecttradePersonal Edition Version 7 (or later) or DB2

Client Application Enablertrade(CAE) with a DB2 Connect Enterprise Edition Version 7 (or later) gateway installed

ndash A TCPIP connection to a DB2 for zOS Version 7 or Version 8 host system

ndash A java-enabled browser to view HTML files

IBM Software Group | DB2 Information Management Software

Reference URLs

httpwwwibmcomsoftwaredatadb2zosindexhtmlDB2 for zOS

httpwww-306ibmcomsoftwaredatadb2zossupporthtmlDB2 for zOS technical support page

httpwww-306ibmcomsoftwaredatadb2zososcveindexhtmlDB2 VE download

httpwwwunicodeorg Unicode Home pagehttpwwwunicodeorgunicodestandardprincipleshtmlThe Unicode Standard amp Basic Principlesftpftpsoftwareibmcomsoftwaredatadb2zosdppdpdfDB2 for zOS Distribute Performance analysisftpftpsoftwareibmcomsoftwaredb2storedproceduredb2zos390techdocsH01PDFDB2-Java Performance and Tuning

IBM Software Group | DB2 Information Management Software

Reference URLs

www-106ibmcomdeveloperworksdb2librarytecharticle0203shibamiya0203shibamiya2htmlInsert vs Load Performance White paper

IBM Software Group | DB2 Information Management Software

Acknowledgements to My Friends

Mark Wilson ndash DB2 Product Introduction CenterAkira Shibamiya - SVLCurt Cotner ndash SVLJohn Campbell ndash SVL

Page 16: Slide 1 - Parallels Plesk Control Panel 8.6.0

IBM Software Group | DB2 Information Management Software

DB2 Coprocessor ldquolevelrdquo

bull DB2 Coprocessor ldquolevelrdquo corresponds to NEWFUN precompiler optionndash level 1 NEWFUN (NO)

ndash level 2 NEWFUN (YES)

ndash new message DSNH4760I indicates level

ndash new message DSNH4761I -- level 2 requested but compiler only supports level 1

APAR PTF PTF Avail PUT

PQ85700 COBOL

PQ86907 PLI

UQ86392

UQ87641

20040323

20040601

F403

F405

IBM Software Group | DB2 Information Management Software

CHECK INDEX enhancement

bull CHECK INDEX becomes implicitly SHRLEVEL REFERENCE

bull APAR for PQ96956 (DB2 Utilities Suite -- open) Online CHECK INDEX

ndash CHECK INDEX SHRLEVEL CHANGE

APAR PTF PTF Avail PUT

PQ92749

(DB2 base)

UK04683 20050708 1000

IBM Software Group | DB2 Information Management Software

Stalled restart detection

bull DB2 restart can be stalled eg for archive log tape mounts or HSM recalls

bull A DB2 timer task will now monitor recovery phase of restart

bull If the restart processor has been suspended more than 2 minutes issue new messages

DSNR055I csect RESTART SUSPENDED SINCE time

DSNR056I csect RESTART SUSPENDED ON IRLM REQUEST

DSNR057I csect RESOURCE INFORMATION DBID

DSNR058I csect ACCESSING ARCHIVE LOG data-set-name

APAR PTF PTF Avail PUT

PK01245 UK01653

(also V7)

20050406 F504

IBM Software Group | DB2 Information Management Software

Encrypt userid pw for DDF

bull Problem NEWAUTHID and PASSWORD are stored in the clear in SYSIBMUSERNAMES

bull New stored proc SYSPROCDSNLEUSR stores authid and password in encrypted form

bull Values are decrypted prior to sending to remote server

bull Requires DB2 V8 NFM and zOS Integrated Cryptographic Services Facility (ISCF)

bull wwwibmcomsupport ndash Flash 1208122

APAR PTF PTF Avail PUT

PQ95205 UK02094 20050420 F504

IBM Software Group | DB2 Information Management Software

Hung thread diagnosis

bull When a thread is hung it is often necessary to force a console dump to gather information

-DIS THD() SERVICE(WAIT)

will display threads suspended 2x IRLM timeout (minimum 60 sec) -- additional information if suspended for IRLM lock or DB2 latch contention

APAR PTF PTF Avail PUT

PQ83649 UQ87013

(also V7)

20040420 F404

IBM Software Group | DB2 Information Management Software

Storage monitoring

bull V7 amp V8 ICFID 225 adds real storage statisticsndash number of real frames (4K) in use

ndash number of auxilary slots (4K) in use

(conrsquot)

APAR PTF PTF Avail PUT

PQ91101 UQ92441

(also V7)

20040928 F409

IBM Software Group | DB2 Information Management Software

Preliminary DDF EWLM support

bull IBM Virtualization Engine Enterprise Workload Manager for zOS V110

bull Enterprise Workload Manager enables you to automatically monitor and manage multi-tiered distributed heterogeneous or homogeneous workloads -- extends WLM to other platforms

bull Available starting with zOS 16

bull This APAR allows DDF to act as a server to TCPIP connections to be monitored within an EWLM domain

bull Announcement letter 204-305

APAR PTF PTF Avail PUT

PQ91509 UK03835 20050617 1000

IBM Software Group | DB2 Information Management Software

Monitoring lsquoRLF limit exceededrsquo

bull Problem exceeding RLF ASUTIME for dynamic SQL gets SQLCODE -905 but little info

bull Solution new IFCID 173 to provide plan name collection package name authid time used user ASUTIME

APAR PTF PTF Avail PUT

PQ87848 UQ90756

(also V7)

20040803 F408

IBM Software Group | DB2 Information Management Software

New JDBC driver releases (conrsquot)

bull DB2 Universal JDBC Driver release 25ndash Type-2 control over accounting records at COMMIT or end of physical connection

ndash Plus 29 other maintenance items

APAR PTF PTF Avail PUT

PQ95284 UK00182

(also V7)

20050202 F502

IBM Software Group | DB2 Information Management Software

QMF multi-row FETCH INSERT

bull QMF V8 NFM with DB2 V8 NFM automatically transforms your queries to multi-row operations

APAR PTF PTF Avail PUT

PQ99482 UK06848 20050902 1000

IBM Software Group | DB2 Information Management Software

Performance Imperatives

bull If necessary reduce MAXKEEPD to reduce local DSC rely more on global DSC which is above 2GB

bull V8 PQ96772 205 to move dynamic statement cache control blocks above 2GB

bull PK01911 605 Increased cpu time in Index and Storage processing sometimes accompanied by high LC32 contention

bull PQ99608 205 Excessive log write iorsquos triggered by insert into table with identity column

bull Incorrect Runstats values

bull 1048707 PK01510 505 NPI cluster ratio

bull 1048707 PK03469 505 Non-uniform distribution stats

bull PK04107 Bidirectional indexability for unicode to ebcdic

bull PK05360 Hybrid join with multi-row Fetch

bull PK04076 505 Load default of No Sortkeys if only one index and sorted input

IBM Software Group | DB2 Information Management Software

IBM Software Group

copy 2004 IBM Corporation2 IBM Confidential

V7V8 PK09158 705 Dramatic speedup and elimination of non linear performance problem in deletes via SCT02 or SPT01 in Bind Replace or Free

ndash Resolved a half dozen performance PMRs recently raised

V8 PK01911 605 Fix general V8 performance degradation brought about by V8 PQ93318 1204

V8 Multi-row Fetch performance problems

ndash PK05360 opened 505 No hybrid join support

ndash PQ88009 504 disabled parallelism for the last group of the top level query block if there is no Groupby or Orderby

ndash PK10021 opened 805 query abend with host variable or special register

V8 PQ92072 805 to support implicit multi-row Insert by ODBC array input

Recent major performance-related apars

IBM Software Group | DB2 Information Management Software

Performance Imperatives ( conthellip)

bull V8 PK05644 Preformatting up to 2 cylinders at a time to minimize preformat time

bull V7 PQ86037 304 Insert at end option for member cluster tablespace (V7V8 PQ87381 More robust version coming in 2005)

ndash Avoid re-reading spacemap pages from the beginning before dataset extend by always searching forward for freespace when zero PCTFREE and FREEPAGE

ndash Can support steady and continuous high insert rate without rapidly increasing Getpage

ndash Especially useful for heavy insert without delete

IBM Software Group | DB2 Information Management Software

Insert CPU Usage

bull 1048707 Most affected by the number of indexesbull 1048707 DB2 Estimator recommended for more detailed analysisbull 1048707 Rule-of-Thumb Z990(2) cpu time per row inserted inbull microseconds (us) =bull [26 online transaction or 20 batch]bull + 11 for 1 index + 21 for each additional indexbull + 20to30 x pagesread x 13(30 additional for write)bull + 2 if class2 acctg (1)bull + 12 if DB2CICS without TS22 threadsafe option (1)bull - up to 10 if multi-row insert

bull (1) Can disappear if multi-row insertbull (2) Use cpu time multiplier from wwws390ibmcomlspr for other processor models

IBM Software Group | DB2 Information Management Software

Virtual Storage items

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

Java Universal Driver

bull Significant reengineering of Java support for DB2 Connect CAE and DB2 for OS390 and zOS client softwarendash Uses DRDA protocols for all client communication

ndash Eliminates DB2RA and net driver protocols

ndash Traditional DB2 client configuration (CCA) is optional

ndash Much better handling of different clientserver software levels

ndash Improved DB2 Connect consistencyperformance

ndash much higher percentage of common code

ndash fewer unique code paths for specific hardware configurations

ndash Several significant improvements to DRDA

ndash support for long SQL names and statements

ndash DRDA query block sizes can now be up to 2M bytes

ndash rely on server-supplied stored procedures for SQL error messagesdatabase metadata etc

ndash many internal performance improvements

IBM Software Group | DB2 Information Management Software

Java Universal Driver

bull Why use itndash Legacy Drivers functionally stabilized amp will be deprecated

ndash Single driver for all platforms

ndash Client Accounting String

ndash Performance monitor methods

ndash Better performance

IBM Software Group | DB2 Information Management Software

SQLJ usage is increasing

bull Static SQL performance for Java applicationsndash less code written by the application programmer

ndash resulting code is easier to maintain

ndash significant performance advantage over JDBC

ndash Static SQL authorization model

bull Provides Java with a stronger authorization modelndash Monitoringmanageability

ndash static SQL packages for accountingmonitoring

bull Static SQL locks in access path so that access path changes dont occur without a conscious choice

IBM Software Group | DB2 Information Management Software

JDBC vs SQLJ example

bull Retrieve a single row from DB2bull SQLJ

sql [con] SELECT ADDRESS INTO addr FROM EMP WHERE NAME=name

bull JDBCjavasqlPreparedStatement ps = conprepareStatement(SELECT ADDRESS FROM EMP WHERE NAME=)pssetString(1 name)javasqlResultSet names = psexecuteQuery()namesnext()addr = namesgetString(1)namesclose()

bull -- portable across platforms and DBMSsbull -- compilebind time schema checkingbull -- static SQL performance and authorizationbull -- concisebull -- strong typing

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

DB2 Futures

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

DB2 Redbooks - 2Q 2004 httpwwwibmcomredbooks

bull Business Performance Management Meets Business Intelligence (SG24-6340)

bull The Business Value of DB2 UDB for zOS (SG24-6763)bull Data Mart Consolidation Getting Control of Your Enterprise

Information(SG24-6653)bull DB2 UDB for zOS Version 8 Performance Topics (SG24-6465)bull Microsoft SQL Server to IBM DB2 UDB Conversion Guide (SG24-

6672)bull DB2 for zOS and WebSphere The Perfect Couple (SG24-6319)bull Copying the DB2 UDB for zOS catalog using the COPY utility Copying the DB2 UDB for zOS catalog using the COPY utility

(TIPS0587)(TIPS0587)bull Systems Programmers Guide to Resource Recovery Services (RRS) Systems Programmers Guide to Resource Recovery Services (RRS)

(SG24-6980)(SG24-6980)

IBM Software Group | DB2 Information Management Software

Education

bull DB2 Version 8 Migration Workshopsndash Let us know if you need one

bull DB2 Version 8 Transition classndash CG381 amp CG382

IBM Software Group | DB2 Information Management Software

Education ( Design)

IBM Software Group | DB2 Information Management Software

Education (Development)

IBM Software Group | DB2 Information Management Software

Education ( Administration)

IBM Software Group | DB2 Information Management Software

Education (Troubleshooting)

IBM Software Group | DB2 Information Management Software

Intelligent Visual Explain

bull Where to obtain the codebull httpwwwibmcomsoftwaredatadb2zososcvebull Fixpack 7 available nowbull Key prerequisites

ndash Windows NT Version 40 Windows 2000 or Windows XPndash 150 MB of hard disk spacendash 256 MB of RAMndash Pentium III equivalent or abovendash Either DB2 ConnecttradePersonal Edition Version 7 (or later) or DB2

Client Application Enablertrade(CAE) with a DB2 Connect Enterprise Edition Version 7 (or later) gateway installed

ndash A TCPIP connection to a DB2 for zOS Version 7 or Version 8 host system

ndash A java-enabled browser to view HTML files

IBM Software Group | DB2 Information Management Software

Reference URLs

httpwwwibmcomsoftwaredatadb2zosindexhtmlDB2 for zOS

httpwww-306ibmcomsoftwaredatadb2zossupporthtmlDB2 for zOS technical support page

httpwww-306ibmcomsoftwaredatadb2zososcveindexhtmlDB2 VE download

httpwwwunicodeorg Unicode Home pagehttpwwwunicodeorgunicodestandardprincipleshtmlThe Unicode Standard amp Basic Principlesftpftpsoftwareibmcomsoftwaredatadb2zosdppdpdfDB2 for zOS Distribute Performance analysisftpftpsoftwareibmcomsoftwaredb2storedproceduredb2zos390techdocsH01PDFDB2-Java Performance and Tuning

IBM Software Group | DB2 Information Management Software

Reference URLs

www-106ibmcomdeveloperworksdb2librarytecharticle0203shibamiya0203shibamiya2htmlInsert vs Load Performance White paper

IBM Software Group | DB2 Information Management Software

Acknowledgements to My Friends

Mark Wilson ndash DB2 Product Introduction CenterAkira Shibamiya - SVLCurt Cotner ndash SVLJohn Campbell ndash SVL

Page 17: Slide 1 - Parallels Plesk Control Panel 8.6.0

IBM Software Group | DB2 Information Management Software

CHECK INDEX enhancement

bull CHECK INDEX becomes implicitly SHRLEVEL REFERENCE

bull APAR for PQ96956 (DB2 Utilities Suite -- open) Online CHECK INDEX

ndash CHECK INDEX SHRLEVEL CHANGE

APAR PTF PTF Avail PUT

PQ92749

(DB2 base)

UK04683 20050708 1000

IBM Software Group | DB2 Information Management Software

Stalled restart detection

bull DB2 restart can be stalled eg for archive log tape mounts or HSM recalls

bull A DB2 timer task will now monitor recovery phase of restart

bull If the restart processor has been suspended more than 2 minutes issue new messages

DSNR055I csect RESTART SUSPENDED SINCE time

DSNR056I csect RESTART SUSPENDED ON IRLM REQUEST

DSNR057I csect RESOURCE INFORMATION DBID

DSNR058I csect ACCESSING ARCHIVE LOG data-set-name

APAR PTF PTF Avail PUT

PK01245 UK01653

(also V7)

20050406 F504

IBM Software Group | DB2 Information Management Software

Encrypt userid pw for DDF

bull Problem NEWAUTHID and PASSWORD are stored in the clear in SYSIBMUSERNAMES

bull New stored proc SYSPROCDSNLEUSR stores authid and password in encrypted form

bull Values are decrypted prior to sending to remote server

bull Requires DB2 V8 NFM and zOS Integrated Cryptographic Services Facility (ISCF)

bull wwwibmcomsupport ndash Flash 1208122

APAR PTF PTF Avail PUT

PQ95205 UK02094 20050420 F504

IBM Software Group | DB2 Information Management Software

Hung thread diagnosis

bull When a thread is hung it is often necessary to force a console dump to gather information

-DIS THD() SERVICE(WAIT)

will display threads suspended 2x IRLM timeout (minimum 60 sec) -- additional information if suspended for IRLM lock or DB2 latch contention

APAR PTF PTF Avail PUT

PQ83649 UQ87013

(also V7)

20040420 F404

IBM Software Group | DB2 Information Management Software

Storage monitoring

bull V7 amp V8 ICFID 225 adds real storage statisticsndash number of real frames (4K) in use

ndash number of auxilary slots (4K) in use

(conrsquot)

APAR PTF PTF Avail PUT

PQ91101 UQ92441

(also V7)

20040928 F409

IBM Software Group | DB2 Information Management Software

Preliminary DDF EWLM support

bull IBM Virtualization Engine Enterprise Workload Manager for zOS V110

bull Enterprise Workload Manager enables you to automatically monitor and manage multi-tiered distributed heterogeneous or homogeneous workloads -- extends WLM to other platforms

bull Available starting with zOS 16

bull This APAR allows DDF to act as a server to TCPIP connections to be monitored within an EWLM domain

bull Announcement letter 204-305

APAR PTF PTF Avail PUT

PQ91509 UK03835 20050617 1000

IBM Software Group | DB2 Information Management Software

Monitoring lsquoRLF limit exceededrsquo

bull Problem exceeding RLF ASUTIME for dynamic SQL gets SQLCODE -905 but little info

bull Solution new IFCID 173 to provide plan name collection package name authid time used user ASUTIME

APAR PTF PTF Avail PUT

PQ87848 UQ90756

(also V7)

20040803 F408

IBM Software Group | DB2 Information Management Software

New JDBC driver releases (conrsquot)

bull DB2 Universal JDBC Driver release 25ndash Type-2 control over accounting records at COMMIT or end of physical connection

ndash Plus 29 other maintenance items

APAR PTF PTF Avail PUT

PQ95284 UK00182

(also V7)

20050202 F502

IBM Software Group | DB2 Information Management Software

QMF multi-row FETCH INSERT

bull QMF V8 NFM with DB2 V8 NFM automatically transforms your queries to multi-row operations

APAR PTF PTF Avail PUT

PQ99482 UK06848 20050902 1000

IBM Software Group | DB2 Information Management Software

Performance Imperatives

bull If necessary reduce MAXKEEPD to reduce local DSC rely more on global DSC which is above 2GB

bull V8 PQ96772 205 to move dynamic statement cache control blocks above 2GB

bull PK01911 605 Increased cpu time in Index and Storage processing sometimes accompanied by high LC32 contention

bull PQ99608 205 Excessive log write iorsquos triggered by insert into table with identity column

bull Incorrect Runstats values

bull 1048707 PK01510 505 NPI cluster ratio

bull 1048707 PK03469 505 Non-uniform distribution stats

bull PK04107 Bidirectional indexability for unicode to ebcdic

bull PK05360 Hybrid join with multi-row Fetch

bull PK04076 505 Load default of No Sortkeys if only one index and sorted input

IBM Software Group | DB2 Information Management Software

IBM Software Group

copy 2004 IBM Corporation2 IBM Confidential

V7V8 PK09158 705 Dramatic speedup and elimination of non linear performance problem in deletes via SCT02 or SPT01 in Bind Replace or Free

ndash Resolved a half dozen performance PMRs recently raised

V8 PK01911 605 Fix general V8 performance degradation brought about by V8 PQ93318 1204

V8 Multi-row Fetch performance problems

ndash PK05360 opened 505 No hybrid join support

ndash PQ88009 504 disabled parallelism for the last group of the top level query block if there is no Groupby or Orderby

ndash PK10021 opened 805 query abend with host variable or special register

V8 PQ92072 805 to support implicit multi-row Insert by ODBC array input

Recent major performance-related apars

IBM Software Group | DB2 Information Management Software

Performance Imperatives ( conthellip)

bull V8 PK05644 Preformatting up to 2 cylinders at a time to minimize preformat time

bull V7 PQ86037 304 Insert at end option for member cluster tablespace (V7V8 PQ87381 More robust version coming in 2005)

ndash Avoid re-reading spacemap pages from the beginning before dataset extend by always searching forward for freespace when zero PCTFREE and FREEPAGE

ndash Can support steady and continuous high insert rate without rapidly increasing Getpage

ndash Especially useful for heavy insert without delete

IBM Software Group | DB2 Information Management Software

Insert CPU Usage

bull 1048707 Most affected by the number of indexesbull 1048707 DB2 Estimator recommended for more detailed analysisbull 1048707 Rule-of-Thumb Z990(2) cpu time per row inserted inbull microseconds (us) =bull [26 online transaction or 20 batch]bull + 11 for 1 index + 21 for each additional indexbull + 20to30 x pagesread x 13(30 additional for write)bull + 2 if class2 acctg (1)bull + 12 if DB2CICS without TS22 threadsafe option (1)bull - up to 10 if multi-row insert

bull (1) Can disappear if multi-row insertbull (2) Use cpu time multiplier from wwws390ibmcomlspr for other processor models

IBM Software Group | DB2 Information Management Software

Virtual Storage items

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

Java Universal Driver

bull Significant reengineering of Java support for DB2 Connect CAE and DB2 for OS390 and zOS client softwarendash Uses DRDA protocols for all client communication

ndash Eliminates DB2RA and net driver protocols

ndash Traditional DB2 client configuration (CCA) is optional

ndash Much better handling of different clientserver software levels

ndash Improved DB2 Connect consistencyperformance

ndash much higher percentage of common code

ndash fewer unique code paths for specific hardware configurations

ndash Several significant improvements to DRDA

ndash support for long SQL names and statements

ndash DRDA query block sizes can now be up to 2M bytes

ndash rely on server-supplied stored procedures for SQL error messagesdatabase metadata etc

ndash many internal performance improvements

IBM Software Group | DB2 Information Management Software

Java Universal Driver

bull Why use itndash Legacy Drivers functionally stabilized amp will be deprecated

ndash Single driver for all platforms

ndash Client Accounting String

ndash Performance monitor methods

ndash Better performance

IBM Software Group | DB2 Information Management Software

SQLJ usage is increasing

bull Static SQL performance for Java applicationsndash less code written by the application programmer

ndash resulting code is easier to maintain

ndash significant performance advantage over JDBC

ndash Static SQL authorization model

bull Provides Java with a stronger authorization modelndash Monitoringmanageability

ndash static SQL packages for accountingmonitoring

bull Static SQL locks in access path so that access path changes dont occur without a conscious choice

IBM Software Group | DB2 Information Management Software

JDBC vs SQLJ example

bull Retrieve a single row from DB2bull SQLJ

sql [con] SELECT ADDRESS INTO addr FROM EMP WHERE NAME=name

bull JDBCjavasqlPreparedStatement ps = conprepareStatement(SELECT ADDRESS FROM EMP WHERE NAME=)pssetString(1 name)javasqlResultSet names = psexecuteQuery()namesnext()addr = namesgetString(1)namesclose()

bull -- portable across platforms and DBMSsbull -- compilebind time schema checkingbull -- static SQL performance and authorizationbull -- concisebull -- strong typing

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

DB2 Futures

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

DB2 Redbooks - 2Q 2004 httpwwwibmcomredbooks

bull Business Performance Management Meets Business Intelligence (SG24-6340)

bull The Business Value of DB2 UDB for zOS (SG24-6763)bull Data Mart Consolidation Getting Control of Your Enterprise

Information(SG24-6653)bull DB2 UDB for zOS Version 8 Performance Topics (SG24-6465)bull Microsoft SQL Server to IBM DB2 UDB Conversion Guide (SG24-

6672)bull DB2 for zOS and WebSphere The Perfect Couple (SG24-6319)bull Copying the DB2 UDB for zOS catalog using the COPY utility Copying the DB2 UDB for zOS catalog using the COPY utility

(TIPS0587)(TIPS0587)bull Systems Programmers Guide to Resource Recovery Services (RRS) Systems Programmers Guide to Resource Recovery Services (RRS)

(SG24-6980)(SG24-6980)

IBM Software Group | DB2 Information Management Software

Education

bull DB2 Version 8 Migration Workshopsndash Let us know if you need one

bull DB2 Version 8 Transition classndash CG381 amp CG382

IBM Software Group | DB2 Information Management Software

Education ( Design)

IBM Software Group | DB2 Information Management Software

Education (Development)

IBM Software Group | DB2 Information Management Software

Education ( Administration)

IBM Software Group | DB2 Information Management Software

Education (Troubleshooting)

IBM Software Group | DB2 Information Management Software

Intelligent Visual Explain

bull Where to obtain the codebull httpwwwibmcomsoftwaredatadb2zososcvebull Fixpack 7 available nowbull Key prerequisites

ndash Windows NT Version 40 Windows 2000 or Windows XPndash 150 MB of hard disk spacendash 256 MB of RAMndash Pentium III equivalent or abovendash Either DB2 ConnecttradePersonal Edition Version 7 (or later) or DB2

Client Application Enablertrade(CAE) with a DB2 Connect Enterprise Edition Version 7 (or later) gateway installed

ndash A TCPIP connection to a DB2 for zOS Version 7 or Version 8 host system

ndash A java-enabled browser to view HTML files

IBM Software Group | DB2 Information Management Software

Reference URLs

httpwwwibmcomsoftwaredatadb2zosindexhtmlDB2 for zOS

httpwww-306ibmcomsoftwaredatadb2zossupporthtmlDB2 for zOS technical support page

httpwww-306ibmcomsoftwaredatadb2zososcveindexhtmlDB2 VE download

httpwwwunicodeorg Unicode Home pagehttpwwwunicodeorgunicodestandardprincipleshtmlThe Unicode Standard amp Basic Principlesftpftpsoftwareibmcomsoftwaredatadb2zosdppdpdfDB2 for zOS Distribute Performance analysisftpftpsoftwareibmcomsoftwaredb2storedproceduredb2zos390techdocsH01PDFDB2-Java Performance and Tuning

IBM Software Group | DB2 Information Management Software

Reference URLs

www-106ibmcomdeveloperworksdb2librarytecharticle0203shibamiya0203shibamiya2htmlInsert vs Load Performance White paper

IBM Software Group | DB2 Information Management Software

Acknowledgements to My Friends

Mark Wilson ndash DB2 Product Introduction CenterAkira Shibamiya - SVLCurt Cotner ndash SVLJohn Campbell ndash SVL

Page 18: Slide 1 - Parallels Plesk Control Panel 8.6.0

IBM Software Group | DB2 Information Management Software

Stalled restart detection

bull DB2 restart can be stalled eg for archive log tape mounts or HSM recalls

bull A DB2 timer task will now monitor recovery phase of restart

bull If the restart processor has been suspended more than 2 minutes issue new messages

DSNR055I csect RESTART SUSPENDED SINCE time

DSNR056I csect RESTART SUSPENDED ON IRLM REQUEST

DSNR057I csect RESOURCE INFORMATION DBID

DSNR058I csect ACCESSING ARCHIVE LOG data-set-name

APAR PTF PTF Avail PUT

PK01245 UK01653

(also V7)

20050406 F504

IBM Software Group | DB2 Information Management Software

Encrypt userid pw for DDF

bull Problem NEWAUTHID and PASSWORD are stored in the clear in SYSIBMUSERNAMES

bull New stored proc SYSPROCDSNLEUSR stores authid and password in encrypted form

bull Values are decrypted prior to sending to remote server

bull Requires DB2 V8 NFM and zOS Integrated Cryptographic Services Facility (ISCF)

bull wwwibmcomsupport ndash Flash 1208122

APAR PTF PTF Avail PUT

PQ95205 UK02094 20050420 F504

IBM Software Group | DB2 Information Management Software

Hung thread diagnosis

bull When a thread is hung it is often necessary to force a console dump to gather information

-DIS THD() SERVICE(WAIT)

will display threads suspended 2x IRLM timeout (minimum 60 sec) -- additional information if suspended for IRLM lock or DB2 latch contention

APAR PTF PTF Avail PUT

PQ83649 UQ87013

(also V7)

20040420 F404

IBM Software Group | DB2 Information Management Software

Storage monitoring

bull V7 amp V8 ICFID 225 adds real storage statisticsndash number of real frames (4K) in use

ndash number of auxilary slots (4K) in use

(conrsquot)

APAR PTF PTF Avail PUT

PQ91101 UQ92441

(also V7)

20040928 F409

IBM Software Group | DB2 Information Management Software

Preliminary DDF EWLM support

bull IBM Virtualization Engine Enterprise Workload Manager for zOS V110

bull Enterprise Workload Manager enables you to automatically monitor and manage multi-tiered distributed heterogeneous or homogeneous workloads -- extends WLM to other platforms

bull Available starting with zOS 16

bull This APAR allows DDF to act as a server to TCPIP connections to be monitored within an EWLM domain

bull Announcement letter 204-305

APAR PTF PTF Avail PUT

PQ91509 UK03835 20050617 1000

IBM Software Group | DB2 Information Management Software

Monitoring lsquoRLF limit exceededrsquo

bull Problem exceeding RLF ASUTIME for dynamic SQL gets SQLCODE -905 but little info

bull Solution new IFCID 173 to provide plan name collection package name authid time used user ASUTIME

APAR PTF PTF Avail PUT

PQ87848 UQ90756

(also V7)

20040803 F408

IBM Software Group | DB2 Information Management Software

New JDBC driver releases (conrsquot)

bull DB2 Universal JDBC Driver release 25ndash Type-2 control over accounting records at COMMIT or end of physical connection

ndash Plus 29 other maintenance items

APAR PTF PTF Avail PUT

PQ95284 UK00182

(also V7)

20050202 F502

IBM Software Group | DB2 Information Management Software

QMF multi-row FETCH INSERT

bull QMF V8 NFM with DB2 V8 NFM automatically transforms your queries to multi-row operations

APAR PTF PTF Avail PUT

PQ99482 UK06848 20050902 1000

IBM Software Group | DB2 Information Management Software

Performance Imperatives

bull If necessary reduce MAXKEEPD to reduce local DSC rely more on global DSC which is above 2GB

bull V8 PQ96772 205 to move dynamic statement cache control blocks above 2GB

bull PK01911 605 Increased cpu time in Index and Storage processing sometimes accompanied by high LC32 contention

bull PQ99608 205 Excessive log write iorsquos triggered by insert into table with identity column

bull Incorrect Runstats values

bull 1048707 PK01510 505 NPI cluster ratio

bull 1048707 PK03469 505 Non-uniform distribution stats

bull PK04107 Bidirectional indexability for unicode to ebcdic

bull PK05360 Hybrid join with multi-row Fetch

bull PK04076 505 Load default of No Sortkeys if only one index and sorted input

IBM Software Group | DB2 Information Management Software

IBM Software Group

copy 2004 IBM Corporation2 IBM Confidential

V7V8 PK09158 705 Dramatic speedup and elimination of non linear performance problem in deletes via SCT02 or SPT01 in Bind Replace or Free

ndash Resolved a half dozen performance PMRs recently raised

V8 PK01911 605 Fix general V8 performance degradation brought about by V8 PQ93318 1204

V8 Multi-row Fetch performance problems

ndash PK05360 opened 505 No hybrid join support

ndash PQ88009 504 disabled parallelism for the last group of the top level query block if there is no Groupby or Orderby

ndash PK10021 opened 805 query abend with host variable or special register

V8 PQ92072 805 to support implicit multi-row Insert by ODBC array input

Recent major performance-related apars

IBM Software Group | DB2 Information Management Software

Performance Imperatives ( conthellip)

bull V8 PK05644 Preformatting up to 2 cylinders at a time to minimize preformat time

bull V7 PQ86037 304 Insert at end option for member cluster tablespace (V7V8 PQ87381 More robust version coming in 2005)

ndash Avoid re-reading spacemap pages from the beginning before dataset extend by always searching forward for freespace when zero PCTFREE and FREEPAGE

ndash Can support steady and continuous high insert rate without rapidly increasing Getpage

ndash Especially useful for heavy insert without delete

IBM Software Group | DB2 Information Management Software

Insert CPU Usage

bull 1048707 Most affected by the number of indexesbull 1048707 DB2 Estimator recommended for more detailed analysisbull 1048707 Rule-of-Thumb Z990(2) cpu time per row inserted inbull microseconds (us) =bull [26 online transaction or 20 batch]bull + 11 for 1 index + 21 for each additional indexbull + 20to30 x pagesread x 13(30 additional for write)bull + 2 if class2 acctg (1)bull + 12 if DB2CICS without TS22 threadsafe option (1)bull - up to 10 if multi-row insert

bull (1) Can disappear if multi-row insertbull (2) Use cpu time multiplier from wwws390ibmcomlspr for other processor models

IBM Software Group | DB2 Information Management Software

Virtual Storage items

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

Java Universal Driver

bull Significant reengineering of Java support for DB2 Connect CAE and DB2 for OS390 and zOS client softwarendash Uses DRDA protocols for all client communication

ndash Eliminates DB2RA and net driver protocols

ndash Traditional DB2 client configuration (CCA) is optional

ndash Much better handling of different clientserver software levels

ndash Improved DB2 Connect consistencyperformance

ndash much higher percentage of common code

ndash fewer unique code paths for specific hardware configurations

ndash Several significant improvements to DRDA

ndash support for long SQL names and statements

ndash DRDA query block sizes can now be up to 2M bytes

ndash rely on server-supplied stored procedures for SQL error messagesdatabase metadata etc

ndash many internal performance improvements

IBM Software Group | DB2 Information Management Software

Java Universal Driver

bull Why use itndash Legacy Drivers functionally stabilized amp will be deprecated

ndash Single driver for all platforms

ndash Client Accounting String

ndash Performance monitor methods

ndash Better performance

IBM Software Group | DB2 Information Management Software

SQLJ usage is increasing

bull Static SQL performance for Java applicationsndash less code written by the application programmer

ndash resulting code is easier to maintain

ndash significant performance advantage over JDBC

ndash Static SQL authorization model

bull Provides Java with a stronger authorization modelndash Monitoringmanageability

ndash static SQL packages for accountingmonitoring

bull Static SQL locks in access path so that access path changes dont occur without a conscious choice

IBM Software Group | DB2 Information Management Software

JDBC vs SQLJ example

bull Retrieve a single row from DB2bull SQLJ

sql [con] SELECT ADDRESS INTO addr FROM EMP WHERE NAME=name

bull JDBCjavasqlPreparedStatement ps = conprepareStatement(SELECT ADDRESS FROM EMP WHERE NAME=)pssetString(1 name)javasqlResultSet names = psexecuteQuery()namesnext()addr = namesgetString(1)namesclose()

bull -- portable across platforms and DBMSsbull -- compilebind time schema checkingbull -- static SQL performance and authorizationbull -- concisebull -- strong typing

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

DB2 Futures

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

DB2 Redbooks - 2Q 2004 httpwwwibmcomredbooks

bull Business Performance Management Meets Business Intelligence (SG24-6340)

bull The Business Value of DB2 UDB for zOS (SG24-6763)bull Data Mart Consolidation Getting Control of Your Enterprise

Information(SG24-6653)bull DB2 UDB for zOS Version 8 Performance Topics (SG24-6465)bull Microsoft SQL Server to IBM DB2 UDB Conversion Guide (SG24-

6672)bull DB2 for zOS and WebSphere The Perfect Couple (SG24-6319)bull Copying the DB2 UDB for zOS catalog using the COPY utility Copying the DB2 UDB for zOS catalog using the COPY utility

(TIPS0587)(TIPS0587)bull Systems Programmers Guide to Resource Recovery Services (RRS) Systems Programmers Guide to Resource Recovery Services (RRS)

(SG24-6980)(SG24-6980)

IBM Software Group | DB2 Information Management Software

Education

bull DB2 Version 8 Migration Workshopsndash Let us know if you need one

bull DB2 Version 8 Transition classndash CG381 amp CG382

IBM Software Group | DB2 Information Management Software

Education ( Design)

IBM Software Group | DB2 Information Management Software

Education (Development)

IBM Software Group | DB2 Information Management Software

Education ( Administration)

IBM Software Group | DB2 Information Management Software

Education (Troubleshooting)

IBM Software Group | DB2 Information Management Software

Intelligent Visual Explain

bull Where to obtain the codebull httpwwwibmcomsoftwaredatadb2zososcvebull Fixpack 7 available nowbull Key prerequisites

ndash Windows NT Version 40 Windows 2000 or Windows XPndash 150 MB of hard disk spacendash 256 MB of RAMndash Pentium III equivalent or abovendash Either DB2 ConnecttradePersonal Edition Version 7 (or later) or DB2

Client Application Enablertrade(CAE) with a DB2 Connect Enterprise Edition Version 7 (or later) gateway installed

ndash A TCPIP connection to a DB2 for zOS Version 7 or Version 8 host system

ndash A java-enabled browser to view HTML files

IBM Software Group | DB2 Information Management Software

Reference URLs

httpwwwibmcomsoftwaredatadb2zosindexhtmlDB2 for zOS

httpwww-306ibmcomsoftwaredatadb2zossupporthtmlDB2 for zOS technical support page

httpwww-306ibmcomsoftwaredatadb2zososcveindexhtmlDB2 VE download

httpwwwunicodeorg Unicode Home pagehttpwwwunicodeorgunicodestandardprincipleshtmlThe Unicode Standard amp Basic Principlesftpftpsoftwareibmcomsoftwaredatadb2zosdppdpdfDB2 for zOS Distribute Performance analysisftpftpsoftwareibmcomsoftwaredb2storedproceduredb2zos390techdocsH01PDFDB2-Java Performance and Tuning

IBM Software Group | DB2 Information Management Software

Reference URLs

www-106ibmcomdeveloperworksdb2librarytecharticle0203shibamiya0203shibamiya2htmlInsert vs Load Performance White paper

IBM Software Group | DB2 Information Management Software

Acknowledgements to My Friends

Mark Wilson ndash DB2 Product Introduction CenterAkira Shibamiya - SVLCurt Cotner ndash SVLJohn Campbell ndash SVL

Page 19: Slide 1 - Parallels Plesk Control Panel 8.6.0

IBM Software Group | DB2 Information Management Software

Encrypt userid pw for DDF

bull Problem NEWAUTHID and PASSWORD are stored in the clear in SYSIBMUSERNAMES

bull New stored proc SYSPROCDSNLEUSR stores authid and password in encrypted form

bull Values are decrypted prior to sending to remote server

bull Requires DB2 V8 NFM and zOS Integrated Cryptographic Services Facility (ISCF)

bull wwwibmcomsupport ndash Flash 1208122

APAR PTF PTF Avail PUT

PQ95205 UK02094 20050420 F504

IBM Software Group | DB2 Information Management Software

Hung thread diagnosis

bull When a thread is hung it is often necessary to force a console dump to gather information

-DIS THD() SERVICE(WAIT)

will display threads suspended 2x IRLM timeout (minimum 60 sec) -- additional information if suspended for IRLM lock or DB2 latch contention

APAR PTF PTF Avail PUT

PQ83649 UQ87013

(also V7)

20040420 F404

IBM Software Group | DB2 Information Management Software

Storage monitoring

bull V7 amp V8 ICFID 225 adds real storage statisticsndash number of real frames (4K) in use

ndash number of auxilary slots (4K) in use

(conrsquot)

APAR PTF PTF Avail PUT

PQ91101 UQ92441

(also V7)

20040928 F409

IBM Software Group | DB2 Information Management Software

Preliminary DDF EWLM support

bull IBM Virtualization Engine Enterprise Workload Manager for zOS V110

bull Enterprise Workload Manager enables you to automatically monitor and manage multi-tiered distributed heterogeneous or homogeneous workloads -- extends WLM to other platforms

bull Available starting with zOS 16

bull This APAR allows DDF to act as a server to TCPIP connections to be monitored within an EWLM domain

bull Announcement letter 204-305

APAR PTF PTF Avail PUT

PQ91509 UK03835 20050617 1000

IBM Software Group | DB2 Information Management Software

Monitoring lsquoRLF limit exceededrsquo

bull Problem exceeding RLF ASUTIME for dynamic SQL gets SQLCODE -905 but little info

bull Solution new IFCID 173 to provide plan name collection package name authid time used user ASUTIME

APAR PTF PTF Avail PUT

PQ87848 UQ90756

(also V7)

20040803 F408

IBM Software Group | DB2 Information Management Software

New JDBC driver releases (conrsquot)

bull DB2 Universal JDBC Driver release 25ndash Type-2 control over accounting records at COMMIT or end of physical connection

ndash Plus 29 other maintenance items

APAR PTF PTF Avail PUT

PQ95284 UK00182

(also V7)

20050202 F502

IBM Software Group | DB2 Information Management Software

QMF multi-row FETCH INSERT

bull QMF V8 NFM with DB2 V8 NFM automatically transforms your queries to multi-row operations

APAR PTF PTF Avail PUT

PQ99482 UK06848 20050902 1000

IBM Software Group | DB2 Information Management Software

Performance Imperatives

bull If necessary reduce MAXKEEPD to reduce local DSC rely more on global DSC which is above 2GB

bull V8 PQ96772 205 to move dynamic statement cache control blocks above 2GB

bull PK01911 605 Increased cpu time in Index and Storage processing sometimes accompanied by high LC32 contention

bull PQ99608 205 Excessive log write iorsquos triggered by insert into table with identity column

bull Incorrect Runstats values

bull 1048707 PK01510 505 NPI cluster ratio

bull 1048707 PK03469 505 Non-uniform distribution stats

bull PK04107 Bidirectional indexability for unicode to ebcdic

bull PK05360 Hybrid join with multi-row Fetch

bull PK04076 505 Load default of No Sortkeys if only one index and sorted input

IBM Software Group | DB2 Information Management Software

IBM Software Group

copy 2004 IBM Corporation2 IBM Confidential

V7V8 PK09158 705 Dramatic speedup and elimination of non linear performance problem in deletes via SCT02 or SPT01 in Bind Replace or Free

ndash Resolved a half dozen performance PMRs recently raised

V8 PK01911 605 Fix general V8 performance degradation brought about by V8 PQ93318 1204

V8 Multi-row Fetch performance problems

ndash PK05360 opened 505 No hybrid join support

ndash PQ88009 504 disabled parallelism for the last group of the top level query block if there is no Groupby or Orderby

ndash PK10021 opened 805 query abend with host variable or special register

V8 PQ92072 805 to support implicit multi-row Insert by ODBC array input

Recent major performance-related apars

IBM Software Group | DB2 Information Management Software

Performance Imperatives ( conthellip)

bull V8 PK05644 Preformatting up to 2 cylinders at a time to minimize preformat time

bull V7 PQ86037 304 Insert at end option for member cluster tablespace (V7V8 PQ87381 More robust version coming in 2005)

ndash Avoid re-reading spacemap pages from the beginning before dataset extend by always searching forward for freespace when zero PCTFREE and FREEPAGE

ndash Can support steady and continuous high insert rate without rapidly increasing Getpage

ndash Especially useful for heavy insert without delete

IBM Software Group | DB2 Information Management Software

Insert CPU Usage

bull 1048707 Most affected by the number of indexesbull 1048707 DB2 Estimator recommended for more detailed analysisbull 1048707 Rule-of-Thumb Z990(2) cpu time per row inserted inbull microseconds (us) =bull [26 online transaction or 20 batch]bull + 11 for 1 index + 21 for each additional indexbull + 20to30 x pagesread x 13(30 additional for write)bull + 2 if class2 acctg (1)bull + 12 if DB2CICS without TS22 threadsafe option (1)bull - up to 10 if multi-row insert

bull (1) Can disappear if multi-row insertbull (2) Use cpu time multiplier from wwws390ibmcomlspr for other processor models

IBM Software Group | DB2 Information Management Software

Virtual Storage items

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

Java Universal Driver

bull Significant reengineering of Java support for DB2 Connect CAE and DB2 for OS390 and zOS client softwarendash Uses DRDA protocols for all client communication

ndash Eliminates DB2RA and net driver protocols

ndash Traditional DB2 client configuration (CCA) is optional

ndash Much better handling of different clientserver software levels

ndash Improved DB2 Connect consistencyperformance

ndash much higher percentage of common code

ndash fewer unique code paths for specific hardware configurations

ndash Several significant improvements to DRDA

ndash support for long SQL names and statements

ndash DRDA query block sizes can now be up to 2M bytes

ndash rely on server-supplied stored procedures for SQL error messagesdatabase metadata etc

ndash many internal performance improvements

IBM Software Group | DB2 Information Management Software

Java Universal Driver

bull Why use itndash Legacy Drivers functionally stabilized amp will be deprecated

ndash Single driver for all platforms

ndash Client Accounting String

ndash Performance monitor methods

ndash Better performance

IBM Software Group | DB2 Information Management Software

SQLJ usage is increasing

bull Static SQL performance for Java applicationsndash less code written by the application programmer

ndash resulting code is easier to maintain

ndash significant performance advantage over JDBC

ndash Static SQL authorization model

bull Provides Java with a stronger authorization modelndash Monitoringmanageability

ndash static SQL packages for accountingmonitoring

bull Static SQL locks in access path so that access path changes dont occur without a conscious choice

IBM Software Group | DB2 Information Management Software

JDBC vs SQLJ example

bull Retrieve a single row from DB2bull SQLJ

sql [con] SELECT ADDRESS INTO addr FROM EMP WHERE NAME=name

bull JDBCjavasqlPreparedStatement ps = conprepareStatement(SELECT ADDRESS FROM EMP WHERE NAME=)pssetString(1 name)javasqlResultSet names = psexecuteQuery()namesnext()addr = namesgetString(1)namesclose()

bull -- portable across platforms and DBMSsbull -- compilebind time schema checkingbull -- static SQL performance and authorizationbull -- concisebull -- strong typing

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

DB2 Futures

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

DB2 Redbooks - 2Q 2004 httpwwwibmcomredbooks

bull Business Performance Management Meets Business Intelligence (SG24-6340)

bull The Business Value of DB2 UDB for zOS (SG24-6763)bull Data Mart Consolidation Getting Control of Your Enterprise

Information(SG24-6653)bull DB2 UDB for zOS Version 8 Performance Topics (SG24-6465)bull Microsoft SQL Server to IBM DB2 UDB Conversion Guide (SG24-

6672)bull DB2 for zOS and WebSphere The Perfect Couple (SG24-6319)bull Copying the DB2 UDB for zOS catalog using the COPY utility Copying the DB2 UDB for zOS catalog using the COPY utility

(TIPS0587)(TIPS0587)bull Systems Programmers Guide to Resource Recovery Services (RRS) Systems Programmers Guide to Resource Recovery Services (RRS)

(SG24-6980)(SG24-6980)

IBM Software Group | DB2 Information Management Software

Education

bull DB2 Version 8 Migration Workshopsndash Let us know if you need one

bull DB2 Version 8 Transition classndash CG381 amp CG382

IBM Software Group | DB2 Information Management Software

Education ( Design)

IBM Software Group | DB2 Information Management Software

Education (Development)

IBM Software Group | DB2 Information Management Software

Education ( Administration)

IBM Software Group | DB2 Information Management Software

Education (Troubleshooting)

IBM Software Group | DB2 Information Management Software

Intelligent Visual Explain

bull Where to obtain the codebull httpwwwibmcomsoftwaredatadb2zososcvebull Fixpack 7 available nowbull Key prerequisites

ndash Windows NT Version 40 Windows 2000 or Windows XPndash 150 MB of hard disk spacendash 256 MB of RAMndash Pentium III equivalent or abovendash Either DB2 ConnecttradePersonal Edition Version 7 (or later) or DB2

Client Application Enablertrade(CAE) with a DB2 Connect Enterprise Edition Version 7 (or later) gateway installed

ndash A TCPIP connection to a DB2 for zOS Version 7 or Version 8 host system

ndash A java-enabled browser to view HTML files

IBM Software Group | DB2 Information Management Software

Reference URLs

httpwwwibmcomsoftwaredatadb2zosindexhtmlDB2 for zOS

httpwww-306ibmcomsoftwaredatadb2zossupporthtmlDB2 for zOS technical support page

httpwww-306ibmcomsoftwaredatadb2zososcveindexhtmlDB2 VE download

httpwwwunicodeorg Unicode Home pagehttpwwwunicodeorgunicodestandardprincipleshtmlThe Unicode Standard amp Basic Principlesftpftpsoftwareibmcomsoftwaredatadb2zosdppdpdfDB2 for zOS Distribute Performance analysisftpftpsoftwareibmcomsoftwaredb2storedproceduredb2zos390techdocsH01PDFDB2-Java Performance and Tuning

IBM Software Group | DB2 Information Management Software

Reference URLs

www-106ibmcomdeveloperworksdb2librarytecharticle0203shibamiya0203shibamiya2htmlInsert vs Load Performance White paper

IBM Software Group | DB2 Information Management Software

Acknowledgements to My Friends

Mark Wilson ndash DB2 Product Introduction CenterAkira Shibamiya - SVLCurt Cotner ndash SVLJohn Campbell ndash SVL

Page 20: Slide 1 - Parallels Plesk Control Panel 8.6.0

IBM Software Group | DB2 Information Management Software

Hung thread diagnosis

bull When a thread is hung it is often necessary to force a console dump to gather information

-DIS THD() SERVICE(WAIT)

will display threads suspended 2x IRLM timeout (minimum 60 sec) -- additional information if suspended for IRLM lock or DB2 latch contention

APAR PTF PTF Avail PUT

PQ83649 UQ87013

(also V7)

20040420 F404

IBM Software Group | DB2 Information Management Software

Storage monitoring

bull V7 amp V8 ICFID 225 adds real storage statisticsndash number of real frames (4K) in use

ndash number of auxilary slots (4K) in use

(conrsquot)

APAR PTF PTF Avail PUT

PQ91101 UQ92441

(also V7)

20040928 F409

IBM Software Group | DB2 Information Management Software

Preliminary DDF EWLM support

bull IBM Virtualization Engine Enterprise Workload Manager for zOS V110

bull Enterprise Workload Manager enables you to automatically monitor and manage multi-tiered distributed heterogeneous or homogeneous workloads -- extends WLM to other platforms

bull Available starting with zOS 16

bull This APAR allows DDF to act as a server to TCPIP connections to be monitored within an EWLM domain

bull Announcement letter 204-305

APAR PTF PTF Avail PUT

PQ91509 UK03835 20050617 1000

IBM Software Group | DB2 Information Management Software

Monitoring lsquoRLF limit exceededrsquo

bull Problem exceeding RLF ASUTIME for dynamic SQL gets SQLCODE -905 but little info

bull Solution new IFCID 173 to provide plan name collection package name authid time used user ASUTIME

APAR PTF PTF Avail PUT

PQ87848 UQ90756

(also V7)

20040803 F408

IBM Software Group | DB2 Information Management Software

New JDBC driver releases (conrsquot)

bull DB2 Universal JDBC Driver release 25ndash Type-2 control over accounting records at COMMIT or end of physical connection

ndash Plus 29 other maintenance items

APAR PTF PTF Avail PUT

PQ95284 UK00182

(also V7)

20050202 F502

IBM Software Group | DB2 Information Management Software

QMF multi-row FETCH INSERT

bull QMF V8 NFM with DB2 V8 NFM automatically transforms your queries to multi-row operations

APAR PTF PTF Avail PUT

PQ99482 UK06848 20050902 1000

IBM Software Group | DB2 Information Management Software

Performance Imperatives

bull If necessary reduce MAXKEEPD to reduce local DSC rely more on global DSC which is above 2GB

bull V8 PQ96772 205 to move dynamic statement cache control blocks above 2GB

bull PK01911 605 Increased cpu time in Index and Storage processing sometimes accompanied by high LC32 contention

bull PQ99608 205 Excessive log write iorsquos triggered by insert into table with identity column

bull Incorrect Runstats values

bull 1048707 PK01510 505 NPI cluster ratio

bull 1048707 PK03469 505 Non-uniform distribution stats

bull PK04107 Bidirectional indexability for unicode to ebcdic

bull PK05360 Hybrid join with multi-row Fetch

bull PK04076 505 Load default of No Sortkeys if only one index and sorted input

IBM Software Group | DB2 Information Management Software

IBM Software Group

copy 2004 IBM Corporation2 IBM Confidential

V7V8 PK09158 705 Dramatic speedup and elimination of non linear performance problem in deletes via SCT02 or SPT01 in Bind Replace or Free

ndash Resolved a half dozen performance PMRs recently raised

V8 PK01911 605 Fix general V8 performance degradation brought about by V8 PQ93318 1204

V8 Multi-row Fetch performance problems

ndash PK05360 opened 505 No hybrid join support

ndash PQ88009 504 disabled parallelism for the last group of the top level query block if there is no Groupby or Orderby

ndash PK10021 opened 805 query abend with host variable or special register

V8 PQ92072 805 to support implicit multi-row Insert by ODBC array input

Recent major performance-related apars

IBM Software Group | DB2 Information Management Software

Performance Imperatives ( conthellip)

bull V8 PK05644 Preformatting up to 2 cylinders at a time to minimize preformat time

bull V7 PQ86037 304 Insert at end option for member cluster tablespace (V7V8 PQ87381 More robust version coming in 2005)

ndash Avoid re-reading spacemap pages from the beginning before dataset extend by always searching forward for freespace when zero PCTFREE and FREEPAGE

ndash Can support steady and continuous high insert rate without rapidly increasing Getpage

ndash Especially useful for heavy insert without delete

IBM Software Group | DB2 Information Management Software

Insert CPU Usage

bull 1048707 Most affected by the number of indexesbull 1048707 DB2 Estimator recommended for more detailed analysisbull 1048707 Rule-of-Thumb Z990(2) cpu time per row inserted inbull microseconds (us) =bull [26 online transaction or 20 batch]bull + 11 for 1 index + 21 for each additional indexbull + 20to30 x pagesread x 13(30 additional for write)bull + 2 if class2 acctg (1)bull + 12 if DB2CICS without TS22 threadsafe option (1)bull - up to 10 if multi-row insert

bull (1) Can disappear if multi-row insertbull (2) Use cpu time multiplier from wwws390ibmcomlspr for other processor models

IBM Software Group | DB2 Information Management Software

Virtual Storage items

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

Java Universal Driver

bull Significant reengineering of Java support for DB2 Connect CAE and DB2 for OS390 and zOS client softwarendash Uses DRDA protocols for all client communication

ndash Eliminates DB2RA and net driver protocols

ndash Traditional DB2 client configuration (CCA) is optional

ndash Much better handling of different clientserver software levels

ndash Improved DB2 Connect consistencyperformance

ndash much higher percentage of common code

ndash fewer unique code paths for specific hardware configurations

ndash Several significant improvements to DRDA

ndash support for long SQL names and statements

ndash DRDA query block sizes can now be up to 2M bytes

ndash rely on server-supplied stored procedures for SQL error messagesdatabase metadata etc

ndash many internal performance improvements

IBM Software Group | DB2 Information Management Software

Java Universal Driver

bull Why use itndash Legacy Drivers functionally stabilized amp will be deprecated

ndash Single driver for all platforms

ndash Client Accounting String

ndash Performance monitor methods

ndash Better performance

IBM Software Group | DB2 Information Management Software

SQLJ usage is increasing

bull Static SQL performance for Java applicationsndash less code written by the application programmer

ndash resulting code is easier to maintain

ndash significant performance advantage over JDBC

ndash Static SQL authorization model

bull Provides Java with a stronger authorization modelndash Monitoringmanageability

ndash static SQL packages for accountingmonitoring

bull Static SQL locks in access path so that access path changes dont occur without a conscious choice

IBM Software Group | DB2 Information Management Software

JDBC vs SQLJ example

bull Retrieve a single row from DB2bull SQLJ

sql [con] SELECT ADDRESS INTO addr FROM EMP WHERE NAME=name

bull JDBCjavasqlPreparedStatement ps = conprepareStatement(SELECT ADDRESS FROM EMP WHERE NAME=)pssetString(1 name)javasqlResultSet names = psexecuteQuery()namesnext()addr = namesgetString(1)namesclose()

bull -- portable across platforms and DBMSsbull -- compilebind time schema checkingbull -- static SQL performance and authorizationbull -- concisebull -- strong typing

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

DB2 Futures

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

DB2 Redbooks - 2Q 2004 httpwwwibmcomredbooks

bull Business Performance Management Meets Business Intelligence (SG24-6340)

bull The Business Value of DB2 UDB for zOS (SG24-6763)bull Data Mart Consolidation Getting Control of Your Enterprise

Information(SG24-6653)bull DB2 UDB for zOS Version 8 Performance Topics (SG24-6465)bull Microsoft SQL Server to IBM DB2 UDB Conversion Guide (SG24-

6672)bull DB2 for zOS and WebSphere The Perfect Couple (SG24-6319)bull Copying the DB2 UDB for zOS catalog using the COPY utility Copying the DB2 UDB for zOS catalog using the COPY utility

(TIPS0587)(TIPS0587)bull Systems Programmers Guide to Resource Recovery Services (RRS) Systems Programmers Guide to Resource Recovery Services (RRS)

(SG24-6980)(SG24-6980)

IBM Software Group | DB2 Information Management Software

Education

bull DB2 Version 8 Migration Workshopsndash Let us know if you need one

bull DB2 Version 8 Transition classndash CG381 amp CG382

IBM Software Group | DB2 Information Management Software

Education ( Design)

IBM Software Group | DB2 Information Management Software

Education (Development)

IBM Software Group | DB2 Information Management Software

Education ( Administration)

IBM Software Group | DB2 Information Management Software

Education (Troubleshooting)

IBM Software Group | DB2 Information Management Software

Intelligent Visual Explain

bull Where to obtain the codebull httpwwwibmcomsoftwaredatadb2zososcvebull Fixpack 7 available nowbull Key prerequisites

ndash Windows NT Version 40 Windows 2000 or Windows XPndash 150 MB of hard disk spacendash 256 MB of RAMndash Pentium III equivalent or abovendash Either DB2 ConnecttradePersonal Edition Version 7 (or later) or DB2

Client Application Enablertrade(CAE) with a DB2 Connect Enterprise Edition Version 7 (or later) gateway installed

ndash A TCPIP connection to a DB2 for zOS Version 7 or Version 8 host system

ndash A java-enabled browser to view HTML files

IBM Software Group | DB2 Information Management Software

Reference URLs

httpwwwibmcomsoftwaredatadb2zosindexhtmlDB2 for zOS

httpwww-306ibmcomsoftwaredatadb2zossupporthtmlDB2 for zOS technical support page

httpwww-306ibmcomsoftwaredatadb2zososcveindexhtmlDB2 VE download

httpwwwunicodeorg Unicode Home pagehttpwwwunicodeorgunicodestandardprincipleshtmlThe Unicode Standard amp Basic Principlesftpftpsoftwareibmcomsoftwaredatadb2zosdppdpdfDB2 for zOS Distribute Performance analysisftpftpsoftwareibmcomsoftwaredb2storedproceduredb2zos390techdocsH01PDFDB2-Java Performance and Tuning

IBM Software Group | DB2 Information Management Software

Reference URLs

www-106ibmcomdeveloperworksdb2librarytecharticle0203shibamiya0203shibamiya2htmlInsert vs Load Performance White paper

IBM Software Group | DB2 Information Management Software

Acknowledgements to My Friends

Mark Wilson ndash DB2 Product Introduction CenterAkira Shibamiya - SVLCurt Cotner ndash SVLJohn Campbell ndash SVL

Page 21: Slide 1 - Parallels Plesk Control Panel 8.6.0

IBM Software Group | DB2 Information Management Software

Storage monitoring

bull V7 amp V8 ICFID 225 adds real storage statisticsndash number of real frames (4K) in use

ndash number of auxilary slots (4K) in use

(conrsquot)

APAR PTF PTF Avail PUT

PQ91101 UQ92441

(also V7)

20040928 F409

IBM Software Group | DB2 Information Management Software

Preliminary DDF EWLM support

bull IBM Virtualization Engine Enterprise Workload Manager for zOS V110

bull Enterprise Workload Manager enables you to automatically monitor and manage multi-tiered distributed heterogeneous or homogeneous workloads -- extends WLM to other platforms

bull Available starting with zOS 16

bull This APAR allows DDF to act as a server to TCPIP connections to be monitored within an EWLM domain

bull Announcement letter 204-305

APAR PTF PTF Avail PUT

PQ91509 UK03835 20050617 1000

IBM Software Group | DB2 Information Management Software

Monitoring lsquoRLF limit exceededrsquo

bull Problem exceeding RLF ASUTIME for dynamic SQL gets SQLCODE -905 but little info

bull Solution new IFCID 173 to provide plan name collection package name authid time used user ASUTIME

APAR PTF PTF Avail PUT

PQ87848 UQ90756

(also V7)

20040803 F408

IBM Software Group | DB2 Information Management Software

New JDBC driver releases (conrsquot)

bull DB2 Universal JDBC Driver release 25ndash Type-2 control over accounting records at COMMIT or end of physical connection

ndash Plus 29 other maintenance items

APAR PTF PTF Avail PUT

PQ95284 UK00182

(also V7)

20050202 F502

IBM Software Group | DB2 Information Management Software

QMF multi-row FETCH INSERT

bull QMF V8 NFM with DB2 V8 NFM automatically transforms your queries to multi-row operations

APAR PTF PTF Avail PUT

PQ99482 UK06848 20050902 1000

IBM Software Group | DB2 Information Management Software

Performance Imperatives

bull If necessary reduce MAXKEEPD to reduce local DSC rely more on global DSC which is above 2GB

bull V8 PQ96772 205 to move dynamic statement cache control blocks above 2GB

bull PK01911 605 Increased cpu time in Index and Storage processing sometimes accompanied by high LC32 contention

bull PQ99608 205 Excessive log write iorsquos triggered by insert into table with identity column

bull Incorrect Runstats values

bull 1048707 PK01510 505 NPI cluster ratio

bull 1048707 PK03469 505 Non-uniform distribution stats

bull PK04107 Bidirectional indexability for unicode to ebcdic

bull PK05360 Hybrid join with multi-row Fetch

bull PK04076 505 Load default of No Sortkeys if only one index and sorted input

IBM Software Group | DB2 Information Management Software

IBM Software Group

copy 2004 IBM Corporation2 IBM Confidential

V7V8 PK09158 705 Dramatic speedup and elimination of non linear performance problem in deletes via SCT02 or SPT01 in Bind Replace or Free

ndash Resolved a half dozen performance PMRs recently raised

V8 PK01911 605 Fix general V8 performance degradation brought about by V8 PQ93318 1204

V8 Multi-row Fetch performance problems

ndash PK05360 opened 505 No hybrid join support

ndash PQ88009 504 disabled parallelism for the last group of the top level query block if there is no Groupby or Orderby

ndash PK10021 opened 805 query abend with host variable or special register

V8 PQ92072 805 to support implicit multi-row Insert by ODBC array input

Recent major performance-related apars

IBM Software Group | DB2 Information Management Software

Performance Imperatives ( conthellip)

bull V8 PK05644 Preformatting up to 2 cylinders at a time to minimize preformat time

bull V7 PQ86037 304 Insert at end option for member cluster tablespace (V7V8 PQ87381 More robust version coming in 2005)

ndash Avoid re-reading spacemap pages from the beginning before dataset extend by always searching forward for freespace when zero PCTFREE and FREEPAGE

ndash Can support steady and continuous high insert rate without rapidly increasing Getpage

ndash Especially useful for heavy insert without delete

IBM Software Group | DB2 Information Management Software

Insert CPU Usage

bull 1048707 Most affected by the number of indexesbull 1048707 DB2 Estimator recommended for more detailed analysisbull 1048707 Rule-of-Thumb Z990(2) cpu time per row inserted inbull microseconds (us) =bull [26 online transaction or 20 batch]bull + 11 for 1 index + 21 for each additional indexbull + 20to30 x pagesread x 13(30 additional for write)bull + 2 if class2 acctg (1)bull + 12 if DB2CICS without TS22 threadsafe option (1)bull - up to 10 if multi-row insert

bull (1) Can disappear if multi-row insertbull (2) Use cpu time multiplier from wwws390ibmcomlspr for other processor models

IBM Software Group | DB2 Information Management Software

Virtual Storage items

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

Java Universal Driver

bull Significant reengineering of Java support for DB2 Connect CAE and DB2 for OS390 and zOS client softwarendash Uses DRDA protocols for all client communication

ndash Eliminates DB2RA and net driver protocols

ndash Traditional DB2 client configuration (CCA) is optional

ndash Much better handling of different clientserver software levels

ndash Improved DB2 Connect consistencyperformance

ndash much higher percentage of common code

ndash fewer unique code paths for specific hardware configurations

ndash Several significant improvements to DRDA

ndash support for long SQL names and statements

ndash DRDA query block sizes can now be up to 2M bytes

ndash rely on server-supplied stored procedures for SQL error messagesdatabase metadata etc

ndash many internal performance improvements

IBM Software Group | DB2 Information Management Software

Java Universal Driver

bull Why use itndash Legacy Drivers functionally stabilized amp will be deprecated

ndash Single driver for all platforms

ndash Client Accounting String

ndash Performance monitor methods

ndash Better performance

IBM Software Group | DB2 Information Management Software

SQLJ usage is increasing

bull Static SQL performance for Java applicationsndash less code written by the application programmer

ndash resulting code is easier to maintain

ndash significant performance advantage over JDBC

ndash Static SQL authorization model

bull Provides Java with a stronger authorization modelndash Monitoringmanageability

ndash static SQL packages for accountingmonitoring

bull Static SQL locks in access path so that access path changes dont occur without a conscious choice

IBM Software Group | DB2 Information Management Software

JDBC vs SQLJ example

bull Retrieve a single row from DB2bull SQLJ

sql [con] SELECT ADDRESS INTO addr FROM EMP WHERE NAME=name

bull JDBCjavasqlPreparedStatement ps = conprepareStatement(SELECT ADDRESS FROM EMP WHERE NAME=)pssetString(1 name)javasqlResultSet names = psexecuteQuery()namesnext()addr = namesgetString(1)namesclose()

bull -- portable across platforms and DBMSsbull -- compilebind time schema checkingbull -- static SQL performance and authorizationbull -- concisebull -- strong typing

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

DB2 Futures

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

DB2 Redbooks - 2Q 2004 httpwwwibmcomredbooks

bull Business Performance Management Meets Business Intelligence (SG24-6340)

bull The Business Value of DB2 UDB for zOS (SG24-6763)bull Data Mart Consolidation Getting Control of Your Enterprise

Information(SG24-6653)bull DB2 UDB for zOS Version 8 Performance Topics (SG24-6465)bull Microsoft SQL Server to IBM DB2 UDB Conversion Guide (SG24-

6672)bull DB2 for zOS and WebSphere The Perfect Couple (SG24-6319)bull Copying the DB2 UDB for zOS catalog using the COPY utility Copying the DB2 UDB for zOS catalog using the COPY utility

(TIPS0587)(TIPS0587)bull Systems Programmers Guide to Resource Recovery Services (RRS) Systems Programmers Guide to Resource Recovery Services (RRS)

(SG24-6980)(SG24-6980)

IBM Software Group | DB2 Information Management Software

Education

bull DB2 Version 8 Migration Workshopsndash Let us know if you need one

bull DB2 Version 8 Transition classndash CG381 amp CG382

IBM Software Group | DB2 Information Management Software

Education ( Design)

IBM Software Group | DB2 Information Management Software

Education (Development)

IBM Software Group | DB2 Information Management Software

Education ( Administration)

IBM Software Group | DB2 Information Management Software

Education (Troubleshooting)

IBM Software Group | DB2 Information Management Software

Intelligent Visual Explain

bull Where to obtain the codebull httpwwwibmcomsoftwaredatadb2zososcvebull Fixpack 7 available nowbull Key prerequisites

ndash Windows NT Version 40 Windows 2000 or Windows XPndash 150 MB of hard disk spacendash 256 MB of RAMndash Pentium III equivalent or abovendash Either DB2 ConnecttradePersonal Edition Version 7 (or later) or DB2

Client Application Enablertrade(CAE) with a DB2 Connect Enterprise Edition Version 7 (or later) gateway installed

ndash A TCPIP connection to a DB2 for zOS Version 7 or Version 8 host system

ndash A java-enabled browser to view HTML files

IBM Software Group | DB2 Information Management Software

Reference URLs

httpwwwibmcomsoftwaredatadb2zosindexhtmlDB2 for zOS

httpwww-306ibmcomsoftwaredatadb2zossupporthtmlDB2 for zOS technical support page

httpwww-306ibmcomsoftwaredatadb2zososcveindexhtmlDB2 VE download

httpwwwunicodeorg Unicode Home pagehttpwwwunicodeorgunicodestandardprincipleshtmlThe Unicode Standard amp Basic Principlesftpftpsoftwareibmcomsoftwaredatadb2zosdppdpdfDB2 for zOS Distribute Performance analysisftpftpsoftwareibmcomsoftwaredb2storedproceduredb2zos390techdocsH01PDFDB2-Java Performance and Tuning

IBM Software Group | DB2 Information Management Software

Reference URLs

www-106ibmcomdeveloperworksdb2librarytecharticle0203shibamiya0203shibamiya2htmlInsert vs Load Performance White paper

IBM Software Group | DB2 Information Management Software

Acknowledgements to My Friends

Mark Wilson ndash DB2 Product Introduction CenterAkira Shibamiya - SVLCurt Cotner ndash SVLJohn Campbell ndash SVL

Page 22: Slide 1 - Parallels Plesk Control Panel 8.6.0

IBM Software Group | DB2 Information Management Software

Preliminary DDF EWLM support

bull IBM Virtualization Engine Enterprise Workload Manager for zOS V110

bull Enterprise Workload Manager enables you to automatically monitor and manage multi-tiered distributed heterogeneous or homogeneous workloads -- extends WLM to other platforms

bull Available starting with zOS 16

bull This APAR allows DDF to act as a server to TCPIP connections to be monitored within an EWLM domain

bull Announcement letter 204-305

APAR PTF PTF Avail PUT

PQ91509 UK03835 20050617 1000

IBM Software Group | DB2 Information Management Software

Monitoring lsquoRLF limit exceededrsquo

bull Problem exceeding RLF ASUTIME for dynamic SQL gets SQLCODE -905 but little info

bull Solution new IFCID 173 to provide plan name collection package name authid time used user ASUTIME

APAR PTF PTF Avail PUT

PQ87848 UQ90756

(also V7)

20040803 F408

IBM Software Group | DB2 Information Management Software

New JDBC driver releases (conrsquot)

bull DB2 Universal JDBC Driver release 25ndash Type-2 control over accounting records at COMMIT or end of physical connection

ndash Plus 29 other maintenance items

APAR PTF PTF Avail PUT

PQ95284 UK00182

(also V7)

20050202 F502

IBM Software Group | DB2 Information Management Software

QMF multi-row FETCH INSERT

bull QMF V8 NFM with DB2 V8 NFM automatically transforms your queries to multi-row operations

APAR PTF PTF Avail PUT

PQ99482 UK06848 20050902 1000

IBM Software Group | DB2 Information Management Software

Performance Imperatives

bull If necessary reduce MAXKEEPD to reduce local DSC rely more on global DSC which is above 2GB

bull V8 PQ96772 205 to move dynamic statement cache control blocks above 2GB

bull PK01911 605 Increased cpu time in Index and Storage processing sometimes accompanied by high LC32 contention

bull PQ99608 205 Excessive log write iorsquos triggered by insert into table with identity column

bull Incorrect Runstats values

bull 1048707 PK01510 505 NPI cluster ratio

bull 1048707 PK03469 505 Non-uniform distribution stats

bull PK04107 Bidirectional indexability for unicode to ebcdic

bull PK05360 Hybrid join with multi-row Fetch

bull PK04076 505 Load default of No Sortkeys if only one index and sorted input

IBM Software Group | DB2 Information Management Software

IBM Software Group

copy 2004 IBM Corporation2 IBM Confidential

V7V8 PK09158 705 Dramatic speedup and elimination of non linear performance problem in deletes via SCT02 or SPT01 in Bind Replace or Free

ndash Resolved a half dozen performance PMRs recently raised

V8 PK01911 605 Fix general V8 performance degradation brought about by V8 PQ93318 1204

V8 Multi-row Fetch performance problems

ndash PK05360 opened 505 No hybrid join support

ndash PQ88009 504 disabled parallelism for the last group of the top level query block if there is no Groupby or Orderby

ndash PK10021 opened 805 query abend with host variable or special register

V8 PQ92072 805 to support implicit multi-row Insert by ODBC array input

Recent major performance-related apars

IBM Software Group | DB2 Information Management Software

Performance Imperatives ( conthellip)

bull V8 PK05644 Preformatting up to 2 cylinders at a time to minimize preformat time

bull V7 PQ86037 304 Insert at end option for member cluster tablespace (V7V8 PQ87381 More robust version coming in 2005)

ndash Avoid re-reading spacemap pages from the beginning before dataset extend by always searching forward for freespace when zero PCTFREE and FREEPAGE

ndash Can support steady and continuous high insert rate without rapidly increasing Getpage

ndash Especially useful for heavy insert without delete

IBM Software Group | DB2 Information Management Software

Insert CPU Usage

bull 1048707 Most affected by the number of indexesbull 1048707 DB2 Estimator recommended for more detailed analysisbull 1048707 Rule-of-Thumb Z990(2) cpu time per row inserted inbull microseconds (us) =bull [26 online transaction or 20 batch]bull + 11 for 1 index + 21 for each additional indexbull + 20to30 x pagesread x 13(30 additional for write)bull + 2 if class2 acctg (1)bull + 12 if DB2CICS without TS22 threadsafe option (1)bull - up to 10 if multi-row insert

bull (1) Can disappear if multi-row insertbull (2) Use cpu time multiplier from wwws390ibmcomlspr for other processor models

IBM Software Group | DB2 Information Management Software

Virtual Storage items

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

Java Universal Driver

bull Significant reengineering of Java support for DB2 Connect CAE and DB2 for OS390 and zOS client softwarendash Uses DRDA protocols for all client communication

ndash Eliminates DB2RA and net driver protocols

ndash Traditional DB2 client configuration (CCA) is optional

ndash Much better handling of different clientserver software levels

ndash Improved DB2 Connect consistencyperformance

ndash much higher percentage of common code

ndash fewer unique code paths for specific hardware configurations

ndash Several significant improvements to DRDA

ndash support for long SQL names and statements

ndash DRDA query block sizes can now be up to 2M bytes

ndash rely on server-supplied stored procedures for SQL error messagesdatabase metadata etc

ndash many internal performance improvements

IBM Software Group | DB2 Information Management Software

Java Universal Driver

bull Why use itndash Legacy Drivers functionally stabilized amp will be deprecated

ndash Single driver for all platforms

ndash Client Accounting String

ndash Performance monitor methods

ndash Better performance

IBM Software Group | DB2 Information Management Software

SQLJ usage is increasing

bull Static SQL performance for Java applicationsndash less code written by the application programmer

ndash resulting code is easier to maintain

ndash significant performance advantage over JDBC

ndash Static SQL authorization model

bull Provides Java with a stronger authorization modelndash Monitoringmanageability

ndash static SQL packages for accountingmonitoring

bull Static SQL locks in access path so that access path changes dont occur without a conscious choice

IBM Software Group | DB2 Information Management Software

JDBC vs SQLJ example

bull Retrieve a single row from DB2bull SQLJ

sql [con] SELECT ADDRESS INTO addr FROM EMP WHERE NAME=name

bull JDBCjavasqlPreparedStatement ps = conprepareStatement(SELECT ADDRESS FROM EMP WHERE NAME=)pssetString(1 name)javasqlResultSet names = psexecuteQuery()namesnext()addr = namesgetString(1)namesclose()

bull -- portable across platforms and DBMSsbull -- compilebind time schema checkingbull -- static SQL performance and authorizationbull -- concisebull -- strong typing

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

DB2 Futures

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

DB2 Redbooks - 2Q 2004 httpwwwibmcomredbooks

bull Business Performance Management Meets Business Intelligence (SG24-6340)

bull The Business Value of DB2 UDB for zOS (SG24-6763)bull Data Mart Consolidation Getting Control of Your Enterprise

Information(SG24-6653)bull DB2 UDB for zOS Version 8 Performance Topics (SG24-6465)bull Microsoft SQL Server to IBM DB2 UDB Conversion Guide (SG24-

6672)bull DB2 for zOS and WebSphere The Perfect Couple (SG24-6319)bull Copying the DB2 UDB for zOS catalog using the COPY utility Copying the DB2 UDB for zOS catalog using the COPY utility

(TIPS0587)(TIPS0587)bull Systems Programmers Guide to Resource Recovery Services (RRS) Systems Programmers Guide to Resource Recovery Services (RRS)

(SG24-6980)(SG24-6980)

IBM Software Group | DB2 Information Management Software

Education

bull DB2 Version 8 Migration Workshopsndash Let us know if you need one

bull DB2 Version 8 Transition classndash CG381 amp CG382

IBM Software Group | DB2 Information Management Software

Education ( Design)

IBM Software Group | DB2 Information Management Software

Education (Development)

IBM Software Group | DB2 Information Management Software

Education ( Administration)

IBM Software Group | DB2 Information Management Software

Education (Troubleshooting)

IBM Software Group | DB2 Information Management Software

Intelligent Visual Explain

bull Where to obtain the codebull httpwwwibmcomsoftwaredatadb2zososcvebull Fixpack 7 available nowbull Key prerequisites

ndash Windows NT Version 40 Windows 2000 or Windows XPndash 150 MB of hard disk spacendash 256 MB of RAMndash Pentium III equivalent or abovendash Either DB2 ConnecttradePersonal Edition Version 7 (or later) or DB2

Client Application Enablertrade(CAE) with a DB2 Connect Enterprise Edition Version 7 (or later) gateway installed

ndash A TCPIP connection to a DB2 for zOS Version 7 or Version 8 host system

ndash A java-enabled browser to view HTML files

IBM Software Group | DB2 Information Management Software

Reference URLs

httpwwwibmcomsoftwaredatadb2zosindexhtmlDB2 for zOS

httpwww-306ibmcomsoftwaredatadb2zossupporthtmlDB2 for zOS technical support page

httpwww-306ibmcomsoftwaredatadb2zososcveindexhtmlDB2 VE download

httpwwwunicodeorg Unicode Home pagehttpwwwunicodeorgunicodestandardprincipleshtmlThe Unicode Standard amp Basic Principlesftpftpsoftwareibmcomsoftwaredatadb2zosdppdpdfDB2 for zOS Distribute Performance analysisftpftpsoftwareibmcomsoftwaredb2storedproceduredb2zos390techdocsH01PDFDB2-Java Performance and Tuning

IBM Software Group | DB2 Information Management Software

Reference URLs

www-106ibmcomdeveloperworksdb2librarytecharticle0203shibamiya0203shibamiya2htmlInsert vs Load Performance White paper

IBM Software Group | DB2 Information Management Software

Acknowledgements to My Friends

Mark Wilson ndash DB2 Product Introduction CenterAkira Shibamiya - SVLCurt Cotner ndash SVLJohn Campbell ndash SVL

Page 23: Slide 1 - Parallels Plesk Control Panel 8.6.0

IBM Software Group | DB2 Information Management Software

Monitoring lsquoRLF limit exceededrsquo

bull Problem exceeding RLF ASUTIME for dynamic SQL gets SQLCODE -905 but little info

bull Solution new IFCID 173 to provide plan name collection package name authid time used user ASUTIME

APAR PTF PTF Avail PUT

PQ87848 UQ90756

(also V7)

20040803 F408

IBM Software Group | DB2 Information Management Software

New JDBC driver releases (conrsquot)

bull DB2 Universal JDBC Driver release 25ndash Type-2 control over accounting records at COMMIT or end of physical connection

ndash Plus 29 other maintenance items

APAR PTF PTF Avail PUT

PQ95284 UK00182

(also V7)

20050202 F502

IBM Software Group | DB2 Information Management Software

QMF multi-row FETCH INSERT

bull QMF V8 NFM with DB2 V8 NFM automatically transforms your queries to multi-row operations

APAR PTF PTF Avail PUT

PQ99482 UK06848 20050902 1000

IBM Software Group | DB2 Information Management Software

Performance Imperatives

bull If necessary reduce MAXKEEPD to reduce local DSC rely more on global DSC which is above 2GB

bull V8 PQ96772 205 to move dynamic statement cache control blocks above 2GB

bull PK01911 605 Increased cpu time in Index and Storage processing sometimes accompanied by high LC32 contention

bull PQ99608 205 Excessive log write iorsquos triggered by insert into table with identity column

bull Incorrect Runstats values

bull 1048707 PK01510 505 NPI cluster ratio

bull 1048707 PK03469 505 Non-uniform distribution stats

bull PK04107 Bidirectional indexability for unicode to ebcdic

bull PK05360 Hybrid join with multi-row Fetch

bull PK04076 505 Load default of No Sortkeys if only one index and sorted input

IBM Software Group | DB2 Information Management Software

IBM Software Group

copy 2004 IBM Corporation2 IBM Confidential

V7V8 PK09158 705 Dramatic speedup and elimination of non linear performance problem in deletes via SCT02 or SPT01 in Bind Replace or Free

ndash Resolved a half dozen performance PMRs recently raised

V8 PK01911 605 Fix general V8 performance degradation brought about by V8 PQ93318 1204

V8 Multi-row Fetch performance problems

ndash PK05360 opened 505 No hybrid join support

ndash PQ88009 504 disabled parallelism for the last group of the top level query block if there is no Groupby or Orderby

ndash PK10021 opened 805 query abend with host variable or special register

V8 PQ92072 805 to support implicit multi-row Insert by ODBC array input

Recent major performance-related apars

IBM Software Group | DB2 Information Management Software

Performance Imperatives ( conthellip)

bull V8 PK05644 Preformatting up to 2 cylinders at a time to minimize preformat time

bull V7 PQ86037 304 Insert at end option for member cluster tablespace (V7V8 PQ87381 More robust version coming in 2005)

ndash Avoid re-reading spacemap pages from the beginning before dataset extend by always searching forward for freespace when zero PCTFREE and FREEPAGE

ndash Can support steady and continuous high insert rate without rapidly increasing Getpage

ndash Especially useful for heavy insert without delete

IBM Software Group | DB2 Information Management Software

Insert CPU Usage

bull 1048707 Most affected by the number of indexesbull 1048707 DB2 Estimator recommended for more detailed analysisbull 1048707 Rule-of-Thumb Z990(2) cpu time per row inserted inbull microseconds (us) =bull [26 online transaction or 20 batch]bull + 11 for 1 index + 21 for each additional indexbull + 20to30 x pagesread x 13(30 additional for write)bull + 2 if class2 acctg (1)bull + 12 if DB2CICS without TS22 threadsafe option (1)bull - up to 10 if multi-row insert

bull (1) Can disappear if multi-row insertbull (2) Use cpu time multiplier from wwws390ibmcomlspr for other processor models

IBM Software Group | DB2 Information Management Software

Virtual Storage items

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

Java Universal Driver

bull Significant reengineering of Java support for DB2 Connect CAE and DB2 for OS390 and zOS client softwarendash Uses DRDA protocols for all client communication

ndash Eliminates DB2RA and net driver protocols

ndash Traditional DB2 client configuration (CCA) is optional

ndash Much better handling of different clientserver software levels

ndash Improved DB2 Connect consistencyperformance

ndash much higher percentage of common code

ndash fewer unique code paths for specific hardware configurations

ndash Several significant improvements to DRDA

ndash support for long SQL names and statements

ndash DRDA query block sizes can now be up to 2M bytes

ndash rely on server-supplied stored procedures for SQL error messagesdatabase metadata etc

ndash many internal performance improvements

IBM Software Group | DB2 Information Management Software

Java Universal Driver

bull Why use itndash Legacy Drivers functionally stabilized amp will be deprecated

ndash Single driver for all platforms

ndash Client Accounting String

ndash Performance monitor methods

ndash Better performance

IBM Software Group | DB2 Information Management Software

SQLJ usage is increasing

bull Static SQL performance for Java applicationsndash less code written by the application programmer

ndash resulting code is easier to maintain

ndash significant performance advantage over JDBC

ndash Static SQL authorization model

bull Provides Java with a stronger authorization modelndash Monitoringmanageability

ndash static SQL packages for accountingmonitoring

bull Static SQL locks in access path so that access path changes dont occur without a conscious choice

IBM Software Group | DB2 Information Management Software

JDBC vs SQLJ example

bull Retrieve a single row from DB2bull SQLJ

sql [con] SELECT ADDRESS INTO addr FROM EMP WHERE NAME=name

bull JDBCjavasqlPreparedStatement ps = conprepareStatement(SELECT ADDRESS FROM EMP WHERE NAME=)pssetString(1 name)javasqlResultSet names = psexecuteQuery()namesnext()addr = namesgetString(1)namesclose()

bull -- portable across platforms and DBMSsbull -- compilebind time schema checkingbull -- static SQL performance and authorizationbull -- concisebull -- strong typing

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

DB2 Futures

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

DB2 Redbooks - 2Q 2004 httpwwwibmcomredbooks

bull Business Performance Management Meets Business Intelligence (SG24-6340)

bull The Business Value of DB2 UDB for zOS (SG24-6763)bull Data Mart Consolidation Getting Control of Your Enterprise

Information(SG24-6653)bull DB2 UDB for zOS Version 8 Performance Topics (SG24-6465)bull Microsoft SQL Server to IBM DB2 UDB Conversion Guide (SG24-

6672)bull DB2 for zOS and WebSphere The Perfect Couple (SG24-6319)bull Copying the DB2 UDB for zOS catalog using the COPY utility Copying the DB2 UDB for zOS catalog using the COPY utility

(TIPS0587)(TIPS0587)bull Systems Programmers Guide to Resource Recovery Services (RRS) Systems Programmers Guide to Resource Recovery Services (RRS)

(SG24-6980)(SG24-6980)

IBM Software Group | DB2 Information Management Software

Education

bull DB2 Version 8 Migration Workshopsndash Let us know if you need one

bull DB2 Version 8 Transition classndash CG381 amp CG382

IBM Software Group | DB2 Information Management Software

Education ( Design)

IBM Software Group | DB2 Information Management Software

Education (Development)

IBM Software Group | DB2 Information Management Software

Education ( Administration)

IBM Software Group | DB2 Information Management Software

Education (Troubleshooting)

IBM Software Group | DB2 Information Management Software

Intelligent Visual Explain

bull Where to obtain the codebull httpwwwibmcomsoftwaredatadb2zososcvebull Fixpack 7 available nowbull Key prerequisites

ndash Windows NT Version 40 Windows 2000 or Windows XPndash 150 MB of hard disk spacendash 256 MB of RAMndash Pentium III equivalent or abovendash Either DB2 ConnecttradePersonal Edition Version 7 (or later) or DB2

Client Application Enablertrade(CAE) with a DB2 Connect Enterprise Edition Version 7 (or later) gateway installed

ndash A TCPIP connection to a DB2 for zOS Version 7 or Version 8 host system

ndash A java-enabled browser to view HTML files

IBM Software Group | DB2 Information Management Software

Reference URLs

httpwwwibmcomsoftwaredatadb2zosindexhtmlDB2 for zOS

httpwww-306ibmcomsoftwaredatadb2zossupporthtmlDB2 for zOS technical support page

httpwww-306ibmcomsoftwaredatadb2zososcveindexhtmlDB2 VE download

httpwwwunicodeorg Unicode Home pagehttpwwwunicodeorgunicodestandardprincipleshtmlThe Unicode Standard amp Basic Principlesftpftpsoftwareibmcomsoftwaredatadb2zosdppdpdfDB2 for zOS Distribute Performance analysisftpftpsoftwareibmcomsoftwaredb2storedproceduredb2zos390techdocsH01PDFDB2-Java Performance and Tuning

IBM Software Group | DB2 Information Management Software

Reference URLs

www-106ibmcomdeveloperworksdb2librarytecharticle0203shibamiya0203shibamiya2htmlInsert vs Load Performance White paper

IBM Software Group | DB2 Information Management Software

Acknowledgements to My Friends

Mark Wilson ndash DB2 Product Introduction CenterAkira Shibamiya - SVLCurt Cotner ndash SVLJohn Campbell ndash SVL

Page 24: Slide 1 - Parallels Plesk Control Panel 8.6.0

IBM Software Group | DB2 Information Management Software

New JDBC driver releases (conrsquot)

bull DB2 Universal JDBC Driver release 25ndash Type-2 control over accounting records at COMMIT or end of physical connection

ndash Plus 29 other maintenance items

APAR PTF PTF Avail PUT

PQ95284 UK00182

(also V7)

20050202 F502

IBM Software Group | DB2 Information Management Software

QMF multi-row FETCH INSERT

bull QMF V8 NFM with DB2 V8 NFM automatically transforms your queries to multi-row operations

APAR PTF PTF Avail PUT

PQ99482 UK06848 20050902 1000

IBM Software Group | DB2 Information Management Software

Performance Imperatives

bull If necessary reduce MAXKEEPD to reduce local DSC rely more on global DSC which is above 2GB

bull V8 PQ96772 205 to move dynamic statement cache control blocks above 2GB

bull PK01911 605 Increased cpu time in Index and Storage processing sometimes accompanied by high LC32 contention

bull PQ99608 205 Excessive log write iorsquos triggered by insert into table with identity column

bull Incorrect Runstats values

bull 1048707 PK01510 505 NPI cluster ratio

bull 1048707 PK03469 505 Non-uniform distribution stats

bull PK04107 Bidirectional indexability for unicode to ebcdic

bull PK05360 Hybrid join with multi-row Fetch

bull PK04076 505 Load default of No Sortkeys if only one index and sorted input

IBM Software Group | DB2 Information Management Software

IBM Software Group

copy 2004 IBM Corporation2 IBM Confidential

V7V8 PK09158 705 Dramatic speedup and elimination of non linear performance problem in deletes via SCT02 or SPT01 in Bind Replace or Free

ndash Resolved a half dozen performance PMRs recently raised

V8 PK01911 605 Fix general V8 performance degradation brought about by V8 PQ93318 1204

V8 Multi-row Fetch performance problems

ndash PK05360 opened 505 No hybrid join support

ndash PQ88009 504 disabled parallelism for the last group of the top level query block if there is no Groupby or Orderby

ndash PK10021 opened 805 query abend with host variable or special register

V8 PQ92072 805 to support implicit multi-row Insert by ODBC array input

Recent major performance-related apars

IBM Software Group | DB2 Information Management Software

Performance Imperatives ( conthellip)

bull V8 PK05644 Preformatting up to 2 cylinders at a time to minimize preformat time

bull V7 PQ86037 304 Insert at end option for member cluster tablespace (V7V8 PQ87381 More robust version coming in 2005)

ndash Avoid re-reading spacemap pages from the beginning before dataset extend by always searching forward for freespace when zero PCTFREE and FREEPAGE

ndash Can support steady and continuous high insert rate without rapidly increasing Getpage

ndash Especially useful for heavy insert without delete

IBM Software Group | DB2 Information Management Software

Insert CPU Usage

bull 1048707 Most affected by the number of indexesbull 1048707 DB2 Estimator recommended for more detailed analysisbull 1048707 Rule-of-Thumb Z990(2) cpu time per row inserted inbull microseconds (us) =bull [26 online transaction or 20 batch]bull + 11 for 1 index + 21 for each additional indexbull + 20to30 x pagesread x 13(30 additional for write)bull + 2 if class2 acctg (1)bull + 12 if DB2CICS without TS22 threadsafe option (1)bull - up to 10 if multi-row insert

bull (1) Can disappear if multi-row insertbull (2) Use cpu time multiplier from wwws390ibmcomlspr for other processor models

IBM Software Group | DB2 Information Management Software

Virtual Storage items

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

Java Universal Driver

bull Significant reengineering of Java support for DB2 Connect CAE and DB2 for OS390 and zOS client softwarendash Uses DRDA protocols for all client communication

ndash Eliminates DB2RA and net driver protocols

ndash Traditional DB2 client configuration (CCA) is optional

ndash Much better handling of different clientserver software levels

ndash Improved DB2 Connect consistencyperformance

ndash much higher percentage of common code

ndash fewer unique code paths for specific hardware configurations

ndash Several significant improvements to DRDA

ndash support for long SQL names and statements

ndash DRDA query block sizes can now be up to 2M bytes

ndash rely on server-supplied stored procedures for SQL error messagesdatabase metadata etc

ndash many internal performance improvements

IBM Software Group | DB2 Information Management Software

Java Universal Driver

bull Why use itndash Legacy Drivers functionally stabilized amp will be deprecated

ndash Single driver for all platforms

ndash Client Accounting String

ndash Performance monitor methods

ndash Better performance

IBM Software Group | DB2 Information Management Software

SQLJ usage is increasing

bull Static SQL performance for Java applicationsndash less code written by the application programmer

ndash resulting code is easier to maintain

ndash significant performance advantage over JDBC

ndash Static SQL authorization model

bull Provides Java with a stronger authorization modelndash Monitoringmanageability

ndash static SQL packages for accountingmonitoring

bull Static SQL locks in access path so that access path changes dont occur without a conscious choice

IBM Software Group | DB2 Information Management Software

JDBC vs SQLJ example

bull Retrieve a single row from DB2bull SQLJ

sql [con] SELECT ADDRESS INTO addr FROM EMP WHERE NAME=name

bull JDBCjavasqlPreparedStatement ps = conprepareStatement(SELECT ADDRESS FROM EMP WHERE NAME=)pssetString(1 name)javasqlResultSet names = psexecuteQuery()namesnext()addr = namesgetString(1)namesclose()

bull -- portable across platforms and DBMSsbull -- compilebind time schema checkingbull -- static SQL performance and authorizationbull -- concisebull -- strong typing

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

DB2 Futures

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

DB2 Redbooks - 2Q 2004 httpwwwibmcomredbooks

bull Business Performance Management Meets Business Intelligence (SG24-6340)

bull The Business Value of DB2 UDB for zOS (SG24-6763)bull Data Mart Consolidation Getting Control of Your Enterprise

Information(SG24-6653)bull DB2 UDB for zOS Version 8 Performance Topics (SG24-6465)bull Microsoft SQL Server to IBM DB2 UDB Conversion Guide (SG24-

6672)bull DB2 for zOS and WebSphere The Perfect Couple (SG24-6319)bull Copying the DB2 UDB for zOS catalog using the COPY utility Copying the DB2 UDB for zOS catalog using the COPY utility

(TIPS0587)(TIPS0587)bull Systems Programmers Guide to Resource Recovery Services (RRS) Systems Programmers Guide to Resource Recovery Services (RRS)

(SG24-6980)(SG24-6980)

IBM Software Group | DB2 Information Management Software

Education

bull DB2 Version 8 Migration Workshopsndash Let us know if you need one

bull DB2 Version 8 Transition classndash CG381 amp CG382

IBM Software Group | DB2 Information Management Software

Education ( Design)

IBM Software Group | DB2 Information Management Software

Education (Development)

IBM Software Group | DB2 Information Management Software

Education ( Administration)

IBM Software Group | DB2 Information Management Software

Education (Troubleshooting)

IBM Software Group | DB2 Information Management Software

Intelligent Visual Explain

bull Where to obtain the codebull httpwwwibmcomsoftwaredatadb2zososcvebull Fixpack 7 available nowbull Key prerequisites

ndash Windows NT Version 40 Windows 2000 or Windows XPndash 150 MB of hard disk spacendash 256 MB of RAMndash Pentium III equivalent or abovendash Either DB2 ConnecttradePersonal Edition Version 7 (or later) or DB2

Client Application Enablertrade(CAE) with a DB2 Connect Enterprise Edition Version 7 (or later) gateway installed

ndash A TCPIP connection to a DB2 for zOS Version 7 or Version 8 host system

ndash A java-enabled browser to view HTML files

IBM Software Group | DB2 Information Management Software

Reference URLs

httpwwwibmcomsoftwaredatadb2zosindexhtmlDB2 for zOS

httpwww-306ibmcomsoftwaredatadb2zossupporthtmlDB2 for zOS technical support page

httpwww-306ibmcomsoftwaredatadb2zososcveindexhtmlDB2 VE download

httpwwwunicodeorg Unicode Home pagehttpwwwunicodeorgunicodestandardprincipleshtmlThe Unicode Standard amp Basic Principlesftpftpsoftwareibmcomsoftwaredatadb2zosdppdpdfDB2 for zOS Distribute Performance analysisftpftpsoftwareibmcomsoftwaredb2storedproceduredb2zos390techdocsH01PDFDB2-Java Performance and Tuning

IBM Software Group | DB2 Information Management Software

Reference URLs

www-106ibmcomdeveloperworksdb2librarytecharticle0203shibamiya0203shibamiya2htmlInsert vs Load Performance White paper

IBM Software Group | DB2 Information Management Software

Acknowledgements to My Friends

Mark Wilson ndash DB2 Product Introduction CenterAkira Shibamiya - SVLCurt Cotner ndash SVLJohn Campbell ndash SVL

Page 25: Slide 1 - Parallels Plesk Control Panel 8.6.0

IBM Software Group | DB2 Information Management Software

QMF multi-row FETCH INSERT

bull QMF V8 NFM with DB2 V8 NFM automatically transforms your queries to multi-row operations

APAR PTF PTF Avail PUT

PQ99482 UK06848 20050902 1000

IBM Software Group | DB2 Information Management Software

Performance Imperatives

bull If necessary reduce MAXKEEPD to reduce local DSC rely more on global DSC which is above 2GB

bull V8 PQ96772 205 to move dynamic statement cache control blocks above 2GB

bull PK01911 605 Increased cpu time in Index and Storage processing sometimes accompanied by high LC32 contention

bull PQ99608 205 Excessive log write iorsquos triggered by insert into table with identity column

bull Incorrect Runstats values

bull 1048707 PK01510 505 NPI cluster ratio

bull 1048707 PK03469 505 Non-uniform distribution stats

bull PK04107 Bidirectional indexability for unicode to ebcdic

bull PK05360 Hybrid join with multi-row Fetch

bull PK04076 505 Load default of No Sortkeys if only one index and sorted input

IBM Software Group | DB2 Information Management Software

IBM Software Group

copy 2004 IBM Corporation2 IBM Confidential

V7V8 PK09158 705 Dramatic speedup and elimination of non linear performance problem in deletes via SCT02 or SPT01 in Bind Replace or Free

ndash Resolved a half dozen performance PMRs recently raised

V8 PK01911 605 Fix general V8 performance degradation brought about by V8 PQ93318 1204

V8 Multi-row Fetch performance problems

ndash PK05360 opened 505 No hybrid join support

ndash PQ88009 504 disabled parallelism for the last group of the top level query block if there is no Groupby or Orderby

ndash PK10021 opened 805 query abend with host variable or special register

V8 PQ92072 805 to support implicit multi-row Insert by ODBC array input

Recent major performance-related apars

IBM Software Group | DB2 Information Management Software

Performance Imperatives ( conthellip)

bull V8 PK05644 Preformatting up to 2 cylinders at a time to minimize preformat time

bull V7 PQ86037 304 Insert at end option for member cluster tablespace (V7V8 PQ87381 More robust version coming in 2005)

ndash Avoid re-reading spacemap pages from the beginning before dataset extend by always searching forward for freespace when zero PCTFREE and FREEPAGE

ndash Can support steady and continuous high insert rate without rapidly increasing Getpage

ndash Especially useful for heavy insert without delete

IBM Software Group | DB2 Information Management Software

Insert CPU Usage

bull 1048707 Most affected by the number of indexesbull 1048707 DB2 Estimator recommended for more detailed analysisbull 1048707 Rule-of-Thumb Z990(2) cpu time per row inserted inbull microseconds (us) =bull [26 online transaction or 20 batch]bull + 11 for 1 index + 21 for each additional indexbull + 20to30 x pagesread x 13(30 additional for write)bull + 2 if class2 acctg (1)bull + 12 if DB2CICS without TS22 threadsafe option (1)bull - up to 10 if multi-row insert

bull (1) Can disappear if multi-row insertbull (2) Use cpu time multiplier from wwws390ibmcomlspr for other processor models

IBM Software Group | DB2 Information Management Software

Virtual Storage items

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

Java Universal Driver

bull Significant reengineering of Java support for DB2 Connect CAE and DB2 for OS390 and zOS client softwarendash Uses DRDA protocols for all client communication

ndash Eliminates DB2RA and net driver protocols

ndash Traditional DB2 client configuration (CCA) is optional

ndash Much better handling of different clientserver software levels

ndash Improved DB2 Connect consistencyperformance

ndash much higher percentage of common code

ndash fewer unique code paths for specific hardware configurations

ndash Several significant improvements to DRDA

ndash support for long SQL names and statements

ndash DRDA query block sizes can now be up to 2M bytes

ndash rely on server-supplied stored procedures for SQL error messagesdatabase metadata etc

ndash many internal performance improvements

IBM Software Group | DB2 Information Management Software

Java Universal Driver

bull Why use itndash Legacy Drivers functionally stabilized amp will be deprecated

ndash Single driver for all platforms

ndash Client Accounting String

ndash Performance monitor methods

ndash Better performance

IBM Software Group | DB2 Information Management Software

SQLJ usage is increasing

bull Static SQL performance for Java applicationsndash less code written by the application programmer

ndash resulting code is easier to maintain

ndash significant performance advantage over JDBC

ndash Static SQL authorization model

bull Provides Java with a stronger authorization modelndash Monitoringmanageability

ndash static SQL packages for accountingmonitoring

bull Static SQL locks in access path so that access path changes dont occur without a conscious choice

IBM Software Group | DB2 Information Management Software

JDBC vs SQLJ example

bull Retrieve a single row from DB2bull SQLJ

sql [con] SELECT ADDRESS INTO addr FROM EMP WHERE NAME=name

bull JDBCjavasqlPreparedStatement ps = conprepareStatement(SELECT ADDRESS FROM EMP WHERE NAME=)pssetString(1 name)javasqlResultSet names = psexecuteQuery()namesnext()addr = namesgetString(1)namesclose()

bull -- portable across platforms and DBMSsbull -- compilebind time schema checkingbull -- static SQL performance and authorizationbull -- concisebull -- strong typing

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

DB2 Futures

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

DB2 Redbooks - 2Q 2004 httpwwwibmcomredbooks

bull Business Performance Management Meets Business Intelligence (SG24-6340)

bull The Business Value of DB2 UDB for zOS (SG24-6763)bull Data Mart Consolidation Getting Control of Your Enterprise

Information(SG24-6653)bull DB2 UDB for zOS Version 8 Performance Topics (SG24-6465)bull Microsoft SQL Server to IBM DB2 UDB Conversion Guide (SG24-

6672)bull DB2 for zOS and WebSphere The Perfect Couple (SG24-6319)bull Copying the DB2 UDB for zOS catalog using the COPY utility Copying the DB2 UDB for zOS catalog using the COPY utility

(TIPS0587)(TIPS0587)bull Systems Programmers Guide to Resource Recovery Services (RRS) Systems Programmers Guide to Resource Recovery Services (RRS)

(SG24-6980)(SG24-6980)

IBM Software Group | DB2 Information Management Software

Education

bull DB2 Version 8 Migration Workshopsndash Let us know if you need one

bull DB2 Version 8 Transition classndash CG381 amp CG382

IBM Software Group | DB2 Information Management Software

Education ( Design)

IBM Software Group | DB2 Information Management Software

Education (Development)

IBM Software Group | DB2 Information Management Software

Education ( Administration)

IBM Software Group | DB2 Information Management Software

Education (Troubleshooting)

IBM Software Group | DB2 Information Management Software

Intelligent Visual Explain

bull Where to obtain the codebull httpwwwibmcomsoftwaredatadb2zososcvebull Fixpack 7 available nowbull Key prerequisites

ndash Windows NT Version 40 Windows 2000 or Windows XPndash 150 MB of hard disk spacendash 256 MB of RAMndash Pentium III equivalent or abovendash Either DB2 ConnecttradePersonal Edition Version 7 (or later) or DB2

Client Application Enablertrade(CAE) with a DB2 Connect Enterprise Edition Version 7 (or later) gateway installed

ndash A TCPIP connection to a DB2 for zOS Version 7 or Version 8 host system

ndash A java-enabled browser to view HTML files

IBM Software Group | DB2 Information Management Software

Reference URLs

httpwwwibmcomsoftwaredatadb2zosindexhtmlDB2 for zOS

httpwww-306ibmcomsoftwaredatadb2zossupporthtmlDB2 for zOS technical support page

httpwww-306ibmcomsoftwaredatadb2zososcveindexhtmlDB2 VE download

httpwwwunicodeorg Unicode Home pagehttpwwwunicodeorgunicodestandardprincipleshtmlThe Unicode Standard amp Basic Principlesftpftpsoftwareibmcomsoftwaredatadb2zosdppdpdfDB2 for zOS Distribute Performance analysisftpftpsoftwareibmcomsoftwaredb2storedproceduredb2zos390techdocsH01PDFDB2-Java Performance and Tuning

IBM Software Group | DB2 Information Management Software

Reference URLs

www-106ibmcomdeveloperworksdb2librarytecharticle0203shibamiya0203shibamiya2htmlInsert vs Load Performance White paper

IBM Software Group | DB2 Information Management Software

Acknowledgements to My Friends

Mark Wilson ndash DB2 Product Introduction CenterAkira Shibamiya - SVLCurt Cotner ndash SVLJohn Campbell ndash SVL

Page 26: Slide 1 - Parallels Plesk Control Panel 8.6.0

IBM Software Group | DB2 Information Management Software

Performance Imperatives

bull If necessary reduce MAXKEEPD to reduce local DSC rely more on global DSC which is above 2GB

bull V8 PQ96772 205 to move dynamic statement cache control blocks above 2GB

bull PK01911 605 Increased cpu time in Index and Storage processing sometimes accompanied by high LC32 contention

bull PQ99608 205 Excessive log write iorsquos triggered by insert into table with identity column

bull Incorrect Runstats values

bull 1048707 PK01510 505 NPI cluster ratio

bull 1048707 PK03469 505 Non-uniform distribution stats

bull PK04107 Bidirectional indexability for unicode to ebcdic

bull PK05360 Hybrid join with multi-row Fetch

bull PK04076 505 Load default of No Sortkeys if only one index and sorted input

IBM Software Group | DB2 Information Management Software

IBM Software Group

copy 2004 IBM Corporation2 IBM Confidential

V7V8 PK09158 705 Dramatic speedup and elimination of non linear performance problem in deletes via SCT02 or SPT01 in Bind Replace or Free

ndash Resolved a half dozen performance PMRs recently raised

V8 PK01911 605 Fix general V8 performance degradation brought about by V8 PQ93318 1204

V8 Multi-row Fetch performance problems

ndash PK05360 opened 505 No hybrid join support

ndash PQ88009 504 disabled parallelism for the last group of the top level query block if there is no Groupby or Orderby

ndash PK10021 opened 805 query abend with host variable or special register

V8 PQ92072 805 to support implicit multi-row Insert by ODBC array input

Recent major performance-related apars

IBM Software Group | DB2 Information Management Software

Performance Imperatives ( conthellip)

bull V8 PK05644 Preformatting up to 2 cylinders at a time to minimize preformat time

bull V7 PQ86037 304 Insert at end option for member cluster tablespace (V7V8 PQ87381 More robust version coming in 2005)

ndash Avoid re-reading spacemap pages from the beginning before dataset extend by always searching forward for freespace when zero PCTFREE and FREEPAGE

ndash Can support steady and continuous high insert rate without rapidly increasing Getpage

ndash Especially useful for heavy insert without delete

IBM Software Group | DB2 Information Management Software

Insert CPU Usage

bull 1048707 Most affected by the number of indexesbull 1048707 DB2 Estimator recommended for more detailed analysisbull 1048707 Rule-of-Thumb Z990(2) cpu time per row inserted inbull microseconds (us) =bull [26 online transaction or 20 batch]bull + 11 for 1 index + 21 for each additional indexbull + 20to30 x pagesread x 13(30 additional for write)bull + 2 if class2 acctg (1)bull + 12 if DB2CICS without TS22 threadsafe option (1)bull - up to 10 if multi-row insert

bull (1) Can disappear if multi-row insertbull (2) Use cpu time multiplier from wwws390ibmcomlspr for other processor models

IBM Software Group | DB2 Information Management Software

Virtual Storage items

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

Java Universal Driver

bull Significant reengineering of Java support for DB2 Connect CAE and DB2 for OS390 and zOS client softwarendash Uses DRDA protocols for all client communication

ndash Eliminates DB2RA and net driver protocols

ndash Traditional DB2 client configuration (CCA) is optional

ndash Much better handling of different clientserver software levels

ndash Improved DB2 Connect consistencyperformance

ndash much higher percentage of common code

ndash fewer unique code paths for specific hardware configurations

ndash Several significant improvements to DRDA

ndash support for long SQL names and statements

ndash DRDA query block sizes can now be up to 2M bytes

ndash rely on server-supplied stored procedures for SQL error messagesdatabase metadata etc

ndash many internal performance improvements

IBM Software Group | DB2 Information Management Software

Java Universal Driver

bull Why use itndash Legacy Drivers functionally stabilized amp will be deprecated

ndash Single driver for all platforms

ndash Client Accounting String

ndash Performance monitor methods

ndash Better performance

IBM Software Group | DB2 Information Management Software

SQLJ usage is increasing

bull Static SQL performance for Java applicationsndash less code written by the application programmer

ndash resulting code is easier to maintain

ndash significant performance advantage over JDBC

ndash Static SQL authorization model

bull Provides Java with a stronger authorization modelndash Monitoringmanageability

ndash static SQL packages for accountingmonitoring

bull Static SQL locks in access path so that access path changes dont occur without a conscious choice

IBM Software Group | DB2 Information Management Software

JDBC vs SQLJ example

bull Retrieve a single row from DB2bull SQLJ

sql [con] SELECT ADDRESS INTO addr FROM EMP WHERE NAME=name

bull JDBCjavasqlPreparedStatement ps = conprepareStatement(SELECT ADDRESS FROM EMP WHERE NAME=)pssetString(1 name)javasqlResultSet names = psexecuteQuery()namesnext()addr = namesgetString(1)namesclose()

bull -- portable across platforms and DBMSsbull -- compilebind time schema checkingbull -- static SQL performance and authorizationbull -- concisebull -- strong typing

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

DB2 Futures

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

DB2 Redbooks - 2Q 2004 httpwwwibmcomredbooks

bull Business Performance Management Meets Business Intelligence (SG24-6340)

bull The Business Value of DB2 UDB for zOS (SG24-6763)bull Data Mart Consolidation Getting Control of Your Enterprise

Information(SG24-6653)bull DB2 UDB for zOS Version 8 Performance Topics (SG24-6465)bull Microsoft SQL Server to IBM DB2 UDB Conversion Guide (SG24-

6672)bull DB2 for zOS and WebSphere The Perfect Couple (SG24-6319)bull Copying the DB2 UDB for zOS catalog using the COPY utility Copying the DB2 UDB for zOS catalog using the COPY utility

(TIPS0587)(TIPS0587)bull Systems Programmers Guide to Resource Recovery Services (RRS) Systems Programmers Guide to Resource Recovery Services (RRS)

(SG24-6980)(SG24-6980)

IBM Software Group | DB2 Information Management Software

Education

bull DB2 Version 8 Migration Workshopsndash Let us know if you need one

bull DB2 Version 8 Transition classndash CG381 amp CG382

IBM Software Group | DB2 Information Management Software

Education ( Design)

IBM Software Group | DB2 Information Management Software

Education (Development)

IBM Software Group | DB2 Information Management Software

Education ( Administration)

IBM Software Group | DB2 Information Management Software

Education (Troubleshooting)

IBM Software Group | DB2 Information Management Software

Intelligent Visual Explain

bull Where to obtain the codebull httpwwwibmcomsoftwaredatadb2zososcvebull Fixpack 7 available nowbull Key prerequisites

ndash Windows NT Version 40 Windows 2000 or Windows XPndash 150 MB of hard disk spacendash 256 MB of RAMndash Pentium III equivalent or abovendash Either DB2 ConnecttradePersonal Edition Version 7 (or later) or DB2

Client Application Enablertrade(CAE) with a DB2 Connect Enterprise Edition Version 7 (or later) gateway installed

ndash A TCPIP connection to a DB2 for zOS Version 7 or Version 8 host system

ndash A java-enabled browser to view HTML files

IBM Software Group | DB2 Information Management Software

Reference URLs

httpwwwibmcomsoftwaredatadb2zosindexhtmlDB2 for zOS

httpwww-306ibmcomsoftwaredatadb2zossupporthtmlDB2 for zOS technical support page

httpwww-306ibmcomsoftwaredatadb2zososcveindexhtmlDB2 VE download

httpwwwunicodeorg Unicode Home pagehttpwwwunicodeorgunicodestandardprincipleshtmlThe Unicode Standard amp Basic Principlesftpftpsoftwareibmcomsoftwaredatadb2zosdppdpdfDB2 for zOS Distribute Performance analysisftpftpsoftwareibmcomsoftwaredb2storedproceduredb2zos390techdocsH01PDFDB2-Java Performance and Tuning

IBM Software Group | DB2 Information Management Software

Reference URLs

www-106ibmcomdeveloperworksdb2librarytecharticle0203shibamiya0203shibamiya2htmlInsert vs Load Performance White paper

IBM Software Group | DB2 Information Management Software

Acknowledgements to My Friends

Mark Wilson ndash DB2 Product Introduction CenterAkira Shibamiya - SVLCurt Cotner ndash SVLJohn Campbell ndash SVL

Page 27: Slide 1 - Parallels Plesk Control Panel 8.6.0

IBM Software Group | DB2 Information Management Software

IBM Software Group

copy 2004 IBM Corporation2 IBM Confidential

V7V8 PK09158 705 Dramatic speedup and elimination of non linear performance problem in deletes via SCT02 or SPT01 in Bind Replace or Free

ndash Resolved a half dozen performance PMRs recently raised

V8 PK01911 605 Fix general V8 performance degradation brought about by V8 PQ93318 1204

V8 Multi-row Fetch performance problems

ndash PK05360 opened 505 No hybrid join support

ndash PQ88009 504 disabled parallelism for the last group of the top level query block if there is no Groupby or Orderby

ndash PK10021 opened 805 query abend with host variable or special register

V8 PQ92072 805 to support implicit multi-row Insert by ODBC array input

Recent major performance-related apars

IBM Software Group | DB2 Information Management Software

Performance Imperatives ( conthellip)

bull V8 PK05644 Preformatting up to 2 cylinders at a time to minimize preformat time

bull V7 PQ86037 304 Insert at end option for member cluster tablespace (V7V8 PQ87381 More robust version coming in 2005)

ndash Avoid re-reading spacemap pages from the beginning before dataset extend by always searching forward for freespace when zero PCTFREE and FREEPAGE

ndash Can support steady and continuous high insert rate without rapidly increasing Getpage

ndash Especially useful for heavy insert without delete

IBM Software Group | DB2 Information Management Software

Insert CPU Usage

bull 1048707 Most affected by the number of indexesbull 1048707 DB2 Estimator recommended for more detailed analysisbull 1048707 Rule-of-Thumb Z990(2) cpu time per row inserted inbull microseconds (us) =bull [26 online transaction or 20 batch]bull + 11 for 1 index + 21 for each additional indexbull + 20to30 x pagesread x 13(30 additional for write)bull + 2 if class2 acctg (1)bull + 12 if DB2CICS without TS22 threadsafe option (1)bull - up to 10 if multi-row insert

bull (1) Can disappear if multi-row insertbull (2) Use cpu time multiplier from wwws390ibmcomlspr for other processor models

IBM Software Group | DB2 Information Management Software

Virtual Storage items

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

Java Universal Driver

bull Significant reengineering of Java support for DB2 Connect CAE and DB2 for OS390 and zOS client softwarendash Uses DRDA protocols for all client communication

ndash Eliminates DB2RA and net driver protocols

ndash Traditional DB2 client configuration (CCA) is optional

ndash Much better handling of different clientserver software levels

ndash Improved DB2 Connect consistencyperformance

ndash much higher percentage of common code

ndash fewer unique code paths for specific hardware configurations

ndash Several significant improvements to DRDA

ndash support for long SQL names and statements

ndash DRDA query block sizes can now be up to 2M bytes

ndash rely on server-supplied stored procedures for SQL error messagesdatabase metadata etc

ndash many internal performance improvements

IBM Software Group | DB2 Information Management Software

Java Universal Driver

bull Why use itndash Legacy Drivers functionally stabilized amp will be deprecated

ndash Single driver for all platforms

ndash Client Accounting String

ndash Performance monitor methods

ndash Better performance

IBM Software Group | DB2 Information Management Software

SQLJ usage is increasing

bull Static SQL performance for Java applicationsndash less code written by the application programmer

ndash resulting code is easier to maintain

ndash significant performance advantage over JDBC

ndash Static SQL authorization model

bull Provides Java with a stronger authorization modelndash Monitoringmanageability

ndash static SQL packages for accountingmonitoring

bull Static SQL locks in access path so that access path changes dont occur without a conscious choice

IBM Software Group | DB2 Information Management Software

JDBC vs SQLJ example

bull Retrieve a single row from DB2bull SQLJ

sql [con] SELECT ADDRESS INTO addr FROM EMP WHERE NAME=name

bull JDBCjavasqlPreparedStatement ps = conprepareStatement(SELECT ADDRESS FROM EMP WHERE NAME=)pssetString(1 name)javasqlResultSet names = psexecuteQuery()namesnext()addr = namesgetString(1)namesclose()

bull -- portable across platforms and DBMSsbull -- compilebind time schema checkingbull -- static SQL performance and authorizationbull -- concisebull -- strong typing

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

DB2 Futures

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

DB2 Redbooks - 2Q 2004 httpwwwibmcomredbooks

bull Business Performance Management Meets Business Intelligence (SG24-6340)

bull The Business Value of DB2 UDB for zOS (SG24-6763)bull Data Mart Consolidation Getting Control of Your Enterprise

Information(SG24-6653)bull DB2 UDB for zOS Version 8 Performance Topics (SG24-6465)bull Microsoft SQL Server to IBM DB2 UDB Conversion Guide (SG24-

6672)bull DB2 for zOS and WebSphere The Perfect Couple (SG24-6319)bull Copying the DB2 UDB for zOS catalog using the COPY utility Copying the DB2 UDB for zOS catalog using the COPY utility

(TIPS0587)(TIPS0587)bull Systems Programmers Guide to Resource Recovery Services (RRS) Systems Programmers Guide to Resource Recovery Services (RRS)

(SG24-6980)(SG24-6980)

IBM Software Group | DB2 Information Management Software

Education

bull DB2 Version 8 Migration Workshopsndash Let us know if you need one

bull DB2 Version 8 Transition classndash CG381 amp CG382

IBM Software Group | DB2 Information Management Software

Education ( Design)

IBM Software Group | DB2 Information Management Software

Education (Development)

IBM Software Group | DB2 Information Management Software

Education ( Administration)

IBM Software Group | DB2 Information Management Software

Education (Troubleshooting)

IBM Software Group | DB2 Information Management Software

Intelligent Visual Explain

bull Where to obtain the codebull httpwwwibmcomsoftwaredatadb2zososcvebull Fixpack 7 available nowbull Key prerequisites

ndash Windows NT Version 40 Windows 2000 or Windows XPndash 150 MB of hard disk spacendash 256 MB of RAMndash Pentium III equivalent or abovendash Either DB2 ConnecttradePersonal Edition Version 7 (or later) or DB2

Client Application Enablertrade(CAE) with a DB2 Connect Enterprise Edition Version 7 (or later) gateway installed

ndash A TCPIP connection to a DB2 for zOS Version 7 or Version 8 host system

ndash A java-enabled browser to view HTML files

IBM Software Group | DB2 Information Management Software

Reference URLs

httpwwwibmcomsoftwaredatadb2zosindexhtmlDB2 for zOS

httpwww-306ibmcomsoftwaredatadb2zossupporthtmlDB2 for zOS technical support page

httpwww-306ibmcomsoftwaredatadb2zososcveindexhtmlDB2 VE download

httpwwwunicodeorg Unicode Home pagehttpwwwunicodeorgunicodestandardprincipleshtmlThe Unicode Standard amp Basic Principlesftpftpsoftwareibmcomsoftwaredatadb2zosdppdpdfDB2 for zOS Distribute Performance analysisftpftpsoftwareibmcomsoftwaredb2storedproceduredb2zos390techdocsH01PDFDB2-Java Performance and Tuning

IBM Software Group | DB2 Information Management Software

Reference URLs

www-106ibmcomdeveloperworksdb2librarytecharticle0203shibamiya0203shibamiya2htmlInsert vs Load Performance White paper

IBM Software Group | DB2 Information Management Software

Acknowledgements to My Friends

Mark Wilson ndash DB2 Product Introduction CenterAkira Shibamiya - SVLCurt Cotner ndash SVLJohn Campbell ndash SVL

Page 28: Slide 1 - Parallels Plesk Control Panel 8.6.0

IBM Software Group | DB2 Information Management Software

Performance Imperatives ( conthellip)

bull V8 PK05644 Preformatting up to 2 cylinders at a time to minimize preformat time

bull V7 PQ86037 304 Insert at end option for member cluster tablespace (V7V8 PQ87381 More robust version coming in 2005)

ndash Avoid re-reading spacemap pages from the beginning before dataset extend by always searching forward for freespace when zero PCTFREE and FREEPAGE

ndash Can support steady and continuous high insert rate without rapidly increasing Getpage

ndash Especially useful for heavy insert without delete

IBM Software Group | DB2 Information Management Software

Insert CPU Usage

bull 1048707 Most affected by the number of indexesbull 1048707 DB2 Estimator recommended for more detailed analysisbull 1048707 Rule-of-Thumb Z990(2) cpu time per row inserted inbull microseconds (us) =bull [26 online transaction or 20 batch]bull + 11 for 1 index + 21 for each additional indexbull + 20to30 x pagesread x 13(30 additional for write)bull + 2 if class2 acctg (1)bull + 12 if DB2CICS without TS22 threadsafe option (1)bull - up to 10 if multi-row insert

bull (1) Can disappear if multi-row insertbull (2) Use cpu time multiplier from wwws390ibmcomlspr for other processor models

IBM Software Group | DB2 Information Management Software

Virtual Storage items

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

Java Universal Driver

bull Significant reengineering of Java support for DB2 Connect CAE and DB2 for OS390 and zOS client softwarendash Uses DRDA protocols for all client communication

ndash Eliminates DB2RA and net driver protocols

ndash Traditional DB2 client configuration (CCA) is optional

ndash Much better handling of different clientserver software levels

ndash Improved DB2 Connect consistencyperformance

ndash much higher percentage of common code

ndash fewer unique code paths for specific hardware configurations

ndash Several significant improvements to DRDA

ndash support for long SQL names and statements

ndash DRDA query block sizes can now be up to 2M bytes

ndash rely on server-supplied stored procedures for SQL error messagesdatabase metadata etc

ndash many internal performance improvements

IBM Software Group | DB2 Information Management Software

Java Universal Driver

bull Why use itndash Legacy Drivers functionally stabilized amp will be deprecated

ndash Single driver for all platforms

ndash Client Accounting String

ndash Performance monitor methods

ndash Better performance

IBM Software Group | DB2 Information Management Software

SQLJ usage is increasing

bull Static SQL performance for Java applicationsndash less code written by the application programmer

ndash resulting code is easier to maintain

ndash significant performance advantage over JDBC

ndash Static SQL authorization model

bull Provides Java with a stronger authorization modelndash Monitoringmanageability

ndash static SQL packages for accountingmonitoring

bull Static SQL locks in access path so that access path changes dont occur without a conscious choice

IBM Software Group | DB2 Information Management Software

JDBC vs SQLJ example

bull Retrieve a single row from DB2bull SQLJ

sql [con] SELECT ADDRESS INTO addr FROM EMP WHERE NAME=name

bull JDBCjavasqlPreparedStatement ps = conprepareStatement(SELECT ADDRESS FROM EMP WHERE NAME=)pssetString(1 name)javasqlResultSet names = psexecuteQuery()namesnext()addr = namesgetString(1)namesclose()

bull -- portable across platforms and DBMSsbull -- compilebind time schema checkingbull -- static SQL performance and authorizationbull -- concisebull -- strong typing

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

DB2 Futures

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

DB2 Redbooks - 2Q 2004 httpwwwibmcomredbooks

bull Business Performance Management Meets Business Intelligence (SG24-6340)

bull The Business Value of DB2 UDB for zOS (SG24-6763)bull Data Mart Consolidation Getting Control of Your Enterprise

Information(SG24-6653)bull DB2 UDB for zOS Version 8 Performance Topics (SG24-6465)bull Microsoft SQL Server to IBM DB2 UDB Conversion Guide (SG24-

6672)bull DB2 for zOS and WebSphere The Perfect Couple (SG24-6319)bull Copying the DB2 UDB for zOS catalog using the COPY utility Copying the DB2 UDB for zOS catalog using the COPY utility

(TIPS0587)(TIPS0587)bull Systems Programmers Guide to Resource Recovery Services (RRS) Systems Programmers Guide to Resource Recovery Services (RRS)

(SG24-6980)(SG24-6980)

IBM Software Group | DB2 Information Management Software

Education

bull DB2 Version 8 Migration Workshopsndash Let us know if you need one

bull DB2 Version 8 Transition classndash CG381 amp CG382

IBM Software Group | DB2 Information Management Software

Education ( Design)

IBM Software Group | DB2 Information Management Software

Education (Development)

IBM Software Group | DB2 Information Management Software

Education ( Administration)

IBM Software Group | DB2 Information Management Software

Education (Troubleshooting)

IBM Software Group | DB2 Information Management Software

Intelligent Visual Explain

bull Where to obtain the codebull httpwwwibmcomsoftwaredatadb2zososcvebull Fixpack 7 available nowbull Key prerequisites

ndash Windows NT Version 40 Windows 2000 or Windows XPndash 150 MB of hard disk spacendash 256 MB of RAMndash Pentium III equivalent or abovendash Either DB2 ConnecttradePersonal Edition Version 7 (or later) or DB2

Client Application Enablertrade(CAE) with a DB2 Connect Enterprise Edition Version 7 (or later) gateway installed

ndash A TCPIP connection to a DB2 for zOS Version 7 or Version 8 host system

ndash A java-enabled browser to view HTML files

IBM Software Group | DB2 Information Management Software

Reference URLs

httpwwwibmcomsoftwaredatadb2zosindexhtmlDB2 for zOS

httpwww-306ibmcomsoftwaredatadb2zossupporthtmlDB2 for zOS technical support page

httpwww-306ibmcomsoftwaredatadb2zososcveindexhtmlDB2 VE download

httpwwwunicodeorg Unicode Home pagehttpwwwunicodeorgunicodestandardprincipleshtmlThe Unicode Standard amp Basic Principlesftpftpsoftwareibmcomsoftwaredatadb2zosdppdpdfDB2 for zOS Distribute Performance analysisftpftpsoftwareibmcomsoftwaredb2storedproceduredb2zos390techdocsH01PDFDB2-Java Performance and Tuning

IBM Software Group | DB2 Information Management Software

Reference URLs

www-106ibmcomdeveloperworksdb2librarytecharticle0203shibamiya0203shibamiya2htmlInsert vs Load Performance White paper

IBM Software Group | DB2 Information Management Software

Acknowledgements to My Friends

Mark Wilson ndash DB2 Product Introduction CenterAkira Shibamiya - SVLCurt Cotner ndash SVLJohn Campbell ndash SVL

Page 29: Slide 1 - Parallels Plesk Control Panel 8.6.0

IBM Software Group | DB2 Information Management Software

Insert CPU Usage

bull 1048707 Most affected by the number of indexesbull 1048707 DB2 Estimator recommended for more detailed analysisbull 1048707 Rule-of-Thumb Z990(2) cpu time per row inserted inbull microseconds (us) =bull [26 online transaction or 20 batch]bull + 11 for 1 index + 21 for each additional indexbull + 20to30 x pagesread x 13(30 additional for write)bull + 2 if class2 acctg (1)bull + 12 if DB2CICS without TS22 threadsafe option (1)bull - up to 10 if multi-row insert

bull (1) Can disappear if multi-row insertbull (2) Use cpu time multiplier from wwws390ibmcomlspr for other processor models

IBM Software Group | DB2 Information Management Software

Virtual Storage items

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

Java Universal Driver

bull Significant reengineering of Java support for DB2 Connect CAE and DB2 for OS390 and zOS client softwarendash Uses DRDA protocols for all client communication

ndash Eliminates DB2RA and net driver protocols

ndash Traditional DB2 client configuration (CCA) is optional

ndash Much better handling of different clientserver software levels

ndash Improved DB2 Connect consistencyperformance

ndash much higher percentage of common code

ndash fewer unique code paths for specific hardware configurations

ndash Several significant improvements to DRDA

ndash support for long SQL names and statements

ndash DRDA query block sizes can now be up to 2M bytes

ndash rely on server-supplied stored procedures for SQL error messagesdatabase metadata etc

ndash many internal performance improvements

IBM Software Group | DB2 Information Management Software

Java Universal Driver

bull Why use itndash Legacy Drivers functionally stabilized amp will be deprecated

ndash Single driver for all platforms

ndash Client Accounting String

ndash Performance monitor methods

ndash Better performance

IBM Software Group | DB2 Information Management Software

SQLJ usage is increasing

bull Static SQL performance for Java applicationsndash less code written by the application programmer

ndash resulting code is easier to maintain

ndash significant performance advantage over JDBC

ndash Static SQL authorization model

bull Provides Java with a stronger authorization modelndash Monitoringmanageability

ndash static SQL packages for accountingmonitoring

bull Static SQL locks in access path so that access path changes dont occur without a conscious choice

IBM Software Group | DB2 Information Management Software

JDBC vs SQLJ example

bull Retrieve a single row from DB2bull SQLJ

sql [con] SELECT ADDRESS INTO addr FROM EMP WHERE NAME=name

bull JDBCjavasqlPreparedStatement ps = conprepareStatement(SELECT ADDRESS FROM EMP WHERE NAME=)pssetString(1 name)javasqlResultSet names = psexecuteQuery()namesnext()addr = namesgetString(1)namesclose()

bull -- portable across platforms and DBMSsbull -- compilebind time schema checkingbull -- static SQL performance and authorizationbull -- concisebull -- strong typing

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

DB2 Futures

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

DB2 Redbooks - 2Q 2004 httpwwwibmcomredbooks

bull Business Performance Management Meets Business Intelligence (SG24-6340)

bull The Business Value of DB2 UDB for zOS (SG24-6763)bull Data Mart Consolidation Getting Control of Your Enterprise

Information(SG24-6653)bull DB2 UDB for zOS Version 8 Performance Topics (SG24-6465)bull Microsoft SQL Server to IBM DB2 UDB Conversion Guide (SG24-

6672)bull DB2 for zOS and WebSphere The Perfect Couple (SG24-6319)bull Copying the DB2 UDB for zOS catalog using the COPY utility Copying the DB2 UDB for zOS catalog using the COPY utility

(TIPS0587)(TIPS0587)bull Systems Programmers Guide to Resource Recovery Services (RRS) Systems Programmers Guide to Resource Recovery Services (RRS)

(SG24-6980)(SG24-6980)

IBM Software Group | DB2 Information Management Software

Education

bull DB2 Version 8 Migration Workshopsndash Let us know if you need one

bull DB2 Version 8 Transition classndash CG381 amp CG382

IBM Software Group | DB2 Information Management Software

Education ( Design)

IBM Software Group | DB2 Information Management Software

Education (Development)

IBM Software Group | DB2 Information Management Software

Education ( Administration)

IBM Software Group | DB2 Information Management Software

Education (Troubleshooting)

IBM Software Group | DB2 Information Management Software

Intelligent Visual Explain

bull Where to obtain the codebull httpwwwibmcomsoftwaredatadb2zososcvebull Fixpack 7 available nowbull Key prerequisites

ndash Windows NT Version 40 Windows 2000 or Windows XPndash 150 MB of hard disk spacendash 256 MB of RAMndash Pentium III equivalent or abovendash Either DB2 ConnecttradePersonal Edition Version 7 (or later) or DB2

Client Application Enablertrade(CAE) with a DB2 Connect Enterprise Edition Version 7 (or later) gateway installed

ndash A TCPIP connection to a DB2 for zOS Version 7 or Version 8 host system

ndash A java-enabled browser to view HTML files

IBM Software Group | DB2 Information Management Software

Reference URLs

httpwwwibmcomsoftwaredatadb2zosindexhtmlDB2 for zOS

httpwww-306ibmcomsoftwaredatadb2zossupporthtmlDB2 for zOS technical support page

httpwww-306ibmcomsoftwaredatadb2zososcveindexhtmlDB2 VE download

httpwwwunicodeorg Unicode Home pagehttpwwwunicodeorgunicodestandardprincipleshtmlThe Unicode Standard amp Basic Principlesftpftpsoftwareibmcomsoftwaredatadb2zosdppdpdfDB2 for zOS Distribute Performance analysisftpftpsoftwareibmcomsoftwaredb2storedproceduredb2zos390techdocsH01PDFDB2-Java Performance and Tuning

IBM Software Group | DB2 Information Management Software

Reference URLs

www-106ibmcomdeveloperworksdb2librarytecharticle0203shibamiya0203shibamiya2htmlInsert vs Load Performance White paper

IBM Software Group | DB2 Information Management Software

Acknowledgements to My Friends

Mark Wilson ndash DB2 Product Introduction CenterAkira Shibamiya - SVLCurt Cotner ndash SVLJohn Campbell ndash SVL

Page 30: Slide 1 - Parallels Plesk Control Panel 8.6.0

IBM Software Group | DB2 Information Management Software

Virtual Storage items

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

Java Universal Driver

bull Significant reengineering of Java support for DB2 Connect CAE and DB2 for OS390 and zOS client softwarendash Uses DRDA protocols for all client communication

ndash Eliminates DB2RA and net driver protocols

ndash Traditional DB2 client configuration (CCA) is optional

ndash Much better handling of different clientserver software levels

ndash Improved DB2 Connect consistencyperformance

ndash much higher percentage of common code

ndash fewer unique code paths for specific hardware configurations

ndash Several significant improvements to DRDA

ndash support for long SQL names and statements

ndash DRDA query block sizes can now be up to 2M bytes

ndash rely on server-supplied stored procedures for SQL error messagesdatabase metadata etc

ndash many internal performance improvements

IBM Software Group | DB2 Information Management Software

Java Universal Driver

bull Why use itndash Legacy Drivers functionally stabilized amp will be deprecated

ndash Single driver for all platforms

ndash Client Accounting String

ndash Performance monitor methods

ndash Better performance

IBM Software Group | DB2 Information Management Software

SQLJ usage is increasing

bull Static SQL performance for Java applicationsndash less code written by the application programmer

ndash resulting code is easier to maintain

ndash significant performance advantage over JDBC

ndash Static SQL authorization model

bull Provides Java with a stronger authorization modelndash Monitoringmanageability

ndash static SQL packages for accountingmonitoring

bull Static SQL locks in access path so that access path changes dont occur without a conscious choice

IBM Software Group | DB2 Information Management Software

JDBC vs SQLJ example

bull Retrieve a single row from DB2bull SQLJ

sql [con] SELECT ADDRESS INTO addr FROM EMP WHERE NAME=name

bull JDBCjavasqlPreparedStatement ps = conprepareStatement(SELECT ADDRESS FROM EMP WHERE NAME=)pssetString(1 name)javasqlResultSet names = psexecuteQuery()namesnext()addr = namesgetString(1)namesclose()

bull -- portable across platforms and DBMSsbull -- compilebind time schema checkingbull -- static SQL performance and authorizationbull -- concisebull -- strong typing

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

DB2 Futures

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

DB2 Redbooks - 2Q 2004 httpwwwibmcomredbooks

bull Business Performance Management Meets Business Intelligence (SG24-6340)

bull The Business Value of DB2 UDB for zOS (SG24-6763)bull Data Mart Consolidation Getting Control of Your Enterprise

Information(SG24-6653)bull DB2 UDB for zOS Version 8 Performance Topics (SG24-6465)bull Microsoft SQL Server to IBM DB2 UDB Conversion Guide (SG24-

6672)bull DB2 for zOS and WebSphere The Perfect Couple (SG24-6319)bull Copying the DB2 UDB for zOS catalog using the COPY utility Copying the DB2 UDB for zOS catalog using the COPY utility

(TIPS0587)(TIPS0587)bull Systems Programmers Guide to Resource Recovery Services (RRS) Systems Programmers Guide to Resource Recovery Services (RRS)

(SG24-6980)(SG24-6980)

IBM Software Group | DB2 Information Management Software

Education

bull DB2 Version 8 Migration Workshopsndash Let us know if you need one

bull DB2 Version 8 Transition classndash CG381 amp CG382

IBM Software Group | DB2 Information Management Software

Education ( Design)

IBM Software Group | DB2 Information Management Software

Education (Development)

IBM Software Group | DB2 Information Management Software

Education ( Administration)

IBM Software Group | DB2 Information Management Software

Education (Troubleshooting)

IBM Software Group | DB2 Information Management Software

Intelligent Visual Explain

bull Where to obtain the codebull httpwwwibmcomsoftwaredatadb2zososcvebull Fixpack 7 available nowbull Key prerequisites

ndash Windows NT Version 40 Windows 2000 or Windows XPndash 150 MB of hard disk spacendash 256 MB of RAMndash Pentium III equivalent or abovendash Either DB2 ConnecttradePersonal Edition Version 7 (or later) or DB2

Client Application Enablertrade(CAE) with a DB2 Connect Enterprise Edition Version 7 (or later) gateway installed

ndash A TCPIP connection to a DB2 for zOS Version 7 or Version 8 host system

ndash A java-enabled browser to view HTML files

IBM Software Group | DB2 Information Management Software

Reference URLs

httpwwwibmcomsoftwaredatadb2zosindexhtmlDB2 for zOS

httpwww-306ibmcomsoftwaredatadb2zossupporthtmlDB2 for zOS technical support page

httpwww-306ibmcomsoftwaredatadb2zososcveindexhtmlDB2 VE download

httpwwwunicodeorg Unicode Home pagehttpwwwunicodeorgunicodestandardprincipleshtmlThe Unicode Standard amp Basic Principlesftpftpsoftwareibmcomsoftwaredatadb2zosdppdpdfDB2 for zOS Distribute Performance analysisftpftpsoftwareibmcomsoftwaredb2storedproceduredb2zos390techdocsH01PDFDB2-Java Performance and Tuning

IBM Software Group | DB2 Information Management Software

Reference URLs

www-106ibmcomdeveloperworksdb2librarytecharticle0203shibamiya0203shibamiya2htmlInsert vs Load Performance White paper

IBM Software Group | DB2 Information Management Software

Acknowledgements to My Friends

Mark Wilson ndash DB2 Product Introduction CenterAkira Shibamiya - SVLCurt Cotner ndash SVLJohn Campbell ndash SVL

Page 31: Slide 1 - Parallels Plesk Control Panel 8.6.0

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

Java Universal Driver

bull Significant reengineering of Java support for DB2 Connect CAE and DB2 for OS390 and zOS client softwarendash Uses DRDA protocols for all client communication

ndash Eliminates DB2RA and net driver protocols

ndash Traditional DB2 client configuration (CCA) is optional

ndash Much better handling of different clientserver software levels

ndash Improved DB2 Connect consistencyperformance

ndash much higher percentage of common code

ndash fewer unique code paths for specific hardware configurations

ndash Several significant improvements to DRDA

ndash support for long SQL names and statements

ndash DRDA query block sizes can now be up to 2M bytes

ndash rely on server-supplied stored procedures for SQL error messagesdatabase metadata etc

ndash many internal performance improvements

IBM Software Group | DB2 Information Management Software

Java Universal Driver

bull Why use itndash Legacy Drivers functionally stabilized amp will be deprecated

ndash Single driver for all platforms

ndash Client Accounting String

ndash Performance monitor methods

ndash Better performance

IBM Software Group | DB2 Information Management Software

SQLJ usage is increasing

bull Static SQL performance for Java applicationsndash less code written by the application programmer

ndash resulting code is easier to maintain

ndash significant performance advantage over JDBC

ndash Static SQL authorization model

bull Provides Java with a stronger authorization modelndash Monitoringmanageability

ndash static SQL packages for accountingmonitoring

bull Static SQL locks in access path so that access path changes dont occur without a conscious choice

IBM Software Group | DB2 Information Management Software

JDBC vs SQLJ example

bull Retrieve a single row from DB2bull SQLJ

sql [con] SELECT ADDRESS INTO addr FROM EMP WHERE NAME=name

bull JDBCjavasqlPreparedStatement ps = conprepareStatement(SELECT ADDRESS FROM EMP WHERE NAME=)pssetString(1 name)javasqlResultSet names = psexecuteQuery()namesnext()addr = namesgetString(1)namesclose()

bull -- portable across platforms and DBMSsbull -- compilebind time schema checkingbull -- static SQL performance and authorizationbull -- concisebull -- strong typing

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

DB2 Futures

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

DB2 Redbooks - 2Q 2004 httpwwwibmcomredbooks

bull Business Performance Management Meets Business Intelligence (SG24-6340)

bull The Business Value of DB2 UDB for zOS (SG24-6763)bull Data Mart Consolidation Getting Control of Your Enterprise

Information(SG24-6653)bull DB2 UDB for zOS Version 8 Performance Topics (SG24-6465)bull Microsoft SQL Server to IBM DB2 UDB Conversion Guide (SG24-

6672)bull DB2 for zOS and WebSphere The Perfect Couple (SG24-6319)bull Copying the DB2 UDB for zOS catalog using the COPY utility Copying the DB2 UDB for zOS catalog using the COPY utility

(TIPS0587)(TIPS0587)bull Systems Programmers Guide to Resource Recovery Services (RRS) Systems Programmers Guide to Resource Recovery Services (RRS)

(SG24-6980)(SG24-6980)

IBM Software Group | DB2 Information Management Software

Education

bull DB2 Version 8 Migration Workshopsndash Let us know if you need one

bull DB2 Version 8 Transition classndash CG381 amp CG382

IBM Software Group | DB2 Information Management Software

Education ( Design)

IBM Software Group | DB2 Information Management Software

Education (Development)

IBM Software Group | DB2 Information Management Software

Education ( Administration)

IBM Software Group | DB2 Information Management Software

Education (Troubleshooting)

IBM Software Group | DB2 Information Management Software

Intelligent Visual Explain

bull Where to obtain the codebull httpwwwibmcomsoftwaredatadb2zososcvebull Fixpack 7 available nowbull Key prerequisites

ndash Windows NT Version 40 Windows 2000 or Windows XPndash 150 MB of hard disk spacendash 256 MB of RAMndash Pentium III equivalent or abovendash Either DB2 ConnecttradePersonal Edition Version 7 (or later) or DB2

Client Application Enablertrade(CAE) with a DB2 Connect Enterprise Edition Version 7 (or later) gateway installed

ndash A TCPIP connection to a DB2 for zOS Version 7 or Version 8 host system

ndash A java-enabled browser to view HTML files

IBM Software Group | DB2 Information Management Software

Reference URLs

httpwwwibmcomsoftwaredatadb2zosindexhtmlDB2 for zOS

httpwww-306ibmcomsoftwaredatadb2zossupporthtmlDB2 for zOS technical support page

httpwww-306ibmcomsoftwaredatadb2zososcveindexhtmlDB2 VE download

httpwwwunicodeorg Unicode Home pagehttpwwwunicodeorgunicodestandardprincipleshtmlThe Unicode Standard amp Basic Principlesftpftpsoftwareibmcomsoftwaredatadb2zosdppdpdfDB2 for zOS Distribute Performance analysisftpftpsoftwareibmcomsoftwaredb2storedproceduredb2zos390techdocsH01PDFDB2-Java Performance and Tuning

IBM Software Group | DB2 Information Management Software

Reference URLs

www-106ibmcomdeveloperworksdb2librarytecharticle0203shibamiya0203shibamiya2htmlInsert vs Load Performance White paper

IBM Software Group | DB2 Information Management Software

Acknowledgements to My Friends

Mark Wilson ndash DB2 Product Introduction CenterAkira Shibamiya - SVLCurt Cotner ndash SVLJohn Campbell ndash SVL

Page 32: Slide 1 - Parallels Plesk Control Panel 8.6.0

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

Java Universal Driver

bull Significant reengineering of Java support for DB2 Connect CAE and DB2 for OS390 and zOS client softwarendash Uses DRDA protocols for all client communication

ndash Eliminates DB2RA and net driver protocols

ndash Traditional DB2 client configuration (CCA) is optional

ndash Much better handling of different clientserver software levels

ndash Improved DB2 Connect consistencyperformance

ndash much higher percentage of common code

ndash fewer unique code paths for specific hardware configurations

ndash Several significant improvements to DRDA

ndash support for long SQL names and statements

ndash DRDA query block sizes can now be up to 2M bytes

ndash rely on server-supplied stored procedures for SQL error messagesdatabase metadata etc

ndash many internal performance improvements

IBM Software Group | DB2 Information Management Software

Java Universal Driver

bull Why use itndash Legacy Drivers functionally stabilized amp will be deprecated

ndash Single driver for all platforms

ndash Client Accounting String

ndash Performance monitor methods

ndash Better performance

IBM Software Group | DB2 Information Management Software

SQLJ usage is increasing

bull Static SQL performance for Java applicationsndash less code written by the application programmer

ndash resulting code is easier to maintain

ndash significant performance advantage over JDBC

ndash Static SQL authorization model

bull Provides Java with a stronger authorization modelndash Monitoringmanageability

ndash static SQL packages for accountingmonitoring

bull Static SQL locks in access path so that access path changes dont occur without a conscious choice

IBM Software Group | DB2 Information Management Software

JDBC vs SQLJ example

bull Retrieve a single row from DB2bull SQLJ

sql [con] SELECT ADDRESS INTO addr FROM EMP WHERE NAME=name

bull JDBCjavasqlPreparedStatement ps = conprepareStatement(SELECT ADDRESS FROM EMP WHERE NAME=)pssetString(1 name)javasqlResultSet names = psexecuteQuery()namesnext()addr = namesgetString(1)namesclose()

bull -- portable across platforms and DBMSsbull -- compilebind time schema checkingbull -- static SQL performance and authorizationbull -- concisebull -- strong typing

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

DB2 Futures

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

DB2 Redbooks - 2Q 2004 httpwwwibmcomredbooks

bull Business Performance Management Meets Business Intelligence (SG24-6340)

bull The Business Value of DB2 UDB for zOS (SG24-6763)bull Data Mart Consolidation Getting Control of Your Enterprise

Information(SG24-6653)bull DB2 UDB for zOS Version 8 Performance Topics (SG24-6465)bull Microsoft SQL Server to IBM DB2 UDB Conversion Guide (SG24-

6672)bull DB2 for zOS and WebSphere The Perfect Couple (SG24-6319)bull Copying the DB2 UDB for zOS catalog using the COPY utility Copying the DB2 UDB for zOS catalog using the COPY utility

(TIPS0587)(TIPS0587)bull Systems Programmers Guide to Resource Recovery Services (RRS) Systems Programmers Guide to Resource Recovery Services (RRS)

(SG24-6980)(SG24-6980)

IBM Software Group | DB2 Information Management Software

Education

bull DB2 Version 8 Migration Workshopsndash Let us know if you need one

bull DB2 Version 8 Transition classndash CG381 amp CG382

IBM Software Group | DB2 Information Management Software

Education ( Design)

IBM Software Group | DB2 Information Management Software

Education (Development)

IBM Software Group | DB2 Information Management Software

Education ( Administration)

IBM Software Group | DB2 Information Management Software

Education (Troubleshooting)

IBM Software Group | DB2 Information Management Software

Intelligent Visual Explain

bull Where to obtain the codebull httpwwwibmcomsoftwaredatadb2zososcvebull Fixpack 7 available nowbull Key prerequisites

ndash Windows NT Version 40 Windows 2000 or Windows XPndash 150 MB of hard disk spacendash 256 MB of RAMndash Pentium III equivalent or abovendash Either DB2 ConnecttradePersonal Edition Version 7 (or later) or DB2

Client Application Enablertrade(CAE) with a DB2 Connect Enterprise Edition Version 7 (or later) gateway installed

ndash A TCPIP connection to a DB2 for zOS Version 7 or Version 8 host system

ndash A java-enabled browser to view HTML files

IBM Software Group | DB2 Information Management Software

Reference URLs

httpwwwibmcomsoftwaredatadb2zosindexhtmlDB2 for zOS

httpwww-306ibmcomsoftwaredatadb2zossupporthtmlDB2 for zOS technical support page

httpwww-306ibmcomsoftwaredatadb2zososcveindexhtmlDB2 VE download

httpwwwunicodeorg Unicode Home pagehttpwwwunicodeorgunicodestandardprincipleshtmlThe Unicode Standard amp Basic Principlesftpftpsoftwareibmcomsoftwaredatadb2zosdppdpdfDB2 for zOS Distribute Performance analysisftpftpsoftwareibmcomsoftwaredb2storedproceduredb2zos390techdocsH01PDFDB2-Java Performance and Tuning

IBM Software Group | DB2 Information Management Software

Reference URLs

www-106ibmcomdeveloperworksdb2librarytecharticle0203shibamiya0203shibamiya2htmlInsert vs Load Performance White paper

IBM Software Group | DB2 Information Management Software

Acknowledgements to My Friends

Mark Wilson ndash DB2 Product Introduction CenterAkira Shibamiya - SVLCurt Cotner ndash SVLJohn Campbell ndash SVL

Page 33: Slide 1 - Parallels Plesk Control Panel 8.6.0

IBM Software Group | DB2 Information Management Software

Java Universal Driver

bull Significant reengineering of Java support for DB2 Connect CAE and DB2 for OS390 and zOS client softwarendash Uses DRDA protocols for all client communication

ndash Eliminates DB2RA and net driver protocols

ndash Traditional DB2 client configuration (CCA) is optional

ndash Much better handling of different clientserver software levels

ndash Improved DB2 Connect consistencyperformance

ndash much higher percentage of common code

ndash fewer unique code paths for specific hardware configurations

ndash Several significant improvements to DRDA

ndash support for long SQL names and statements

ndash DRDA query block sizes can now be up to 2M bytes

ndash rely on server-supplied stored procedures for SQL error messagesdatabase metadata etc

ndash many internal performance improvements

IBM Software Group | DB2 Information Management Software

Java Universal Driver

bull Why use itndash Legacy Drivers functionally stabilized amp will be deprecated

ndash Single driver for all platforms

ndash Client Accounting String

ndash Performance monitor methods

ndash Better performance

IBM Software Group | DB2 Information Management Software

SQLJ usage is increasing

bull Static SQL performance for Java applicationsndash less code written by the application programmer

ndash resulting code is easier to maintain

ndash significant performance advantage over JDBC

ndash Static SQL authorization model

bull Provides Java with a stronger authorization modelndash Monitoringmanageability

ndash static SQL packages for accountingmonitoring

bull Static SQL locks in access path so that access path changes dont occur without a conscious choice

IBM Software Group | DB2 Information Management Software

JDBC vs SQLJ example

bull Retrieve a single row from DB2bull SQLJ

sql [con] SELECT ADDRESS INTO addr FROM EMP WHERE NAME=name

bull JDBCjavasqlPreparedStatement ps = conprepareStatement(SELECT ADDRESS FROM EMP WHERE NAME=)pssetString(1 name)javasqlResultSet names = psexecuteQuery()namesnext()addr = namesgetString(1)namesclose()

bull -- portable across platforms and DBMSsbull -- compilebind time schema checkingbull -- static SQL performance and authorizationbull -- concisebull -- strong typing

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

DB2 Futures

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

DB2 Redbooks - 2Q 2004 httpwwwibmcomredbooks

bull Business Performance Management Meets Business Intelligence (SG24-6340)

bull The Business Value of DB2 UDB for zOS (SG24-6763)bull Data Mart Consolidation Getting Control of Your Enterprise

Information(SG24-6653)bull DB2 UDB for zOS Version 8 Performance Topics (SG24-6465)bull Microsoft SQL Server to IBM DB2 UDB Conversion Guide (SG24-

6672)bull DB2 for zOS and WebSphere The Perfect Couple (SG24-6319)bull Copying the DB2 UDB for zOS catalog using the COPY utility Copying the DB2 UDB for zOS catalog using the COPY utility

(TIPS0587)(TIPS0587)bull Systems Programmers Guide to Resource Recovery Services (RRS) Systems Programmers Guide to Resource Recovery Services (RRS)

(SG24-6980)(SG24-6980)

IBM Software Group | DB2 Information Management Software

Education

bull DB2 Version 8 Migration Workshopsndash Let us know if you need one

bull DB2 Version 8 Transition classndash CG381 amp CG382

IBM Software Group | DB2 Information Management Software

Education ( Design)

IBM Software Group | DB2 Information Management Software

Education (Development)

IBM Software Group | DB2 Information Management Software

Education ( Administration)

IBM Software Group | DB2 Information Management Software

Education (Troubleshooting)

IBM Software Group | DB2 Information Management Software

Intelligent Visual Explain

bull Where to obtain the codebull httpwwwibmcomsoftwaredatadb2zososcvebull Fixpack 7 available nowbull Key prerequisites

ndash Windows NT Version 40 Windows 2000 or Windows XPndash 150 MB of hard disk spacendash 256 MB of RAMndash Pentium III equivalent or abovendash Either DB2 ConnecttradePersonal Edition Version 7 (or later) or DB2

Client Application Enablertrade(CAE) with a DB2 Connect Enterprise Edition Version 7 (or later) gateway installed

ndash A TCPIP connection to a DB2 for zOS Version 7 or Version 8 host system

ndash A java-enabled browser to view HTML files

IBM Software Group | DB2 Information Management Software

Reference URLs

httpwwwibmcomsoftwaredatadb2zosindexhtmlDB2 for zOS

httpwww-306ibmcomsoftwaredatadb2zossupporthtmlDB2 for zOS technical support page

httpwww-306ibmcomsoftwaredatadb2zososcveindexhtmlDB2 VE download

httpwwwunicodeorg Unicode Home pagehttpwwwunicodeorgunicodestandardprincipleshtmlThe Unicode Standard amp Basic Principlesftpftpsoftwareibmcomsoftwaredatadb2zosdppdpdfDB2 for zOS Distribute Performance analysisftpftpsoftwareibmcomsoftwaredb2storedproceduredb2zos390techdocsH01PDFDB2-Java Performance and Tuning

IBM Software Group | DB2 Information Management Software

Reference URLs

www-106ibmcomdeveloperworksdb2librarytecharticle0203shibamiya0203shibamiya2htmlInsert vs Load Performance White paper

IBM Software Group | DB2 Information Management Software

Acknowledgements to My Friends

Mark Wilson ndash DB2 Product Introduction CenterAkira Shibamiya - SVLCurt Cotner ndash SVLJohn Campbell ndash SVL

Page 34: Slide 1 - Parallels Plesk Control Panel 8.6.0

IBM Software Group | DB2 Information Management Software

Java Universal Driver

bull Why use itndash Legacy Drivers functionally stabilized amp will be deprecated

ndash Single driver for all platforms

ndash Client Accounting String

ndash Performance monitor methods

ndash Better performance

IBM Software Group | DB2 Information Management Software

SQLJ usage is increasing

bull Static SQL performance for Java applicationsndash less code written by the application programmer

ndash resulting code is easier to maintain

ndash significant performance advantage over JDBC

ndash Static SQL authorization model

bull Provides Java with a stronger authorization modelndash Monitoringmanageability

ndash static SQL packages for accountingmonitoring

bull Static SQL locks in access path so that access path changes dont occur without a conscious choice

IBM Software Group | DB2 Information Management Software

JDBC vs SQLJ example

bull Retrieve a single row from DB2bull SQLJ

sql [con] SELECT ADDRESS INTO addr FROM EMP WHERE NAME=name

bull JDBCjavasqlPreparedStatement ps = conprepareStatement(SELECT ADDRESS FROM EMP WHERE NAME=)pssetString(1 name)javasqlResultSet names = psexecuteQuery()namesnext()addr = namesgetString(1)namesclose()

bull -- portable across platforms and DBMSsbull -- compilebind time schema checkingbull -- static SQL performance and authorizationbull -- concisebull -- strong typing

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

DB2 Futures

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

DB2 Redbooks - 2Q 2004 httpwwwibmcomredbooks

bull Business Performance Management Meets Business Intelligence (SG24-6340)

bull The Business Value of DB2 UDB for zOS (SG24-6763)bull Data Mart Consolidation Getting Control of Your Enterprise

Information(SG24-6653)bull DB2 UDB for zOS Version 8 Performance Topics (SG24-6465)bull Microsoft SQL Server to IBM DB2 UDB Conversion Guide (SG24-

6672)bull DB2 for zOS and WebSphere The Perfect Couple (SG24-6319)bull Copying the DB2 UDB for zOS catalog using the COPY utility Copying the DB2 UDB for zOS catalog using the COPY utility

(TIPS0587)(TIPS0587)bull Systems Programmers Guide to Resource Recovery Services (RRS) Systems Programmers Guide to Resource Recovery Services (RRS)

(SG24-6980)(SG24-6980)

IBM Software Group | DB2 Information Management Software

Education

bull DB2 Version 8 Migration Workshopsndash Let us know if you need one

bull DB2 Version 8 Transition classndash CG381 amp CG382

IBM Software Group | DB2 Information Management Software

Education ( Design)

IBM Software Group | DB2 Information Management Software

Education (Development)

IBM Software Group | DB2 Information Management Software

Education ( Administration)

IBM Software Group | DB2 Information Management Software

Education (Troubleshooting)

IBM Software Group | DB2 Information Management Software

Intelligent Visual Explain

bull Where to obtain the codebull httpwwwibmcomsoftwaredatadb2zososcvebull Fixpack 7 available nowbull Key prerequisites

ndash Windows NT Version 40 Windows 2000 or Windows XPndash 150 MB of hard disk spacendash 256 MB of RAMndash Pentium III equivalent or abovendash Either DB2 ConnecttradePersonal Edition Version 7 (or later) or DB2

Client Application Enablertrade(CAE) with a DB2 Connect Enterprise Edition Version 7 (or later) gateway installed

ndash A TCPIP connection to a DB2 for zOS Version 7 or Version 8 host system

ndash A java-enabled browser to view HTML files

IBM Software Group | DB2 Information Management Software

Reference URLs

httpwwwibmcomsoftwaredatadb2zosindexhtmlDB2 for zOS

httpwww-306ibmcomsoftwaredatadb2zossupporthtmlDB2 for zOS technical support page

httpwww-306ibmcomsoftwaredatadb2zososcveindexhtmlDB2 VE download

httpwwwunicodeorg Unicode Home pagehttpwwwunicodeorgunicodestandardprincipleshtmlThe Unicode Standard amp Basic Principlesftpftpsoftwareibmcomsoftwaredatadb2zosdppdpdfDB2 for zOS Distribute Performance analysisftpftpsoftwareibmcomsoftwaredb2storedproceduredb2zos390techdocsH01PDFDB2-Java Performance and Tuning

IBM Software Group | DB2 Information Management Software

Reference URLs

www-106ibmcomdeveloperworksdb2librarytecharticle0203shibamiya0203shibamiya2htmlInsert vs Load Performance White paper

IBM Software Group | DB2 Information Management Software

Acknowledgements to My Friends

Mark Wilson ndash DB2 Product Introduction CenterAkira Shibamiya - SVLCurt Cotner ndash SVLJohn Campbell ndash SVL

Page 35: Slide 1 - Parallels Plesk Control Panel 8.6.0

IBM Software Group | DB2 Information Management Software

SQLJ usage is increasing

bull Static SQL performance for Java applicationsndash less code written by the application programmer

ndash resulting code is easier to maintain

ndash significant performance advantage over JDBC

ndash Static SQL authorization model

bull Provides Java with a stronger authorization modelndash Monitoringmanageability

ndash static SQL packages for accountingmonitoring

bull Static SQL locks in access path so that access path changes dont occur without a conscious choice

IBM Software Group | DB2 Information Management Software

JDBC vs SQLJ example

bull Retrieve a single row from DB2bull SQLJ

sql [con] SELECT ADDRESS INTO addr FROM EMP WHERE NAME=name

bull JDBCjavasqlPreparedStatement ps = conprepareStatement(SELECT ADDRESS FROM EMP WHERE NAME=)pssetString(1 name)javasqlResultSet names = psexecuteQuery()namesnext()addr = namesgetString(1)namesclose()

bull -- portable across platforms and DBMSsbull -- compilebind time schema checkingbull -- static SQL performance and authorizationbull -- concisebull -- strong typing

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

DB2 Futures

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

DB2 Redbooks - 2Q 2004 httpwwwibmcomredbooks

bull Business Performance Management Meets Business Intelligence (SG24-6340)

bull The Business Value of DB2 UDB for zOS (SG24-6763)bull Data Mart Consolidation Getting Control of Your Enterprise

Information(SG24-6653)bull DB2 UDB for zOS Version 8 Performance Topics (SG24-6465)bull Microsoft SQL Server to IBM DB2 UDB Conversion Guide (SG24-

6672)bull DB2 for zOS and WebSphere The Perfect Couple (SG24-6319)bull Copying the DB2 UDB for zOS catalog using the COPY utility Copying the DB2 UDB for zOS catalog using the COPY utility

(TIPS0587)(TIPS0587)bull Systems Programmers Guide to Resource Recovery Services (RRS) Systems Programmers Guide to Resource Recovery Services (RRS)

(SG24-6980)(SG24-6980)

IBM Software Group | DB2 Information Management Software

Education

bull DB2 Version 8 Migration Workshopsndash Let us know if you need one

bull DB2 Version 8 Transition classndash CG381 amp CG382

IBM Software Group | DB2 Information Management Software

Education ( Design)

IBM Software Group | DB2 Information Management Software

Education (Development)

IBM Software Group | DB2 Information Management Software

Education ( Administration)

IBM Software Group | DB2 Information Management Software

Education (Troubleshooting)

IBM Software Group | DB2 Information Management Software

Intelligent Visual Explain

bull Where to obtain the codebull httpwwwibmcomsoftwaredatadb2zososcvebull Fixpack 7 available nowbull Key prerequisites

ndash Windows NT Version 40 Windows 2000 or Windows XPndash 150 MB of hard disk spacendash 256 MB of RAMndash Pentium III equivalent or abovendash Either DB2 ConnecttradePersonal Edition Version 7 (or later) or DB2

Client Application Enablertrade(CAE) with a DB2 Connect Enterprise Edition Version 7 (or later) gateway installed

ndash A TCPIP connection to a DB2 for zOS Version 7 or Version 8 host system

ndash A java-enabled browser to view HTML files

IBM Software Group | DB2 Information Management Software

Reference URLs

httpwwwibmcomsoftwaredatadb2zosindexhtmlDB2 for zOS

httpwww-306ibmcomsoftwaredatadb2zossupporthtmlDB2 for zOS technical support page

httpwww-306ibmcomsoftwaredatadb2zososcveindexhtmlDB2 VE download

httpwwwunicodeorg Unicode Home pagehttpwwwunicodeorgunicodestandardprincipleshtmlThe Unicode Standard amp Basic Principlesftpftpsoftwareibmcomsoftwaredatadb2zosdppdpdfDB2 for zOS Distribute Performance analysisftpftpsoftwareibmcomsoftwaredb2storedproceduredb2zos390techdocsH01PDFDB2-Java Performance and Tuning

IBM Software Group | DB2 Information Management Software

Reference URLs

www-106ibmcomdeveloperworksdb2librarytecharticle0203shibamiya0203shibamiya2htmlInsert vs Load Performance White paper

IBM Software Group | DB2 Information Management Software

Acknowledgements to My Friends

Mark Wilson ndash DB2 Product Introduction CenterAkira Shibamiya - SVLCurt Cotner ndash SVLJohn Campbell ndash SVL

Page 36: Slide 1 - Parallels Plesk Control Panel 8.6.0

IBM Software Group | DB2 Information Management Software

JDBC vs SQLJ example

bull Retrieve a single row from DB2bull SQLJ

sql [con] SELECT ADDRESS INTO addr FROM EMP WHERE NAME=name

bull JDBCjavasqlPreparedStatement ps = conprepareStatement(SELECT ADDRESS FROM EMP WHERE NAME=)pssetString(1 name)javasqlResultSet names = psexecuteQuery()namesnext()addr = namesgetString(1)namesclose()

bull -- portable across platforms and DBMSsbull -- compilebind time schema checkingbull -- static SQL performance and authorizationbull -- concisebull -- strong typing

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

DB2 Futures

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

DB2 Redbooks - 2Q 2004 httpwwwibmcomredbooks

bull Business Performance Management Meets Business Intelligence (SG24-6340)

bull The Business Value of DB2 UDB for zOS (SG24-6763)bull Data Mart Consolidation Getting Control of Your Enterprise

Information(SG24-6653)bull DB2 UDB for zOS Version 8 Performance Topics (SG24-6465)bull Microsoft SQL Server to IBM DB2 UDB Conversion Guide (SG24-

6672)bull DB2 for zOS and WebSphere The Perfect Couple (SG24-6319)bull Copying the DB2 UDB for zOS catalog using the COPY utility Copying the DB2 UDB for zOS catalog using the COPY utility

(TIPS0587)(TIPS0587)bull Systems Programmers Guide to Resource Recovery Services (RRS) Systems Programmers Guide to Resource Recovery Services (RRS)

(SG24-6980)(SG24-6980)

IBM Software Group | DB2 Information Management Software

Education

bull DB2 Version 8 Migration Workshopsndash Let us know if you need one

bull DB2 Version 8 Transition classndash CG381 amp CG382

IBM Software Group | DB2 Information Management Software

Education ( Design)

IBM Software Group | DB2 Information Management Software

Education (Development)

IBM Software Group | DB2 Information Management Software

Education ( Administration)

IBM Software Group | DB2 Information Management Software

Education (Troubleshooting)

IBM Software Group | DB2 Information Management Software

Intelligent Visual Explain

bull Where to obtain the codebull httpwwwibmcomsoftwaredatadb2zososcvebull Fixpack 7 available nowbull Key prerequisites

ndash Windows NT Version 40 Windows 2000 or Windows XPndash 150 MB of hard disk spacendash 256 MB of RAMndash Pentium III equivalent or abovendash Either DB2 ConnecttradePersonal Edition Version 7 (or later) or DB2

Client Application Enablertrade(CAE) with a DB2 Connect Enterprise Edition Version 7 (or later) gateway installed

ndash A TCPIP connection to a DB2 for zOS Version 7 or Version 8 host system

ndash A java-enabled browser to view HTML files

IBM Software Group | DB2 Information Management Software

Reference URLs

httpwwwibmcomsoftwaredatadb2zosindexhtmlDB2 for zOS

httpwww-306ibmcomsoftwaredatadb2zossupporthtmlDB2 for zOS technical support page

httpwww-306ibmcomsoftwaredatadb2zososcveindexhtmlDB2 VE download

httpwwwunicodeorg Unicode Home pagehttpwwwunicodeorgunicodestandardprincipleshtmlThe Unicode Standard amp Basic Principlesftpftpsoftwareibmcomsoftwaredatadb2zosdppdpdfDB2 for zOS Distribute Performance analysisftpftpsoftwareibmcomsoftwaredb2storedproceduredb2zos390techdocsH01PDFDB2-Java Performance and Tuning

IBM Software Group | DB2 Information Management Software

Reference URLs

www-106ibmcomdeveloperworksdb2librarytecharticle0203shibamiya0203shibamiya2htmlInsert vs Load Performance White paper

IBM Software Group | DB2 Information Management Software

Acknowledgements to My Friends

Mark Wilson ndash DB2 Product Introduction CenterAkira Shibamiya - SVLCurt Cotner ndash SVLJohn Campbell ndash SVL

Page 37: Slide 1 - Parallels Plesk Control Panel 8.6.0

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

DB2 Futures

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

DB2 Redbooks - 2Q 2004 httpwwwibmcomredbooks

bull Business Performance Management Meets Business Intelligence (SG24-6340)

bull The Business Value of DB2 UDB for zOS (SG24-6763)bull Data Mart Consolidation Getting Control of Your Enterprise

Information(SG24-6653)bull DB2 UDB for zOS Version 8 Performance Topics (SG24-6465)bull Microsoft SQL Server to IBM DB2 UDB Conversion Guide (SG24-

6672)bull DB2 for zOS and WebSphere The Perfect Couple (SG24-6319)bull Copying the DB2 UDB for zOS catalog using the COPY utility Copying the DB2 UDB for zOS catalog using the COPY utility

(TIPS0587)(TIPS0587)bull Systems Programmers Guide to Resource Recovery Services (RRS) Systems Programmers Guide to Resource Recovery Services (RRS)

(SG24-6980)(SG24-6980)

IBM Software Group | DB2 Information Management Software

Education

bull DB2 Version 8 Migration Workshopsndash Let us know if you need one

bull DB2 Version 8 Transition classndash CG381 amp CG382

IBM Software Group | DB2 Information Management Software

Education ( Design)

IBM Software Group | DB2 Information Management Software

Education (Development)

IBM Software Group | DB2 Information Management Software

Education ( Administration)

IBM Software Group | DB2 Information Management Software

Education (Troubleshooting)

IBM Software Group | DB2 Information Management Software

Intelligent Visual Explain

bull Where to obtain the codebull httpwwwibmcomsoftwaredatadb2zososcvebull Fixpack 7 available nowbull Key prerequisites

ndash Windows NT Version 40 Windows 2000 or Windows XPndash 150 MB of hard disk spacendash 256 MB of RAMndash Pentium III equivalent or abovendash Either DB2 ConnecttradePersonal Edition Version 7 (or later) or DB2

Client Application Enablertrade(CAE) with a DB2 Connect Enterprise Edition Version 7 (or later) gateway installed

ndash A TCPIP connection to a DB2 for zOS Version 7 or Version 8 host system

ndash A java-enabled browser to view HTML files

IBM Software Group | DB2 Information Management Software

Reference URLs

httpwwwibmcomsoftwaredatadb2zosindexhtmlDB2 for zOS

httpwww-306ibmcomsoftwaredatadb2zossupporthtmlDB2 for zOS technical support page

httpwww-306ibmcomsoftwaredatadb2zososcveindexhtmlDB2 VE download

httpwwwunicodeorg Unicode Home pagehttpwwwunicodeorgunicodestandardprincipleshtmlThe Unicode Standard amp Basic Principlesftpftpsoftwareibmcomsoftwaredatadb2zosdppdpdfDB2 for zOS Distribute Performance analysisftpftpsoftwareibmcomsoftwaredb2storedproceduredb2zos390techdocsH01PDFDB2-Java Performance and Tuning

IBM Software Group | DB2 Information Management Software

Reference URLs

www-106ibmcomdeveloperworksdb2librarytecharticle0203shibamiya0203shibamiya2htmlInsert vs Load Performance White paper

IBM Software Group | DB2 Information Management Software

Acknowledgements to My Friends

Mark Wilson ndash DB2 Product Introduction CenterAkira Shibamiya - SVLCurt Cotner ndash SVLJohn Campbell ndash SVL

Page 38: Slide 1 - Parallels Plesk Control Panel 8.6.0

IBM Software Group | DB2 Information Management Software

DB2 Futures

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

DB2 Redbooks - 2Q 2004 httpwwwibmcomredbooks

bull Business Performance Management Meets Business Intelligence (SG24-6340)

bull The Business Value of DB2 UDB for zOS (SG24-6763)bull Data Mart Consolidation Getting Control of Your Enterprise

Information(SG24-6653)bull DB2 UDB for zOS Version 8 Performance Topics (SG24-6465)bull Microsoft SQL Server to IBM DB2 UDB Conversion Guide (SG24-

6672)bull DB2 for zOS and WebSphere The Perfect Couple (SG24-6319)bull Copying the DB2 UDB for zOS catalog using the COPY utility Copying the DB2 UDB for zOS catalog using the COPY utility

(TIPS0587)(TIPS0587)bull Systems Programmers Guide to Resource Recovery Services (RRS) Systems Programmers Guide to Resource Recovery Services (RRS)

(SG24-6980)(SG24-6980)

IBM Software Group | DB2 Information Management Software

Education

bull DB2 Version 8 Migration Workshopsndash Let us know if you need one

bull DB2 Version 8 Transition classndash CG381 amp CG382

IBM Software Group | DB2 Information Management Software

Education ( Design)

IBM Software Group | DB2 Information Management Software

Education (Development)

IBM Software Group | DB2 Information Management Software

Education ( Administration)

IBM Software Group | DB2 Information Management Software

Education (Troubleshooting)

IBM Software Group | DB2 Information Management Software

Intelligent Visual Explain

bull Where to obtain the codebull httpwwwibmcomsoftwaredatadb2zososcvebull Fixpack 7 available nowbull Key prerequisites

ndash Windows NT Version 40 Windows 2000 or Windows XPndash 150 MB of hard disk spacendash 256 MB of RAMndash Pentium III equivalent or abovendash Either DB2 ConnecttradePersonal Edition Version 7 (or later) or DB2

Client Application Enablertrade(CAE) with a DB2 Connect Enterprise Edition Version 7 (or later) gateway installed

ndash A TCPIP connection to a DB2 for zOS Version 7 or Version 8 host system

ndash A java-enabled browser to view HTML files

IBM Software Group | DB2 Information Management Software

Reference URLs

httpwwwibmcomsoftwaredatadb2zosindexhtmlDB2 for zOS

httpwww-306ibmcomsoftwaredatadb2zossupporthtmlDB2 for zOS technical support page

httpwww-306ibmcomsoftwaredatadb2zososcveindexhtmlDB2 VE download

httpwwwunicodeorg Unicode Home pagehttpwwwunicodeorgunicodestandardprincipleshtmlThe Unicode Standard amp Basic Principlesftpftpsoftwareibmcomsoftwaredatadb2zosdppdpdfDB2 for zOS Distribute Performance analysisftpftpsoftwareibmcomsoftwaredb2storedproceduredb2zos390techdocsH01PDFDB2-Java Performance and Tuning

IBM Software Group | DB2 Information Management Software

Reference URLs

www-106ibmcomdeveloperworksdb2librarytecharticle0203shibamiya0203shibamiya2htmlInsert vs Load Performance White paper

IBM Software Group | DB2 Information Management Software

Acknowledgements to My Friends

Mark Wilson ndash DB2 Product Introduction CenterAkira Shibamiya - SVLCurt Cotner ndash SVLJohn Campbell ndash SVL

Page 39: Slide 1 - Parallels Plesk Control Panel 8.6.0

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

DB2 Redbooks - 2Q 2004 httpwwwibmcomredbooks

bull Business Performance Management Meets Business Intelligence (SG24-6340)

bull The Business Value of DB2 UDB for zOS (SG24-6763)bull Data Mart Consolidation Getting Control of Your Enterprise

Information(SG24-6653)bull DB2 UDB for zOS Version 8 Performance Topics (SG24-6465)bull Microsoft SQL Server to IBM DB2 UDB Conversion Guide (SG24-

6672)bull DB2 for zOS and WebSphere The Perfect Couple (SG24-6319)bull Copying the DB2 UDB for zOS catalog using the COPY utility Copying the DB2 UDB for zOS catalog using the COPY utility

(TIPS0587)(TIPS0587)bull Systems Programmers Guide to Resource Recovery Services (RRS) Systems Programmers Guide to Resource Recovery Services (RRS)

(SG24-6980)(SG24-6980)

IBM Software Group | DB2 Information Management Software

Education

bull DB2 Version 8 Migration Workshopsndash Let us know if you need one

bull DB2 Version 8 Transition classndash CG381 amp CG382

IBM Software Group | DB2 Information Management Software

Education ( Design)

IBM Software Group | DB2 Information Management Software

Education (Development)

IBM Software Group | DB2 Information Management Software

Education ( Administration)

IBM Software Group | DB2 Information Management Software

Education (Troubleshooting)

IBM Software Group | DB2 Information Management Software

Intelligent Visual Explain

bull Where to obtain the codebull httpwwwibmcomsoftwaredatadb2zososcvebull Fixpack 7 available nowbull Key prerequisites

ndash Windows NT Version 40 Windows 2000 or Windows XPndash 150 MB of hard disk spacendash 256 MB of RAMndash Pentium III equivalent or abovendash Either DB2 ConnecttradePersonal Edition Version 7 (or later) or DB2

Client Application Enablertrade(CAE) with a DB2 Connect Enterprise Edition Version 7 (or later) gateway installed

ndash A TCPIP connection to a DB2 for zOS Version 7 or Version 8 host system

ndash A java-enabled browser to view HTML files

IBM Software Group | DB2 Information Management Software

Reference URLs

httpwwwibmcomsoftwaredatadb2zosindexhtmlDB2 for zOS

httpwww-306ibmcomsoftwaredatadb2zossupporthtmlDB2 for zOS technical support page

httpwww-306ibmcomsoftwaredatadb2zososcveindexhtmlDB2 VE download

httpwwwunicodeorg Unicode Home pagehttpwwwunicodeorgunicodestandardprincipleshtmlThe Unicode Standard amp Basic Principlesftpftpsoftwareibmcomsoftwaredatadb2zosdppdpdfDB2 for zOS Distribute Performance analysisftpftpsoftwareibmcomsoftwaredb2storedproceduredb2zos390techdocsH01PDFDB2-Java Performance and Tuning

IBM Software Group | DB2 Information Management Software

Reference URLs

www-106ibmcomdeveloperworksdb2librarytecharticle0203shibamiya0203shibamiya2htmlInsert vs Load Performance White paper

IBM Software Group | DB2 Information Management Software

Acknowledgements to My Friends

Mark Wilson ndash DB2 Product Introduction CenterAkira Shibamiya - SVLCurt Cotner ndash SVLJohn Campbell ndash SVL

Page 40: Slide 1 - Parallels Plesk Control Panel 8.6.0

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

DB2 Redbooks - 2Q 2004 httpwwwibmcomredbooks

bull Business Performance Management Meets Business Intelligence (SG24-6340)

bull The Business Value of DB2 UDB for zOS (SG24-6763)bull Data Mart Consolidation Getting Control of Your Enterprise

Information(SG24-6653)bull DB2 UDB for zOS Version 8 Performance Topics (SG24-6465)bull Microsoft SQL Server to IBM DB2 UDB Conversion Guide (SG24-

6672)bull DB2 for zOS and WebSphere The Perfect Couple (SG24-6319)bull Copying the DB2 UDB for zOS catalog using the COPY utility Copying the DB2 UDB for zOS catalog using the COPY utility

(TIPS0587)(TIPS0587)bull Systems Programmers Guide to Resource Recovery Services (RRS) Systems Programmers Guide to Resource Recovery Services (RRS)

(SG24-6980)(SG24-6980)

IBM Software Group | DB2 Information Management Software

Education

bull DB2 Version 8 Migration Workshopsndash Let us know if you need one

bull DB2 Version 8 Transition classndash CG381 amp CG382

IBM Software Group | DB2 Information Management Software

Education ( Design)

IBM Software Group | DB2 Information Management Software

Education (Development)

IBM Software Group | DB2 Information Management Software

Education ( Administration)

IBM Software Group | DB2 Information Management Software

Education (Troubleshooting)

IBM Software Group | DB2 Information Management Software

Intelligent Visual Explain

bull Where to obtain the codebull httpwwwibmcomsoftwaredatadb2zososcvebull Fixpack 7 available nowbull Key prerequisites

ndash Windows NT Version 40 Windows 2000 or Windows XPndash 150 MB of hard disk spacendash 256 MB of RAMndash Pentium III equivalent or abovendash Either DB2 ConnecttradePersonal Edition Version 7 (or later) or DB2

Client Application Enablertrade(CAE) with a DB2 Connect Enterprise Edition Version 7 (or later) gateway installed

ndash A TCPIP connection to a DB2 for zOS Version 7 or Version 8 host system

ndash A java-enabled browser to view HTML files

IBM Software Group | DB2 Information Management Software

Reference URLs

httpwwwibmcomsoftwaredatadb2zosindexhtmlDB2 for zOS

httpwww-306ibmcomsoftwaredatadb2zossupporthtmlDB2 for zOS technical support page

httpwww-306ibmcomsoftwaredatadb2zososcveindexhtmlDB2 VE download

httpwwwunicodeorg Unicode Home pagehttpwwwunicodeorgunicodestandardprincipleshtmlThe Unicode Standard amp Basic Principlesftpftpsoftwareibmcomsoftwaredatadb2zosdppdpdfDB2 for zOS Distribute Performance analysisftpftpsoftwareibmcomsoftwaredb2storedproceduredb2zos390techdocsH01PDFDB2-Java Performance and Tuning

IBM Software Group | DB2 Information Management Software

Reference URLs

www-106ibmcomdeveloperworksdb2librarytecharticle0203shibamiya0203shibamiya2htmlInsert vs Load Performance White paper

IBM Software Group | DB2 Information Management Software

Acknowledgements to My Friends

Mark Wilson ndash DB2 Product Introduction CenterAkira Shibamiya - SVLCurt Cotner ndash SVLJohn Campbell ndash SVL

Page 41: Slide 1 - Parallels Plesk Control Panel 8.6.0

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

DB2 Redbooks - 2Q 2004 httpwwwibmcomredbooks

bull Business Performance Management Meets Business Intelligence (SG24-6340)

bull The Business Value of DB2 UDB for zOS (SG24-6763)bull Data Mart Consolidation Getting Control of Your Enterprise

Information(SG24-6653)bull DB2 UDB for zOS Version 8 Performance Topics (SG24-6465)bull Microsoft SQL Server to IBM DB2 UDB Conversion Guide (SG24-

6672)bull DB2 for zOS and WebSphere The Perfect Couple (SG24-6319)bull Copying the DB2 UDB for zOS catalog using the COPY utility Copying the DB2 UDB for zOS catalog using the COPY utility

(TIPS0587)(TIPS0587)bull Systems Programmers Guide to Resource Recovery Services (RRS) Systems Programmers Guide to Resource Recovery Services (RRS)

(SG24-6980)(SG24-6980)

IBM Software Group | DB2 Information Management Software

Education

bull DB2 Version 8 Migration Workshopsndash Let us know if you need one

bull DB2 Version 8 Transition classndash CG381 amp CG382

IBM Software Group | DB2 Information Management Software

Education ( Design)

IBM Software Group | DB2 Information Management Software

Education (Development)

IBM Software Group | DB2 Information Management Software

Education ( Administration)

IBM Software Group | DB2 Information Management Software

Education (Troubleshooting)

IBM Software Group | DB2 Information Management Software

Intelligent Visual Explain

bull Where to obtain the codebull httpwwwibmcomsoftwaredatadb2zososcvebull Fixpack 7 available nowbull Key prerequisites

ndash Windows NT Version 40 Windows 2000 or Windows XPndash 150 MB of hard disk spacendash 256 MB of RAMndash Pentium III equivalent or abovendash Either DB2 ConnecttradePersonal Edition Version 7 (or later) or DB2

Client Application Enablertrade(CAE) with a DB2 Connect Enterprise Edition Version 7 (or later) gateway installed

ndash A TCPIP connection to a DB2 for zOS Version 7 or Version 8 host system

ndash A java-enabled browser to view HTML files

IBM Software Group | DB2 Information Management Software

Reference URLs

httpwwwibmcomsoftwaredatadb2zosindexhtmlDB2 for zOS

httpwww-306ibmcomsoftwaredatadb2zossupporthtmlDB2 for zOS technical support page

httpwww-306ibmcomsoftwaredatadb2zososcveindexhtmlDB2 VE download

httpwwwunicodeorg Unicode Home pagehttpwwwunicodeorgunicodestandardprincipleshtmlThe Unicode Standard amp Basic Principlesftpftpsoftwareibmcomsoftwaredatadb2zosdppdpdfDB2 for zOS Distribute Performance analysisftpftpsoftwareibmcomsoftwaredb2storedproceduredb2zos390techdocsH01PDFDB2-Java Performance and Tuning

IBM Software Group | DB2 Information Management Software

Reference URLs

www-106ibmcomdeveloperworksdb2librarytecharticle0203shibamiya0203shibamiya2htmlInsert vs Load Performance White paper

IBM Software Group | DB2 Information Management Software

Acknowledgements to My Friends

Mark Wilson ndash DB2 Product Introduction CenterAkira Shibamiya - SVLCurt Cotner ndash SVLJohn Campbell ndash SVL

Page 42: Slide 1 - Parallels Plesk Control Panel 8.6.0

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

DB2 Redbooks - 2Q 2004 httpwwwibmcomredbooks

bull Business Performance Management Meets Business Intelligence (SG24-6340)

bull The Business Value of DB2 UDB for zOS (SG24-6763)bull Data Mart Consolidation Getting Control of Your Enterprise

Information(SG24-6653)bull DB2 UDB for zOS Version 8 Performance Topics (SG24-6465)bull Microsoft SQL Server to IBM DB2 UDB Conversion Guide (SG24-

6672)bull DB2 for zOS and WebSphere The Perfect Couple (SG24-6319)bull Copying the DB2 UDB for zOS catalog using the COPY utility Copying the DB2 UDB for zOS catalog using the COPY utility

(TIPS0587)(TIPS0587)bull Systems Programmers Guide to Resource Recovery Services (RRS) Systems Programmers Guide to Resource Recovery Services (RRS)

(SG24-6980)(SG24-6980)

IBM Software Group | DB2 Information Management Software

Education

bull DB2 Version 8 Migration Workshopsndash Let us know if you need one

bull DB2 Version 8 Transition classndash CG381 amp CG382

IBM Software Group | DB2 Information Management Software

Education ( Design)

IBM Software Group | DB2 Information Management Software

Education (Development)

IBM Software Group | DB2 Information Management Software

Education ( Administration)

IBM Software Group | DB2 Information Management Software

Education (Troubleshooting)

IBM Software Group | DB2 Information Management Software

Intelligent Visual Explain

bull Where to obtain the codebull httpwwwibmcomsoftwaredatadb2zososcvebull Fixpack 7 available nowbull Key prerequisites

ndash Windows NT Version 40 Windows 2000 or Windows XPndash 150 MB of hard disk spacendash 256 MB of RAMndash Pentium III equivalent or abovendash Either DB2 ConnecttradePersonal Edition Version 7 (or later) or DB2

Client Application Enablertrade(CAE) with a DB2 Connect Enterprise Edition Version 7 (or later) gateway installed

ndash A TCPIP connection to a DB2 for zOS Version 7 or Version 8 host system

ndash A java-enabled browser to view HTML files

IBM Software Group | DB2 Information Management Software

Reference URLs

httpwwwibmcomsoftwaredatadb2zosindexhtmlDB2 for zOS

httpwww-306ibmcomsoftwaredatadb2zossupporthtmlDB2 for zOS technical support page

httpwww-306ibmcomsoftwaredatadb2zososcveindexhtmlDB2 VE download

httpwwwunicodeorg Unicode Home pagehttpwwwunicodeorgunicodestandardprincipleshtmlThe Unicode Standard amp Basic Principlesftpftpsoftwareibmcomsoftwaredatadb2zosdppdpdfDB2 for zOS Distribute Performance analysisftpftpsoftwareibmcomsoftwaredb2storedproceduredb2zos390techdocsH01PDFDB2-Java Performance and Tuning

IBM Software Group | DB2 Information Management Software

Reference URLs

www-106ibmcomdeveloperworksdb2librarytecharticle0203shibamiya0203shibamiya2htmlInsert vs Load Performance White paper

IBM Software Group | DB2 Information Management Software

Acknowledgements to My Friends

Mark Wilson ndash DB2 Product Introduction CenterAkira Shibamiya - SVLCurt Cotner ndash SVLJohn Campbell ndash SVL

Page 43: Slide 1 - Parallels Plesk Control Panel 8.6.0

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

DB2 Redbooks - 2Q 2004 httpwwwibmcomredbooks

bull Business Performance Management Meets Business Intelligence (SG24-6340)

bull The Business Value of DB2 UDB for zOS (SG24-6763)bull Data Mart Consolidation Getting Control of Your Enterprise

Information(SG24-6653)bull DB2 UDB for zOS Version 8 Performance Topics (SG24-6465)bull Microsoft SQL Server to IBM DB2 UDB Conversion Guide (SG24-

6672)bull DB2 for zOS and WebSphere The Perfect Couple (SG24-6319)bull Copying the DB2 UDB for zOS catalog using the COPY utility Copying the DB2 UDB for zOS catalog using the COPY utility

(TIPS0587)(TIPS0587)bull Systems Programmers Guide to Resource Recovery Services (RRS) Systems Programmers Guide to Resource Recovery Services (RRS)

(SG24-6980)(SG24-6980)

IBM Software Group | DB2 Information Management Software

Education

bull DB2 Version 8 Migration Workshopsndash Let us know if you need one

bull DB2 Version 8 Transition classndash CG381 amp CG382

IBM Software Group | DB2 Information Management Software

Education ( Design)

IBM Software Group | DB2 Information Management Software

Education (Development)

IBM Software Group | DB2 Information Management Software

Education ( Administration)

IBM Software Group | DB2 Information Management Software

Education (Troubleshooting)

IBM Software Group | DB2 Information Management Software

Intelligent Visual Explain

bull Where to obtain the codebull httpwwwibmcomsoftwaredatadb2zososcvebull Fixpack 7 available nowbull Key prerequisites

ndash Windows NT Version 40 Windows 2000 or Windows XPndash 150 MB of hard disk spacendash 256 MB of RAMndash Pentium III equivalent or abovendash Either DB2 ConnecttradePersonal Edition Version 7 (or later) or DB2

Client Application Enablertrade(CAE) with a DB2 Connect Enterprise Edition Version 7 (or later) gateway installed

ndash A TCPIP connection to a DB2 for zOS Version 7 or Version 8 host system

ndash A java-enabled browser to view HTML files

IBM Software Group | DB2 Information Management Software

Reference URLs

httpwwwibmcomsoftwaredatadb2zosindexhtmlDB2 for zOS

httpwww-306ibmcomsoftwaredatadb2zossupporthtmlDB2 for zOS technical support page

httpwww-306ibmcomsoftwaredatadb2zososcveindexhtmlDB2 VE download

httpwwwunicodeorg Unicode Home pagehttpwwwunicodeorgunicodestandardprincipleshtmlThe Unicode Standard amp Basic Principlesftpftpsoftwareibmcomsoftwaredatadb2zosdppdpdfDB2 for zOS Distribute Performance analysisftpftpsoftwareibmcomsoftwaredb2storedproceduredb2zos390techdocsH01PDFDB2-Java Performance and Tuning

IBM Software Group | DB2 Information Management Software

Reference URLs

www-106ibmcomdeveloperworksdb2librarytecharticle0203shibamiya0203shibamiya2htmlInsert vs Load Performance White paper

IBM Software Group | DB2 Information Management Software

Acknowledgements to My Friends

Mark Wilson ndash DB2 Product Introduction CenterAkira Shibamiya - SVLCurt Cotner ndash SVLJohn Campbell ndash SVL

Page 44: Slide 1 - Parallels Plesk Control Panel 8.6.0

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

DB2 Redbooks - 2Q 2004 httpwwwibmcomredbooks

bull Business Performance Management Meets Business Intelligence (SG24-6340)

bull The Business Value of DB2 UDB for zOS (SG24-6763)bull Data Mart Consolidation Getting Control of Your Enterprise

Information(SG24-6653)bull DB2 UDB for zOS Version 8 Performance Topics (SG24-6465)bull Microsoft SQL Server to IBM DB2 UDB Conversion Guide (SG24-

6672)bull DB2 for zOS and WebSphere The Perfect Couple (SG24-6319)bull Copying the DB2 UDB for zOS catalog using the COPY utility Copying the DB2 UDB for zOS catalog using the COPY utility

(TIPS0587)(TIPS0587)bull Systems Programmers Guide to Resource Recovery Services (RRS) Systems Programmers Guide to Resource Recovery Services (RRS)

(SG24-6980)(SG24-6980)

IBM Software Group | DB2 Information Management Software

Education

bull DB2 Version 8 Migration Workshopsndash Let us know if you need one

bull DB2 Version 8 Transition classndash CG381 amp CG382

IBM Software Group | DB2 Information Management Software

Education ( Design)

IBM Software Group | DB2 Information Management Software

Education (Development)

IBM Software Group | DB2 Information Management Software

Education ( Administration)

IBM Software Group | DB2 Information Management Software

Education (Troubleshooting)

IBM Software Group | DB2 Information Management Software

Intelligent Visual Explain

bull Where to obtain the codebull httpwwwibmcomsoftwaredatadb2zososcvebull Fixpack 7 available nowbull Key prerequisites

ndash Windows NT Version 40 Windows 2000 or Windows XPndash 150 MB of hard disk spacendash 256 MB of RAMndash Pentium III equivalent or abovendash Either DB2 ConnecttradePersonal Edition Version 7 (or later) or DB2

Client Application Enablertrade(CAE) with a DB2 Connect Enterprise Edition Version 7 (or later) gateway installed

ndash A TCPIP connection to a DB2 for zOS Version 7 or Version 8 host system

ndash A java-enabled browser to view HTML files

IBM Software Group | DB2 Information Management Software

Reference URLs

httpwwwibmcomsoftwaredatadb2zosindexhtmlDB2 for zOS

httpwww-306ibmcomsoftwaredatadb2zossupporthtmlDB2 for zOS technical support page

httpwww-306ibmcomsoftwaredatadb2zososcveindexhtmlDB2 VE download

httpwwwunicodeorg Unicode Home pagehttpwwwunicodeorgunicodestandardprincipleshtmlThe Unicode Standard amp Basic Principlesftpftpsoftwareibmcomsoftwaredatadb2zosdppdpdfDB2 for zOS Distribute Performance analysisftpftpsoftwareibmcomsoftwaredb2storedproceduredb2zos390techdocsH01PDFDB2-Java Performance and Tuning

IBM Software Group | DB2 Information Management Software

Reference URLs

www-106ibmcomdeveloperworksdb2librarytecharticle0203shibamiya0203shibamiya2htmlInsert vs Load Performance White paper

IBM Software Group | DB2 Information Management Software

Acknowledgements to My Friends

Mark Wilson ndash DB2 Product Introduction CenterAkira Shibamiya - SVLCurt Cotner ndash SVLJohn Campbell ndash SVL

Page 45: Slide 1 - Parallels Plesk Control Panel 8.6.0

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

DB2 Redbooks - 2Q 2004 httpwwwibmcomredbooks

bull Business Performance Management Meets Business Intelligence (SG24-6340)

bull The Business Value of DB2 UDB for zOS (SG24-6763)bull Data Mart Consolidation Getting Control of Your Enterprise

Information(SG24-6653)bull DB2 UDB for zOS Version 8 Performance Topics (SG24-6465)bull Microsoft SQL Server to IBM DB2 UDB Conversion Guide (SG24-

6672)bull DB2 for zOS and WebSphere The Perfect Couple (SG24-6319)bull Copying the DB2 UDB for zOS catalog using the COPY utility Copying the DB2 UDB for zOS catalog using the COPY utility

(TIPS0587)(TIPS0587)bull Systems Programmers Guide to Resource Recovery Services (RRS) Systems Programmers Guide to Resource Recovery Services (RRS)

(SG24-6980)(SG24-6980)

IBM Software Group | DB2 Information Management Software

Education

bull DB2 Version 8 Migration Workshopsndash Let us know if you need one

bull DB2 Version 8 Transition classndash CG381 amp CG382

IBM Software Group | DB2 Information Management Software

Education ( Design)

IBM Software Group | DB2 Information Management Software

Education (Development)

IBM Software Group | DB2 Information Management Software

Education ( Administration)

IBM Software Group | DB2 Information Management Software

Education (Troubleshooting)

IBM Software Group | DB2 Information Management Software

Intelligent Visual Explain

bull Where to obtain the codebull httpwwwibmcomsoftwaredatadb2zososcvebull Fixpack 7 available nowbull Key prerequisites

ndash Windows NT Version 40 Windows 2000 or Windows XPndash 150 MB of hard disk spacendash 256 MB of RAMndash Pentium III equivalent or abovendash Either DB2 ConnecttradePersonal Edition Version 7 (or later) or DB2

Client Application Enablertrade(CAE) with a DB2 Connect Enterprise Edition Version 7 (or later) gateway installed

ndash A TCPIP connection to a DB2 for zOS Version 7 or Version 8 host system

ndash A java-enabled browser to view HTML files

IBM Software Group | DB2 Information Management Software

Reference URLs

httpwwwibmcomsoftwaredatadb2zosindexhtmlDB2 for zOS

httpwww-306ibmcomsoftwaredatadb2zossupporthtmlDB2 for zOS technical support page

httpwww-306ibmcomsoftwaredatadb2zososcveindexhtmlDB2 VE download

httpwwwunicodeorg Unicode Home pagehttpwwwunicodeorgunicodestandardprincipleshtmlThe Unicode Standard amp Basic Principlesftpftpsoftwareibmcomsoftwaredatadb2zosdppdpdfDB2 for zOS Distribute Performance analysisftpftpsoftwareibmcomsoftwaredb2storedproceduredb2zos390techdocsH01PDFDB2-Java Performance and Tuning

IBM Software Group | DB2 Information Management Software

Reference URLs

www-106ibmcomdeveloperworksdb2librarytecharticle0203shibamiya0203shibamiya2htmlInsert vs Load Performance White paper

IBM Software Group | DB2 Information Management Software

Acknowledgements to My Friends

Mark Wilson ndash DB2 Product Introduction CenterAkira Shibamiya - SVLCurt Cotner ndash SVLJohn Campbell ndash SVL

Page 46: Slide 1 - Parallels Plesk Control Panel 8.6.0

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

DB2 Redbooks - 2Q 2004 httpwwwibmcomredbooks

bull Business Performance Management Meets Business Intelligence (SG24-6340)

bull The Business Value of DB2 UDB for zOS (SG24-6763)bull Data Mart Consolidation Getting Control of Your Enterprise

Information(SG24-6653)bull DB2 UDB for zOS Version 8 Performance Topics (SG24-6465)bull Microsoft SQL Server to IBM DB2 UDB Conversion Guide (SG24-

6672)bull DB2 for zOS and WebSphere The Perfect Couple (SG24-6319)bull Copying the DB2 UDB for zOS catalog using the COPY utility Copying the DB2 UDB for zOS catalog using the COPY utility

(TIPS0587)(TIPS0587)bull Systems Programmers Guide to Resource Recovery Services (RRS) Systems Programmers Guide to Resource Recovery Services (RRS)

(SG24-6980)(SG24-6980)

IBM Software Group | DB2 Information Management Software

Education

bull DB2 Version 8 Migration Workshopsndash Let us know if you need one

bull DB2 Version 8 Transition classndash CG381 amp CG382

IBM Software Group | DB2 Information Management Software

Education ( Design)

IBM Software Group | DB2 Information Management Software

Education (Development)

IBM Software Group | DB2 Information Management Software

Education ( Administration)

IBM Software Group | DB2 Information Management Software

Education (Troubleshooting)

IBM Software Group | DB2 Information Management Software

Intelligent Visual Explain

bull Where to obtain the codebull httpwwwibmcomsoftwaredatadb2zososcvebull Fixpack 7 available nowbull Key prerequisites

ndash Windows NT Version 40 Windows 2000 or Windows XPndash 150 MB of hard disk spacendash 256 MB of RAMndash Pentium III equivalent or abovendash Either DB2 ConnecttradePersonal Edition Version 7 (or later) or DB2

Client Application Enablertrade(CAE) with a DB2 Connect Enterprise Edition Version 7 (or later) gateway installed

ndash A TCPIP connection to a DB2 for zOS Version 7 or Version 8 host system

ndash A java-enabled browser to view HTML files

IBM Software Group | DB2 Information Management Software

Reference URLs

httpwwwibmcomsoftwaredatadb2zosindexhtmlDB2 for zOS

httpwww-306ibmcomsoftwaredatadb2zossupporthtmlDB2 for zOS technical support page

httpwww-306ibmcomsoftwaredatadb2zososcveindexhtmlDB2 VE download

httpwwwunicodeorg Unicode Home pagehttpwwwunicodeorgunicodestandardprincipleshtmlThe Unicode Standard amp Basic Principlesftpftpsoftwareibmcomsoftwaredatadb2zosdppdpdfDB2 for zOS Distribute Performance analysisftpftpsoftwareibmcomsoftwaredb2storedproceduredb2zos390techdocsH01PDFDB2-Java Performance and Tuning

IBM Software Group | DB2 Information Management Software

Reference URLs

www-106ibmcomdeveloperworksdb2librarytecharticle0203shibamiya0203shibamiya2htmlInsert vs Load Performance White paper

IBM Software Group | DB2 Information Management Software

Acknowledgements to My Friends

Mark Wilson ndash DB2 Product Introduction CenterAkira Shibamiya - SVLCurt Cotner ndash SVLJohn Campbell ndash SVL

Page 47: Slide 1 - Parallels Plesk Control Panel 8.6.0

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

DB2 Redbooks - 2Q 2004 httpwwwibmcomredbooks

bull Business Performance Management Meets Business Intelligence (SG24-6340)

bull The Business Value of DB2 UDB for zOS (SG24-6763)bull Data Mart Consolidation Getting Control of Your Enterprise

Information(SG24-6653)bull DB2 UDB for zOS Version 8 Performance Topics (SG24-6465)bull Microsoft SQL Server to IBM DB2 UDB Conversion Guide (SG24-

6672)bull DB2 for zOS and WebSphere The Perfect Couple (SG24-6319)bull Copying the DB2 UDB for zOS catalog using the COPY utility Copying the DB2 UDB for zOS catalog using the COPY utility

(TIPS0587)(TIPS0587)bull Systems Programmers Guide to Resource Recovery Services (RRS) Systems Programmers Guide to Resource Recovery Services (RRS)

(SG24-6980)(SG24-6980)

IBM Software Group | DB2 Information Management Software

Education

bull DB2 Version 8 Migration Workshopsndash Let us know if you need one

bull DB2 Version 8 Transition classndash CG381 amp CG382

IBM Software Group | DB2 Information Management Software

Education ( Design)

IBM Software Group | DB2 Information Management Software

Education (Development)

IBM Software Group | DB2 Information Management Software

Education ( Administration)

IBM Software Group | DB2 Information Management Software

Education (Troubleshooting)

IBM Software Group | DB2 Information Management Software

Intelligent Visual Explain

bull Where to obtain the codebull httpwwwibmcomsoftwaredatadb2zososcvebull Fixpack 7 available nowbull Key prerequisites

ndash Windows NT Version 40 Windows 2000 or Windows XPndash 150 MB of hard disk spacendash 256 MB of RAMndash Pentium III equivalent or abovendash Either DB2 ConnecttradePersonal Edition Version 7 (or later) or DB2

Client Application Enablertrade(CAE) with a DB2 Connect Enterprise Edition Version 7 (or later) gateway installed

ndash A TCPIP connection to a DB2 for zOS Version 7 or Version 8 host system

ndash A java-enabled browser to view HTML files

IBM Software Group | DB2 Information Management Software

Reference URLs

httpwwwibmcomsoftwaredatadb2zosindexhtmlDB2 for zOS

httpwww-306ibmcomsoftwaredatadb2zossupporthtmlDB2 for zOS technical support page

httpwww-306ibmcomsoftwaredatadb2zososcveindexhtmlDB2 VE download

httpwwwunicodeorg Unicode Home pagehttpwwwunicodeorgunicodestandardprincipleshtmlThe Unicode Standard amp Basic Principlesftpftpsoftwareibmcomsoftwaredatadb2zosdppdpdfDB2 for zOS Distribute Performance analysisftpftpsoftwareibmcomsoftwaredb2storedproceduredb2zos390techdocsH01PDFDB2-Java Performance and Tuning

IBM Software Group | DB2 Information Management Software

Reference URLs

www-106ibmcomdeveloperworksdb2librarytecharticle0203shibamiya0203shibamiya2htmlInsert vs Load Performance White paper

IBM Software Group | DB2 Information Management Software

Acknowledgements to My Friends

Mark Wilson ndash DB2 Product Introduction CenterAkira Shibamiya - SVLCurt Cotner ndash SVLJohn Campbell ndash SVL

Page 48: Slide 1 - Parallels Plesk Control Panel 8.6.0

IBM Software Group | DB2 Information Management Software

IBM Software Group | DB2 Information Management Software

DB2 Redbooks - 2Q 2004 httpwwwibmcomredbooks

bull Business Performance Management Meets Business Intelligence (SG24-6340)

bull The Business Value of DB2 UDB for zOS (SG24-6763)bull Data Mart Consolidation Getting Control of Your Enterprise

Information(SG24-6653)bull DB2 UDB for zOS Version 8 Performance Topics (SG24-6465)bull Microsoft SQL Server to IBM DB2 UDB Conversion Guide (SG24-

6672)bull DB2 for zOS and WebSphere The Perfect Couple (SG24-6319)bull Copying the DB2 UDB for zOS catalog using the COPY utility Copying the DB2 UDB for zOS catalog using the COPY utility

(TIPS0587)(TIPS0587)bull Systems Programmers Guide to Resource Recovery Services (RRS) Systems Programmers Guide to Resource Recovery Services (RRS)

(SG24-6980)(SG24-6980)

IBM Software Group | DB2 Information Management Software

Education

bull DB2 Version 8 Migration Workshopsndash Let us know if you need one

bull DB2 Version 8 Transition classndash CG381 amp CG382

IBM Software Group | DB2 Information Management Software

Education ( Design)

IBM Software Group | DB2 Information Management Software

Education (Development)

IBM Software Group | DB2 Information Management Software

Education ( Administration)

IBM Software Group | DB2 Information Management Software

Education (Troubleshooting)

IBM Software Group | DB2 Information Management Software

Intelligent Visual Explain

bull Where to obtain the codebull httpwwwibmcomsoftwaredatadb2zososcvebull Fixpack 7 available nowbull Key prerequisites

ndash Windows NT Version 40 Windows 2000 or Windows XPndash 150 MB of hard disk spacendash 256 MB of RAMndash Pentium III equivalent or abovendash Either DB2 ConnecttradePersonal Edition Version 7 (or later) or DB2

Client Application Enablertrade(CAE) with a DB2 Connect Enterprise Edition Version 7 (or later) gateway installed

ndash A TCPIP connection to a DB2 for zOS Version 7 or Version 8 host system

ndash A java-enabled browser to view HTML files

IBM Software Group | DB2 Information Management Software

Reference URLs

httpwwwibmcomsoftwaredatadb2zosindexhtmlDB2 for zOS

httpwww-306ibmcomsoftwaredatadb2zossupporthtmlDB2 for zOS technical support page

httpwww-306ibmcomsoftwaredatadb2zososcveindexhtmlDB2 VE download

httpwwwunicodeorg Unicode Home pagehttpwwwunicodeorgunicodestandardprincipleshtmlThe Unicode Standard amp Basic Principlesftpftpsoftwareibmcomsoftwaredatadb2zosdppdpdfDB2 for zOS Distribute Performance analysisftpftpsoftwareibmcomsoftwaredb2storedproceduredb2zos390techdocsH01PDFDB2-Java Performance and Tuning

IBM Software Group | DB2 Information Management Software

Reference URLs

www-106ibmcomdeveloperworksdb2librarytecharticle0203shibamiya0203shibamiya2htmlInsert vs Load Performance White paper

IBM Software Group | DB2 Information Management Software

Acknowledgements to My Friends

Mark Wilson ndash DB2 Product Introduction CenterAkira Shibamiya - SVLCurt Cotner ndash SVLJohn Campbell ndash SVL

Page 49: Slide 1 - Parallels Plesk Control Panel 8.6.0

IBM Software Group | DB2 Information Management Software

DB2 Redbooks - 2Q 2004 httpwwwibmcomredbooks

bull Business Performance Management Meets Business Intelligence (SG24-6340)

bull The Business Value of DB2 UDB for zOS (SG24-6763)bull Data Mart Consolidation Getting Control of Your Enterprise

Information(SG24-6653)bull DB2 UDB for zOS Version 8 Performance Topics (SG24-6465)bull Microsoft SQL Server to IBM DB2 UDB Conversion Guide (SG24-

6672)bull DB2 for zOS and WebSphere The Perfect Couple (SG24-6319)bull Copying the DB2 UDB for zOS catalog using the COPY utility Copying the DB2 UDB for zOS catalog using the COPY utility

(TIPS0587)(TIPS0587)bull Systems Programmers Guide to Resource Recovery Services (RRS) Systems Programmers Guide to Resource Recovery Services (RRS)

(SG24-6980)(SG24-6980)

IBM Software Group | DB2 Information Management Software

Education

bull DB2 Version 8 Migration Workshopsndash Let us know if you need one

bull DB2 Version 8 Transition classndash CG381 amp CG382

IBM Software Group | DB2 Information Management Software

Education ( Design)

IBM Software Group | DB2 Information Management Software

Education (Development)

IBM Software Group | DB2 Information Management Software

Education ( Administration)

IBM Software Group | DB2 Information Management Software

Education (Troubleshooting)

IBM Software Group | DB2 Information Management Software

Intelligent Visual Explain

bull Where to obtain the codebull httpwwwibmcomsoftwaredatadb2zososcvebull Fixpack 7 available nowbull Key prerequisites

ndash Windows NT Version 40 Windows 2000 or Windows XPndash 150 MB of hard disk spacendash 256 MB of RAMndash Pentium III equivalent or abovendash Either DB2 ConnecttradePersonal Edition Version 7 (or later) or DB2

Client Application Enablertrade(CAE) with a DB2 Connect Enterprise Edition Version 7 (or later) gateway installed

ndash A TCPIP connection to a DB2 for zOS Version 7 or Version 8 host system

ndash A java-enabled browser to view HTML files

IBM Software Group | DB2 Information Management Software

Reference URLs

httpwwwibmcomsoftwaredatadb2zosindexhtmlDB2 for zOS

httpwww-306ibmcomsoftwaredatadb2zossupporthtmlDB2 for zOS technical support page

httpwww-306ibmcomsoftwaredatadb2zososcveindexhtmlDB2 VE download

httpwwwunicodeorg Unicode Home pagehttpwwwunicodeorgunicodestandardprincipleshtmlThe Unicode Standard amp Basic Principlesftpftpsoftwareibmcomsoftwaredatadb2zosdppdpdfDB2 for zOS Distribute Performance analysisftpftpsoftwareibmcomsoftwaredb2storedproceduredb2zos390techdocsH01PDFDB2-Java Performance and Tuning

IBM Software Group | DB2 Information Management Software

Reference URLs

www-106ibmcomdeveloperworksdb2librarytecharticle0203shibamiya0203shibamiya2htmlInsert vs Load Performance White paper

IBM Software Group | DB2 Information Management Software

Acknowledgements to My Friends

Mark Wilson ndash DB2 Product Introduction CenterAkira Shibamiya - SVLCurt Cotner ndash SVLJohn Campbell ndash SVL

Page 50: Slide 1 - Parallels Plesk Control Panel 8.6.0

IBM Software Group | DB2 Information Management Software

Education

bull DB2 Version 8 Migration Workshopsndash Let us know if you need one

bull DB2 Version 8 Transition classndash CG381 amp CG382

IBM Software Group | DB2 Information Management Software

Education ( Design)

IBM Software Group | DB2 Information Management Software

Education (Development)

IBM Software Group | DB2 Information Management Software

Education ( Administration)

IBM Software Group | DB2 Information Management Software

Education (Troubleshooting)

IBM Software Group | DB2 Information Management Software

Intelligent Visual Explain

bull Where to obtain the codebull httpwwwibmcomsoftwaredatadb2zososcvebull Fixpack 7 available nowbull Key prerequisites

ndash Windows NT Version 40 Windows 2000 or Windows XPndash 150 MB of hard disk spacendash 256 MB of RAMndash Pentium III equivalent or abovendash Either DB2 ConnecttradePersonal Edition Version 7 (or later) or DB2

Client Application Enablertrade(CAE) with a DB2 Connect Enterprise Edition Version 7 (or later) gateway installed

ndash A TCPIP connection to a DB2 for zOS Version 7 or Version 8 host system

ndash A java-enabled browser to view HTML files

IBM Software Group | DB2 Information Management Software

Reference URLs

httpwwwibmcomsoftwaredatadb2zosindexhtmlDB2 for zOS

httpwww-306ibmcomsoftwaredatadb2zossupporthtmlDB2 for zOS technical support page

httpwww-306ibmcomsoftwaredatadb2zososcveindexhtmlDB2 VE download

httpwwwunicodeorg Unicode Home pagehttpwwwunicodeorgunicodestandardprincipleshtmlThe Unicode Standard amp Basic Principlesftpftpsoftwareibmcomsoftwaredatadb2zosdppdpdfDB2 for zOS Distribute Performance analysisftpftpsoftwareibmcomsoftwaredb2storedproceduredb2zos390techdocsH01PDFDB2-Java Performance and Tuning

IBM Software Group | DB2 Information Management Software

Reference URLs

www-106ibmcomdeveloperworksdb2librarytecharticle0203shibamiya0203shibamiya2htmlInsert vs Load Performance White paper

IBM Software Group | DB2 Information Management Software

Acknowledgements to My Friends

Mark Wilson ndash DB2 Product Introduction CenterAkira Shibamiya - SVLCurt Cotner ndash SVLJohn Campbell ndash SVL

Page 51: Slide 1 - Parallels Plesk Control Panel 8.6.0

IBM Software Group | DB2 Information Management Software

Education ( Design)

IBM Software Group | DB2 Information Management Software

Education (Development)

IBM Software Group | DB2 Information Management Software

Education ( Administration)

IBM Software Group | DB2 Information Management Software

Education (Troubleshooting)

IBM Software Group | DB2 Information Management Software

Intelligent Visual Explain

bull Where to obtain the codebull httpwwwibmcomsoftwaredatadb2zososcvebull Fixpack 7 available nowbull Key prerequisites

ndash Windows NT Version 40 Windows 2000 or Windows XPndash 150 MB of hard disk spacendash 256 MB of RAMndash Pentium III equivalent or abovendash Either DB2 ConnecttradePersonal Edition Version 7 (or later) or DB2

Client Application Enablertrade(CAE) with a DB2 Connect Enterprise Edition Version 7 (or later) gateway installed

ndash A TCPIP connection to a DB2 for zOS Version 7 or Version 8 host system

ndash A java-enabled browser to view HTML files

IBM Software Group | DB2 Information Management Software

Reference URLs

httpwwwibmcomsoftwaredatadb2zosindexhtmlDB2 for zOS

httpwww-306ibmcomsoftwaredatadb2zossupporthtmlDB2 for zOS technical support page

httpwww-306ibmcomsoftwaredatadb2zososcveindexhtmlDB2 VE download

httpwwwunicodeorg Unicode Home pagehttpwwwunicodeorgunicodestandardprincipleshtmlThe Unicode Standard amp Basic Principlesftpftpsoftwareibmcomsoftwaredatadb2zosdppdpdfDB2 for zOS Distribute Performance analysisftpftpsoftwareibmcomsoftwaredb2storedproceduredb2zos390techdocsH01PDFDB2-Java Performance and Tuning

IBM Software Group | DB2 Information Management Software

Reference URLs

www-106ibmcomdeveloperworksdb2librarytecharticle0203shibamiya0203shibamiya2htmlInsert vs Load Performance White paper

IBM Software Group | DB2 Information Management Software

Acknowledgements to My Friends

Mark Wilson ndash DB2 Product Introduction CenterAkira Shibamiya - SVLCurt Cotner ndash SVLJohn Campbell ndash SVL

Page 52: Slide 1 - Parallels Plesk Control Panel 8.6.0

IBM Software Group | DB2 Information Management Software

Education (Development)

IBM Software Group | DB2 Information Management Software

Education ( Administration)

IBM Software Group | DB2 Information Management Software

Education (Troubleshooting)

IBM Software Group | DB2 Information Management Software

Intelligent Visual Explain

bull Where to obtain the codebull httpwwwibmcomsoftwaredatadb2zososcvebull Fixpack 7 available nowbull Key prerequisites

ndash Windows NT Version 40 Windows 2000 or Windows XPndash 150 MB of hard disk spacendash 256 MB of RAMndash Pentium III equivalent or abovendash Either DB2 ConnecttradePersonal Edition Version 7 (or later) or DB2

Client Application Enablertrade(CAE) with a DB2 Connect Enterprise Edition Version 7 (or later) gateway installed

ndash A TCPIP connection to a DB2 for zOS Version 7 or Version 8 host system

ndash A java-enabled browser to view HTML files

IBM Software Group | DB2 Information Management Software

Reference URLs

httpwwwibmcomsoftwaredatadb2zosindexhtmlDB2 for zOS

httpwww-306ibmcomsoftwaredatadb2zossupporthtmlDB2 for zOS technical support page

httpwww-306ibmcomsoftwaredatadb2zososcveindexhtmlDB2 VE download

httpwwwunicodeorg Unicode Home pagehttpwwwunicodeorgunicodestandardprincipleshtmlThe Unicode Standard amp Basic Principlesftpftpsoftwareibmcomsoftwaredatadb2zosdppdpdfDB2 for zOS Distribute Performance analysisftpftpsoftwareibmcomsoftwaredb2storedproceduredb2zos390techdocsH01PDFDB2-Java Performance and Tuning

IBM Software Group | DB2 Information Management Software

Reference URLs

www-106ibmcomdeveloperworksdb2librarytecharticle0203shibamiya0203shibamiya2htmlInsert vs Load Performance White paper

IBM Software Group | DB2 Information Management Software

Acknowledgements to My Friends

Mark Wilson ndash DB2 Product Introduction CenterAkira Shibamiya - SVLCurt Cotner ndash SVLJohn Campbell ndash SVL

Page 53: Slide 1 - Parallels Plesk Control Panel 8.6.0

IBM Software Group | DB2 Information Management Software

Education ( Administration)

IBM Software Group | DB2 Information Management Software

Education (Troubleshooting)

IBM Software Group | DB2 Information Management Software

Intelligent Visual Explain

bull Where to obtain the codebull httpwwwibmcomsoftwaredatadb2zososcvebull Fixpack 7 available nowbull Key prerequisites

ndash Windows NT Version 40 Windows 2000 or Windows XPndash 150 MB of hard disk spacendash 256 MB of RAMndash Pentium III equivalent or abovendash Either DB2 ConnecttradePersonal Edition Version 7 (or later) or DB2

Client Application Enablertrade(CAE) with a DB2 Connect Enterprise Edition Version 7 (or later) gateway installed

ndash A TCPIP connection to a DB2 for zOS Version 7 or Version 8 host system

ndash A java-enabled browser to view HTML files

IBM Software Group | DB2 Information Management Software

Reference URLs

httpwwwibmcomsoftwaredatadb2zosindexhtmlDB2 for zOS

httpwww-306ibmcomsoftwaredatadb2zossupporthtmlDB2 for zOS technical support page

httpwww-306ibmcomsoftwaredatadb2zososcveindexhtmlDB2 VE download

httpwwwunicodeorg Unicode Home pagehttpwwwunicodeorgunicodestandardprincipleshtmlThe Unicode Standard amp Basic Principlesftpftpsoftwareibmcomsoftwaredatadb2zosdppdpdfDB2 for zOS Distribute Performance analysisftpftpsoftwareibmcomsoftwaredb2storedproceduredb2zos390techdocsH01PDFDB2-Java Performance and Tuning

IBM Software Group | DB2 Information Management Software

Reference URLs

www-106ibmcomdeveloperworksdb2librarytecharticle0203shibamiya0203shibamiya2htmlInsert vs Load Performance White paper

IBM Software Group | DB2 Information Management Software

Acknowledgements to My Friends

Mark Wilson ndash DB2 Product Introduction CenterAkira Shibamiya - SVLCurt Cotner ndash SVLJohn Campbell ndash SVL

Page 54: Slide 1 - Parallels Plesk Control Panel 8.6.0

IBM Software Group | DB2 Information Management Software

Education (Troubleshooting)

IBM Software Group | DB2 Information Management Software

Intelligent Visual Explain

bull Where to obtain the codebull httpwwwibmcomsoftwaredatadb2zososcvebull Fixpack 7 available nowbull Key prerequisites

ndash Windows NT Version 40 Windows 2000 or Windows XPndash 150 MB of hard disk spacendash 256 MB of RAMndash Pentium III equivalent or abovendash Either DB2 ConnecttradePersonal Edition Version 7 (or later) or DB2

Client Application Enablertrade(CAE) with a DB2 Connect Enterprise Edition Version 7 (or later) gateway installed

ndash A TCPIP connection to a DB2 for zOS Version 7 or Version 8 host system

ndash A java-enabled browser to view HTML files

IBM Software Group | DB2 Information Management Software

Reference URLs

httpwwwibmcomsoftwaredatadb2zosindexhtmlDB2 for zOS

httpwww-306ibmcomsoftwaredatadb2zossupporthtmlDB2 for zOS technical support page

httpwww-306ibmcomsoftwaredatadb2zososcveindexhtmlDB2 VE download

httpwwwunicodeorg Unicode Home pagehttpwwwunicodeorgunicodestandardprincipleshtmlThe Unicode Standard amp Basic Principlesftpftpsoftwareibmcomsoftwaredatadb2zosdppdpdfDB2 for zOS Distribute Performance analysisftpftpsoftwareibmcomsoftwaredb2storedproceduredb2zos390techdocsH01PDFDB2-Java Performance and Tuning

IBM Software Group | DB2 Information Management Software

Reference URLs

www-106ibmcomdeveloperworksdb2librarytecharticle0203shibamiya0203shibamiya2htmlInsert vs Load Performance White paper

IBM Software Group | DB2 Information Management Software

Acknowledgements to My Friends

Mark Wilson ndash DB2 Product Introduction CenterAkira Shibamiya - SVLCurt Cotner ndash SVLJohn Campbell ndash SVL

Page 55: Slide 1 - Parallels Plesk Control Panel 8.6.0

IBM Software Group | DB2 Information Management Software

Intelligent Visual Explain

bull Where to obtain the codebull httpwwwibmcomsoftwaredatadb2zososcvebull Fixpack 7 available nowbull Key prerequisites

ndash Windows NT Version 40 Windows 2000 or Windows XPndash 150 MB of hard disk spacendash 256 MB of RAMndash Pentium III equivalent or abovendash Either DB2 ConnecttradePersonal Edition Version 7 (or later) or DB2

Client Application Enablertrade(CAE) with a DB2 Connect Enterprise Edition Version 7 (or later) gateway installed

ndash A TCPIP connection to a DB2 for zOS Version 7 or Version 8 host system

ndash A java-enabled browser to view HTML files

IBM Software Group | DB2 Information Management Software

Reference URLs

httpwwwibmcomsoftwaredatadb2zosindexhtmlDB2 for zOS

httpwww-306ibmcomsoftwaredatadb2zossupporthtmlDB2 for zOS technical support page

httpwww-306ibmcomsoftwaredatadb2zososcveindexhtmlDB2 VE download

httpwwwunicodeorg Unicode Home pagehttpwwwunicodeorgunicodestandardprincipleshtmlThe Unicode Standard amp Basic Principlesftpftpsoftwareibmcomsoftwaredatadb2zosdppdpdfDB2 for zOS Distribute Performance analysisftpftpsoftwareibmcomsoftwaredb2storedproceduredb2zos390techdocsH01PDFDB2-Java Performance and Tuning

IBM Software Group | DB2 Information Management Software

Reference URLs

www-106ibmcomdeveloperworksdb2librarytecharticle0203shibamiya0203shibamiya2htmlInsert vs Load Performance White paper

IBM Software Group | DB2 Information Management Software

Acknowledgements to My Friends

Mark Wilson ndash DB2 Product Introduction CenterAkira Shibamiya - SVLCurt Cotner ndash SVLJohn Campbell ndash SVL

Page 56: Slide 1 - Parallels Plesk Control Panel 8.6.0

IBM Software Group | DB2 Information Management Software

Reference URLs

httpwwwibmcomsoftwaredatadb2zosindexhtmlDB2 for zOS

httpwww-306ibmcomsoftwaredatadb2zossupporthtmlDB2 for zOS technical support page

httpwww-306ibmcomsoftwaredatadb2zososcveindexhtmlDB2 VE download

httpwwwunicodeorg Unicode Home pagehttpwwwunicodeorgunicodestandardprincipleshtmlThe Unicode Standard amp Basic Principlesftpftpsoftwareibmcomsoftwaredatadb2zosdppdpdfDB2 for zOS Distribute Performance analysisftpftpsoftwareibmcomsoftwaredb2storedproceduredb2zos390techdocsH01PDFDB2-Java Performance and Tuning

IBM Software Group | DB2 Information Management Software

Reference URLs

www-106ibmcomdeveloperworksdb2librarytecharticle0203shibamiya0203shibamiya2htmlInsert vs Load Performance White paper

IBM Software Group | DB2 Information Management Software

Acknowledgements to My Friends

Mark Wilson ndash DB2 Product Introduction CenterAkira Shibamiya - SVLCurt Cotner ndash SVLJohn Campbell ndash SVL

Page 57: Slide 1 - Parallels Plesk Control Panel 8.6.0

IBM Software Group | DB2 Information Management Software

Reference URLs

www-106ibmcomdeveloperworksdb2librarytecharticle0203shibamiya0203shibamiya2htmlInsert vs Load Performance White paper

IBM Software Group | DB2 Information Management Software

Acknowledgements to My Friends

Mark Wilson ndash DB2 Product Introduction CenterAkira Shibamiya - SVLCurt Cotner ndash SVLJohn Campbell ndash SVL

Page 58: Slide 1 - Parallels Plesk Control Panel 8.6.0

IBM Software Group | DB2 Information Management Software

Acknowledgements to My Friends

Mark Wilson ndash DB2 Product Introduction CenterAkira Shibamiya - SVLCurt Cotner ndash SVLJohn Campbell ndash SVL