db2 10 for z_os technical overview

722
ibm.com/redbooks Front cover DB2 10 for z/OS Technical Overview Paolo Bruni Rafael Garcia Sabine Kaschta Josef Klitsch Ravi Kumar Andrei Lurie Michael Parbs Rajesh Ramachandran Explore the new system and application functions Obtain information about expected performance improvements Decide how and when to migrate to DB2 10

Upload: tstfree2001

Post on 22-Jun-2015

171 views

Category:

Documents


4 download

TRANSCRIPT

ibm.com/redbooksFront coverDB2 10 for z/OS Technical OverviewPaolo BruniRafael GarciaSabine KaschtaJosef KlitschRavi KumarAndrei LurieMichael ParbsRajesh RamachandranExplore the new system and application functionsObtain information about expected performance improvementsDecide how and when to migrate to DB2 10International Technical Support OrganizationDB2 10 for z/OS Technical OverviewDecember 2010SG24-7892-00 Copyright International Business Machines Corporation 2010.All rights reserved.NotetoU.S.GovernmentUsersRestrictedRights--Use,duplicationordisclosurerestrictedbyGSAADPScheduleContract with IBM Corp.First Edition (December 2010)This edition applies to IBM DB2 Version 10.1 for z/OS (program number 5605-DB2).Note: Before using this information and the product it supports, read the information in Notices on page xxvii.Note: This book is based on a pre-GA version of a program and may not apply when the program becomes generally available. We recommend that you consult the program documentation or follow-on versions of this IBM Redbooks publication for more current information. Copyright IBM Corp. 2010. All rights reserved. iiiContentsFigures. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .xiiiExamples. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .xixTables. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxvNotices. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxviiTrademarks. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .xxviiiPreface. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .xxixThe team who wrote this book . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .xxixAcknowledgments. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .xxxiNow you can become a published author, too!. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .xxxiiiComments welcome. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .xxxiiiStay connected to IBM Redbooks publication . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .xxxiiiSummary of changes. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxxvDecember 2010, First Edition. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxxvMarch 2011, First Update . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxxvDecember 2011, Second Update . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .xxxviAugust 2013, Third Update . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .xxxviChapter 1.DB2 10 for z/OS at a glance . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .11.1Executive summary. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .21.2Benefits of DB2 10. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .31.3Subsystem enhancements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .41.4Application functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .71.5Operation and performance enhancements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .12Part 1.Subsystem. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1Chapter 2.Synergy with System z. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .32.1Synergy with System z in general . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .42.2Synergy with IBM System z and z/OS. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .42.2.1DBM1 64-bit memory usage and virtual storage constraint relief . . . . . . . . . . . . . .42.2.2ECSA virtual storage constraint relief . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .52.2.3Increase of 64-bit memory efficiency. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .52.2.4Improved CPU cache performance. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .72.2.5HiperDispatch . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .82.2.6XML virtual storage constraint relief . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .92.2.7XML fragment validation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .92.2.8Improved DB2 startup times and DSMAX with z/OS V1R12. . . . . . . . . . . . . . . . .92.2.9CPU measurement facility. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .92.3Synergy with IBM zEnterprise System . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .102.4Synergy with storage. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .132.4.1Extended address volumes. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .132.4.2More data set types supported on EAV. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .152.4.3Dynamic volume expansion feature . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .162.4.4SMS data set separation by volume . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .162.4.5High Performance FICON. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .17ivDB2 10 for z/OS Technical Overview2.4.6IBM System Storage DS8800 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .202.4.7DFSMS support for solid-state drives . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .212.4.8Easy Tier technology. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .222.4.9Data set recovery of moved and deleted data sets. . . . . . . . . . . . . . . . . . . . . . . .222.4.10Synergy with FlashCopy . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .232.4.11DB2 catalog and directory now SMS managed. . . . . . . . . . . . . . . . . . . . . . . . .242.5z/OS Security Server. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .252.5.1RACF password phrases. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .252.5.2RACF identity propagation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .262.6Synergy with TCP/IP. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .262.6.1z/OS V1R10 and IPv6 support. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .272.6.2z/OS UNIX System Services named pipe support in FTP. . . . . . . . . . . . . . . . . .272.6.3IPSec encryption. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .282.6.4SSL encryption . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .302.7WLM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .312.7.1DSN_WLM_APPLENV stored procedure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .312.7.2Classification of DRDA workloads using DB2 client information. . . . . . . . . . . . . .322.7.3WLM blocked workload support. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .352.7.4Extend number of WLM reporting classes to 2,048. . . . . . . . . . . . . . . . . . . . . . .382.7.5Support for enhanced WLM routing algorithms. . . . . . . . . . . . . . . . . . . . . . . . . . .382.8Using RMF for zIIP reporting and monitoring . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .382.8.1DRDA workloads. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .392.8.2Batch workloads . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .392.9Warehousing on System z. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .422.9.1Cognos on System z. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .422.10Data encryption. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .432.10.1IBM TotalStorage for encryption on disk and tape . . . . . . . . . . . . . . . . . . . . . . .432.11IBM WebSphere DataPower . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .442.12Additional zIIP and zAAP eligibility . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .452.12.1DB2 10 parallelism enhancements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .462.12.2DB2 10 RUNSTATS utility. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .462.12.3DB2 10 buffer pool prefetch and deferred write activities . . . . . . . . . . . . . . . . . .462.12.4z/OS sort utility (DFSORT) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .492.12.5DRDA workloads. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .492.12.6zAAP on zIIP. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .492.12.7z/OS XML system services . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .49Chapter 3.Scalability . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .513.1Virtual storage relief. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .523.1.1Support for full 64-bit run time. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .523.1.264-bit support for the z/OS ODBC driver. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .533.2Reduction in latch contention. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .543.3Reduction in catalog contention . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .553.4Increased number of packages in SPT01 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .553.5The WORKFILE database enhancements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .563.5.1Support for spanned work file records. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .563.5.2In-memory work file enhancements for performance . . . . . . . . . . . . . . . . . . . . . .573.5.3The CREATE TABLESPACE statement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .573.5.4Installation changes. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .583.6Elimination of UTSERIAL for DB2 utilities. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .613.7Support for Extended Address Volumes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .623.8Shutdown and restart times, and DSMAX. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .643.9Compression of SMF records . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .64 ContentsvChapter 4.Availability. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .674.1Online schema enhancements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .684.1.1UTS with DB2 9: Background information. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .684.1.2UTS with DB2 10: The ALTER options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .694.1.3Pending definition changes. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .724.1.4Online schema changes in detail. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .734.1.5Materialization of pending definition changes . . . . . . . . . . . . . . . . . . . . . . . . . . . .864.1.6Impact on immediate options and DROP PENDING CHANGES . . . . . . . . . . . . .894.1.7UTS ALTER for MEMBER CLUSTER. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .924.1.8Utilities support for online schema changes . . . . . . . . . . . . . . . . . . . . . . . . . . . . .934.2Autonomic checkpoint . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .964.3Dynamically adding an active log data set. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .984.4Preemptible backout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1004.5Support for rotating partitions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1004.6Compress on insert . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1034.6.1DSN1COMP considerations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1054.6.2Checking whether the data in a table space is compressed. . . . . . . . . . . . . . . .1064.6.3Data is not compressed. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1064.7Long-running reader warning message. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1064.8Online REORG enhancements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1074.9Increased availability for CHECK utilities. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .108Chapter 5.Data sharing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1095.1Subgroup attach name . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1105.2Delete data sharing member . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1125.3Buffer pool scan avoidance. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1145.4Universal table space support for MEMBER CLUSTER. . . . . . . . . . . . . . . . . . . . . . .1145.5Restart light handles DDF indoubt units of recovery. . . . . . . . . . . . . . . . . . . . . . . . . .1175.6Auto rebuild coupling facility lock structure on long IRLM waits during restart . . . . . .1185.7Log record sequence number spin avoidance for inserts to the same page. . . . . . . .1185.8IFCID 359 for index split . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1195.9Avoid cross invalidations. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1195.10Recent DB2 9 enhancements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1205.10.1Random group attach DSNZPARM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1205.10.2Automatic GRECP recovery functions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1205.10.3The -ACCESS DATABASE command enhancements . . . . . . . . . . . . . . . . . . .1215.10.4Reduction in forced log writes. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .122Part 2.Application functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .123Chapter 6.SQL. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1256.1Enhanced support for SQL scalar functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1266.1.1SQL scalar functions syntax changes. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1286.1.2Examples of SQL scalar functions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1366.1.3SQL scalar function versioning . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1386.1.4Deploying non-inline SQL scalar functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1406.1.5ALTER actions for the SQL scalar functions. . . . . . . . . . . . . . . . . . . . . . . . . . . .1416.2Support for SQL table functions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1446.2.1SQL table functions syntax changes. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1446.2.2Examples of CREATE and ALTER SQL table functions. . . . . . . . . . . . . . . . . . .1476.3Enhanced support for native SQL procedures. . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1486.4Extended support for implicit casting. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1486.4.1Examples of implicit casting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1506.4.2Rules for result data types. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .152viDB2 10 for z/OS Technical Overview6.4.3Function resolution . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1526.5Support for datetime constants . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1546.6Variable timestamp precision. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1566.6.1String representation of timestamp values . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1576.6.2Timestamp assignment and comparison. . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1586.6.3Scalar function changes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1616.6.4Application programming. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1636.7Support for TIMESTAMP WITH TIME ZONE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1666.7.1Examples of TIMESTAMP WITH TIME ZONE . . . . . . . . . . . . . . . . . . . . . . . . . .1676.7.2String representation of TIMESTAMP WITH TIME ZONE values. . . . . . . . . . . .1696.7.3Determination of the implicit time zone . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1706.7.4TIMESTAMP WITH TIME ZONE assignment and comparison. . . . . . . . . . . . .1716.7.5Rules for result data type with TIMESTAMP WITH TIME ZONE operands . . . .1736.7.6CURRENT TIMESTAMP WITH TIME ZONE special register. . . . . . . . . . . . . . .1746.7.7Scalar function changes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1776.7.8Statements changes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1806.7.9Application programming. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1826.8Support for OLAP aggregation specification . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .184Chapter 7.Application enablement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2037.1Support for temporal tables and versioning. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2047.1.1System period . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2057.1.2Application period . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2157.2Access plan stability and instance-based statement hints. . . . . . . . . . . . . . . . . . . . .2207.2.1Access path repository . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2217.2.2BIND QUERY and FREE QUERY DB2 commands . . . . . . . . . . . . . . . . . . . . . .2227.2.3Access plan stability . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2237.2.4DB2 9 access plan stability support. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2247.2.5DB2 10 access plan stability support. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2297.2.6Instance-based statement hints. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2307.3Addition of extended indicator variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2307.4New Universal Language Interface program (DSNULI). . . . . . . . . . . . . . . . . . . . . . .2357.5Access to currently committed data. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2387.6EXPLAIN MODE special register to explain dynamic SQL . . . . . . . . . . . . . . . . . . . . .2407.7Save LASTUSED information for packages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .242Chapter 8.XML . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2438.1DB2 9 XML additional functions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2448.1.1The XMLTABLE function. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2448.1.2The XMLCAST specification . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2508.1.3XML index for XML joins . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2518.1.4Index enhancements. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2528.1.5XML index use by queries with XMLTABLE . . . . . . . . . . . . . . . . . . . . . . . . . . . .2548.1.6XPath scan improvement. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2578.1.7XPath functions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2588.2XML type modifier . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2588.3XML schema validation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2628.3.1Enhancements to XML schema validation . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2638.3.2Determining whether an XML document has been validated . . . . . . . . . . . . . . .2688.4XML consistency checking with the CHECK DATA utility . . . . . . . . . . . . . . . . . . . . . .2698.5Support for multiple versions of XML documents . . . . . . . . . . . . . . . . . . . . . . . . . . . .2738.5.1XML versions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2748.5.2Storage structure for XML data with versions . . . . . . . . . . . . . . . . . . . . . . . . . . .276 Contentsvii8.6Support for updating part of an XML document. . . . . . . . . . . . . . . . . . . . . . . . . . . . .2808.6.1Updates to entire XML documents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2808.6.2Partial updates of XML documents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2828.7Support for binary XML . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2868.8Support for XML date and time . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2908.8.1Enhancements for XML date and time support. . . . . . . . . . . . . . . . . . . . . . . . . .2908.8.2XML date and time support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2918.9XML in native SQL stored procedures and UDFs . . . . . . . . . . . . . . . . . . . . . . . . . . . .3008.9.1Enhancements to native SQL stored procedures . . . . . . . . . . . . . . . . . . . . . . . .3018.9.2Enhancements to user defined SQL scalar and table functions . . . . . . . . . . . . .3028.9.3Decompose to multiple tables with a native SQL procedure. . . . . . . . . . . . . . . .3058.10Support for DEFINE NO for LOBs and XML . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3068.10.1IMPDSDEF subsystem parameter. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3078.10.2Usage reference . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3078.11LOB and XML data streaming. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .308Chapter 9.Connectivity and administration routines . . . . . . . . . . . . . . . . . . . . . . . . .3099.1DDF availability . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3109.1.1Online communications database changes. . . . . . . . . . . . . . . . . . . . . . . . . . . .3109.1.2Online DDF location alias name changes. . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3119.1.3Domain name is now optional . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3159.1.4Acceptable period for honoring cancel requests. . . . . . . . . . . . . . . . . . . . . . . . .3159.1.5Sysplex balancing using SYSIBM.IPLIST. . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3169.1.6Message-based correlation with remote IPv6 clients . . . . . . . . . . . . . . . . . . . . .3169.2Monitoring and controlling connections and threads at the server. . . . . . . . . . . . . . .3179.2.1Create the tables. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3189.2.2Insert a row in DSN_PROFILE_TABLE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3189.2.3Insert a row in DSN_PROFILE_ATTRIBUTES. . . . . . . . . . . . . . . . . . . . . . . . . .3199.2.4Activate profiles. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3219.2.5Deactivate profiles. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3219.2.6Activating a subset of profiles . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3219.3JDBC Type 2 driver performance enhancements . . . . . . . . . . . . . . . . . . . . . . . . . . . .3219.3.1Limited block fetch. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3229.3.2Conditions for limited block fetch. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3249.4High performance DBAT. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3249.4.1High performance DBAT to reduce CPU usage . . . . . . . . . . . . . . . . . . . . . . . . .3249.4.2Dynamic switching to RELEASE(COMMIT) . . . . . . . . . . . . . . . . . . . . . . . . . . . .3259.4.3Requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3259.5Use of RELEASE(DEALLOCATE) in Java applications . . . . . . . . . . . . . . . . . . . . . . .3259.6Support for 64-bit ODBC driver . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3279.7DRDA support of Unicode encoding for system code pages. . . . . . . . . . . . . . . . . . .3289.8Return to client result sets. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3289.9DB2-supplied stored procedures. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3299.9.1Administrative task scheduler . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3299.9.2Administration enablement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3319.9.3DB2 statistics routines. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .332Part 3.Operation and performance. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .335Chapter 10.Security . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .33710.1Policy-based audit capability. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .33810.1.1Audit policies. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .33810.1.2Authorization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .34810.1.3Creating audit reports . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .349viiiDB2 10 for z/OS Technical Overview10.1.4Policy-based SQL statement auditing for tables . . . . . . . . . . . . . . . . . . . . . . . .34910.1.5Summary. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .35410.2More granular system authorities and privileges. . . . . . . . . . . . . . . . . . . . . . . . . . . .35410.2.1Separation of duties. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .35610.2.2Least privilege. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .35610.2.3Grant and revoke system privilege changes. . . . . . . . . . . . . . . . . . . . . . . . . . .35610.2.4Catalog changes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .35910.2.5SECADM authority . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .35910.2.6System DBADM authority . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .36310.2.7DATAACCESS authority. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .36710.2.8ACCESSCTRL authority . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .36910.2.9Authorities for SQL tuning. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .37110.2.10The CREATE_SECURE_OBJECT system privilege. . . . . . . . . . . . . . . . . . .37610.2.11Using RACF profiles to manage DB2 10 authorities. . . . . . . . . . . . . . . . . . . .37710.2.12Separating SECADM authority from SYSADM and SYSCTRL authority . . . .37710.2.13Minimize need for SYSADM authorities . . . . . . . . . . . . . . . . . . . . . . . . . . . . .38010.3System-defined routines . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .38010.3.1Installing DB2-supplied system-defined routines. . . . . . . . . . . . . . . . . . . . . . .38110.3.2Define your own system-defined routines. . . . . . . . . . . . . . . . . . . . . . . . . . . . .38110.3.3Mark user-provided SQL table function as system defined. . . . . . . . . . . . . . . .38110.4The REVOKE dependent privilege clause. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .38310.4.1Revoke statement syntax . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .38310.4.2Revoke dependent privileges system default . . . . . . . . . . . . . . . . . . . . . . . . . .38310.5Support for row and column access control. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .38410.5.1Authorization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .38410.5.2New terminology . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .38510.5.3Object types for row and column based policy definition. . . . . . . . . . . . . . . . .38610.5.4SQL DDL for managing new access controls and objects . . . . . . . . . . . . . . . .38710.5.5Built-in functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .38810.5.6Catalog tables and row and column access control . . . . . . . . . . . . . . . . . . . . .38910.5.7Sample customer table used in examples. . . . . . . . . . . . . . . . . . . . . . . . . . . .39010.5.8Row access control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .39110.5.9Row permissions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .39310.5.10Column access control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .39510.5.11Column masks. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .39610.5.12Row permissions and column masks in interaction. . . . . . . . . . . . . . . . . . . .39810.5.13Application design considerations. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .40010.5.14Operational considerations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .40010.5.15Performance considerations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .40110.5.16Catalog changes for access control. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .40610.5.17Added and changed IFCIDs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .41110.6Support for z/OS security features. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .41110.6.1z/OS Security Server password phrase. . . . . . . . . . . . . . . . . . . . . . . . . . . . . .41110.6.2z/OS Security Server identity propagation. . . . . . . . . . . . . . . . . . . . . . . . . . . .416Chapter 11.Utilities. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .42511.1Support FlashCopy enhancements. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .42611.1.1Getting started with FlashCopy image copies with the COPY utility. . . . . . . . .42611.1.2FlashCopy image copies and utilities other than COPY . . . . . . . . . . . . . . . . . .43711.1.3Requirements and restrictions for using FlashCopy image copies . . . . . . . . . .44411.2Autonomic statistics. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .44511.2.1Using RUNSTATS profiles . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .44711.2.2Updating RUNSTATS profiles. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .447 Contentsix11.2.3Deleting RUNSTATS profiles . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .44711.2.4Combining autonomic and manual statistics maintenance . . . . . . . . . . . . . . . .44811.3RECOVER with BACKOUT YES. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .44811.4Online REORG enhancements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .45211.4.1Improvements to online REORG for base tables spaces with LOBs. . . . . . . .45211.4.2REORG SHRLEVEL options for LOB table spaces . . . . . . . . . . . . . . . . . . . . .45811.4.3Improved usability of REORG of disjoint partition ranges. . . . . . . . . . . . . . . . .45811.4.4Cancelling blocking claimers with REORG FORCE . . . . . . . . . . . . . . . . . . . . .46011.5Increased availability for CHECK utilities. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .46411.6IBM DB2 Sort for z/OS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .46711.7UTSERIAL elimination. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .46811.8REPORT utility output improvement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .468Chapter 12.Installation and migration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .47112.1Planning for migration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .47212.1.1DB2 10 pre-migration health check job. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .47312.1.2Fallback SPE and maintenance . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .47412.1.3Partitioned data set extended support. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .47712.1.4Convert bootstrap data set to expanded format . . . . . . . . . . . . . . . . . . . . . . . .47712.1.5Plans and packages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .47812.2Some release incompatibilities . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .47912.2.1CHAR and VARCHAR formatting for decimal data. . . . . . . . . . . . . . . . . . . . . .47912.2.2Fall back restriction for native SQL procedures. . . . . . . . . . . . . . . . . . . . . . . .48012.2.3Fall back restriction for index on expression. . . . . . . . . . . . . . . . . . . . . . . . . . .48012.3DB2 10 product packaging . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .48012.3.1Removed features and functions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .48112.3.2Deprecated features and functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .48312.3.3Base engine and features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .48412.4Command changes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .48612.5Catalog changes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .48912.5.1SMS-managed DB2 catalog and directory data sets. . . . . . . . . . . . . . . . . . . .49012.5.2CLOB and BLOB columns added to the catalog. . . . . . . . . . . . . . . . . . . . . . . .49012.5.3Reduced catalog contention . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .49112.5.4Converting catalog and directory table spaces to partition-by-growth. . . . . . .49212.5.5Added catalog objects. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .49612.6Implications of DB2 catalog restructure. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .50012.7DSNZPARM change summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .50112.8EXPLAIN tables in DB2 10 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .50712.8.1EXPLAIN table changes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .50812.8.2Tools to help you convert to new format and Unicode . . . . . . . . . . . . . . . . . . .50912.8.3Converting the EXPLAIN table to new format and Unicode . . . . . . . . . . . . . . .51412.9SMS-managed DB2 catalog . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .51612.10Skip level migration. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .51712.11Fallback. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .51912.11.1Implication to catalog image copy job . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .51912.11.2Frozen objects. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .52012.12Improvements to DB2 installation and samples. . . . . . . . . . . . . . . . . . . . . . . . . . .52012.12.1Installation pop-up panel DSNTIPSV . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .52012.12.2Job DSNTIJXZ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .52012.12.3Installation verification procedure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .52212.12.4Sample for XML. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .52212.13Simplified installation and configuration of DB2-supplied routines . . . . . . . . . . . . .52312.13.1Deploying the DB2-supplied routines when installing DB2 10 for z/OS . . . . .528xDB2 10 for z/OS Technical Overview12.13.2Validating deployment of DB2-supplied routines. . . . . . . . . . . . . . . . . . . . . .52912.14Eliminating DDF private protocol. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .52912.15Precompiler NEWFUN option . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .531Chapter 13.Performance . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .53313.1Performance expectations. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .53513.2Improved optimization techniques. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .53613.2.1Safe query optimization. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .53713.2.2RID pool enhancements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .53713.2.3Range-list index scan . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .53913.2.4IN-LIST enhancements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .54013.2.5Aggressive merge for views and table expressions . . . . . . . . . . . . . . . . . . . . .54213.2.6Improvements to predicate processing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .54413.2.7Sort enhancements. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .54413.3Dynamic prefetch enhancements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .54513.3.1Index scans using list prefetch . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .54513.3.2Row level sequential detection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .54613.3.3Progressive prefetch quantity . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .54813.4DDF enhancements. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .54813.4.1The RELEASE(DEALLOCATE) BIND option . . . . . . . . . . . . . . . . . . . . . . . . . .54813.4.2Miscellaneous DDF performance improvements. . . . . . . . . . . . . . . . . . . . . . .55113.5Dynamic statement cache enhancements. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .55313.6INSERT performance improvement. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .55713.6.1I/O parallelism for index updates. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .55813.6.2Sequential inserts into the middle of a clustering index. . . . . . . . . . . . . . . . . .55913.7Referential integrity checking improvement. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .56013.8Buffer pool enhancements. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .56013.8.1Buffer storage allocation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .56113.8.2In-memory table spaces and indexes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .56113.8.3Reduce latch contention . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .56313.9Work file enhancements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .56413.10Support for z/OS enqueue management. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .56513.11LOB enhancements. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .56513.11.1LOAD and UNLOAD with spanned records. . . . . . . . . . . . . . . . . . . . . . . . . .56513.11.2File reference variable enhancement for 0 length LOBs. . . . . . . . . . . . . . . . .56713.11.3Streaming LOBs and XML between DDF and DBM1 . . . . . . . . . . . . . . . . . . .56813.11.4Inline LOBs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .56913.12Utility BSAM enhancements for extended format data sets . . . . . . . . . . . . . . . . . .57113.13Performance enhancements for local Java and ODBC applications. . . . . . . . . . . .57213.14Logging enhancements. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .57413.14.1Long term page fix log buffers. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .57413.14.2LOG I/O enhancements. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .57513.14.3Log latch contention reduction. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .57513.15Hash access . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .57513.15.1The hashing definitions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .57913.15.2Using hash access . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .58013.15.3Monitoring the performance of hash access tables. . . . . . . . . . . . . . . . . . . . .58413.15.4New SQLCODEs to support hash access. . . . . . . . . . . . . . . . . . . . . . . . . . . .58513.16Additional non-key columns in a unique index. . . . . . . . . . . . . . . . . . . . . . . . . . . .58613.17DB2 support for solid state drive. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .59013.18Extended support for the SQL procedural language. . . . . . . . . . . . . . . . . . . . . . . .59113.19Preemptable backout. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .59213.20Eliminate mass delete locks for universal table spaces. . . . . . . . . . . . . . . . . . . . .592 Contentsxi13.21Parallelism enhancements. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .59313.21.1Remove some restrictions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .59313.21.2Improve the effectiveness of parallelism. . . . . . . . . . . . . . . . . . . . . . . . . . . . .59413.21.3Straw model for workload distribution . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .59513.21.4Sort merge join improvements. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .59713.22Online performance buffers in 64-bit common. . . . . . . . . . . . . . . . . . . . . . . . . . . .59713.23Enhanced instrumentation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .59813.23.1One minute statistics trace interval . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .59813.23.2IFCID 359 for index leaf page split . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .59813.23.3Separate DB2 latch and transaction lock in Accounting class 8 . . . . . . . . . . .59913.23.4Storage statistics for DIST address space . . . . . . . . . . . . . . . . . . . . . . . . . . .59913.23.5Accounting: zIIP SECP values . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .60013.23.6Package accounting information with rollup . . . . . . . . . . . . . . . . . . . . . . . . . .60113.23.7DRDA remote location statistics detail. . . . . . . . . . . . . . . . . . . . . . . . . . . . . .60113.24Enhanced monitoring support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .60313.24.1Unique statement identifier . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .60413.24.2New monitor class 29 for statement detail level monitoring . . . . . . . . . . . . . .60513.24.3System level monitoring . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .605Part 4.Appendixes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .613Appendix A.Information about IFCID changes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .615A.1IFCID 002: Dynamic statement cache. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .616A.2IFCID 002 - Currently committed data. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .616A.3IFCID 013 and IFCID 014. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .617A.4IFCID 106 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .618A.5IFCID 225 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .618A.6IFCID 267 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .621A.7IFCID 316 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .621A.8IFCID 357 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .622A.9IFCID 358 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .622A.10IFCID 359 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .622A.11IFCID 360 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .623A.12IFCID 363 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .623Appendix B.Summary of relevant maintenance . . . . . . . . . . . . . . . . . . . . . . . . . . . . .627B.1DB2 APARs. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .628B.2z/OS APARs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .634B.3OMEGAMON PE APARs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .635Abbreviations and acronyms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .637Related publications. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .641IBM Redbooks publication . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .641Other publications. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .641Online resources. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .642How to get Redbooks publications. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .643Help from IBM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .643Index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .645xiiDB2 10 for z/OS Technical Overview Copyright IBM Corp. 2010. All rights reserved. xiiiFigures2-1DB2 9 and DB2 10 VSCR in the DBM1 address space . . . . . . . . . . . . . . . . . . . . . . . . .52-2Address translation for 4 KB pages. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .62-3Address translation for 1 MB pages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .72-4Memory and CPU cache latencies for z10 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .82-5IBM zEnterprise System components. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .102-6IBM zEnterprise System: Capacity and scalability . . . . . . . . . . . . . . . . . . . . . . . . . . . .112-7zEnterprise CPU reduction with DB2 9 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .132-8EAV breaking the limit. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .142-9Overview DS8000 EAV support. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .142-10EAV support for ICF catalogs and VVDS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .162-11zHPF performance . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .172-12zHPF link protocol comparison . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .182-13DS8000 versus DS8300 for DB2 sequential scan. . . . . . . . . . . . . . . . . . . . . . . . . . .202-14Log writes throughput comparisons. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .212-15FLASHCOPY NO COPY utility accounting report. . . . . . . . . . . . . . . . . . . . . . . . . . . .242-16FLASHCOPY YES COPY utility accounting report . . . . . . . . . . . . . . . . . . . . . . . . . . .242-17UNIX System Services file system information for a UNIX System Services named pipe. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .272-18How FTP access to UNIX named pipes works . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .282-19z/OS IPSec overview. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .292-20IPSEC zIIP eligibility . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .302-21z/OS V1R12 AT-TLS in-memory encrypt / decrypt improvement . . . . . . . . . . . . . . . .312-22DSN_WLM_APPLENV output. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .322-23WLM classification DRDA work based on program name. . . . . . . . . . . . . . . . . . . . .332-24SDSF enclave display of DRDA request. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .342-25SDSF enclave information for client program ZSYNERGY. . . . . . . . . . . . . . . . . . . . .342-26DB2 display thread command showing DB2 client information. . . . . . . . . . . . . . . . . .352-27Blocked workload RMF CPU activity report. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .372-28Blocked workload RMF workload activity report . . . . . . . . . . . . . . . . . . . . . . . . . . . . .372-29RMF workload activity report for RMF report class ZSYNERGY . . . . . . . . . . . . . . . .392-30WLM classification for batch job . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .402-31SDSF display active batch WLM classification . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .402-32RMF workload activity report for the RUNSTATS report class . . . . . . . . . . . . . . . . . .412-33DB2 RUNSTATS utility accounting report. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .422-34WebSphere DataPower DRDA capabilities. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .442-35Specialty engines applicability. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .452-36Comparison of zAAP and zIIP. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .462-37OMEGAMON PE statistics report DBM1 zIIP usage . . . . . . . . . . . . . . . . . . . . . . . .472-38WLM report class assignment for the MSTR address space . . . . . . . . . . . . . . . . . . .482-39SDSF display active panel to verify MSTR report class assignment. . . . . . . . . . . . .482-40RMF workload activity report zIIP usage for buffer pool prefetches . . . . . . . . . . . . . .482-41z/OS XML system services zIIP and zAAP processing flow. . . . . . . . . . . . . . . . . . . .503-1Updated installation panel DSNTIP9. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .584-1Possible table space type conversions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .704-2Possible online schema changes for table spaces and indexes. . . . . . . . . . . . . . . . . .714-3ALTER TABLESPACE ... BUFFERPOOL statement and resulting SQL code . . . . . . .754-4SYSIBM.SYSPENDINGDDL after ALTER . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .764-5-647 SQL code after ALTER TABLESPACE ... BUFFERPOOL . . . . . . . . . . . . . . . . . .77xivDB2 10 for z/OS Technical Overview4-6ALTER TABLESPACE ... SEGSIZE decreased . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .794-7ALTER TABLE ADD ORGANIZE BY HASH. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .814-8ALTER TABLE organization-clause . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .814-9Partition-by-growth to hash . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .824-10REORGed HASH SPACE. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .844-11DROP ORGANIZATION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .854-12REORG TABLESPACE messages for materialization of pending changes . . . . . . . .864-13SQLCODE +610 message . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .894-14One wrapped row showing pending change in SYSPENDINGDDL . . . . . . . . . . . . . .904-15SQLCODE for normally immediate change due to pending change. . . . . . . . . . . . . .904-16Recover after alter before materialization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .934-17Recover to current after materialization of pending definition changes. . . . . . . . . . .934-18Effects of REPAIR SET NOAREORPEND . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .964-19-DIS LOG OUTPUT for CHECKTYPE=BOTH . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .984-20-SET LOG syntax . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .984-21ROTATE 3 TO LAST sample . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1014-22SELECT to identify right physical partition for ROTATE. . . . . . . . . . . . . . . . . . . . . .1024-23ROTATE 4 TO LAST. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1024-24-DIS DB after two ROTATE table space executions. . . . . . . . . . . . . . . . . . . . . . . . .1024-25LIMITKEY, PARTITION, and LOGICAL_PART after second rotate . . . . . . . . . . . . .1034-26Error message you get when trying to rotate the last partition . . . . . . . . . . . . . . . . .1034-27Message DSNU241I compression dictionary build. . . . . . . . . . . . . . . . . . . . . . . . . .1044-28Compression dictionary pages spread over table space. . . . . . . . . . . . . . . . . . . . .1055-1MEMBER CLUSTER with RECOVER. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1175-2ACCESS DATABASE command. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1226-1CREATE FUNCTION (SQL scalar) syntax diagram: Main . . . . . . . . . . . . . . . . . . . . .1286-2CREATE FUNCTION (SQL scalar) syntax diagram: parameter-declaration. . . . . . .1296-3CREATE FUNCTION (SQL scalar) syntax diagram: SQL-routine-body. . . . . . . . . . .1296-4ALTER FUNCTION (SQL scalar) syntax diagram: Main. . . . . . . . . . . . . . . . . . . . . . .1336-5CREATE FUNCTION (SQL table) syntax diagram: Main . . . . . . . . . . . . . . . . . . . . . .1446-6CREATE FUNCTION (SQL table): Options. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1456-7CREATE FUNCTION (SQL table) syntax: SQL-routine-body. . . . . . . . . . . . . . . . . . .1456-8RETURN SQL control statement. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1466-9ALTER FUNCTION (SQL table): Main . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1466-10Enhanced assignment (SET) statement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1486-11Stored length of the timestamp based on its precision . . . . . . . . . . . . . . . . . . . . . . .1576-12Described length of the timestamp based on its precision . . . . . . . . . . . . . . . . . . . .1576-13TIMESTAMP_STRUCT used for SQL_C_TYPE_TIMESTAMP . . . . . . . . . . . . . . . .1656-14TIMESTAMP data types supported by DB2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1676-15Stored length of the TIMESTAMP WITH TIME ZONE based on its precision. . . . .1686-16Described (external) length of the timestamp based on its precision . . . . . . . . . . . .1696-17Syntax for time zone specific expressions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1766-18TIMESTAMP_TZ syntax diagram. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1786-19Syntax diagram for SET SESSION TIME ZONE. . . . . . . . . . . . . . . . . . . . . . . . . . .1816-20Scalar function processing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1856-21Aggregate function processing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1856-22OLAP specification processing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1866-23Window-partition-clause syntax. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1886-24Window-ordering-clause syntax . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1896-25Window aggregation-group-clause . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1956-26Aggregation specification syntax. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2017-1Access path repository . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2217-2BI ND QUERY syntax . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .222 Figuresxv7-3FREE QUERY syntax . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2237-4REBIND (TRIGGER) PACKAGE...PLANMGMT option. . . . . . . . . . . . . . . . . . . . . . .2267-5REBIND (TRIGGER) PACKAGE...PLANMGMT(BASIC) . . . . . . . . . . . . . . . . . . . . . .2267-6REBIND (TRIGGER) PACKAGE...PLANMGMT(EXTENDED) . . . . . . . . . . . . . . . . . .2277-7REBIND (TRIGGER) PACKAGE...SWITCH (1 of 2). . . . . . . . . . . . . . . . . . . . . . . . . .2287-8REBIND (TRIGGER) PACKAGE...SWITCH (2 of 2). . . . . . . . . . . . . . . . . . . . . . . . . .2287-9FREE PACKAGE command with PLANMGMTSCOPE option . . . . . . . . . . . . . . . . . .2297-10Application program or stored procedure linked with DSNULI . . . . . . . . . . . . . . . . .2367-11BIND option CONCURRENTACCESSRESOLUTION . . . . . . . . . . . . . . . . . . . . . . .2387-12USE CURRENTLY COMMITTED clause . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2387-13CREATE PROCEDURE option list option. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2387-14SET CURRENT EXPLAIN MODE. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2408-1The XMLTABLE function syntax . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2448-2Avoid re-evaluation of XMLEXISTS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2588-3XML schemas . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2598-4XML schemas in XML Schema Repository. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2638-5Schema determination. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2648-6CHECK DATA syntax: New keywords. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2708-7The CHECK DATA utility: SHRLEVEL REFERENCE considerations. . . . . . . . . . . .2728-8CHECK DATA: SHRLEVEL CHANGE considerations (1 of 2) . . . . . . . . . . . . . . . . . .2738-9CHECK DATA: SHRLEVEL CHANGE considerations (2 of 2) . . . . . . . . . . . . . . . . . .2738-10Multiversioning scheme. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2768-11Multiversioning for XML data. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2788-12XML locking scheme (with DB2 9 APAR PK55966) . . . . . . . . . . . . . . . . . . . . . . . . .2798-13XML Locking scheme with multiversioning . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2798-14Insert expression syntax . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2828-15Insert expression examples (1 of 3). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2838-16Insert expression examples (2 of 3). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2838-17Insert expression examples (3 of 3). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2848-18Replace expression syntax . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2848-19Replace expression examples (1 of 2) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2858-20Replace expression examples (2 of 2) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2858-21Delete expression syntax . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2868-22Delete expression example. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2868-23Binary XML is not the same as FOR BIT DATA . . . . . . . . . . . . . . . . . . . . . . . . . . . .2878-24Binary XML in the UNLOAD and LOAD utilities . . . . . . . . . . . . . . . . . . . . . . . . . . . .2898-25XML date and time support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2918-26XML date and time related comparison operators. . . . . . . . . . . . . . . . . . . . . . . . . .2938-27XML date and time comparison with SQL date. . . . . . . . . . . . . . . . . . . . . . . . . . . . .2948-28Arithmetic operations on XML duration. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2948-29Arithmetic operations on XML duration, date, and time. . . . . . . . . . . . . . . . . . . . . .2958-30Date and time related XPath functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2968-31Date and time related XPath functions examples . . . . . . . . . . . . . . . . . . . . . . . . . . .2978-32Time zone adjustment functions on date and time (1 of 2) . . . . . . . . . . . . . . . . . . . .2988-33Time zone adjustment functions on date and time (2 of 2) . . . . . . . . . . . . . . . . . . . .2998-34XML index improvement for date and time stamp. . . . . . . . . . . . . . . . . . . . . . . . . .3008-35Native SQL stored procedure using XML parameter. . . . . . . . . . . . . . . . . . . . . . . .3018-36Native a SQL stored procedure using XML variable. . . . . . . . . . . . . . . . . . . . . . . . .3028-37Decompose to multiple tables with a native SQL procedure. . . . . . . . . . . . . . . . . . .3058-38Decompose to multiple tables with a native SQL procedure (DB2 9) . . . . . . . . . . . .3069-1-DISPLAY LOCATION output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3119-2-MODIFY DDF ALIAS syntax diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3119-3DISPLAY DDF command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .313xviDB2 10 for z/OS Technical Overview9-4DISPLAY DDF DETAIL command. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3149-5Extended correlation token in messages. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3179-6Contents of DNS_PROFILE_TABLE. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3199-7Contents of DSN_PROFILE_ATTRIBUTES . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3209-8JDBC type 2 with DB2 9 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3229-9JDBC type 2 with DB2 10 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3239-10Administrative task scheduler . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .33010-1Start audit trace parameter AUDTPLCY. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .34410-2Use of AUDTPLCY in start, stop trace commands . . . . . . . . . . . . . . . . . . . . . . . . . .34510-3Start AUDSYSADMIN audit policy. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .34510-4Start multiple audit trace policies with one start trace command. . . . . . . . . . . . . . .34510-5Display audit policy AUDSYSADM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .34610-6Stop audit policy AUDSYSADMIN. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .34610-7Start AUDTPLCY reason code 00E70022. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .34610-8Start AUDTPLCY reason code 00E70021. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .34710-9Start AUDTPLCY reason code 00E70024. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .34710-10OMEGAMON PE IFCID 362 RECTRACE report. . . . . . . . . . . . . . . . . . . . . . . . . .34710-11OMEGAMON PE IFCID 361 record trace. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .34810-12OMEGAMON PE V1R5 JCL sample. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .34910-13OMEGAMON PE record trace for static SQL . . . . . . . . . . . . . . . . . . . . . . . . . . . . .35310-14System authorities. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .35510-15SQL syntax grant system . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .35710-16SQL syntax revoke system. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .35810-17user DB2R53 is connected to RACF group DB0BSECA . . . . . . . . . . . . . . . . . . . .36210-18OMEGAMON PE category SECMAINT audit report . . . . . . . . . . . . . . . . . . . . . . . .36310-19OMEGAMON PE auth type SYSDBADM audit report. . . . . . . . . . . . . . . . . . . . . .36710-20OMEGAMON PE auth type DATAACCESS audit report. . . . . . . . . . . . . . . . . . . .36910-21OMEGAMON PE auth type ACCESSCTRL audit report. . . . . . . . . . . . . . . . . . . .37110-22SQLADM authority and EXPLAIN privilege. . . . . . . . . . . . . . . . . . . . . . . . . . . . . .37210-23EXPLAIN privilege failure with CURRENT EXPLAIN MODE special register. . . . .37310-24SQLADM authority to use CURRENT EXPLAIN MODE special register . . . . . . . .37510-25OMEGAMON PE auth type SQLADM audit report . . . . . . . . . . . . . . . . . . . . . . . . .37610-26SECADM and ACCESSCTRL not separated from SYSADM. . . . . . . . . . . . . . . . .37810-27SECADM and ACCESSCTRL separated from SYSADM. . . . . . . . . . . . . . . . . . . .37910-28SQLADM Execution failure non-system-defined routine. . . . . . . . . . . . . . . . . . . . .38210-29SQLADM run system-defined user provided UDF . . . . . . . . . . . . . . . . . . . . . . . . .38210-30Revoke syntax diagram. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .38310-31Row permission enforcement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .38510-32Column mask enforcement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .38610-33Alter table row access control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .38710-34Alter table column access control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .38710-35CREATE PERMISSION SQL DDL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .38710-36ALTER PERMISSION DDL. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .38710-37CREATE MASK SQL DDL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .38810-38ALTER MASK DDL. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .38810-39Catalog tables and access control. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .38910-40Sample data customer table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .39010-41Default row permission stored in SYSIBM.SYSCONTROLS . . . . . . . . . . . . . . . . .39110-42Query row access control with default predicate 1=0 . . . . . . . . . . . . . . . . . . . . . . .39210-43Impact of default predicate on query result . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .39210-44SYSIBM.SYSDEPENDENCIES RA01_CUSTOMER . . . . . . . . . . . . . . . . . . . . . . .39410-45Query permission RA01_CUSTOMER without query predicate . . . . . . . . . . . . . . .39410-46Query permission RA01_CUSTOMER and with query predicate . . . . . . . . . . . . . .395 Figuresxvii10-47SYSIBM.SYSDEPENDENCIES rows for INCOME_BRANCH column mask . . . . .39710-48Query with column access control with column mask applied. . . . . . . . . . . . . . . .39810-49Permission and mask policies activated for query sample . . . . . . . . . . . . . . . . . . .39910-50Customer table query for SQLID DB0B#B . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .39910-51Customer table query for SQLID DB0B#B salary > 80000 . . . . . . . . . . . . . . . . . . .39910-52Customer table query for SQLID DB0B#C selecting rows of branch C. . . . . . . . .40010-53Alter trigger syntax. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .40110-54RA02_CUSTOMERS EXPLAIN output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .40310-55RA02_CUSTOMERS DSN_PREDICAT_TABLE query output . . . . . . . . . . . . . . . .40410-56TRA02_CUSTOMERS DSN_STRUCT_TABLE query output. . . . . . . . . . . . . . . .40410-57OMEGAMON PE formatted audit report for audit category EXECUTE. . . . . . . . .40510-58Query SYSIBM.SYSPACKDEP. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .40610-59Query DSN_STATEMENT_CACHE_TABLE . . . . . . . . . . . . . . . . . . . . . . . . . . . . .40610-60DRDA Environment for password phrase scenario. . . . . . . . . . . . . . . . . . . . . . . . .41210-61SYSIBM.USERNAMES row DSNLEUSR encrypted. . . . . . . . . . . . . . . . . . . . . . . .41410-62SPUFI and outbound translation with password phrase . . . . . . . . . . . . . . . . . . . . .41410-63OMEGAMON PE RECTRACE report on DRDA outbound translation . . . . . . . . . .41410-64TestJDBC output. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .41510-65DISPLAY THREAD taken during COBOL SQL connect scenario. . . . . . . . . . . . .41610-66z/OS identity propagation TrustedContextDB2zOS flow. . . . . . . . . . . . . . . . . . . . .41710-67RACMAP LISTMAP command output. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .41810-68getDB2TrustedPooledConnection. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .42010-69getDB2Connection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .42010-70Display thread output right after trusted context pool connection . . . . . . . . . . . . . .42110-71Display thread output right after trusted context switch. . . . . . . . . . . . . . . . . . . . .42210-72Audit report trusted context SET CURRENT SQLID. . . . . . . . . . . . . . . . . . . . . . . .42210-73Audit report establish trusted context . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .42310-74Audit report distributed identity: RACF authorization ID mapping. . . . . . . . . . . . . .42310-75Audit report trusted context switching . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .42411-1FCCOPY keyword on COPY syntax . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .42711-2FLASHCOPY_COPY=YES versus FLASHCOPY_COPY=NO in DSNZPARM . . . .42911-3Create FlashCopy image copy and sequential copy depending on ZPARM setting.43011-4FlashCopy image copy of partitioned table space plus sequential copy. . . . . . . . . .43211-5FLASHCOPY CONSISTENT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .43411-6REBUILD_INDEX without FLASHCOPY. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .44111-7REBUILD INDEX with FLASHCOPY. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .44211-8REORG INDEX without FLASHCOPY . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .44311-9Profile definition for RUNSTATS. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .44611-10RECOVER BACKOUT YES: Base situation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .44911-11RECOVER TABLESPACE without BACKOUT YES. . . . . . . . . . . . . . . . . . . . . . . .44911-12RECOVER TABLESPACE ... BACKOUT YES. . . . . . . . . . . . . . . . . . . . . . . . . . . .45011-13Recover multiple table spaces to the same UR with BACKOUT YES . . . . . . . . . .45111-14Enhanced REORG TABLESPACE syntax for PART keyword . . . . . . . . . . . . . . . .45911-15-DIS DB command output after a couple of ROTATE commands. . . . . . . . . . . . .46011-16LISTDEF syntax change for multiple partition ranges. . . . . . . . . . . . . . . . . . . . . . .46011-17FORCE keyword on REORG . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .46111-18Possible effect of option FORCE ALL on REORG . . . . . . . . . . . . . . . . . . . . . . . . .46211-19CHECK DATA with inconsistencies found and CHECK_SETCHKP=YES . . . . . . .46511-20CHECK DATA with inconsistencies found and CHECK_SETCHKP=NO. . . . . . . .46612-1DB2 version summary. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .47212-2Migrating from DB2 9 to DB2 10 and fallback paths . . . . . . . . . . . . . . . . . . . . . . . . .47512-3Migrating from DB2 V8 to DB2 10 and fallback paths. . . . . . . . . . . . . . . . . . . . . . . .47612-4DB2 10 optional features. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .484xviiiDB2 10 for z/OS Technical Overview12-5DB2 catalog evolution. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .48912-6DB2 directory table changes. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .49512-7Catalog tables for security and auditing in DB2 10 . . . . . . . . . . . . . . . . . . . . . . . . . .49612-8Catalog tables for pending object changes in DB2 10. . . . . . . . . . . . . . . . . . . . . . .49712-9Catalog tables for BIND QUERY support in DB2 10. . . . . . . . . . . . . . . . . . . . . . . . .49812-10Installation pop-up panel DSNTIPSV . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .52013-1DB2 10 performance objective . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .53513-2Prefetch window . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .54713-3MODIFY DDF command. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .54913-4DB2 trace records IFCID 58 and 59 for OPEN and unbundled DRDA block prefetch55213-5DB2 trace records IFCID 58 and 59 for OPEN and bundled DRDA block prefetch .55213-6Statistics report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .55313-7Attributes clause of the PREPARE statement. . . . . . . . . . . . . . . . . . . . . . . . . . . . .55513-8Summary of main insert performance improvements . . . . . . . . . . . . . . . . . . . . . . . .55713-9ALTER BUFFERPOOL command. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .56313-10Streaming LOBs and XML. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .56813-11Hash space structure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .57613-12Hash access and partitioning . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .57713-13ORGANIZE BY HASH clause . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .57913-14ORGANIZE BY HASH Partition clause. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .58013-15SQL PL multiple assignment statement. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .59113-16Key range partitioning . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .59413-17Dynamic record based partitioning . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .59513-18Workload balancing straw model. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .59613-19Accounting suspend times. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .59913-20Statistics, DIST storage above 2 GB. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .60013-21Statistics, DIST storage below 2 GB. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .60013-22System level monitoring - Invalid profile . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .60713-23System level monitoring - Attributes table. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .610 Copyright IBM Corp. 2010. All rights reserved. xixExamples2-1DSN_WLM_APPLENV stored procedure call . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .322-2SET_CLIENT_INFO stored procedure invocation. . . . . . . . . . . . . . . . . . . . . . . . . . . .342-3JCL RMF workload activity report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .403-1Queries with parallelism enabled. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .533-2DSNTWFG and description of its parameters. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .604-1Table space and index space as partition-by-growth . . . . . . . . . . . . . . . . . . . . . . . . . .814-2REORG TABLESPACE with AUTOESTSPACE YES. . . . . . . . . . . . . . . . . . . . . . . . . .834-3REORG utility message DSNUGHSH. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .834-4REORG TABLESPACE with AUTOESTSPACE NO . . . . . . . . . . . . . . . . . . . . . . . . . .844-5Data set sizes after REORG. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .844-6REPORT RECOVERY job output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .944-7Define clusters for the new active log data sets . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .994-8-DIS LOG command output. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .994-9Message for LRDRTHLD threshold exceeded . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1076-1inline SQL scalar function KM2MILES . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1366-2Non-inline function KM2MILES_SLOW using option not previously available . . . . . .1366-3Inline SQL scalar function TRYXML using XML data type . . . . . . . . . . . . . . . . . . . . .1366-4Non-inline SQL scalar function TRYSFS using scalar fullselect . . . . . . . . . . . . . . . . .1376-5Non-inline SQL scalar function TRYTBL with transition table parameter . . . . . . . . . .1376-6Special register behavior within the SQL scalar function body . . . . . . . . . . . . . . . . . .1386-7SQL scalar function versioning example. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1406-8Deployment of a SQL scalar function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1416-9Initial definition of the function for the running example . . . . . . . . . . . . . . . . . . . . . . .1416-10ALTER FUNCTION (SQL scalar) ALTER option-list. . . . . . . . . . . . . . . . . . . . . . . . .1416-11ALTER FUNCTION (SQL scalar) ADD VERSION . . . . . . . . . . . . . . . . . . . . . . . . . .1426-12ALTER FUNCTION (SQL scalar) ACTIVATE VERSION . . . . . . . . . . . . . . . . . . . . .1426-13ALTER FUNCTION (SQL scalar) REPLACE. . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1426-14ALTER FUNCTION (SQL scalar) REGENERATE . . . . . . . . . . . . . . . . . . . . . . . . . .1426-15ALTER FUNCTION (SQL scalar) DROP. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1426-16SQL table function definition and invocation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1476-17ALTER FUNCTION (SQL table) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1476-18Distinct type in SQL procedure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1486-19Implicit cast from numeric to string . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1506-20Implicit cast from string to numeric . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1516-21Rounding with implicit cast from string to decimal. . . . . . . . . . . . . . . . . . . . . . . . . .1526-22Implicit cast with function resolution . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1536-23Examples of datetime constants . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1556-24Difference between datetime constant and character string constant. . . . . . . . . . .1566-25Examples of timestamp precision . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1576-26Timestamp assignment example. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1586-27Timestamp comparison example. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1596-28Example of timestamp precision of the result . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1596-29CURRENT TIMESTAMP reference examples . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1606-30EXTRACT scalar function example for timestamp . . . . . . . . . . . . . . . . . . . . . . . . . .1616-31SECOND scalar function example for timestamp . . . . . . . . . . . . . . . . . . . . . . . . . . .1616-32LENGTH scalar function example for timestamp . . . . . . . . . . . . . . . . . . . . . . . . . . .1616-33MICROSECOND scalar function example for timestamp . . . . . . . . . . . . . . . . . . . . .1626-34TIMESTAMP scalar function example for timestamp . . . . . . . . . . . . . . . . . . . . . . . .162xxDB2 10 for z/OS Technical Overview6-35TIMESTAMP declaration examples. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1676-36Actual and reserved lengths of a TIMESTAMP WITH TIME ZONE . . . . . . . . . . . . .1696-37Examples of string representation of a TIMESTAMP WITH TIME ZONE. . . . . . . . .1696-38Promotion of timestamp data type. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1706-39Example of TIMESTAMP WITH TIME ZONE casts . . . . . . . . . . . . . . . . . . . . . . . . .1716-40Timestamp with time zone comparison examples. . . . . . . . . . . . . . . . . . . . . . . . . .1726-41Result data type when operation involves TIMESTAMP WITH TIME ZONE . . . . . .1736-42CURRENT TIMESTAMP WITH TIME ZONE examples . . . . . . . . . . . . . . . . . . . . . .1746-43CURRENT TIMESTAMP: Current and implicit time zone. . . . . . . . . . . . . . . . . . . . .1756-44SESSION TIME ZONE example. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1756-45Time zone specific expression examples . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1776-46Timestamp with time zone arithmetic . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1776-47TIMESTAMP_TZ invocation examples . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1796-48Invocations of EXTRACT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1806-49TRYOLAP table definition and its data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1866-50GROUP BY versus PARTITION BY . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1876-51ORDER BY ordering in partitions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1886-52Aggregation using ROWS. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1896-53Sparse input data effect on physical aggregation grouping. . . . . . . . . . . . . . . . . . .1906-54Duplicate rows effect on physical aggregation grouping: Query. . . . . . . . . . . . . . . .1916-55Duplicate rows effect on physical aggregation grouping: Result 1 . . . . . . . . . . . . . .1916-56Duplicate r