Summary of Last Chapter. Course Content. Chapter 2 Objectives. Data Warehouse and OLAP Outline. Incentive for a Data Warehouse

Similar documents
Information Management course

Data Mining Concepts & Techniques

Decision Support, Data Warehousing, and OLAP

What is a Data Warehouse?

Syllabus. Syllabus. Motivation Decision Support. Syllabus

Data Mining & Data Warehouse

This tutorial will help computer science graduates to understand the basic-to-advanced concepts related to data warehousing.

Data Warehousing (1)

Data Mining. Associate Professor Dr. Raed Ibraheem Hamed. University of Human Development, College of Science and Technology

On-Line Analytical Processing (OLAP) Traditional OLTP

Data Warehousing & OLAP

Evolution of Database Systems

Data Mining. Data warehousing. Hamid Beigy. Sharif University of Technology. Fall 1394

IT DATA WAREHOUSING AND DATA MINING UNIT-2 BUSINESS ANALYSIS

Information Management course

CHAPTER 3 Implementation of Data warehouse in Data Mining

Data Warehousing and OLAP

Database design View Access patterns Need for separate data warehouse:- A multidimensional data model:-

CS 245: Database System Principles. Warehousing. Outline. What is a Warehouse? What is a Warehouse? Notes 13: Data Warehousing

Data Warehouse and Data Mining

Managing Information Resources

Chapter 4, Data Warehouse and OLAP Operations

Summary of Last Chapter. Course Content. Chapter 3 Objectives. Chapter 3: Data Preprocessing. Dr. Osmar R. Zaïane. University of Alberta 4

Introduction to Data Warehousing

Decision Support Systems aka Analytical Systems

Question Bank. 4) It is the source of information later delivered to data marts.

A Multi-Dimensional Data Model

DATA MINING AND WAREHOUSING

CT75 DATA WAREHOUSING AND DATA MINING DEC 2015

DATA MINING TRANSACTION

A Novel Approach of Data Warehouse OLTP and OLAP Technology for Supporting Management prospective

CS614 - Data Warehousing - Midterm Papers Solved MCQ(S) (1 TO 22 Lectures)

Data Warehousing and Decision Support. Introduction. Three Complementary Trends. [R&G] Chapter 23, Part A

CS377: Database Systems Data Warehouse and Data Mining. Li Xiong Department of Mathematics and Computer Science Emory University

Fig 1.2: Relationship between DW, ODS and OLTP Systems

Data warehouses Decision support The multidimensional model OLAP queries

CHAPTER 8: ONLINE ANALYTICAL PROCESSING(OLAP)

Data Mining. Data warehousing. Hamid Beigy. Sharif University of Technology. Fall 1396

Data Warehousing and Decision Support

Data Warehousing and Decision Support

This tutorial will help computer science graduates to understand the basic-to-advanced concepts related to data warehousing.

Information Management course

Data Warehousing and OLAP Technologies for Decision-Making Process

CSE 544 Principles of Database Management Systems. Alvin Cheung Fall 2015 Lecture 8 - Data Warehousing and Column Stores

DATA WAREHOUSE EGCO321 DATABASE SYSTEMS KANAT POOLSAWASD DEPARTMENT OF COMPUTER ENGINEERING MAHIDOL UNIVERSITY

REPORTING AND QUERY TOOLS AND APPLICATIONS

Data Warehouses. Yanlei Diao. Slides Courtesy of R. Ramakrishnan and J. Gehrke

Outline. Managing Information Resources. Concepts and Definitions. Introduction. Chapter 7

Data Mining. Data warehousing. Hamid Beigy. Sharif University of Technology. Fall 1394

Data warehouse architecture consists of the following interconnected layers:

OLAP Introduction and Overview

DATA WAREHOUING UNIT I

DHANALAKSHMI COLLEGE OF ENGINEERING, CHENNAI

collection of data that is used primarily in organizational decision making.

An Overview of Data Warehousing and OLAP Technology

Data Warehousing and Decision Support (mostly using Relational Databases) CS634 Class 20

ETL and OLAP Systems

Data Warehouses. Vera Goebel. Fall Department of Informatics, University of Oslo

Data Mining & Analytics Data Mining Reference Model Data Warehouse Legal and Ethical Issues. Slides by Michael Hahsler

