McGraw-Hill/Irwin Copyright © 2007 by The McGraw-Hill Companies, Inc. All rights reserved. Chapter 16 Data Warehouse Technology and Management.

Slides:



Advertisements
Similar presentations
CHAPTER OBJECTIVE: NORMALIZATION THE SNOWFLAKE SCHEMA.
Advertisements

An overview of Data Warehousing and OLAP Technology Presented By Manish Desai.
Chapter 13 The Data Warehouse
C6 Databases.
Copyright © Starsoft Inc, Data Warehouse Architecture By Slavko Stemberger.
OLAP Services Business Intelligence Solutions. Agenda Definition of OLAP Types of OLAP Definition of Cube Definition of DMR Differences between Cube and.
Dimensional Modeling Business Intelligence Solutions.
Database Systems: Design, Implementation, and Management Tenth Edition
McGraw-Hill/Irwin Copyright © 2007 by The McGraw-Hill Companies, Inc. All rights reserved. Data Warehouse: additional slides Source: Michael V. Mannino,
Data Warehousing - 3 ISYS 650. Snowflake Schema one or more dimension tables do not join directly to the fact table but must join through other dimension.
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 29 Overview of Data Warehousing and OLAP.
13 Chapter 13 The Data Warehouse Hachim Haddouti.
Business and IS Performance (IS 6010) MBS BIS 2010 / th November 2010 Fergal Carton Accounting Finance and Information Systems.
Lab3 CPIT 440 Data Mining and Warehouse.
Data Warehousing. On-Line Analytical Processing (OLAP) Tools The use of a set of graphical tools that provides users with multidimensional views of their.
CSE6011 Warehouse Models & Operators  Data Models  relations  stars & snowflakes  cubes  Operators  slice & dice  roll-up, drill down  pivoting.
Chapter 13 The Data Warehouse
Chapter 8 Physical Database Design. McGraw-Hill/Irwin © 2004 The McGraw-Hill Companies, Inc. All rights reserved. Outline Overview of Physical Database.
1 © Prentice Hall, 2002 Chapter 11: Data Warehousing.
DATA WAREHOUSE (Muscat, Oman).
CS346: Advanced Databases
Online Analytical Processing (OLAP) Hweichao Lu CS157B-02 Spring 2007.
M ODULE 5 Metadata, Tools, and Data Warehousing Section 4 Data Warehouse Administration 1 ITEC 450.
Week 6 Lecture The Data Warehouse Samuel Conn, Asst. Professor
Data Warehouse & Data Mining
Database Design, Application Development, and Administration, 5 th Edition Copyright © 2011 by Michael V. Mannino. All rights reserved. Chapter 16 Data.
Data Warehouse Overview September 28, 2012 presented by Terry Bilskie.
1 Data Warehouses BUAD/American University Data Warehouses.
1 Data Warehousing. 2Definition Data Warehouse Data Warehouse: – A subject-oriented, integrated, time-variant, non- updatable collection of data used.
Chapter 16 Data Warehouse Technology and Management.
13 Chapter 13 The Data Warehouse Database Systems: Design, Implementation, and Management 4th Edition Peter Rob & Carlos Coronel.
OLAP & DSS SUPPORT IN DATA WAREHOUSE By - Pooja Sinha Kaushalya Bakde.
Data Warehousing.
BI Terminologies.
5 - 1 Copyright © 2006, The McGraw-Hill Companies, Inc. All rights reserved.
October 28, Data Warehouse Architecture Data Sources Operational DBs other sources Analysis Query Reports Data mining Front-End Tools OLAP Engine.
Data Warehousing. Databases support: Transaction Processing Systems –operational level decision –recording of transactions Decision Support Systems –tactical.
1 Topics about Data Warehouses What is a data warehouse? How does a data warehouse differ from a transaction processing database? What are the characteristics.
Building Data and Document-Driven Decision Support Systems How do managers access and use large databases of historical and external facts?
Decision Support and Date Warehouse Jingyi Lu. Outline Decision Support System OLAP vs. OLTP What is Date Warehouse? Dimensional Modeling Extract, Transform,
6.1 © 2010 by Prentice Hall 6 Chapter Foundations of Business Intelligence: Databases and Information Management.
13 1 Chapter 13 The Data Warehouse Database Systems: Design, Implementation, and Management, Seventh Edition, Rob and Coronel.
Sachin Goel (68) Manav Mudgal (69) Piyush Samsukha (76) Rachit Singhal (82) Richa Somvanshi (85) Sahar ( )
Copyright © 2007 Ramez Elmasri and Shamkant B. Navathe Slide
Ayyat IT Group Murad Faridi Roll NO#2492 Muhammad Waqas Roll NO#2803 Salman Raza Roll NO#2473 Junaid Pervaiz Roll NO#2468 Instructor :- “ Madam Sana Saeed”
Chapter 11: Data Warehousing Modern Database Management 6 th Edition Jeffrey A. Hoffer, Mary B. Prescott, Fred R. McFadden.
7 Strategies for Extracting, Transforming, and Loading.
Data Warehousing.
Chapter 16 Data Warehouse Technology and Management.
Advanced Database Concepts
1 Database Systems, 8 th Edition 1 Chapter 13 Business Intelligence and Data Warehouses Objectives In this chapter, you will learn: –How business intelligence.
12 1 Database Systems: Design, Implementation, & Management, 6 th Edition, Rob & Coronel 12.4 Online Analytical Processing OLAP creates an advanced data.
Database Management Systems, 2 nd Edition. R. Ramakrishnan and J. Gehrke1 Data Warehousing and Decision Support.
The Need for Data Analysis 2 Managers track daily transactions to evaluate how the business is performing Strategies should be developed to meet organizational.
Database Management Systems 3ed, R. Ramakrishnan and J. Gehrke1 Data Warehousing and Decision Support Chapter 25.
1 Database Systems, 8 th Edition Star Schema Data modeling technique –Maps multidimensional decision support data into relational database Creates.
Introduction to OLAP and Data Warehouse Assoc. Professor Bela Stantic September 2014 Database Systems.
Data Warehouses and OLAP 1.  Review Questions ◦ Question 1: OLAP ◦ Question 2: Data Warehouses ◦ Question 3: Various Terms and Definitions ◦ Question.
Data Warehousing COMP3017 Advanced Databases Dr Nicholas Gibbins –
Copyright © 2016 Pearson Education, Inc. Modern Database Management 12 th Edition Jeff Hoffer, Ramesh Venkataraman, Heikki Topi CHAPTER 9: DATA WAREHOUSING.
Slide 1 Chapter 17: Data Integration Practices and Relational DBMS Extensions Database Design, Application Development, and Administration, 5 th Edition.
Data Mining and Data Warehousing: Concepts and Techniques What is a Data Warehouse? Data Warehouse vs. other systems, OLTP vs. OLAP Conceptual Modeling.
11/20/ :11 AMData Mining 1 Data Mining – CSE 9033 Chapter – 1; Data Warehousing Dr. Goutam Sarker, B.E., M.E., Ph.D.(Engineering), Fellow: IE(I),
Chapter 13 Business Intelligence and Data Warehouses
Chapter 13 The Data Warehouse
Data Warehouse.
Data Warehouse and OLAP
Data Warehouse Overview September 28, 2012 presented by Terry Bilskie
Data Warehousing Concepts
Data Warehouse and OLAP
Presentation transcript:

