You are on page 1of 32

Adding Multiple Logical Table Sources

Copyright 2008, Oracle. All rights reserved.

Objectives
After completing this lesson, you should be able to:
Describe normalized and denormalized table structures in
database designs
Add multiple sources to a logical table source (LTS) for a
dimension in the business model
Add a second logical table source to a dimension in the
business model

6-2

Copyright 2008, Oracle. All rights reserved.

Table Structures
Normalized table structure:
Consists of many tables where data has been split or
normalized
Is used for inserts and updates
Does not work well for queries that perform business data
analysis

Denormalized table structure:


Follows a business model and is easier to understand
Has data that may be duplicated in several locations in a
database
Can take the form of a star schema
Provides better query performance

6-3

Copyright 2008, Oracle. All rights reserved.

Business Challenge
Data may be spread across several physical tables and needs
to be mapped to a single logical table.

Normalized tables contain


additional product information.

6-4

Copyright 2008, Oracle. All rights reserved.

Business Solution
Model multiple physical sources for the logical table:
Add multiple sources to an LTS.
Where data is not duplicated across tables

Add a new logical table source.


Where data is duplicated across tables

6-5

Copyright 2008, Oracle. All rights reserved.

ABC Example: Adding Multiple Sources to a


Logical Table Source (LTS)
Add normalized tables that store product code, product type,
pricing, and supplier information to the Product dimension in
the SupplierSales business model.

Additional product information is contained in separate


tables and joined to the D1_PRODUCTS root table.

6-6

Copyright 2008, Oracle. All rights reserved.

Implementation Steps:
Adding Multiple Sources to an LTS
1.
2.
3.
4.

Import additional product tables.


Define keys and joins.
Identify physical columns for mappings.
Add sources to a logical table source:
Manual method
Drag method

5. Rename logical columns.


6. Add columns to the Presentation layer.

6-7

Copyright 2008, Oracle. All rights reserved.

1. Import Additional Product Tables


Import additional product tables that store product code,
product type, pricing, and supplier information.

6-8

Copyright 2008, Oracle. All rights reserved.

2. Define Keys and Joins


Define the keys and joins for the imported product tables.

6-9

Copyright 2008, Oracle. All rights reserved.

3. Identify Physical Columns for Mappings


Locate the columns in the Physical layer with the additional
product information.

6 - 10

Copyright 2008, Oracle. All rights reserved.

4. Adding Sources to an LTS


You can add sources to an LTS by the following methods:
Manual: Use the Properties dialog box of a logical table
source to map tables and columns.
Drag: Drag columns from the Physical layer to a logical table
source to automatically map tables and columns.

6 - 11

Copyright 2008, Oracle. All rights reserved.

4a. Manual: Create New Logical Column


Create a new logical column for a logical dimension table.
1. Right-click the
logical table.

2. Create a new
logical column.

New logical column

6 - 12

Copyright 2008, Oracle. All rights reserved.

4a. Manual: Add New Physical Source


Use the Properties dialog box of a logical table source to add a
new physical table to the source.
1. Double-click.

2.

4. Select a table.
3. Click Add.

6 - 13

Copyright 2008, Oracle. All rights reserved.

4a. Manual: Create Column Mapping


Use the Properties dialog box of a logical table source to map a
new logical column to a physical column in the new source.
1. Double-click.

2.

4. Use Expression Builder


to build mapping.

3. Click ellipsis.
6 - 14

Copyright 2008, Oracle. All rights reserved.

4a. Manual: End Result


D1_PRODUCTS logical table
source now maps to two
physical tables: D1_PRODUCTS
and D1_PRICELIST.

6 - 15

Price logical column maps to the


PRICE physical column in the
D1_PRICELIST physical table.

Copyright 2008, Oracle. All rights reserved.

4b. Drag Method


Drag physical columns to a logical table source.

6 - 16

Copyright 2008, Oracle. All rights reserved.

4b. Drag Method: Logical Columns Added


Dragging physical columns to a logical table source
automatically creates logical columns in the BMM layer.

6 - 17

Copyright 2008, Oracle. All rights reserved.

4b. Drag Method: Physical Tables Added


Dragging physical columns to a logical table source
automatically adds physical tables to the logical table source.

New tables added

Physical joins displayed

View join details.

6 - 18

Copyright 2008, Oracle. All rights reserved.

4b. Drag Method: Column Mappings Added


Dragging physical columns to a logical table source
automatically adds column mappings to the logical table
source.

New
mappings

6 - 19

Copyright 2008, Oracle. All rights reserved.

5. Rename Logical Columns


Rename new logical columns with names that are meaningful
to users.

6 - 20

Copyright 2008, Oracle. All rights reserved.

6. Add Columns to the Presentation Layer


Drag the new logical columns to the Product presentation table
to make them available to users.

6 - 21

Copyright 2008, Oracle. All rights reserved.

ABC Example:
Adding a New Logical Table Source
Add a second logical table source to the Product dimension so
that Oracle BI Server queries only one table for Type Code and
Type information.

New logical
table source

6 - 22

Copyright 2008, Oracle. All rights reserved.

Implementation Steps:
Adding a New Logical Table Source
1.
2.
3.
4.

6 - 23

Examine the existing column mappings.


Identify a single table that stores both columns.
Add a new logical table source.
Define the content of the logical table source.

Copyright 2008, Oracle. All rights reserved.

1. Examine Existing Column Mappings


Examine column mappings for Type and Type Code columns
in the D1_PRODUCTS logical table source.

Type maps to the


D1_PRODUCT_TYPE
table.

6 - 24

Copyright 2008, Oracle. All rights reserved.

Type Code maps to


the D1_PRODUCTS
table.

2. Identify a Single Table That Stores


Both Columns
Examine the D1_PRODUCT_TYPE table and see that it contains
both ITEMTYPE and TYPECODE.

6 - 25

Copyright 2008, Oracle. All rights reserved.

3. Add a New Logical Table Source


Add a new logical table source for the Products logical
dimension table that maps to the columns in
D1_PRODUCT_TYPE.

New logical
table source

Column mappings

6 - 26

Copyright 2008, Oracle. All rights reserved.

4. Define the Content of the Logical Table Source


Use the Content tab in the Logical Table Source dialog box to
define content for the source.

New logical
table source

6 - 27

Copyright 2008, Oracle. All rights reserved.

Summary
In this lesson, you should have learned how to:
Describe normalized and denormalized table structures in
database designs
Add multiple sources to a logical table source for a
dimension in the business model
Add a second logical table source to a dimension in the
business model

6 - 28

Copyright 2008, Oracle. All rights reserved.

Practice 6-1 Overview:


Enhancing the Product Dimension
This practice covers the following topics:
Importing normalized tables that contain additional product
information to the Physical layer of the repository
Defining physical keys and joins

6 - 29

Copyright 2008, Oracle. All rights reserved.

Practice 6-2 Overview:


Creating Multiple Sources
for a Logical Table Source (Manual)
This practice covers using the manual method to add a source
to a logical table source.

6 - 30

Copyright 2008, Oracle. All rights reserved.

Practice 6-3 Overview:


Creating Multiple Sources
for a Logical Table Source (Automated)
This practice covers using the drag method to add multiple
sources to a logical table source.

6 - 31

Copyright 2008, Oracle. All rights reserved.

Practice 6-4 Overview:


Adding a New Logical Table Source
This practice covers the following topics:
Adding a second logical table source to a logical dimension
table
Defining the content for a logical table source

6 - 32

Copyright 2008, Oracle. All rights reserved.

You might also like