Decision Support. Chapter 25. CS 286, UC Berkeley, Spring 2007, R. Ramakrishnan 1

Data Warehousing. Ritham Vashisht, Sukhdeep Kaur and Shobti Saini

CT75 (ALCCS) DATA WAREHOUSING AND DATA MINING JUN

Sql Fact Constellation Schema In Data Warehouse With Example

Basics of Dimensional Modeling

Rocky Mountain Technology Ventures

The Evolution of Data Warehousing. Data Warehousing Concepts. The Evolution of Data Warehousing. The Evolution of Data Warehousing

Data Warehousing 2. ICS 421 Spring Asst. Prof. Lipyeow Lim Information & Computer Science Department University of Hawaii at Manoa

Data Warehouse and Mining

Adnan YAZICI Computer Engineering Department

STRATEGIC INFORMATION SYSTEMS IV STV401T / B BTIP05 / BTIX05 - BTECH DEPARTMENT OF INFORMATICS. By: Dr. Tendani J. Lavhengwa

Data Warehousing. Data Warehousing and Mining. Lecture 8. by Hossen Asiful Mustafa

Data Warehousing & OLAP

Dta Mining and Data Warehousing

By Mahesh R. Sanghavi Associate professor, SNJB s KBJ CoE, Chandwad

ALTERNATE SCHEMA DIAGRAMMING METHODS DECISION SUPPORT SYSTEMS. CS121: Relational Databases Fall 2017 Lecture 22

Cognos also provides you an option to export the report in XML or PDF format or you can view the reports in XML format.

Lectures for the course: Data Warehousing and Data Mining (IT 60107)

Data Warehouse. Asst.Prof.Dr. Pattarachai Lalitrojwong

CHAPTER 8 DECISION SUPPORT V2 ADVANCED DATABASE SYSTEMS. Assist. Prof. Dr. Volkan TUNALI

Data Warehouses Chapter 12. Class 10: Data Warehouses 1

Jarek Szlichta Acknowledgments: Jiawei Han, Micheline Kamber and Jian Pei, Data Mining - Concepts and Techniques

Data Modelling for Data Warehousing

Data Warehousing ETL. Esteban Zimányi Slides by Toon Calders

ECT7110 Introduction to Data Warehousing

UNIT -1 UNIT -II. Q. 4 Why is entity-relationship modeling technique not suitable for the data warehouse? How is dimensional modeling different?

Business Intelligence An Overview. Zahra Mansoori

1 DATAWAREHOUSING QUESTIONS by Mausami Sawarkar

~ Ian Hunneybell: DWDM Revision Notes (31/05/2006) ~

Partner Presentation Faster and Smarter Data Warehouses with Oracle OLAP 11g

ECLT 5810 Introduction to Data Warehousing

Table of Contents. Rajesh Pandey Page 1

CS 1655 / Spring 2013! Secure Data Management and Web Applications

Data Warehouse and Data Mining

: How does DSS data differ from operational data?

Managing Data Resources

IDU0010 ERP,CRM ja DW süsteemid Loeng 5 DW concepts. Enn Õunapuu

Data Preprocessing. Slides by: Shree Jaswal

Databases and Data Warehouses

Unit 7: Basics in MS Power BI for Excel 2013 M7-5: OLAP

Oracle Database 11g: Data Warehousing Fundamentals

Transcription:

Principles of Knowledge Discovery in bases Fall 1999 Chapter 2: Warehousing and Dr. Osmar R. Zaïane University of Alberta Dr. Osmar R. Zaïane, 1999 Principles of Knowledge Discovery in bases University of Alberta 1 Summary of Last Chapter What kind of information are we collecting? What are Mining and Knowledge Discovery? What kind of data can be mined? What can be discovered? Is all that is discovered interesting and useful? How do we categorize data systems? What are the issues in Mining? Are there application examples? Dr. Osmar R. Zaïane, 1999 Principles of Knowledge Discovery in bases University of Alberta 2 Course Content Introduction to Mining warehousing and cleaning operations summarization Association analysis Classification and prediction Clustering Web Mining Similarity Search Other topics if time permits Chapter 2 Objectives Realize the purpose of data warehousing. Comprehend the data structures behind data warehouses and understand the technology. Get an overview of the schemas used for multi-dimensional data. Dr. Osmar R. Zaïane, 1999 Principles of Knowledge Discovery in bases University of Alberta 3 Dr. Osmar R. Zaïane, 1999 Principles of Knowledge Discovery in bases University of Alberta 4 Dr. Osmar R. Zaïane, 1999 Principles of Knowledge Discovery in bases University of Alberta 5 Incentive for a Warehouse Businesses have a lot of data, operational data and facts. This data is usually in different databases and in different physical places. is available (or archived), but in different formats and locations. (heterogeneous and distributed). Decision makers need to access information (data that has been summarized) virtually on one single site. This access needs to be fast regardless of the size of the data, and how old the data is. Dr. Osmar R. Zaïane, 1999 Principles of Knowledge Discovery in bases University of Alberta 6 1

Evolution of Decision Support Systems What Is Warehouse? 1960s 1970s 1980s 1990s Batch and Manual Reporting Statistician Computer scientist Difficult and limited queries highly specific to some distinctive needs Terminal-based Decision Support Systems Analyst Inflexible and non-integrated tools Desktop Tools Analyst Flexible integrated spreadsheets. Slow access to operational data Warehousing and On-Line Analytical Processing A data warehouse consolidates different data. A data warehouse is a database that is different and maintained separately from an operational database. A data warehouse combines and merges information in a consistent database (not necessarily up-to-date) to help decision support. Executive Integrated tools Mining Decision support systems access data warehouse and do not need to access operational databases Î do not unnecessarily over-load operational databases. Dr. Osmar R. Zaïane, 1999 Principles of Knowledge Discovery in bases University of Alberta 7 Dr. Osmar R. Zaïane, 1999 Principles of Knowledge Discovery in bases University of Alberta 8 Definitions Warehouse is a subject-oriented, integrated, time-variant and non-volatile collection of data in support of management s decision making process. (W.H. Inmon) Subject oriented: oriented to the major subject areas of the corporation that have been defined in the data model. Integrated: data collected in a data warehouse originates from different heterogeneous data. Time-variant: The dimension time is all-pervading in a data warehouse. The data stored is not the current value, but an evolution of the value in time. Definitions (con t) Warehousing is the process of constructing and using data warehouses. A corporate data warehouse collects data about subjects spanning the whole organization. Marts are specialized, single-line of business warehouses. They collect data for a department or a specific group of people. Non-volatile: update of data does not occur frequently in the data warehouse. The data is loaded and accessed. Dr. Osmar R. Zaïane, 1999 Principles of Knowledge Discovery in bases University of Alberta 9 Dr. Osmar R. Zaïane, 1999 Principles of Knowledge Discovery in bases University of Alberta 10 Building a Warehouse Option 1: Consolidate Marts Mart Mart Mart Mart Corporate data Corporate Warehouse Option 2: Build from scratch Dr. Osmar R. Zaïane, 1999 Principles of Knowledge Discovery in bases University of Alberta 11 Dr. Osmar R. Zaïane, 1999 Principles of Knowledge Discovery in bases University of Alberta 12 2