McGraw-Hill/Irwin Copyright © 2007 by The McGraw-Hill Companies, Inc. All rights reserved. Chapter 16 Data Warehouse Technology and Management

16-2 Outline  Basic concepts and characteristics  Business architectures and applications  Data cube concepts and operators  Relational DBMS features  Maintaining a data warehouse

16-3 Comparison of Environments  Transaction processing  Uses operational databases  Short-term decisions: fulfill orders, resolve complaints, provide staffing  Decision support processing  Uses integrated and summarized data  Medium and long-term decisions: capacity planning, store locations, new lines of business

16-4 Definition and Characteristics  A central repository for summarized and integrated data from operational databases and external data sources  Key Characteristics  Subject-oriented  Integrated  Time-variant  Nonvolatile

16-5 Data Comparison

16-6 Architectures and Applications  Data warehouse projects  Top-down architectures  Bottom-up architecture  Applications and data mining

16-7 Data Warehouse Projects  Large efforts with much coordination across departments  Enterprise data model  Important artifact of data warehouse project  Structure of data model  Meta data for data transformation  Top-down vs. bottom-up business architectures

16-8 Two Tier Architecture

16-9 Three Tier Architecture

16-10 Bottom-up Architecture

16-11 Applications

16-12 Maturity Model  Guidance for investment decisions  Stages provide a framework to view an organization’s progress  Insights: difficulty moving between stages  Infant to child stages because of investment level  Teenager to adult because of strategic importance of data warehouse

