Professional Documents
Culture Documents
• Introduction
• OLAP Calculations
• Value of dimensional metadata
• Solution scales with calculation complexity
• Accessing calculations thru SQL
• Creating Oracle Business Intelligence EE metadata
• Analyzing OLAP cubes thru OBIEE Answers
Oracle OLAP 11g
Introduction
5
Oracle Database Metadata
Table Relationships
REGION
CUST
SALES FACT
INVENTORY
ITEM
TIME
Column Relationships
Not Captured in Table’s Metadata
REGION
CUST
ITEM
INVENTORY
ITEM
TIME
Value of Dimensional Metadata
Dimensions Formalize Data Relationships
Geography
REGION
CUST
INVENTORY
ITEM
Time
TIME
Value of Dimensional Metadata
Dimensions Formalize Data Relationships
Geography
REGION
Product
Level-based Hierarchy
CUST Category
Item
INVENTORY
Geography
REGION
Product
Complex Hierarchy
CUST
SALES FACT
INVENTORY
ITEM
Time
TIME
Model complex
hierarchical relationships
Value of Dimensional Metadata
Dimensions Formalize Data Relationships
Geography
REGION
Product
Hierarchical Relationships
CUST
Parent
INVENTORY
ITEM
Time
TIME
Use family references to
simplify calculations
Value of Dimensional Metadata
Time Dimension Supports Any Calendar Type
Geography
REGION
22 23 24 25 26 27 28
INVENTORY
29 30 31 Fiscal Year End
CUST
Product
SALES FACT
Geography
Time
INVENTORY
Inventory Cube
ITEM
Product
TIME
Time
Value of Dimensional Metadata
Aggregation Rules
INVENTORY
Inventory Cube
ITEM
∑ Aggregation Rules
Product: Sum
Product Time: Hierarchical Last
TIME
Time
Value of Dimensional Metadata
Analytic Calculations Leverage Metadata
INVENTORY
Inventory Cube
ITEM
Calculations
• Balance
Product • Inventory Cost
TIME • Stock Out
• …
Time
Characteristics of Analytic Calculations
--SQL
--Rank departments
RANK() OVER (PARTITION BY total_product_id ORDER BY sales DESC NULLS LAST)
--Rank categories
RANK() OVER (PARTITION BY department_id ORDER BY sales DESC NULLS LAST)
--Rank types
RANK() OVER (PARTITION BY category_id ORDER BY sales DESC NULLS LAST)
--Rank sub types
RANK() OVER (PARTITION BY type_id ORDER BY sales DESC NULLS LAST)
-- Rank items
RANK() OVER (PARTITION BY sub_type_id ORDER BY sales DESC NULLS LAST)
Calculations Using OLAP DML
“If any products meet the criteria – return TRUE (an alert)
if statlen(product) gt 0
then return true
else return false
Cube Views
Automatically Synchronized with Cubes
Web Analysis
SALES CUBE
Smart Space
GEOGRAPHY
Desktop Gadgets
Custom Application
Hyperion
(SOAP, Visual
J2EE, .Net
Explorer
MDX, etc.) PRODUCT
Comparing "Star" Models
Sales_Cube_View Sales_Fact
• Single cube view contains many • Fact table contains leaf data
summary levels
Dem
o
For More Information
search.oracle.com
Oracle OLAP