3 copyright © 2009, oracle. all rights reserved. understanding the warehouse builder architecture

34
3 Copyright © 2009, Oracle. All rights reserved. Understanding the Warehouse Builder Architecture

Upload: myra-bond

Post on 19-Jan-2016

218 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: 3 Copyright © 2009, Oracle. All rights reserved. Understanding the Warehouse Builder Architecture

3Copyright © 2009, Oracle. All rights reserved.

Understanding the Warehouse Builder Architecture

Page 2: 3 Copyright © 2009, Oracle. All rights reserved. Understanding the Warehouse Builder Architecture

Copyright © 2009, Oracle. All rights reserved.3 - 2

Objectives

After completing this lesson, you should be able to do the following:

• Define the OWB architecture components

• Explain how locations, control centers, and default configuration relate to each other

• Create target schemas or users and modules– Use the Security Node in the Globals Navigator panel– Examine roles and privileges– Register an Oracle Workflow user

Page 3: 3 Copyright © 2009, Oracle. All rights reserved. Understanding the Warehouse Builder Architecture

Copyright © 2009, Oracle. All rights reserved.3 - 3

Lesson Agenda

• Overview of the OWB Architecture

• Locations and Connectors: Concepts and Usage– Control centers and locations– Configurations and control centers

• Target schemas– Register OWB Users

Page 4: 3 Copyright © 2009, Oracle. All rights reserved. Understanding the Warehouse Builder Architecture

Copyright © 2009, Oracle. All rights reserved.3 - 4

Warehouse Builder Development Cycle

Design Client Metadata locations Modules

Design Data Flows

Design Time Runtime

Reverse Engineering

Test Data Flows

Promote in Production

Design Client Dimensional

modeling Mappings Process Flows

Create locations Create Modules Import metadata Sample Flat files

Create relational and dimensional objects

Create Mappings Create Process

Flows

Control Center

Manager Database Objects Mappings Process Flows

Control Center

Manager Configurations Configuration

Templates

Deploy all objects Deploy mappings

and process flows Execute mappings

and process flows

Re-deploy

all objects, and re-run

Mappings,

process flows

Tool

Actions

Page 5: 3 Copyright © 2009, Oracle. All rights reserved. Understanding the Warehouse Builder Architecture

Copyright © 2009, Oracle. All rights reserved.3 - 5

OWBSYS (Repository)

Configuration

Template

Architecture for Design, Deployment, Execution

Design Server Run-time Server

DesignCenter

ControlCenter Manager

Configuration 1

Data to be loaded

Configuration 2

1. Design source and target metadata, ETL mappings, process flows.

Designmetadata

(tables,dimensions,cubes, ETLmappings)

Design Workspace

2. Deploy PL/SQL packages to target schema.

3. Execute process flows or individual mappings to load tables in target schemas.

Configurationpoints to a

control center

Control Center

Service “execution agent” outside of DB

Audit Tables

OWBSYS (Repository)

Audit Tables

Control center

Target schema

Deployed tables, dimensions,

PL/SQLpackages

Workspace

Deploy

Execute

Page 6: 3 Copyright © 2009, Oracle. All rights reserved. Understanding the Warehouse Builder Architecture

Copyright © 2009, Oracle. All rights reserved.3 - 6

Architecture for Design, Deployment, Execution

OWBSYS (Repository)

Configuration

Template

Design Server Run-time Server

DesignCenter

ControlCenter Manager

Configuration 1

Data to be loaded

Configuration 2

1. Design source and target metadata, ETL mappings, process flows.

Designmetadata

(tables,dimensions,cubes, ETLmappings)

Design Workspace

2. Deploy PL/SQL packages to target schema.

3. Execute process flows or individual mappings to load tables in target schemas.

Configurationpoints to a

control center

Control Center

Service “execution agent” outside of DB

Audit Tables

OWBSYS (Repository)

Audit Tables

Control center

Target schema

Deployed tables, dimensions,

PL/SQLpackages

Workspace

Deploy

Execute

1

2

2

1

Page 7: 3 Copyright © 2009, Oracle. All rights reserved. Understanding the Warehouse Builder Architecture

Copyright © 2009, Oracle. All rights reserved.3 - 8

Architecture for Design, Deployment, Execution

OWBSYS (Repository)

Configuration

Template

Design Server Run-time Server

DesignCenter

ControlCenter Manager

Configuration 1

Data to be loaded

Configuration 2

1. Design source and target metadata, ETL mappings, process flows.

Designmetadata