16-13 Data Mining  Discover significant, implicit patterns  Target promotions  Change mix and collocation of items  Requires large volumes of transaction data  Important application for data warehouses

16-14 Data Cube Concepts and Operators  Basics  Dimension and measure details  Operators

16-15 Data Cube Basics  Multidimensional arrangement of data  Users think about decision support data as data cubes  Terminology  Dimension: subject label for a row or column  Member: value of dimension  Measure: quantitative data stored in cells

16-16 Data Cube Example

16-17 Dimensions and Measures  Dimensions  Hierarchies: members can have sub members  Sparsity: many cells do not have data  Measures  Derived measures  Multiple measures in cells

16-18 Time Series Data  Common data type in trend analysis  Reduce dimensionality using time series  Time series properties  Data type  Start date  Calendar  Periodicity  Conversion

16-19 Slice Operator  Focus on a subset of dimensions  Set dimension to specific value: 1/1/2006

16-20 Dice Operator  Focus on a subset of member values  Replace dimension with a subset of values  Dice operation often follows a slice operation

16-21 Other Operators  Operators for hierarchical dimensions  Drill-down: add detail to a dimension  Roll-up: remove detail from a dimension  Recalculate measure values  Pivot: rearrange dimensions

16-22 Operator Summary OperatorPurposeDescription SliceFocus attention on a subset of dimensions Replace a dimension with a single member value or with a summary of its measure values DiceFocus attention on a subset of member values Replace a dimension with a subset of members Drill-downObtain more detail about a dimension Navigate from a more general level to a more specific level Roll-upSummarize details about a dimension Navigate from a more specific level to a more general level PivotPresent data in a different order Rearrange the dimensions in a data cube

16-23 Relational DBMS Support  Data modeling  Dimension representation  GROUP BY extensions  Materialized views and query rewriting  Storage structures and optimization

16-24 Relational Data Modeling  Dimension table: contains member values  Fact table: contains measure values  1-M relationships from dimension to fact tables  Grain: most detailed measure values stored

16-25 Star Schema Example

16-26 Constellation Schema

16-27 Snowflake Schema Example

16-28 Handling M-N Relationships  Source data may have M-N relationships, not 1-M relationships  Adjust fact or dimension tables for a fixed number of exceptions  More complex solutions to support M-N relationships with a variable number of connections

16-29 Time Representation  Timestamp  Time dimension table for organization specific calendar features  Two fact tables for international operations  Accumulating fact table for representation of multiple events

16-30 Level of Historical Integrity  Primarily an issue for dimension updates  Type I: overwrite old values  Type II: version numbers for an unlimited history  Type III: new columns for a limited history

16-31 Historical Integrity Example

16-32 Dimension Representation  Star schema and variations lack dimension representation  Explicit dimension representation important to data cube operations and optimization  Proprietary extensions for dimension representation  Represent levels, hierarchies, and constraints

16-33 Oracle Dimension Representation  Levels: dimension components  Hierarchies: may have multiple hierarchies  Constraints: functional dependency relationships

16-34 CREATE DIMENSION Example CREATE DIMENSION StoreDim LEVEL StoreId IS Store.StoreId LEVEL City IS Store.StoreCity LEVEL State IS Store.StoreState LEVEL Zip IS Store.StoreZip LEVEL Nation IS Store.StoreNation LEVEL DivId IS Division.DivId HIERARCHY CityRollup ( StoreId CHILD OF City CHILD OF State CHILD OF Nation ) HIERARCHY ZipRollup ( StoreId CHILD OF Zip CHILD OF State CHILD OF Nation ) HIERARCHY DivisionRollup ( StoreId CHILD OF DivId JOIN KEY Store.DivId REFERENCES DivId ) ATTRIBUTE DivId DETERMINES Division.DivName ATTRIBUTE DivId DETERMINES Division.DivManager ;

16-35 GROUP BY Extensions  ROLLUP operator  CUBE operator  GROUPING SETS operator  Other extensions  Ranking  Ratios  Moving summary values

16-36 CUBE Example SELECT StoreZip, TimeMonth, SUM(SalesDollar) AS SumSales FROM Sales, Store, Time WHERE Sales.StoreId = Store.StoreId AND Sales.TimeNo = Time.TimeNo AND (StoreNation = 'USA' OR StoreNation = 'Canada') AND TimeYear = 2005 GROUP BY CUBE (StoreZip, TimeMonth)

