Академический Документы
Профессиональный Документы
Культура Документы
A data warehouse is simply a single, complete, and consistent store of data obtained from a variety
of sources and made available to end users in a way they can understand and use it in a business
context. -- Barry Devlin, IBM Consultant
Data warehouse is subject oriented, integrated , non-volatile and time varying collection of data in
support of its decision making process.
Data warehouse is a collection of corporate information, derived directly from operational systems
and some external data sources. It is a relational database designed for query and analysis rather than
for transaction processing.
Extraction, Transformation and Loading
To serve purpose of facilitating business analysis, data warehouse system must be loaded regularly.
To do this data from one or more operational system must be extracted and copied into the
warehouse. The process of extracting data from source systems and bringing it into the data
warehouse is commonly called ETL, which stands for extraction, transformation, and loading.
Subject Oriented:
Data is categorized and stored by business subject rather than by application. Data are organized
according to subject instead of application.
Integrity:
when data resides in many separate applications in the operational environment, encoding of data is
often inconsistent, for instance, in one application gender might be coded as male and female in
another 0 and 1.
Time variant:
Data is stored as a series of snapshots, each representing a period of time. Data warehouse contain a
place for storing data that are 8 to 10 or older to be used for comparison, tends and forecasting.
Non-Volatile:
Typically data in the data warehouse is not updated or deleted. Data are not updated or changed in
any way once they enter the data warehouse but are only loaded and accessed.
Single-layer
Every data element is stored once only
Virtual warehouse
Two-layer
allows selection of the relevant information necessary for the data warehouse
exposes the information being captured, stored, and managed by operational systems
sees the perspectives of data in the warehouse from the view of end-user
1)Data sources:
In data source we have all the sources where data is stored. Data stored in different-different
places. Data from operational databases and external sources are extracted using application
program interfaces known as gateways.
2)Data storage:
The data storage of the architecture is the data warehouse database server. It is the
relational database system. We use the back end tools and utilities to feed data into
the bottom tier. These back end tools and utilities perform the Extract, Clean, Load,
and refresh functions.
Data extraction
get data from multiple, heterogeneous, and external sources
Data cleaning
detect errors in the data and rectify them when possible
Data transformation
convert data from legacy or host format to warehouse format
Load
sort, summarize, consolidate, compute views, check integrity, and build indicies and
partitions
Refresh
propagate the updates from the data sources to the warehouse
Meta data is the data defining warehouse objects. It stores:
schema, view, dimensions, hierarchies, derived data defn, data mart locations and contents
Operational meta-data
data lineage (history of migrated data and transformation path), currency of data (active,
archived, or purged), monitoring information (warehouse usage statistics, error reports, audit
trails)
The algorithms used for summarization
The mapping from operational environment to the data warehouse
Data related to system performance
warehouse schema, view and derived data definitions
Business data
business terms and definitions, ownership of data, charging policies
Data Mart
a subset of corporate-wide data that is of value to a specific groups of users. Its scope is
confined to specific, selected groups, such as marketing data mart.
Independent vs. dependent (directly from warehouse) data mart.
3) OLAP server
Relational OLAP (ROLAP)
Use relational or extended-relational DBMS to store and manage warehouse data and OLAP
middle ware
Include optimization of DBMS backend, implementation of aggregation navigation logic, and
additional tools and services
Greater scalability
Multidimensional OLAP (MOLAP)
3)Front-end tools - This tier is the front-end client layer. This layer holds the query
tools and reporting tools, analysis tools and data mining tools.
From the perspective of data warehouse architecture, we have the following data
warehouse models:
Virtual Warehouse
Data mart
Enterprise Warehouse
Virtual Warehouse
The view over an operational data warehouse is known as a virtual warehouse. It is
easy to build a virtual warehouse. Building a virtual warehouse requires excess
capacity on operational database servers.
Data Mart
Data mart contains a subset of organization-wide data. This subset of data is
valuable to specific groups of an organization.
In other words, we can claim that data marts contain data specific to a particular
group. For example, the marketing data mart may contain data related to items,
customers, and sales. Data marts are confined to subjects.
Enterprise Warehouse
An enterprise warehouse collects all the information and the subjects spanning an
entire organization
It provides us enterprise-wide data integration.
The data is integrated from operational systems and external information
providers.
This information can vary from a few gigabytes to hundreds of gigabytes, terabytes
or beyond.
Ref:-http://www.tutorialspoint.com/dwh/dwh_architecture.htm
INTRODUCTION OF MDDM
The multidimensional data model is an integral part of On-Line Analytical
Processing, or OLAP. Because OLAP is on-line, it must provide answers quickly;
analysts pose iterative queries during interactive sessions, not in batch jobs that run
overnight. And because OLAP is also analytic, the queries are complex. The
multidimensional data model is designed to solve complex queries in real time.The
multidimensional data model is important because it enforces simplicity
Component of MDDM
The two primary component of Dimensional Model are Dimensions and Facts
Types of MDDM
Star Schema
Snowflake Schema
Fact Constellation Schema
I. Star Schema
The following diagram shows the sales data of a company with respect to the four
dimensions, namely time, item, branch, and location.
There
is
a
fact
table at
the
center.
It
The fact table also contains the attributes, namely dollars sold and units sold.
Note: Each dimension has only one dimension table and each table holds a set of attributes. For
example, the location dimension table contains the attribute set {location_key, street, city,
province_or_state,country}. This constraint may cause data redundancy. For example,
"Vancouver" and "Victoria" both the cities are in the Canadian province of British Columbia.
The entries for such cities may cause data redundancy along the attributes province_or_state
and country.
Unlike Star schema, the dimensions table in a snowflake schema are normalized. For
example, the item dimension table in star schema is normalized and split into two
dimension tables, namely item and supplier table.
N
o
w
the item dimension table contains the attributes item_key, item_name, type, brand, and
supplier-key.
The supplier key is linked to the supplier dimension table. The supplier dimension table
contains the attributes supplier_key and supplier_type.
A fact constellation has multiple fact tables. It is also known as galaxy schema.
The following diagram shows two fact tables, namely sales and shipping.
T
h
e
The shipping fact table has the five dimensions, namely item_key, time_key,
shipper_key, from_location, to_location.
The shipping fact table also contains two measures, namely dollars sold and units sold.
It is also possible to share dimension tables between fact tables. For example, time, item,
and location dimension tables are shared between the sales and shipping fact table.
Schema Definition
Multidimensional schema is defined using Data Mining Query Language (DMQL). The two
primitives, cube definition and dimension definition, can be used for defining the data
warehouses and data marts.
define cube < cube_name > [ < dimension-list > }: < measure_list >
define dimension time as (time key, day, day of week, month, quarter,
year)
define dimension item as (item key, item name, brand, type, supplier
type)
define
dimension
branch
as
(branch
key,
branch
name,
branch
type)
define dimension time as (time key, day, day of week, month, quarter,
year)
define dimension item as (item key, item name, brand, type, supplier
(supplier key, supplier type))
define dimension branch as (branch key, branch name, branch type)
define dimension location as (location key, street, city (city key,
city, province or state, country))
define dimension time as (time key, day, day of week, month, quarter,
year)
define dimension item as (item key, item name, brand, type, supplier
type)
define dimension branch as (branch key, branch name, branch type)
define dimension location as (location key, street, city, province or
state,country)
define cube shipping [time, item, shipper, from location, to location]:
Ref:- http://www.tutorialspoint.com/dwh/dwh_schemas.htm