(tables,dimensions,cubes, ETLmappings)

Design Workspace

2. Deploy PL/SQL packages to target schema.

3. Execute process flows or individual mappings to load tables in target schemas.

Configurationpoints to a

control center

Control Center

Service “execution agent” outside of DB

Audit Tables

OWBSYS (Repository)

Audit Tables

Control center

Target schema

Deployed tables, dimensions,

PL/SQLpackages

Workspace

Deploy

Execute

3

45

Page 8: 3 Copyright © 2009, Oracle. All rights reserved. Understanding the Warehouse Builder Architecture

Copyright © 2009, Oracle. All rights reserved.3 - 10

OWBSYS (Repository)

Configuration

Template

Design Server Run-time Server

DesignCenter

ControlCenter Manager

Configuration 1

Data to be loaded

Configuration 2

1. Design source and target metadata, ETL mappings, process flows.

Designmetadata

(tables,dimensions,cubes, ETLmappings)

Design Workspace

2. Deploy PL/SQL packages to target schema.

3. Execute process flows or individual mappings to load tables in target schemas.

Configurationpoints to a

control center

Control Center

Service “execution agent” outside of DB

Audit Tables

OWBSYS (Repository)

Audit Tables

Control center

Target schema

Deployed tables, dimensions,

PL/SQLpackages

Workspace

Deploy

Execute

Architecture for Design, Deployment, Execution

6Design

Reports

Audit

Reports

Repository Browser

Page 9: 3 Copyright © 2009, Oracle. All rights reserved. Understanding the Warehouse Builder Architecture

Copyright © 2009, Oracle. All rights reserved.3 - 11

OWB Topology with CCA on Oracle Target Server

Oracle DB

Repository

OWB Code

Data Schema

Source Tables

OWBBrowser

Local OC4J

Workspace1

AuditTables

Design

Deploy Deploy

ExecuteExecute

DesignReports

AuditReports

Client

DB2

SQL Server

Execute

DS1

DS2

DS3

ExU1 ExU2

Control Center Agent

Local OC4J

StageLoads data from staging to target

Remote SQL

ExU3

TGT1

TGT2

C$EXU1

C$EXU2

Integrate CTLoad CT

C$ = prefix for load table for staging

DS = data source credentials (location details)

ExU = execution unitDesignClient

OWB ControlCenter Service

Map1

BrowserServer

Source Tables

Page 10: 3 Copyright © 2009, Oracle. All rights reserved. Understanding the Warehouse Builder Architecture

Copyright © 2009, Oracle. All rights reserved.3 - 12

One “active”configuration

Modules point tometadata and

data locations.

Configurationpoints to one control center.

A control center manages a set of source and target locations. A location can be a target for only one control center, but a source for many control centers.

1 2

3

Design Center is for designing the logical model of your data warehouse. Configurations, control centers, and locations are definitions for implementing

the objects physically in the run-time environment.

Configurations, Control Centers, Locations

Page 11: 3 Copyright © 2009, Oracle. All rights reserved. Understanding the Warehouse Builder Architecture

Copyright © 2009, Oracle. All rights reserved.3 - 14

Lesson Agenda

• Overview of the OWB Architecture

• Locations and Connectors: Concepts and Usage– Control centers and locations– Configurations and control centers

• Target schemas– Register OWB Users

Page 12: 3 Copyright © 2009, Oracle. All rights reserved. Understanding the Warehouse Builder Architecture

Copyright © 2009, Oracle. All rights reserved.3 - 15

Locations

Different types of locations• Databases• Files• Applications• Process flow and schedules• Business Intelligence

Locations contain credentials and connect information for a

single physical place.

Page 13: 3 Copyright © 2009, Oracle. All rights reserved. Understanding the Warehouse Builder Architecture

Copyright © 2009, Oracle. All rights reserved.3 - 16

Creating Locations

• Locations are created:– For the OWBSYS repository by default– When you define source or target modules from within

Design Center– When you register a user (optional)

• Default name for the OWBSYS repository location is OWB_REPOSITORY_LOCATION.

Page 14: 3 Copyright © 2009, Oracle. All rights reserved. Understanding the Warehouse Builder Architecture

Copyright © 2009, Oracle. All rights reserved.3 - 17

Metadata and Data Locations

Each object has both a data location and a metadata location.

Page 15: 3 Copyright © 2009, Oracle. All rights reserved. Understanding the Warehouse Builder Architecture

Copyright © 2009, Oracle. All rights reserved.3 - 18

Registering Locations