Markets Describing the Organization We sell products in various markets, and we measure our performance over time Warehouse Designer We sell s in various Markets, and we measure our performance over Time Business Manager Time s Construction of Warehouse Based on Multi-dimensional Model Think of it as a cube with labels on each edge of the cube. The cube doesn t just have 3 dimensions, but may have many dimensions (N). Any point inside the cube is at the intersection of the coordinates defined by the edge of the cube. A point in the cube may store values (measurements) relative to the combination of the labeled dimensions. Dr. Osmar R. Zaïane, 1999 Principles of Knowledge Discovery in bases University of Alberta 13 Dr. Osmar R. Zaïane, 1999 Principles of Knowledge Discovery in bases University of Alberta 14 Concept-Hierarchies Dimensions are hierarchical by nature: total orders or partial orders Example: Location(continent Î country Î province Î city) Time(yearÎquarterÎ(month,week)Îday) Dimensions:, Region, week Hierarchical summarization paths Industry Region Quarter Month Week Office Day Dr. Osmar R. Zaïane, 1999 Principles of Knowledge Discovery in bases University of Alberta 15 Dr. Osmar R. Zaïane, 1999 Principles of Knowledge Discovery in bases University of Alberta 16 On-Line Transaction Processing base management systems are typically used for on-line transaction processing (OLTP) OLTP applications normally automate clerical data processing tasks of an organization, like data entry and enquiry, transaction handling, etc. (access, read, update) base is current, and consistency and recoverability are critical. Records are accessed one at a time. ¾OLTP operations are structured and repetitive ¾OLTP operations require detailed and up-to-date data ¾OLTP operations are short, atomic and isolated transactions bases tend to be hundreds of Mb to Gb. On-Line Analytical Processing On-line analytical processing () is essential for decision support. is supported by data warehouses. warehouse consolidation of operational databases. The key structure of the data warehouse always contains some element of time. Owing to the hierarchical nature of the dimensions, operations view the data flexibly from different perspectives (different levels of abstractions). roll-up (increase the level of abstraction) operations: drill-down (decrease the level of abstraction) slice and dice (selection and projection) pivot (re-orient the multi-dimensional view) DW tend to be in the order of Tb drill-through (links to the raw data) Dr. Osmar R. Zaïane, 1999 Principles of Knowledge Discovery in bases University of Alberta 17 Dr. Osmar R. Zaïane, 1999 Principles of Knowledge Discovery in bases University of Alberta 18 3

OurVideoStore Warehouse Slice on January Q1 Q2 Location Calgary (city, AB) Lethbridge Red Deer Time (Quarters) Q3 Q4 Location Calgary (city, AB) Lethbridge Red Deer Sci. Fi.. Drill down on Q3 Time (Months, Q3) JulAug Sep Sci. Fi.. Roll-up on Location Time (Quarters) Q1 Q2 Q3 Q4 M aritimes Location Quebec (province, Ontario Prairies Canada) Western Pr Sci. Fi.. Electronics January Dice on Electronics and January Dr. Osmar R. Zaïane, 1999 Principles of Knowledge Discovery in bases University of Alberta 19 Dr. Osmar R. Zaïane, 1999 Principles of Knowledge Discovery in bases University of Alberta 20 OLTP vs OLTP users Clerk, IT professional Knowledge worker function day to day operations decision support DB design application-oriented subject-oriented data current, up-to-date detailed, flat relational isolated usage repetitive ad-hoc historical, summarized, multidimensional integrated, consolidated access read/write lots of scans index/hash on prim. key unit of work short, simple transaction complex query # records accessed tens millions #users thousands hundreds DB size 100MB-GB 100GB-TB metric transaction throughput query throughput, response Why Do We Separate DW From DB? Performance reasons: necessitates special data organization that supports multidimensional views. queries would degrade operational DB. is read only. No concurrency control and recovery. Decision support requires historical data. Decision support requires consolidated data. (Source: JH) Dr. Osmar R. Zaïane, 1999 Principles of Knowledge Discovery in bases University of Alberta 21 Dr. Osmar R. Zaïane, 1999 Principles of Knowledge Discovery in bases University of Alberta 22 Dr. Osmar R. Zaïane, 1999 Principles of Knowledge Discovery in bases University of Alberta 23 Operational Transform Integrator Warehouse Marts r Query Reports Dr. Osmar R. Zaïane, 1999 Principles of Knowledge Discovery in bases University of Alberta 24 4

