Copyright © 2006, Oracle. All rights reserved. Czinkóczki László oktató Using the Oracle Warehouse Builder
1-2 Copyright © 2006, Oracle. All rights reserved. Data Warehouse Versus Transactional Systems A data warehouse is an enterprisewide database that is: Multisubject oriented Integrated across subjects on an enterprise base Time variant Nonvolatile Historical Capable of handling unpredictable workloads
1-3 Copyright © 2006, Oracle. All rights reserved. Dimensional Data Model with Relational Data Types PRODUCT prod A prod B prod C prod D prod E SALES Prod Cust Time CUST cust A cust B cust C cust D cust E TIME Year Quarter Month Week Day Dimensional concepts Dimension Hierarchy Level Attribute Dimension table Dimension table Dimension table
1-4 Copyright © 2006, Oracle. All rights reserved. Sales dimensioned by product, customer, and time SALES cube ProductCustomer Time Multidimensional Data Types Data is stored in multidimensional cubes in the analytic workspace. Analytical workspace is stored in BLOB column of relational table
1-5 Copyright © 2006, Oracle. All rights reserved. What Is Oracle Warehouse Builder? Oracle Warehouse Builder (OWB) is an extensible framework for designing, deploying, and managing enterprise data warehouses, data marts, and e-business intelligence applications.
1-6 Copyright © 2006, Oracle. All rights reserved. Producing Quality Information Warehouse Builder enables the Extraction, Transformation, and Loading of data to produce quality information in the Oracle database. DataInformationKnowledge Transformation Business intelligence Action (Quality information)
1-7 Copyright © 2006, Oracle. All rights reserved. BI Environment from an OWB Perspective Model, extract, transform, load, and manage BI data Create analytic content Share Business Intelligence Reports BI Beans Disco Plus Spread- sheet add-in Portal page Disco Viewer BI Beans application Relational Flat files Applications Mainframe SAP Sources Tools using BI data Relational Multi- dimensional (OLAP) OWB repository and/or Oracle database OWB
1-8 Copyright © 2006, Oracle. All rights reserved. OWB 10g R2 Default Installation with a Single Repository Repository user Repository owner Highly privileged database user Create database objects: - Tables - Dimensions, cubes - Mappings - Packages, … Target schemas Repository users Repository owner Target users Created by the OWB Repository Assistant or Logon dialog box’s Get Started button Can be a single repository Created by the repository owner - Audit tables - Run-time and deployment statistics - Physical location info - Design metadata - Possible target
1-9 Copyright © 2006, Oracle. All rights reserved. Projects A project is the highest-level object in Warehouse Builder. It is best to create projects after identifying the functional areas for the projects. Source module Mapping Transformations Mapping Transformations Warehouse module Project A Project B Warehouse module Staging Operational data sources Data Mart
1-10 Copyright © 2006, Oracle. All rights reserved. Design Center Toolbar Menus Connection explorer Global explorer Project explorer Project explorer: Holds all information related to a single project Connection explorer: Holds all connections and control centers for the repository Global explorer: Holds all objects that are shared among users of the repository; this is a great place to share reusable components across projects
1-11 Copyright © 2006, Oracle. All rights reserved. Objects Within a Project Oracle modules
1-12 Copyright © 2006, Oracle. All rights reserved. Objects Within a Project Files Applications
1-13 Copyright © 2006, Oracle. All rights reserved. Objects Within a Module Tables Dimensions Cubes Module node expanded to show its objects
1-14 Copyright © 2006, Oracle. All rights reserved. Objects Within a Module Data auditors Transformations Mappings
1-15 Copyright © 2006, Oracle. All rights reserved. Process Flow of Design and Deployment Design target object metadata. 1 Relational databases Flat files Applications Mainframe SAP Map source to target with transformations. 3 Oracle 8 i /9 i /10g OLAP Flat files BI tools Non-Oracle databases via gateways Validate, generate, and deploy the code. 4 5 OWB repository OWB client Target warehouse and data marts Sources Derive and deploy BI reporting infrastructure. Extract and transform data. 6 7 Capture knowledge using “experts.” Define A. Define B. Map A to B. Extract source metadata: 2
1-16 Copyright © 2006, Oracle. All rights reserved. Multiple Named Configurations: Preview Physical configuration Development - No logging - Nonparallel - Tablespace DEV_DATA - Table EMP Location - No logging - Parallel - Tablespace PROD_DATA - Table EMP Location Logical design Named configurations for multiple deployments No need to write scripts to change tablespace names, and so on (Multiple named configurations and locations covered in the Part 2 course) Physical configuration Production
1-17 Copyright © 2006, Oracle. All rights reserved. The ETL processes Extract Operational External Flat files Server log files E Transform/Load TL Staging areas Transformations Enterprise model (atomic data) PublishSubscribe Portal Access layers Metadata repository Dependent data marts RDBMS B2C B2B TL
1-18 Copyright © 2006, Oracle. All rights reserved. OMB*Plus tcl Scripting Within Design Client You can run OMB*Plus tcl scripts to perform any function available in the Design Center graphical interface. (For example, create, modify, delete, import, or examine your OWB metadata.)
1-19 Copyright © 2006, Oracle. All rights reserved. Creating a Project
1-20 Copyright © 2006, Oracle. All rights reserved. Creating an Oracle Source Module
1-21 Copyright © 2006, Oracle. All rights reserved. Create Module Wizard: Connection Information
1-22 Copyright © 2006, Oracle. All rights reserved. Editing the Oracle Database Location
1-23 Copyright © 2006, Oracle. All rights reserved. Import Metadata Wizard: Filter Information
1-24 Copyright © 2006, Oracle. All rights reserved. Selecting the Tables for Import
1-25 Copyright © 2006, Oracle. All rights reserved. Viewing Data Using the Data Viewer
1-26 Copyright © 2006, Oracle. All rights reserved. OWB Mapping Extract, transform, and load (ETL) involves the movement and transformation of data from your sources to your targets. Use OWB mappings to specify which source data objects provide data to which target data objects. Mapping definitions reside in target modules. Use OWB mappings to specify which source data objects provide data to which target data objects. Relational or flat file module Table Warehouse or data mart module Column Map
1-27 Copyright © 2006, Oracle. All rights reserved. Creating the Warehouse Target Module
1-28 Copyright © 2006, Oracle. All rights reserved. Designing the LOAD_STG_GEOG Mapping
1-29 Copyright © 2006, Oracle. All rights reserved. Drag the table operator onto the canvas. Creating a Staging Table
1-30 Copyright © 2006, Oracle. All rights reserved. Adding an Attribute New attribute
1-31 Copyright © 2006, Oracle. All rights reserved. Using a Filter Operator 1 2 3
1-32 Copyright © 2006, Oracle. All rights reserved. Using the Expression Builder to Define a Filter Condition
1-33 Copyright © 2006, Oracle. All rights reserved. Using a Joiner
1-34 Copyright © 2006, Oracle. All rights reserved. Set Operation Operator
1-35 Copyright © 2006, Oracle. All rights reserved. Using the Create and Bind Option to Create the Repository Table
1-36 Copyright © 2006, Oracle. All rights reserved. Synchronizing Operators and Repository Objects Mapping operator Synchronize from an operator to a repository object. Synchronize from a repository object to an operator.
1-37 Copyright © 2006, Oracle. All rights reserved. Validating the Mapping
1-38 Copyright © 2006, Oracle. All rights reserved. Generating the Mapping
1-39 Copyright © 2006, Oracle. All rights reserved. Deploying a Mapping Before you deploy a mapping, you must perform the following steps: 1.Deploy the source object used in the mapping. 2.Deploy the target object used in the mapping. 3.Deploy the mapping
1-40 Copyright © 2006, Oracle. All rights reserved. Executing a Mapping
1-41 Copyright © 2006, Oracle. All rights reserved. Viewing the Data Using Data Viewer The result of your work!
1-42 Copyright © 2006, Oracle. All rights reserved. Defining a Relational Dimensional Model Classifying the Data DescriptorsTime Dimensions Metrics Cubes
1-43 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.
1-44 Copyright © 2006, Oracle. All rights reserved. Determining Granularity Year? Quarter? Month? Week? Day?
1-45 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
1-46 Copyright © 2006, Oracle. All rights reserved. Creating a Dimension Using the Wizard
1-47 Copyright © 2006, Oracle. All rights reserved. Create Dimension Wizard: Storage Type
1-48 Copyright © 2006, Oracle. All rights reserved. Create Dimension Wizard: Dimension Attributes
1-49 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.
1-50 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.
1-51 Copyright © 2006, Oracle. All rights reserved. Create Dimension Wizard: Data Policy
1-52 Copyright © 2006, Oracle. All rights reserved. Dimension Details: Data Viewer Tab
1-53 Copyright © 2006, Oracle. All rights reserved. Creating the Time Dimension with the Time Wizard
1-54 Copyright © 2006, Oracle. All rights reserved. Create Time Dimension Wizard: Levels
1-55 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
1-56 Copyright © 2006, Oracle. All rights reserved. Create Cube Wizard: Storage Type
1-57 Copyright © 2006, Oracle. All rights reserved. Create Cube Wizard: Dimensions
1-58 Copyright © 2006, Oracle. All rights reserved. Create Cube Wizard: Measures
1-59 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
1-60 Copyright © 2006, Oracle. All rights reserved. Using the Cube Data Viewer
Copyright © 2006, Oracle. All rights reserved. Köszönöm a figyelmet!