After you have deployed the objects for a location or explicitly registered the location, you cannot edit or delete it. You can only update its password. You must unregister the location if you want to edit or delete it.

Page 16: 3 Copyright © 2009, Oracle. All rights reserved. Understanding the Warehouse Builder Architecture

Copyright © 2009, Oracle. All rights reserved.3 - 19

Unregistering Locations

Page 17: 3 Copyright © 2009, Oracle. All rights reserved. Understanding the Warehouse Builder Architecture

Copyright © 2009, Oracle. All rights reserved.3 - 20

Alternatives for Unregistering Locations

• Use the OMBUNREGISTER LOCATION command to unregister locations.

Or

• Run the [ORACLE_HOME]/owb/misc/unregister_location.sql script.– Use this script when the control center becomes

inaccessible for some reason.

Page 18: 3 Copyright © 2009, Oracle. All rights reserved. Understanding the Warehouse Builder Architecture

Copyright © 2009, Oracle. All rights reserved.3 - 21

Connectors

• Logical links between source and target location

• Physically implemented as:– Database links– Directories

• A location may have multiple connectors.

Location Connector1

n

Page 19: 3 Copyright © 2009, Oracle. All rights reserved. Understanding the Warehouse Builder Architecture

Copyright © 2009, Oracle. All rights reserved.3 - 23

Quiz

Connectors link the source and the target locations and are implemented as database links or directories.

a. True

b. False

Page 20: 3 Copyright © 2009, Oracle. All rights reserved. Understanding the Warehouse Builder Architecture

Copyright © 2009, Oracle. All rights reserved.3 - 24

Control Centers

• You cannot edit the DEFAULT_CONTROL_CENTER control center.• You can create additional control centers to deploy to different

systems.• Only one control center can be used from Design Center at any

one time.

A Control Center Service is a Javaprogram running outside of thedatabase as an “execution agent.”

Page 21: 3 Copyright © 2009, Oracle. All rights reserved. Understanding the Warehouse Builder Architecture

Copyright © 2009, Oracle. All rights reserved.3 - 26

Control Center and Locations

• A control center manages many locations.

• A target location can be managed only by a single control center.

• Source locations, by contrast, can be used by multiple control centers.

Control center Locations1

n

Grey means that the location is registered.

Page 22: 3 Copyright © 2009, Oracle. All rights reserved. Understanding the Warehouse Builder Architecture

Copyright © 2009, Oracle. All rights reserved.3 - 27

Configurations and Control Centers

• Each configuration maps to a control center.

• Each control center maps to a workspace.

• To work in a particular control center, ensure that the configuration associated with that control center is set to Active.

DEFAULT_CONFIGURATION DEFAULT_CONTROL_CENTER

PROD_CONFIGURATION PROD_CONTROL_CENTER

DEV_WORKSPACE

PROD_WORKSPACE

Active configuration

Default configuration

Page 23: 3 Copyright © 2009, Oracle. All rights reserved. Understanding the Warehouse Builder Architecture

Copyright © 2009, Oracle. All rights reserved.3 - 28

Lesson Agenda

• Overview of the OWB Architecture

• Locations and Connectors: Concepts and Usage– Control Centers and Locations

• Target schemas– Register OWB Users

Page 24: 3 Copyright © 2009, Oracle. All rights reserved. Understanding the Warehouse Builder Architecture

Copyright © 2009, Oracle. All rights reserved.3 - 29

Creating Target Schemas

The target schema is the target to which you load your data and data objects such as cubes, dimensions, tables, and mappings.

Target schema

Data to be loaded

Deployed tables, dimensions,

PL/SQLpackages

In OWB 11g, any OWB user that you define can serve as either a source or target user.

Page 25: 3 Copyright © 2009, Oracle. All rights reserved. Understanding the Warehouse Builder Architecture

Copyright © 2009, Oracle. All rights reserved.3 - 30

Creating Target Schemas

• Implement the logical design as physical database objects by deploying the objects to a target schema.

• Load target tables by executing deployed mappings.

• You may have multiple target schemas associated with one Warehouse Builder workspace.

Target schema

SALES

Logical design in Design Center

Deploy

Test physical implementation

Target schema

SALES

Deploy

Production physical implementation

Page 26: 3 Copyright © 2009, Oracle. All rights reserved. Understanding the Warehouse Builder Architecture

Copyright © 2009, Oracle. All rights reserved.3 - 31

Registering DB User as an OWB User

• Only a workspace owner or a user with Warehouse Builder administrative privileges can register users.

