[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-seo-340002-105":3,"detail-sidebar-cat-0-en-105":81,"doc-detail-340002-en":130},{"code":4,"msg":5,"data":6},0,"ok",{"site_id":7,"language":8,"slug":9,"title":10,"keywords":11,"description":12,"schema_data":13,"social_meta":74,"head_meta":76,"extra_data":78,"updated_unix":80},105,"en","preparing-for-and-tuning-the-sql-query-engine-on-db2-for-i5os-second-edition-september-2006","Preparing for and Tuning the SQL Query Engine on DB2 for i5/OS - Second Edition - September 2006","","Technical guide on preparing for and tuning the SQL Query Engine (SQE) in DB2 for i5/OS, centered on the DB2 architecture introduced with OS/400 V5R2 and later. Covers query processing components such as the Query Dispatcher, SQE Optimizer, Statistics Manager, and data access primitives, plus the plan cache. Explains available data access methods and operational details, then details Statistics Manager concepts, collections, APIs, and practical management via iSeries Navigator. Concludes with approaches for monitoring, debugging, and tuning SQE performance.",{"@graph":14,"@context":73},[15,34,56],{"@type":16,"itemListElement":17},"BreadcrumbList",[18,23,27,31],{"item":19,"name":20,"@type":21,"position":22},"https://docshare.wps.com","Home","ListItem",1,{"item":24,"name":25,"@type":21,"position":26},"https://docshare.wps.com/document/","Document",2,{"item":28,"name":29,"@type":21,"position":30},"https://docshare.wps.com/document/technology/","Technology",3,{"item":32,"name":10,"@type":21,"position":33},"https://docshare.wps.com/document/preparing-for-and-tuning-the-sql-query-engine-on-db2-for-i5os-second-edition-september-2006/340002/",4,{"url":32,"name":10,"@type":35,"image":36,"author":41,"headline":10,"publisher":44,"fileFormat":47,"inLanguage":8,"description":12,"dateModified":48,"datePublished":49,"encodingFormat":47,"isAccessibleForFree":50,"interactionStatistic":51},"DigitalDocument",{"url":37,"@type":38,"width":39,"height":40},"https://docshare.wps.com/thumbnails/preparing-for-and-tuning-the-sql-query-engine-on-db2-for-i5os-second-edition-september-2006/340002.png","ImageObject",300,407,{"name":42,"@type":43},"Eden","Person",{"url":19,"name":45,"@type":46},"DocShare","Organization","application/pdf","2026-10-26","2026-09-21",true,{"@type":52,"interactionType":53,"userInteractionCount":55},"InteractionCounter",{"@type":54},"ViewAction",8,{"@type":57,"mainEntity":58},"FAQPage",[59,65,69],{"name":60,"@type":61,"acceptedAnswer":62},"What is covered in the book’s overview of DB2 for i5/OS?","Question",{"text":63,"@type":64},"It introduces the history of DB2 for i5/OS, the “new” application world, database design and implementation, and the design criteria and features of the SQL Query Engine (SQE).","Answer",{"name":66,"@type":61,"acceptedAnswer":67},"How does query processing change starting with OS/400 V5R2?",{"text":68,"@type":64},"It describes the SQE architecture and key components, including the Query Dispatcher, SQE Optimizer, Statistics Manager, data access primitives, and the plan cache.",{"name":70,"@type":61,"acceptedAnswer":71},"What does the Statistics Manager section focus on?",{"text":72,"@type":64},"It covers statistics concepts and collections, optimizer statistics request types, automatic statistics collection and refresh, how to manage statistics via iSeries Navigator, proactive statistics collection, and Statistics Manager APIs.","https://schema.org",{"og:url":32,"og:type":75,"og:title":10,"og:site_name":45,"og:description":12},"article",{"robots":77,"canonical":32},"index,follow",{"doc_id":79,"site_id":7},340002,1790287574,{"code":4,"msg":82,"data":83},"success",[84,88,92,96,101,105,110,114,119,122,126],{"id":22,"doc_module":4,"doc_module_name":25,"category_name":85,"show_sort_weight":86,"slug":87},"Story & Novel",90,"story-novel",{"id":26,"doc_module":4,"doc_module_name":25,"category_name":89,"show_sort_weight":90,"slug":91},"Literature",80,"literature",{"id":33,"doc_module":4,"doc_module_name":25,"category_name":93,"show_sort_weight":94,"slug":95},"Exam",70,"exam",{"id":97,"doc_module":4,"doc_module_name":25,"category_name":98,"show_sort_weight":99,"slug":100},5,"Comic",60,"comic",{"id":102,"doc_module":4,"doc_module_name":25,"category_name":29,"show_sort_weight":103,"slug":104},6,50,"technology",{"id":106,"doc_module":4,"doc_module_name":25,"category_name":107,"show_sort_weight":108,"slug":109},7,"Healthcare",40,"healthcare",{"id":55,"doc_module":4,"doc_module_name":25,"category_name":111,"show_sort_weight":112,"slug":113},"Research & Report",30,"research-report",{"id":115,"doc_module":4,"doc_module_name":25,"category_name":116,"show_sort_weight":117,"slug":118},9,"Religion & Spirituality",20,"religion-spirituality",{"id":117,"doc_module":4,"doc_module_name":25,"category_name":120,"show_sort_weight":117,"slug":121},"World Cup","world-cup",{"id":123,"doc_module":4,"doc_module_name":25,"category_name":124,"show_sort_weight":123,"slug":125},10,"Lifestyle","lifestyle",{"id":127,"doc_module":4,"doc_module_name":25,"category_name":128,"show_sort_weight":97,"slug":129},19,"General","general",{"code":4,"msg":82,"data":131},{"doc_id":79,"user_id":132,"nickname":42,"user_avatar":133,"doc_module":4,"category_id":102,"category_name":29,"doc_title":10,"doc_description":12,"doc_content":134,"file_id":135,"file_url":136,"file_type":137,"file_size":138,"view_count":55,"is_deleted":4,"is_public":22,"is_downloadable":22,"audit_status":22,"page_count":139,"language":140,"language_code":8,"site_id":7,"html_lang":8,"table_of_contents":141,"faqs":142,"seo_title":143,"seo_description":12,"update_tm":144,"read_time":145},1374391974468,"https://ap-avatar.wpscdn.com/davatar_29158cc5080c5b710cf443261637dec0","Preparing for and Tuning the SQL Query Engine on DB2 for i5/OS  \nUnderstand the new architecture for  \nquery processing  \nLearn about the data access methods and Statistics Manager  \nSee how to monitor and tune the SQL engine  \nHernando Bedoya Monti Abrahams Nicolas Bueso Luis Guirigay Sabine Jordan Dave Martin Barry Thorn Steve Tlusty JaeHee Yang  \n[ibm.com](ibm.com/redbooks)[/redbooks](ibm.com/redbooks)  \nInternational Technical Support Organization  \nPreparing for and Tuning the SQL Query Engine on DB2 for i5/OS  \nSeptember 2006  \nNote: Before using this information and the product it supports, read the information in “Notices” on page vii.  \nSecond Edition (September 2006)  \nThis edition applies to Version 5, Release 4 of IBM i5/OS, Program Number 5722-SS1 .  \n© Copyright International Business Machines Corporation 2003, 2006. All rights reserved.  \nNote to U.S. Government Users Restricted Rights-- Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.  \nContents  \nNotices ................................................................. vii  \nTrademarks ............................................................. viii  \nPreface ................................................................. ix  \nThe team that wrote this redbook .............................................. ix  \nBecome a published author .................................................. xi  \nComments welcome ........................................................ xii  \nChapter 1. Overview of DB2 for i5/OS ........................................ 1  \n1.1 The history of DB2 for i5/OS .............................................. 2  \n1.2 The ‘new’ application world ............................................... 3  \n1.3 The database design .................................................... 4  \n1.4 The implementation ..................................................... 5  \n1.5 Design criteria and features of SQE ........................................ 7  \n1.5.1 The objectives ..................................................... 7  \n1.5.2 The SQE design ................................................... 8  \nChapter 2. The architecture of DB2 for i5/OS ................................. 11  \n2.1 SQL in a nutshell ...................................................... 12  \n2.1.1 Static SQL ....................................................... 12  \n2.1.2 Dynamic SQL .................................................... 12  \n2.1.3 Extended dynamic SQL ............................................ 12  \n2.2 Query processing before OS/400 V5R2 .................................... 13  \n2.3 Query processing starting with OS/400 V5R2 ................................ 13  \n2.3.1 The Query Dispatcher .............................................. 16  \n2.3.2 The SQE Optimizer ................................................ 20  \n2.3.3 Statistics Manager ................................................ 22  \n2.3.4 Data access primitives ............................................. 24  \n2.3.5 The plan cache ................................................... 24  \n2.4 Summary ............................................................ 26  \nChapter 3. Data access methods ........................................... 27  \n3.1 Available data access methods ........................................... 28  \n3.2 SQE Primitives in action ................................................ 30  \n3.3 Details about the data access methods .................................... 31  \n3.3.1 Permanent table operations ......................................... 31  \n3.3.2 Temporary result object methods ..................................... 40  \n3.3.3 Access methods in V5R4 ........................................... 59  \nChapter 4. Statistics Manager ............................................. 63  \n4.1 Statistics and statistics collections ........................................ 64  \n4.1.1 Optimizer statistics request types ...............................","cbCaibQY2wddEqKc","https://ap.wps.com/l/cbCaibQY2wddEqKc","pdf",3774925,212,"English","# Chapter 1. Overview of DB2 for i5/OS\n## The ‘new’ application world\n## The database design\n## The implementation\n## Design criteria and features of SQE\n# Chapter 2. The architecture of DB2 for i5/OS\n## SQL in a nutshell\n## Query processing starting with OS/400 V5R2\n## The Query Dispatcher\n## The SQE Optimizer\n## Statistics Manager\n## Data access primitives\n## The plan cache\n# Chapter 3. Data access methods\n## Available data access methods\n## SQE Primitives in action\n## Details about the data access methods\n# Chapter 4. Statistics Manager\n## Statistics and statistics collections\n## Using iSeries Navigator to manage statistics\n## Proactive statistics collection\n## Statistics Manager APIs\n# Chapter 5. Monitoring and tuning SQE\n## Query optimization feedback\n## Debug messages\n## Print SQL Information","[{\"question\":\"What is covered in the book’s overview of DB2 for i5/OS?\",\"answer\":\"It introduces the history of DB2 for i5/OS, the “new” application world, database design and implementation, and the design criteria and features of the SQL Query Engine (SQE).\"},{\"question\":\"How does query processing change starting with OS/400 V5R2?\",\"answer\":\"It describes the SQE architecture and key components, including the Query Dispatcher, SQE Optimizer, Statistics Manager, data access primitives, and the plan cache.\"},{\"question\":\"What does the Statistics Manager section focus on?\",\"answer\":\"It covers statistics concepts and collections, optimizer statistics request types, automatic statistics collection and refresh, how to manage statistics via iSeries Navigator, proactive statistics collection, and Statistics Manager APIs.\"}]","Preparing for and Tuning the SQL Query Engine on DB2 for i5/OS - Second Edition - September 2006 | PDF",1790033605,534]