Query Acceleration for Business Using IBM Informix Warehouse Accelerator
Total Page:16
File Type:pdf, Size:1020Kb
Front cover IBM® Information Management Software Query Acceleration for Business Using IBM Informix Warehouse Accelerator Technology and architecture of Informix Warehouse Accelerator Data mart design considerations and examples IBM Cognos Business Intelligence integration Whei-Jen Chen Nigel Campbell Martin Fuerderer Frederick Ho Holger Kirstein Keshava Murthy Ramanathan Sivaguru ibm.com/redbooks International Technical Support Organization Query Acceleration for Business Using IBM Informix Warehouse Accelerator November 2013 SG24-8150-00 Note: Before using this information and the product it supports, read the information in “Notices” on page ix. First Edition (November 2013) This edition applies to IBM Informix Version 12.10. © Copyright International Business Machines Corporation 2013. All rights reserved. Note to U.S. Government Users Restricted Rights -- Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp. Contents Notices . ix Trademarks . x Preface . xi Authors . xi Acknowledgements . xiv Now you can become a published author, too! . xv Comments welcome. xv Stay connected to IBM Redbooks . xv Chapter 1. Introduction to IBM Informix Warehouse Accelerator. 1 1.1 Problems that Informix Warehouse Accelerator solves for its customers . 2 1.2 History of Informix Warehouse Accelerator. 2 1.3 Key Informix Warehouse Accelerator technologies. 4 1.3.1 Informix Warehouse Accelerator architecture . 5 1.3.2 Informix and Informix Warehouse Accelerator data mart definition and data loading . 5 1.3.3 Query execution in Informix and Informix Warehouse Accelerator . 6 1.3.4 Data synchronization in both Informix and Informix Warehouse Accelerator . 6 1.4 Informix Warehouse Accelerator architectural options . 7 1.5 Components of Informix Warehouse Accelerator . 8 1.5.1 Coordinator node . 9 1.5.2 Worker node . 9 1.6 Informix Warehouse Accelerator tools . 9 1.7 Business intelligence tools that are used with Informix and Informix Warehouse Accelerator . 10 1.8 Informix Warehouse Accelerator editions . 11 1.9 Informix Warehouse Accelerator positioning. 12 Chapter 2. Designing data marts . 15 2.1 Relational database design overview . 16 2.1.1 Designs for OLTP . 16 2.1.2 Designs for OLAP and dimensional modeling. 19 2.2 Dimensional modeling for Informix Warehouse Accelerator . 23 2.2.1 Degree of denormalization . 24 2.2.2 Composing a data mart. 24 2.2.3 Subsets in a snowflake schema . 26 2.2.4 Overlapping snowflake schemas . 28 © Copyright IBM Corp. 2013. All rights reserved. iii 2.2.5 Types of relationships between tables . 30 2.3 Designing Informix Warehouse Accelerator data marts . 32 2.3.1 Supported data types . 32 2.3.2 Data compression . 32 2.3.3 Dimension tables and multiple Informix Warehouse Accelerator worker nodes . 33 2.3.4 Data mart metadata in the Informix server . 34 Chapter 3. Designing and sizing an IBM Informix Warehouse Accelerator environment. 35 3.1 Architectural considerations . 36 3.1.1 SMP environment . 36 3.1.2 Cluster environment . 40 3.1.3 Virtual machine environment. 42 3.1.4 Changing an existing configuration . 43 3.2 Continuous data mart availability . 44 3.3 Sizing. 44 3.3.1 General resource considerations . 45 3.3.2 Sizing for an SMP environment. 48 3.3.3 Sizing for a cluster environment . 51 3.3.4 Sizing for a VM environment . 53 3.3.5 Network connectivity . 54 Chapter 4. IBM Informix Warehouse Accelerator installation and configuration . 55 4.1 Installation of the Informix Warehouse Accelerator server . 56 4.1.1 Installation of Informix Warehouse Accelerator: Single computer. 56 4.1.2 Installation of Informix Warehouse Accelerator: Cluster . 57 4.2 Configuration tasks . 58 4.2.1 Configuring Informix Warehouse Accelerator . 58 4.2.2 Operating system setup requirements . 62 4.2.3 Configuring the Informix server . 64 4.3 Setting up and starting the accelerator server. 65 4.3.1 Setting up Informix Warehouse Accelerator . 65 4.3.2 Starting Informix Warehouse Accelerator . 65 4.3.3 Connecting Informix server and Informix Warehouse Accelerator . 67 Chapter 5. Creating IBM Informix Warehouse Accelerator data marts . 69 5.1 Data marts as objects in Informix Warehouse Accelerator . 70 5.2 Identifying workloads in your business environments . 71 5.3 Data mart creation by using workload analysis . 72 5.3.1 Workload analysis methods . 73 5.3.2 Workload Analysis by using OAT . 74 5.3.3 Data mart deployment by using OAT . 79 iv Query Acceleration for Business Using IBM Informix Warehouse Accelerator 5.4 Interactive data mart design with IBM Smart Analytics Optimizer Studio . 84 5.5 Embedded data mart creation by using sysdbopen() . 94 5.6 Designing a data mart that is based on SQL trace filtering . 96 5.7 Using Informix TimeSeries data in an Informix Warehouse Accelerator environment . 97 Chapter 6. Query execution . 103 6.1 Overview . 104 6.2 Query execution flow. 105 6.2.1 Step 1: Submitting SQL on the application or BI tools . 107 6.2.2 Step 2: Optimizing and matching the query . 108 6.2.3 Step 3: Local execution. 109 6.2.4 Step 4: Accelerating SQL . 109 6.2.5 Step 5: Query processing on the coordinator node. 110 6.2.6 Step 6: Query processing on worker nodes . 111 6.2.7 Step 7: Results sent to Informix and DRDA over TCP/IP . 112 6.2.8 Step 8: Post processing on the Informix server . 112 6.2.9 Step 9: Returning results. 112 6.3 Enabling query execution . 113 6.4 Query matching . 116 6.4.1 Checklist for query (query block) qualification. 118 6.4.2 Examples for query qualification . 130 6.5 Monitoring query execution . 139 6.6 Summary . 141 Chapter 7. Managing and refreshing an IBM Informix Warehouse Accelerator data mart. 143 7.1 Overview . 144 7.1.1 IBM Informix Open Admin Tool . 145 7.1.2 The Informix and Informix Warehouse Accelerator Stored Procedure API . 146 7.1.3 IBM Smart Analytics Optimizer Studio . 147 7.2 Data synchronization.