• To register a user, use either of the following:– Security > Users node in Design Center– OMBINSTALL OWB_TARGET_USER OMB Plus command

• You cannot register a user with multiple workspaces– If you want to deploy to a schema from a different

workspace, you would first have to unregister the location from the original workspace.

Page 27: 3 Copyright © 2009, Oracle. All rights reserved. Understanding the Warehouse Builder Architecture

Copyright © 2009, Oracle. All rights reserved.3 - 32

Using the Security Node to Register an OWB User

1

23

No automatic creationof the target location

4

Page 28: 3 Copyright © 2009, Oracle. All rights reserved. Understanding the Warehouse Builder Architecture

Copyright © 2009, Oracle. All rights reserved.3 - 33

Roles and Privileges of Warehouse Builder Users

Two default roles: EVERYONE, ADMINISTRATOR

EVERYONE ADMINISTRATOR

Workspace Owner

Yes Yes

Workspace User

Yes No

Registered Users

Yes No

Page 29: 3 Copyright © 2009, Oracle. All rights reserved. Understanding the Warehouse Builder Architecture

Copyright © 2009, Oracle. All rights reserved.3 - 34

Registering an Oracle Workflow User

• To deploy and execute process flows in a control center, you need to register the Oracle Workflow user.

• The Workflow location points to your workflow user schema.

Page 30: 3 Copyright © 2009, Oracle. All rights reserved. Understanding the Warehouse Builder Architecture

Copyright © 2009, Oracle. All rights reserved.3 - 35

Channels, Promotions,Products, Addresses,Categories, Cities,Countries, Customers,Regions, Promo-subcategories, Promo-categories, Orders,Order_itemsORDERS_SRC (imported by you)

Mapping

Course: Predefined and New Objects

Flat file source module: FILE_SOURCE

CUSTOMERS.TXT

FILE_GEOGRAPHY_MULTI.CSV

DB module: DQ

Target module: STAGING_AREA

Target user:STAGING_USER

External table:CUST_EXT

MAP_STG_GEOGRAPHY

Target module: SALES

•Dimensions: CHANNELS, PRODUCTS, TIMES, CUSTOMERS, PROMOTIONS •Cube: SALES•Tables: CHANNELS_TAB, PRODUCTS_TAB, TIMES_TAB, CUSTOMERS_TAB, PROMOTIONS_TAB, ORDERS_TGT, T_IND_PART, T_PART•Mappings: Loading Dimensions and Cube Mappings, DEBUG_TEST_MAPPING, LOAD_ORDERS, PIVOT_SALES, UNPIVOT_SALES

DB source module: XSALES

Tables:SOURCE, CLEANSED, CROSSREF, TARGETMappings:MAP_NA, MAP_NA_MM

= Items with the check mark are predefined.

Staging tables:STG_COUNTRIES

STG_REGIONS

Mapping

MAP_STG_CUSTOMERS

Target user: SALES_WH

(You create/register this)

You also create a mapping: LOAD_CONTACT that uses XSALES source tables

Page 31: 3 Copyright © 2009, Oracle. All rights reserved. Understanding the Warehouse Builder Architecture

Copyright © 2009, Oracle. All rights reserved.3 - 36

Import the CLASS_PROJECT1.mdl File

• Select File > Import > Warehouse Builder Metadata

• Browse to select the class_project1.mdl file from the /home/oracle/labs/etl1/mdl/ folder.

Page 32: 3 Copyright © 2009, Oracle. All rights reserved. Understanding the Warehouse Builder Architecture

Copyright © 2009, Oracle. All rights reserved.3 - 37

Quiz

In OWB 11.2, any OWB user that you define can serve as either a source or target user.

a. True

b. False

Page 33: 3 Copyright © 2009, Oracle. All rights reserved. Understanding the Warehouse Builder Architecture

Copyright © 2009, Oracle. All rights reserved.3 - 38

Summary

In this lesson, you should have learned how to:

• Describe the various architectural components of Warehouse Builder

• Explain how locations, control centers, and configurations relate to each other

• Describe the process of registering OWB users

• Describe the process of registering the Oracle Workflow user

Page 34: 3 Copyright © 2009, Oracle. All rights reserved. Understanding the Warehouse Builder Architecture

Copyright © 2009, Oracle. All rights reserved.3 - 39

Practice 3-1 Overview: Setting Up a Pre-Populated Project

This practice covers the following topics:

• Importing a CLASS_PROJECT1.mdl file

• Registering target users (SALES_WH, STAGING_USER)

• Registering the Oracle Workflow user