r Marts Dr.Osmar R. Zaïane, 199 9 Principles of Knowledge Discovery in bases Unive rsity of Alberta 23 r Marts Dr.Osmar R. Zaïane, 199 9 Principles of Knowledge Discovery in bases Unive rsity of Alberta 23 Dr.Osmar R. Zaïane, 199 9 r Marts Principles of Knowledge Discovery in bases Unive rsity of Alberta 23 r Marts Dr.Osmar R. Zaïane, 199 9 Principles of Knowledge Discovery in bases Unive rsity of Alberta 23 Marts r Dr.Osmar R. Zaïane, 199 9 Principles of Knowledge Discovery in bases Unive rsity of Alberta 23 Dr.Osmar R. Zaïane, 199 9 Marts r Principles of Knowledge Discovery in bases Unive rsity of Alberta 23 Sources Cleaning are often the operational systems, providing the lowest level of data. are designed for operational use, not for decision support, and the data reflect this fact. Multiple data are often from different systems run on a wide range of hardware and much of the software is built in-house or highly customized. Multiple data introduce a large number of issues -- semantic conflicts. cleaning is important to warehouse. Operational data from multiple are often noisy (may contain data that is unnecessary for DS). Three classes of tools. migration: allows simple data transformation. scrubbing: uses domain-specific knowledge to scrub data. auditing: discovers rules and relationships by scanning data (detect outliers). Dr. Osmar R. Zaïane, 1999 Principles of Knowledge Discovery in bases University of Alberta 25 Dr. Osmar R. Zaïane, 1999 Principles of Knowledge Discovery in bases University of Alberta 26 and ing the warehouse includes some other processing tasks: Checking integrity constraints, sorting, summarizing, build indices, etc. ing a warehouse means propagating updates on source data to the data stored in the warehouse. When to refresh. Determined by usage, types of data source, etc. How to refresh. shipping: using triggers to update snapshot log table and propagate the updated data to the warehouse. Transaction shipping: shipping the updates in the transaction log. Detect changes to an information source that are of interest to the warehouse. Define triggers in a full-functionality DBMS. Examine the updates in the log file. Write programs for legacy systems. Propagate the change in a generic form to the integrator. Dr. Osmar R. Zaïane, 1999 Principles of Knowledge Discovery in bases University of Alberta 27 Dr. Osmar R. Zaïane, 1999 Principles of Knowledge Discovery in bases University of Alberta 28 Integrator Receive changes from the monitors Make the data conform to the conceptual schema used by the warehouse Integrate the changes into the warehouse Merge the data with existing data already present Resolve possible update anomalies Dr. Osmar R. Zaïane, 1999 Principles of Knowledge Discovery in bases University of Alberta 29 Metadata Repository Administrative Source database and their contents Gateway descriptions Warehouse schema, view and derived data definitions Dimensions and hierarchies Pre-defined queries and reports mart locations and contents partitions extraction, cleansing, transformation rules, defaults refresh and purge rules User profiles, user groups Security: user authorization, access control Dr. Osmar R. Zaïane, 1999 Principles of Knowledge Discovery in bases University of Alberta 30 5

Marts r Dr.Osmar R. Zaïane, 199 9 Principles of Knowledge Discovery in bases Unive rsity of Alberta 23 Metadata Repository Business data business terms and definitions ownership of data charging policies Operational data lineage: history of migrated data and sequence of transformations applied currency of data: active, archived, purged monitoring information: warehouse usage statistics, error reports, audit trails Dr. Osmar R. Zaïane, 1999 Principles of Knowledge Discovery in bases University of Alberta 31 Dr. Osmar R. Zaïane, 1999 Principles of Knowledge Discovery in bases University of Alberta 32 Warehouse Design Example of Star Schema Most data warehouses use a star schema to represent the multidimensional model. Each dimension is represented by a dimension-table that describes it. A fact-table connects to all dimension-tables with a multiple join. Each tuple in the fact-table consists of a pointer to each of the dimension-tables that provide its multi-dimensional coordinates and stores measures for those coordinates. The links between the fact-table in the centre and the dimensiontables in the extremities form a shape like a star. (Star Schema) Month Store StoreID State Region Sales Fact Table Store Customer unit_sales dollar_sales No ProdName ProdDesc Cust CustId CustName Cust Cust (Source: JH) Dr. Osmar R. Zaïane, 1999 Principles of Knowledge Discovery in bases University of Alberta 33 Dr. Osmar R. Zaïane, 1999 Principles of Knowledge Discovery in bases University of Alberta 34 Warehouses Design (con t) Modeling data warehouses: dimensions measurements Star schema: A single object (fact table) in the middle connected to a number of objects (dimension tables) Each dimension is represented by one table ÎUn-normalized (introduces redundancy). Ex: (, Alberta, Canada, North America) (Calgary, Alberta, Canada, North America) Warehouses Design (con t) Snowflake schema: A refinement of star schema where the dimensional hierarchy is represented explicitly by normalizing the dimension tables. Fact constellations: Multiple fact tables share dimension tables. Normalize dimension tables Î Snowflake schema Dr. Osmar R. Zaïane, 1999 Principles of Knowledge Discovery in bases University of Alberta 35 Dr. Osmar R. Zaïane, 1999 Principles of Knowledge Discovery in bases University of Alberta 36 6

