Your SlideShare is downloading. ×
Data Warehouses Dr S.Natarajan
Introduction
A Brief History of  Information Technology <ul><li>The “dark ages”: paper forms in file cabinets </li></ul><ul><li>Compute...
Databases for Decision Support <ul><li>1 st  phase:  Automating existing processes makes them more efficient. </li></ul><u...
Databases for Decision Support <ul><li>1 st  phase:  Automating existing processes makes them more efficient. </li></ul><u...
OLTP vs. OLAP <ul><li>OLTP:  O n- L ine  T ransaction  P rocessing </li></ul><ul><ul><li>Many short transactions (queries ...
Why OLAP & OLTP don’t mix (1) <ul><li>Transaction processing (OLTP): </li></ul><ul><ul><li>Fast response time  important (...
Why OLAP & OLTP don’t mix (2) <ul><li>Transaction processing (OLTP): </li></ul><ul><ul><li>Normalized  schema for consiste...
Why OLAP & OLTP don’t mix (3) <ul><li>An OLTP system targets one specific process </li></ul><ul><ul><li>For example:  orde...
<ul><li>A data warehouse is a collection of integrated databases designed to support a DSS. </li></ul><ul><li>An operation...
Organizational Data Flow and Data Storage Components
Loading the Data Warehouse Source Systems Data Staging Area Data Warehouse (OLTP) Data is periodically extracted Data is c...
Characteristics of a Data Warehouse <ul><li>Subject oriented  – organized based on use </li></ul><ul><li>Integrated  – inc...
A Data Warehouse is  Subject  Oriented
Data in a Data Warehouse are Integrated
The Data Warehouse Architecture <ul><li>The architecture consists of various interconnected elements: </li></ul><ul><ul><l...
The Data Warehouse Architecture (cont.) <ul><li>Additional layers are: </li></ul><ul><ul><li>Process management layer  – t...
Components of the Data   Warehouse   Architecture
Data   Warehousing   Typology <ul><li>The virtual data warehouse  – the end users have direct access to the data stores, u...
Data Have Data -- The Metadata <ul><li>The name suggests some high-level technological concept, but it really is fairly si...
The Metadata in Action <ul><li>The metadata are essential ingredients in the transformation of raw data into knowledge. Th...
Implementing the Data Warehouse <ul><li>Kozar assembled a list of “seven deadly sins” of data warehouse implementation: </...
“ Seven Deadly Sins”, continued <ul><ul><li>Failure to use the right tool  – a DW project needs different tools than those...
The Future of Data Warehousing <ul><li>As the DW becomes a standard part of an organization, there will be efforts to find...
Data Integration is Hard <ul><li>Data warehouses combine data from multiple sources </li></ul><ul><li>Data must be transla...
Federated Databases <ul><li>An alternative to data warehouses </li></ul><ul><li>Data warehouse </li></ul><ul><ul><li>Creat...
Warehouses vs. Federation <ul><li>Advantages of federated databases: </li></ul><ul><ul><li>No redundant copying of data </...
<ul><li>Visit  www.jsbi.blogspot.com  for more slides/information!! </li></ul><ul><li>Mail :  [email_address] </li></ul>
Upcoming SlideShare
Loading in...5
×

Introduction to Data Warehousing

40,260

Published on

A Brief History of Information Technology
Databases for Decision Support
OLTP vs. OLAP
Why OLAP & OLTP don’t mix (1)
Organizational Data Flow and Data Storage Components
Loading the Data Warehouse
Characteristics of a Data Warehouse
A Data Warehouse is Subject Oriented

For more visit : http://jsbi.blogspot.com

Published in: Business, Technology
8 Comments
87 Likes
Statistics
Notes
No Downloads
Views
Total Views
40,260
On Slideshare
0
From Embeds
0
Number of Embeds
19
Actions
Shares
0
Downloads
0
Comments
8
Likes
87
Embeds 0
No embeds

No notes for slide

Transcript of "Introduction to Data Warehousing"

  1. 1. Data Warehouses Dr S.Natarajan
  2. 2. Introduction
  3. 3. A Brief History of Information Technology <ul><li>The “dark ages”: paper forms in file cabinets </li></ul><ul><li>Computerized systems emerge </li></ul><ul><ul><li>Initially for big projects like Social Security </li></ul></ul><ul><ul><li>Same functionality as old paper-based systems </li></ul></ul><ul><li>The “golden age”: databases are everywhere </li></ul><ul><ul><li>Most activities tracked electronically </li></ul></ul><ul><ul><li>Stored data provides detailed history of activity </li></ul></ul><ul><li>The next step: use data for decision-making </li></ul><ul><ul><li>The focus of this course! </li></ul></ul><ul><ul><li>Made possible by omnipresence of IT </li></ul></ul><ul><ul><li>Identify inefficiencies in current processes </li></ul></ul><ul><ul><li>Quantify likely impact of decisions </li></ul></ul>
  4. 4. Databases for Decision Support <ul><li>1 st phase: Automating existing processes makes them more efficient. </li></ul><ul><ul><li>Automation -> Lots of well-organized, easily accessed data </li></ul></ul><ul><li>2 nd phase: Data analysis allows for better decision-making. </li></ul><ul><ul><li>Analyze data -> better understanding </li></ul></ul><ul><ul><li>Better understanding -> better decisions </li></ul></ul><ul><li>“ Data Entry” vs. “Thinking” </li></ul><ul><ul><li>Data analysts are decision-makers: managers, executives, etc. </li></ul></ul>
  5. 5. Databases for Decision Support <ul><li>1 st phase: Automating existing processes makes them more efficient. </li></ul><ul><ul><li>Automation -> Lots of well-organized, easily accessed data </li></ul></ul><ul><li>2 nd phase: Data analysis allows for better decision-making. </li></ul><ul><ul><li>Analyze data -> better understanding </li></ul></ul><ul><ul><li>Better understanding -> better decisions </li></ul></ul><ul><li>“ Data Entry” vs. “Thinking” </li></ul><ul><ul><li>Data analysts are decision-makers: managers, executives, etc. </li></ul></ul>
  6. 6. OLTP vs. OLAP <ul><li>OLTP: O n- L ine T ransaction P rocessing </li></ul><ul><ul><li>Many short transactions (queries + updates) </li></ul></ul><ul><ul><li>Examples: </li></ul></ul><ul><ul><ul><li>Update account balance </li></ul></ul></ul><ul><ul><ul><li>Enroll in course </li></ul></ul></ul><ul><ul><ul><li>Add book to shopping cart </li></ul></ul></ul><ul><ul><li>Queries touch small amounts of data (one record or a few records) </li></ul></ul><ul><ul><li>Updates are frequent </li></ul></ul><ul><ul><li>Concurrency is biggest performance concern </li></ul></ul><ul><li>OLAP: O n- L ine A nalytical P rocessing </li></ul><ul><ul><li>Long transactions, complex queries </li></ul></ul><ul><ul><li>Examples: </li></ul></ul><ul><ul><ul><li>Report total sales for each department in each month </li></ul></ul></ul><ul><ul><ul><li>Identify top-selling books </li></ul></ul></ul><ul><ul><ul><li>Count classes with fewer than 10 students </li></ul></ul></ul><ul><ul><li>Queries touch large amounts of data </li></ul></ul><ul><ul><li>Updates are infrequent </li></ul></ul><ul><ul><li>Individual queries can require lots of resources </li></ul></ul>
  7. 7. Why OLAP & OLTP don’t mix (1) <ul><li>Transaction processing (OLTP): </li></ul><ul><ul><li>Fast response time important (< 1 second) </li></ul></ul><ul><ul><li>Data must be up-to-date, consistent at all times </li></ul></ul><ul><li>Data analysis (OLAP): </li></ul><ul><ul><li>Queries can consume lots of resources </li></ul></ul><ul><ul><li>Can saturate CPUs and disk bandwidth </li></ul></ul><ul><ul><li>Operating on static “snapshot” of data usually OK </li></ul></ul><ul><li>OLAP can “crowd out” OLTP transactions </li></ul><ul><ul><li>Transactions are slow -> unhappy users </li></ul></ul><ul><li>Example: </li></ul><ul><ul><li>Analysis query asks for sum of all sales </li></ul></ul><ul><ul><li>Acquires lock on sales table for consistency </li></ul></ul><ul><ul><li>New sales transaction is blocked </li></ul></ul>Different performance requirements
  8. 8. Why OLAP & OLTP don’t mix (2) <ul><li>Transaction processing (OLTP): </li></ul><ul><ul><li>Normalized schema for consistency </li></ul></ul><ul><ul><li>Complex data models, many tables </li></ul></ul><ul><ul><li>Limited number of standardized queries and updates </li></ul></ul><ul><li>Data analysis (OLAP): </li></ul><ul><ul><li>Simplicity of data model is important </li></ul></ul><ul><ul><ul><li>Allow semi-technical users to formulate ad hoc queries </li></ul></ul></ul><ul><ul><li>De-normalized schemas are common </li></ul></ul><ul><ul><ul><li>Fewer joins -> improved query performance </li></ul></ul></ul><ul><ul><ul><li>Fewer tables -> schema is easier to understand </li></ul></ul></ul>Different data modeling requirements
  9. 9. Why OLAP & OLTP don’t mix (3) <ul><li>An OLTP system targets one specific process </li></ul><ul><ul><li>For example: ordering from an online store </li></ul></ul><ul><li>OLAP integrates data from different processes </li></ul><ul><ul><li>Combine sales, inventory, and purchasing data </li></ul></ul><ul><ul><li>Analyze experiments conducted by different labs </li></ul></ul><ul><li>OLAP often makes use of historical data </li></ul><ul><ul><li>Identify long-term patterns </li></ul></ul><ul><ul><li>Notice changes in behavior over time </li></ul></ul><ul><li>Terminology, schemas vary across data sources </li></ul><ul><ul><li>Integrating data from disparate sources is a major challenge </li></ul></ul>Analysis requires data from many sources
  10. 10. <ul><li>A data warehouse is a collection of integrated databases designed to support a DSS. </li></ul><ul><li>An operational data store (ODS) stores data for a specific application. It feeds the data warehouse a stream of desired raw data. </li></ul><ul><li>A data mart is a lower-cost, scaled-down version of a data warehouse, usually designed to support a small group of users (rather than the entire firm). </li></ul><ul><li>The metadata is information that is kept about the warehouse. </li></ul>
  11. 11. Organizational Data Flow and Data Storage Components
  12. 12. Loading the Data Warehouse Source Systems Data Staging Area Data Warehouse (OLTP) Data is periodically extracted Data is cleansed and transformed Users query the data warehouse
  13. 13. Characteristics of a Data Warehouse <ul><li>Subject oriented – organized based on use </li></ul><ul><li>Integrated – inconsistencies removed </li></ul><ul><li>Nonvolatile – stored in read-only format </li></ul><ul><li>Time variant – data are normally time series </li></ul><ul><li>Summarized – in decision-usable format </li></ul><ul><li>Large volume – data sets are quite large </li></ul><ul><li>Non normalized – often redundant </li></ul><ul><li>Metadata – data about data are stored </li></ul><ul><li>Data sources – comes from nonintegrated sources </li></ul>
  14. 14. A Data Warehouse is Subject Oriented
  15. 15. Data in a Data Warehouse are Integrated
  16. 16. The Data Warehouse Architecture <ul><li>The architecture consists of various interconnected elements: </li></ul><ul><ul><li>Operational and external database layer – the source data for the DW </li></ul></ul><ul><ul><li>Information access layer – the tools the end user access to extract and analyze the data </li></ul></ul><ul><ul><li>Data access layer – the interface between the operational and information access layers </li></ul></ul><ul><ul><li>Metadata layer – the data directory or repository of metadata information </li></ul></ul>
  17. 17. The Data Warehouse Architecture (cont.) <ul><li>Additional layers are: </li></ul><ul><ul><li>Process management layer – the scheduler or job controller </li></ul></ul><ul><ul><li>Application messaging layer – the “middleware” that transports information around the firm </li></ul></ul><ul><ul><li>Physical data warehouse layer – where the actual data used in the DSS are located </li></ul></ul><ul><ul><li>Data staging layer – all of the processes necessary to select, edit, summarize and load warehouse data from the operational and external data bases </li></ul></ul>
  18. 18. Components of the Data Warehouse Architecture
  19. 19. Data Warehousing Typology <ul><li>The virtual data warehouse – the end users have direct access to the data stores, using tools enabled at the data access layer </li></ul><ul><li>The central data warehouse – a single physical database contains all of the data for a specific functional area </li></ul><ul><li>The distributed data warehouse – the components are distributed across several physical databases </li></ul>
  20. 20. Data Have Data -- The Metadata <ul><li>The name suggests some high-level technological concept, but it really is fairly simple. Metadata is “data about data”. </li></ul><ul><li>With the emergence of the data warehouse as a decision support structure, the metadata are considered as much a resource as the business data they describe. </li></ul><ul><li>Metadata are abstractions -- they are high level data that provide concise descriptions of lower-level data. </li></ul>
  21. 21. The Metadata in Action <ul><li>The metadata are essential ingredients in the transformation of raw data into knowledge. They are the “keys” that allow us to handle the raw data. </li></ul><ul><li>For example, a line in a sales database may contain: 1023 K596 111.50 </li></ul><ul><li>This is mostly meaningless until we consult the metadata (in the data directory) that tells us it was store number 1023, product K596 and sales of Rs 111.50. </li></ul>
  22. 22. Implementing the Data Warehouse <ul><li>Kozar assembled a list of “seven deadly sins” of data warehouse implementation: </li></ul><ul><ul><li>“ If you build it, they will come” – the DW needs to be designed to meet people’s needs </li></ul></ul><ul><ul><li>Omission of an architectural framework – you need to consider the number of users, volume of data, update cycle, etc. </li></ul></ul><ul><ul><li>Underestimating the importance of documenting assumptions – the assumptions and potential conflicts must be included in the framework </li></ul></ul>
  23. 23. “ Seven Deadly Sins”, continued <ul><ul><li>Failure to use the right tool – a DW project needs different tools than those used to develop an application </li></ul></ul><ul><ul><li>Life cycle abuse – in a DW, the life cycle really never ends </li></ul></ul><ul><ul><li>Ignorance about data conflicts – resolving these takes a lot more effort than most people realize </li></ul></ul><ul><ul><li>Failure to learn from mistakes – since one DW project tends to beget another, learning from the early mistakes will yield higher quality later </li></ul></ul>
  24. 24. The Future of Data Warehousing <ul><li>As the DW becomes a standard part of an organization, there will be efforts to find new ways to use the data. This will likely bring with it several new challenges : </li></ul><ul><ul><li>Regulatory constraints may limit the ability to combine sources of disparate data. </li></ul></ul><ul><ul><li>These disparate sources are likely to contain unstructured data , which is hard to store. </li></ul></ul><ul><ul><li>The Internet makes it possible to access data from virtually “anywhere”. Of course, this just increases the disparity. </li></ul></ul>
  25. 25. Data Integration is Hard <ul><li>Data warehouses combine data from multiple sources </li></ul><ul><li>Data must be translated into a consistent format </li></ul><ul><li>Data integration represents ~80% of effort for a typical data warehouse project! </li></ul><ul><li>Some reasons why it’s hard: </li></ul><ul><ul><li>Metadata is poor or non-existent </li></ul></ul><ul><ul><li>Data quality is often bad </li></ul></ul><ul><ul><ul><li>Missing or default values </li></ul></ul></ul><ul><ul><ul><li>Multiple spellings of the same thing (Cal vs. UC Berkeley vs. University of California) </li></ul></ul></ul><ul><ul><li>Inconsistent semantics </li></ul></ul><ul><ul><ul><li>What is an airline passenger? </li></ul></ul></ul>
  26. 26. Federated Databases <ul><li>An alternative to data warehouses </li></ul><ul><li>Data warehouse </li></ul><ul><ul><li>Create a copy of all the data </li></ul></ul><ul><ul><li>Execute queries against the copy </li></ul></ul><ul><li>Federated database </li></ul><ul><ul><li>Pull data from source systems as needed to answer queries </li></ul></ul><ul><li>“ lazy” vs. “eager” data integration </li></ul>Data Warehouse Federated Database Source Systems Source Systems Warehouse Mediator Query Answer Query Extraction Rewritten Queries Answer
  27. 27. Warehouses vs. Federation <ul><li>Advantages of federated databases: </li></ul><ul><ul><li>No redundant copying of data </li></ul></ul><ul><ul><li>Queries see “real-time” view of evolving data </li></ul></ul><ul><ul><li>More flexible security policy </li></ul></ul><ul><li>Disadvantages of federated databases: </li></ul><ul><ul><li>Analysis queries place extra load on transactional systems </li></ul></ul><ul><ul><li>Query optimization is hard to do well </li></ul></ul><ul><ul><li>Historical data may not be available </li></ul></ul><ul><ul><li>Complex “wrappers” needed to mediate between analysis server and source systems </li></ul></ul><ul><li>Data warehouses are much more common in practice </li></ul><ul><ul><li>Better performance </li></ul></ul><ul><ul><li>Lower complexity </li></ul></ul><ul><ul><li>Slightly out-of-date data is acceptable </li></ul></ul>
  28. 28. <ul><li>Visit www.jsbi.blogspot.com for more slides/information!! </li></ul><ul><li>Mail : [email_address] </li></ul>

×