You are on page 1of 17

Using Partitions and Fragments

Copyright 2010, Oracle and/or its affiliates. All rights reserved.

Objectives
After completing this lesson, you should be able to: Identify reasons for segmenting data Describe techniques to model partitions Implement a value-based partition Implement a fact-based partition

11 - 2

Copyright 2010, Oracle and/or its affiliates. All rights reserved.

Business Challenge
Data is often partitioned into multiple physical sources for a single logical table. Organizations need to seamlessly and efficiently access and process data from multiple sources to satisfy user requests. Business applications must know where to go for specific types of data under specific conditions.

11 - 3

Copyright 2010, Oracle and/or its affiliates. All rights reserved.

Business Solution: Oracle BI Server


The Oracle BI repository can be configured so that Oracle BI Server handles navigation to the appropriate source. Oracle BI Server seamlessly and efficiently accesses and processes data from multiple sources to satisfy user requests.

11 - 4

Copyright 2010, Oracle and/or its affiliates. All rights reserved.

Partition
Is a database element that contains part of the data for a fact or a dimension Combines with other data fragments as necessary May be:
Fact based Value based Level based Complex

11 - 5

Copyright 2010, Oracle and/or its affiliates. All rights reserved.

Partitioning by Fact
Data is partitioned by fact when different fact data is stored in different tables. Example: Actual sales versus quota targets

Actual sales

Quota targets

Sales Rep 1100

Product Sale 1000

Sales Rep 1100

Product Quota 2000

11 - 6

Copyright 2010, Oracle and/or its affiliates. All rights reserved.

Partitioning by Value
Data is partitioned by value when the data is split into separate tables according to the values of the data. Example: Invoice data is stored separately for each region.

Invoices for Central region

InvNbr
1135293

Dollars
1000

Region
Central

Invoices for West region

InvNbr 114444

Dollars 200

Region West

11 - 7

Copyright 2010, Oracle and/or its affiliates. All rights reserved.

Partitioning by Level
Data is partitioned by level when the same facts are stored in separate tables at different levels of aggregation. Example: Detailed sales data is summarized and stored by year and region.

Sales detailed data

Sales by year and region

Sales Rep 1100 1100 1100

Date 19980105 19981001 19981010

Product Sale 10000 25000 10000

Year 2008 2009

Region

Total Dollars

Central 200000 Central 300000

11 - 8

Copyright 2010, Oracle and/or its affiliates. All rights reserved.

Complex Partitioning
Data is partitioned using more than one technique. Example: Invoice sales data is partitioned by value and level.
Invoices by month for Central Invoices by year for Central

Month 200801 200802

Total Dollars 10000 25000

Region Central Central

Year 2008

Total Dollars

Region

200000 Central

Invoices by month for West

Invoices by year for West

Month

Total Dollars

Region

Year

Total Dollars

Region

200801
200802
11 - 9

300000
350000

West
West

2008

3000000

West

Copyright 2010, Oracle and/or its affiliates. All rights reserved.

ABC Example: Value Based (Order Date)


Replace the current, single source for order data with two value-based partitions.

Orders on or before Dec. 31, 2008

Date

Dollars

20081231 20,000

Orders on or after Jan. 1, 2009

Date

Dollars

20090101 25,000

11 - 10

Copyright 2010, Oracle and/or its affiliates. All rights reserved.

ABC Example: Fact Based (Quota)


Enable users to query for actual sales data and quota data in a single query.

Actual sales

Quota targets

Sales Rep 1100

Product Sale 1000

Sales Rep 1100

Product Quota 2000

11 - 11

Copyright 2010, Oracle and/or its affiliates. All rights reserved.

Implementation Steps
1. 2. 3. 4. 5. Import physical sources. Create physical joins. Add sources to the Business Model and Mapping layer. New step Specify fragmentation content. Test the results.

11 - 12

Copyright 2010, Oracle and/or its affiliates. All rights reserved.

Specify Fragmentation Content


Use the Expression Builder to define the type of content that the fragment contains. Set the flag to specify whether to combine this fragment with other data at this level.

Order data on or before Dec. 31, 2008, is contained in this fragment.

Specifies combining this fragment with the other

11 - 13

Copyright 2010, Oracle and/or its affiliates. All rights reserved.

Summary
In this lesson, you should have learned how to: Identify reasons for segmenting data Describe techniques to model partitions Implement a value-based partition Implement a fact-based partition

11 - 14

Copyright 2010, Oracle and/or its affiliates. All rights reserved.

Practice 11-1 Overview: Modeling a Value-Based Partition


This practice covers the following topics: Creating a partition Defining fragmentation content for a value-based partition

11 - 15

Copyright 2010, Oracle and/or its affiliates. All rights reserved.

Practice 11-2 Overview: Modeling a Fact-Based Partition


This practice covers modeling a fact-based partition for quota data.

11 - 16

Copyright 2010, Oracle and/or its affiliates. All rights reserved.

Practice 11-3 Overview: Using the Calculation Wizard to Create Derived Measures
This practice covers creating measures for the quota partition.

11 - 17

Copyright 2010, Oracle and/or its affiliates. All rights reserved.