16-37 ROLLUP Example SELECT TimeMonth, TimeYear, SUM(SalesDollar) AS SumSales FROM Sales, Store, Time WHERE Sales.StoreId = Store.StoreId AND Sales.TimeNo = Time.TimeNo AND (StoreNation = 'USA' OR StoreNation = 'Canada') AND TimeYear BETWEEN 2005 AND 2006 GROUP BY ROLLUP (TimeMonth,TimeYear);

16-38 GROUPING SETS Example SELECT StoreZip, TimeMonth, SUM(SalesDollar) AS SumSales FROM Sales, Store, Time WHERE Sales.StoreId = Store.StoreId AND Sales.TimeNo = Time.TimeNo AND (StoreNation = 'USA' OR StoreNation = 'Canada') AND TimeYear = 2005 GROUP BY GROUPING SETS((StoreZip, TimeMonth), StoreZip, TimeMonth, ());

16-39 Variations of the Grouping Operators  Partial cube  Partial rollup  Composite columns  CUBE and ROLLUP inside a GROUPIING SETS operation

16-40 Materialized Views  Stored view  Periodically refreshed with source data  Usually contain summary data  Fast query response for summary data  Appropriate in query dominant environments

16-41 Materialized View Example CREATE MATERIALIZED VIEW MV1 BUILD IMMEDIATE REFRESH COMPLETE ON DEMAND ENABLE QUERY REWRITE AS SELECT StoreState, TimeYear, SUM(SalesDollar) AS SUMDollar1 FROM Sales, Store, Time WHERE Sales.StoreId = Store.StoreId AND Sales.TimeNo = Time.TimeNo AND TimeYear > 2003 GROUP BY StoreState, TimeYear;

16-42 Query Rewriting  Substitution process  Materialized view replaces references to fact and dimension tables in a query  Query optimizer must evaluate whether the substitution will improve performance over the original query  More complex than query modification process for traditional views

16-43 Query Rewriting Process

16-44 Query Rewriting Matching  Row conditions: query conditions at least as restrictive as MV conditions  Grouping detail: query grouping columns at least as general as MV grouping columns  Grouping dependencies: query columns must match or be derivable by functional dependencies  Aggregate functions: query aggregate functions must match or be derivable from MV aggregate functions

16-45 Query Rewriting Example -- Data warehouse query SELECT StoreState, TimeYear, SUM(SalesDollar) FROM Sales, Store, Time WHERE Sales.StoreId = Store.StoreId AND Sales.TimeNo = Time.TimeNo AND StoreNation IN ('USA','Canada') AND TimeYear = 2005 GROUP BY StoreState, TimeYear; -- Query Rewrite: replace Sales and Time tables with MV1 SELECT DISTINCT MV1.StoreState, TimeYear, SumDollar1 FROM MV1, Store WHERE MV1.StoreState = Store.StoreState AND TimeYear = 2005 AND StoreNation IN ('USA','Canada');

16-46 Storage and Optimization Technologies  MOLAP: direct storage and manipulation of data cubes  ROLAP: relational extensions to support multidimensional data  HOLAP: combine MOLAP and ROLAP storage engines

16-47 ROLAP Techniques  Bitmap join indexes  Star join optimization  Query rewriting  Summary storage advisors  Parallel query execution

16-48 Maintaining a Data Warehouse  Data sources  Workflow representation  Optimizing the refresh process

16-49 Data Sources  Cooperative:  Notification using triggers  Requires source system changes  Logged  Readily available  Extraneous data in logs  Queryable  Queries using timestamps  Requires timestamps in source data  Snapshot  Periodic dumps of source data  Significant processing for difference operations

16-50 Maintenance Workflow

16-51 Data Quality Problems  Multiple identifiers  Multiple field names  Different units  Missing values  Orphaned values  Multipurpose fields  Conflicting data  Different update times

16-52 ETL Tools  Extraction, Transformation, and Loading  Specification based  Eliminate custom coding  Third party and DBMS based tools

16-53 Refresh Processing

16-54 Determining the Refresh Frequency  Maximize net refresh benefit  Value of data timeliness  Cost of refresh  Satisfy data warehouse and source system constraints

16-55 Refresh Constraints  Source access: restrictions on time and frequency  Integration: restrictions that require concurrent reconciliation  Completeness/consistency: loading in the same refresh period  Availability: load scheduling restrictions due to storage capacity, online availability, and server usage

16-56 Summary  Data warehouse requirements differ from transaction processing.  Architecture choice is important.  Multidimensional data model is intuitive  Relational representation and storage techniques are significant.  Maintaining a data warehouse is an important, operational problem.