7 Copyright © 2006, Oracle. All rights reserved. Defining a Relational Dimensional Model
7-2 Copyright © 2006, Oracle. All rights reserved. Objectives After completing this lesson, you should be able to do the following: Define dimensions and cubes Navigate the Data Object Editor Define ETL mappings to load the dimensions and cubes
7-3 Copyright © 2006, Oracle. All rights reserved. Course Progress Report 1. Define the source metadata. 2. Ensure data quality using data profiling. 3. Define staging area metadata. 4. Derive data rules and run correction mappings. 5. Define a relational dimensional model. 6. Create a process flow. 7. Deploy the objects. 8. Execute or run the mappings. 9. View the data.
7-4 Copyright © 2006, Oracle. All rights reserved. Lesson Scenario Target module: SALES_WH Schema details: sales_wh/sales_wh Created by learner Precreated LOAD_PRODUCTS LOAD_CHANNELS LOAD_CUSTOMER LOAD_PROMOTIONS TIMES_MAP LOAD_SALES Mappings SALES Cube CHANNELS TIMES PRODUCTS CUSTOMERS PROMOTIONS Dimensions
7-5 Copyright © 2006, Oracle. All rights reserved. Classifying the Data DescriptorsTime Dimensions Metrics Cubes
7-6 Copyright © 2006, Oracle. All rights reserved. Dimension Tables Dimension tables have the following characteristics: They contain textual information that represents the attributes of the business. They contain relatively static data.
7-7 Copyright © 2006, Oracle. All rights reserved. Determining Granularity Year? Quarter? Month? Week? Day?
7-8 Copyright © 2006, Oracle. All rights reserved. Dimensional Design Using OWB Implementing a dimension consists of specifying how the dimension and its data are physically stored. Defining Using wizard Implementing ROLAP MOLAP Deploying Using editor
7-9 Copyright © 2006, Oracle. All rights reserved. Defining Dimensions Using wizard Using editor
7-10 Copyright © 2006, Oracle. All rights reserved. Creating a Dimension Using the Wizard
7-11 Copyright © 2006, Oracle. All rights reserved. Create Dimension Wizard: Name and Description
7-12 Copyright © 2006, Oracle. All rights reserved. Create Dimension Wizard: Storage Type
7-13 Copyright © 2006, Oracle. All rights reserved. Create Dimension Wizard: Dimension Attributes
7-14 Copyright © 2006, Oracle. All rights reserved. Create Dimension Wizard: Levels Specify levels in the default hierarchy (STANDARD). The highest level appears at the top. Use the arrow keys to change the order.
7-15 Copyright © 2006, Oracle. All rights reserved. Create Dimension Wizard: Level Attributes By default, ID, NAME, and DESCRIPTION attributes are selected for all levels. For the lowest level, all the listed attributes are selected.
7-16 Copyright © 2006, Oracle. All rights reserved. Create Dimension Wizard: Data Policy
7-17 Copyright © 2006, Oracle. All rights reserved. Create Dimension Wizard: Precreate Settings
7-18 Copyright © 2006, Oracle. All rights reserved. Create Dimension Wizard: Dimension Creation Progress
7-19 Copyright © 2006, Oracle. All rights reserved. Configuring a Dimension Configure the physical properties of a dimension.
7-20 Copyright © 2006, Oracle. All rights reserved. Practice 7-1: Create a Dimension Using the Wizard This practice covers creating the CHANNELS dimension by using the Create Dimension Wizard.
7-21 Copyright © 2006, Oracle. All rights reserved. About the Data Object Editor Graphical view of dimension object: CHANNELS dimension Details window
7-22 Copyright © 2006, Oracle. All rights reserved. Detail View
7-23 Copyright © 2006, Oracle. All rights reserved. Creating or Editing a Dimension Using the Data Object Editor Creating or editing a dimension using the editor To use existing database tables or views to store the dimension data. This is also called manual binding. To use the snowflake or manual implementation methods. Star is the default implementation method for the ROLAP storage type. To create dimension roles To use skip levels in a hierarchy Creating a dimension using the wizard You can create dimension objects quickly. OWB provides default settings to the most commonly used values. Versus
7-24 Copyright © 2006, Oracle. All rights reserved. Creating a Dimension Using the Editor Advanced user: Using the editor to create a dimension Using the editor, you can create a new dimension in the Data Object Editor, or select an existing one to edit it.
7-25 Copyright © 2006, Oracle. All rights reserved. Dimension Details: Name Tab
7-26 Copyright © 2006, Oracle. All rights reserved. Creating a Dimension Role
7-27 Copyright © 2006, Oracle. All rights reserved. Dimension Details: Storage Tab
7-28 Copyright © 2006, Oracle. All rights reserved. Dimension Details: Attributes Tab
7-29 Copyright © 2006, Oracle. All rights reserved. Dimension Details: Levels Tab
7-30 Copyright © 2006, Oracle. All rights reserved. Dimension Details: Hierarchies Tab
7-31 Copyright © 2006, Oracle. All rights reserved. Dimension Details: SCD Tab
7-32 Copyright © 2006, Oracle. All rights reserved. Relational Implementation: Star Star implementation
7-33 Copyright © 2006, Oracle. All rights reserved. Relational Implementation: Snowflake
7-34 Copyright © 2006, Oracle. All rights reserved. Binding OWB provides two options for binding dimension attributes to the database columns that store their data: Autobinding Manual binding
7-35 Copyright © 2006, Oracle. All rights reserved. Autobinding
7-36 Copyright © 2006, Oracle. All rights reserved. Manual Binding
7-37 Copyright © 2006, Oracle. All rights reserved. Manual Binding
7-38 Copyright © 2006, Oracle. All rights reserved. Unbind
7-39 Copyright © 2006, Oracle. All rights reserved. Dimension Details: Data Viewer Tab
7-40 Copyright © 2006, Oracle. All rights reserved. Practice 7-2: Create a Dimension Using the Editor This practice covers creating the PRODUCTS dimension by using the editor.
7-41 Copyright © 2006, Oracle. All rights reserved. Creating the Time Dimension by Using the Time Wizard
7-42 Copyright © 2006, Oracle. All rights reserved. Create Time Dimension Wizard: Name and Description
7-43 Copyright © 2006, Oracle. All rights reserved. Create Time Dimension Wizard: Storage
7-44 Copyright © 2006, Oracle. All rights reserved. Create Time Dimension Wizard: Data Generation
7-45 Copyright © 2006, Oracle. All rights reserved. Create Time Dimension Wizard: Levels
7-46 Copyright © 2006, Oracle. All rights reserved. Create Time Dimension Wizard: Precreate Settings
7-47 Copyright © 2006, Oracle. All rights reserved. Create Time Dimension Wizard: Progress Panel
7-48 Copyright © 2006, Oracle. All rights reserved. Create Time Dimension Wizard: Summary
7-49 Copyright © 2006, Oracle. All rights reserved. Practice 7-3: Create a TIMES Dimension Using the Time Wizard This practice covers creating the TIMES dimension by using the Time Wizard.
7-50 Copyright © 2006, Oracle. All rights reserved. Defining a Cube Using the Wizard SALES cube Dimensions Products Promotions Channels Customers Times Measures Amount Quantity Cost Sales_Products_FK Sales_Channels_FK Sales_Promotions_FK Sales_Customers_FK Customers dimension Products dimension Time dimension Promotions dimension Channels dimension Sales_Times_FK
7-51 Copyright © 2006, Oracle. All rights reserved. Create Cube Wizard: Name and Description
7-52 Copyright © 2006, Oracle. All rights reserved. Create Cube Wizard: Storage Type
7-53 Copyright © 2006, Oracle. All rights reserved. Create Cube Wizard: Dimensions
7-54 Copyright © 2006, Oracle. All rights reserved. Create Cube Wizard: Measures
7-55 Copyright © 2006, Oracle. All rights reserved. Create Cube Wizard: Summary
7-56 Copyright © 2006, Oracle. All rights reserved. Editing a Cube Using the Data Object Editor
7-57 Copyright © 2006, Oracle. All rights reserved. Assigning Roles Dimension roles in the Role drop-down list were created in the topic about dimensions. Here you assign the roles to the cube.
7-58 Copyright © 2006, Oracle. All rights reserved. Configuring Cubes Configure the physical properties of a cube.
7-59 Copyright © 2006, Oracle. All rights reserved. Practice 7-4: Create a Cube Using the Editor This practice covers creating the SALES cube by using the wizard and modifying the cube by using the editor.
7-60 Copyright © 2006, Oracle. All rights reserved. SALES_WH Mappings Designing ETL Mappings TIMES_MAP Mapping LOAD_CHANNELS Mapping LOAD_CUSTOMERS Mapping LOAD_SALES Mapping LOAD_PROMOTIONS Mapping Created by the learner Precreated for the learner Created by OWB LOAD_PRODUCTS Mapping
7-61 Copyright © 2006, Oracle. All rights reserved. Mapping to Load the PRODUCTS Dimension
7-62 Copyright © 2006, Oracle. All rights reserved. Mapping to Load the SALES Cube Join condition: INGRP1.ID = INGRP2.ORDER_ID And INGRP1.CUSTOMER_ID = INGRP3.CUSTOMER_ID And INGRP1.PROMOTION_ID = INGRP4.ID
7-63 Copyright © 2006, Oracle. All rights reserved. Mapping to load the SALES Cube (continued) Join condition: INGRP1.ID = INGRP2.ORDER_ID And INGRP1.CUSTOMER_ID = INGRP3.CUSTOMER_ID And INGRP1.PROMOTION_ID = INGRP4.ID
7-64 Copyright © 2006, Oracle. All rights reserved. Pluggable Mapping
7-65 Copyright © 2006, Oracle. All rights reserved. Generating the Mappings
7-66 Copyright © 2006, Oracle. All rights reserved. Summary In this lesson, you should have learned how to: Define dimensions and cubes Navigate the Data Object Editor Define ETL mappings to load the dimensions and cubes
7-67 Copyright © 2006, Oracle. All rights reserved. Practice 7-5: Design ETL Mappings This practice covers creating the LOAD_PRODUCTS mapping.
7-68 Copyright © 2006, Oracle. All rights reserved.