Region Example of Snowflake Schema Month Month Month State State State Store StoreID Sales Fact Table Store Customer unit_sales dollar_sales No ProdName ProdDesc Cust CustId CustName Cust Cust (Source: JH) What Is the Best Design? Performance benchmarking can be used to determine what is the best design. Snowflake schema: Easier to maintain dimension tables when dimension table are very large (reduces overall space). Star schema: More effective for data cube browsing (less joins): can affect performance. Dr. Osmar R. Zaïane, 1999 Principles of Knowledge Discovery in bases University of Alberta 37 Dr. Osmar R. Zaïane, 1999 Principles of Knowledge Discovery in bases University of Alberta 38 Aggregate Sum Aggregation in Warehouses Multidimensional view of data in the warehouse: Stress on aggregation of measures by one or more dimensions Group By Cross Tab Q1Q2Q3Q4 By Sum By Time Sum By By Time By The Cube and The Sub-Space Aggregates Q1 Q2 Sum Q3 Q4 Red Deer Lethbridge Calgary By Time By Time By Construction of Multi-dimensional Cube Province Amount 0-20K20-40K40-60K60K- sum B.C. Prairies Ontario sum All Amount Algorithms, B.C. Algorithms base... sum Discipline Dr. Osmar R. Zaïane, 1999 Principles of Knowledge Discovery in bases University of Alberta 39 Dr. Osmar R. Zaïane, 1999 Principles of Knowledge Discovery in bases University of Alberta 40 A Star-Net Query Model Shipping Method Customer Orders Customer Contracts Air-Express Truck Order Line Time Annually Quarterly Daily Item Group Sales Person District Region Division Geography Promotion Organization Principles of Knowledge Discovery in bases University of Alberta Dr. Osmar R. Zaïane, 1999 41 Implementation of the r R: Relational - data is stored in tables in relational database or extended-relational databases. They use an RDBMS to manage the warehouse data and aggregations using often a star schema. They support extensions to SQL A cell in the multi-dimensional structure is represented by a tuple. Advantage: Scalable (no empty cells for sparse cube). Disadvantage: no direct access to cells. Ex: Microstrategy Metacube (Informix) Dr. Osmar R. Zaïane, 1999 Principles of Knowledge Discovery in bases University of Alberta 42 7

Implementation of the r View of Warehouses and Hierarchies with DBMiner M: Multidimensional implements the multidimensional view by storing data in special multidimensional data structures (MDDS) Advantage: Fast indexing to pre-computed aggregations. Only values are stored. Disadvantage: Not very scalable and sparse Ex: Essbase of Arbor Importing data Table Browsing Dimension creation Dimension browsing Cube building Cube browsing H: Hybrid - combines R and M technology. (Scalability of R and faster computation of M) Dr. Osmar R. Zaïane, 1999 Principles of Knowledge Discovery in bases University of Alberta 43 Dr. Osmar R. Zaïane, 1999 Principles of Knowledge Discovery in bases University of Alberta 44 DBMiner Cube Visualization Dr. Osmar R. Zaïane, 1999 Principles of Knowledge Discovery in bases University of Alberta 45 Dr. Osmar R. Zaïane, 1999 Principles of Knowledge Discovery in bases University of Alberta 46 Issues Scalability Sparseness Curse of dimensionality Materialization of the multidimensional data cube (total, virtual, partial) Efficient computation of aggregations Indexing Dr. Osmar R. Zaïane, 1999 Principles of Knowledge Discovery in bases University of Alberta 47 Dr. Osmar R. Zaïane, 1999 Principles of Knowledge Discovery in bases University of Alberta 48 8

Mining requires integrated, consistent and cleaned data which data warehouses can provide. tools can interface with the engine to take advantage of the integrated and aggregated data, as well as the navigation power. Interactive and exploratory. -based is referred to as or OLAM (on-line analytical ). Dr. Osmar R. Zaïane, 1999 Principles of Knowledge Discovery in bases University of Alberta 49 9