<Insert Picture Here>

Make Oracle BI EE Smarter and Faster with Oracle OLAP Cubes
Marty Gubar Oracle BI/DW Product Management

Agenda
• 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

• Improve the delivery of information rich queries by SQL-based business intelligence tools and applications
– – – – Simple definition of analytic calculations Simple access to analytic calculations Fast performance Leverage existing Oracle Database expertise

highly available. scalable and manageable Rich analytic platform . integrated database platform Secure.Oracle Database 11g The Optimal Information Platform Cohesive.

Oracle Database 11g: Embedded OLAP Simplify Heterogeneous Query Environments Reporting MS Office Dashboard Web & Analysis Service • Business rules in Oracle Database – Single definition shared by all client tools and applications – Available in data dictionary • Calculation complexity pushed into analytic engine in the database – Simplifies implementations – Delivers efficient computation 5 .

Oracle Database Metadata Table Relationships REGION CUST SALES FACT INVENTORY ITEM TIME .

Column Relationships Not Captured in Table’s Metadata REGION CUST ITEM SALES FACT item_key type_key cat_key INVENTORY ITEM TIME .

Value of Dimensional Metadata Dimensions Formalize Data Relationships Geography REGION CUST SALES FACT Product INVENTORY ITEM Time TIME .

Value of Dimensional Metadata Dimensions Formalize Data Relationships Geography REGION Product Level-based Hierarchy Category CUST SALES FACT Product Type Item INVENTORY ITEM Time TIME Define the business relationships .

Value of Dimensional Metadata Dimensions Formalize Data Relationships 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 Parent CUST SALES FACT Descendants Children INVENTORY ITEM Time TIME Use family references to simplify calculations .

Value of Dimensional Metadata Time Dimension Supports Any Calendar Type Geography REGION CUST SALES FACT Product M A R C H Sun Mon Tue Wed Thu Fri Sat 1 8 15 22 2 9 16 23 30 3 10 17 24 31 4 11 18 25 5 12 19 26 6 13 20 27 7 14 21 28 INVENTORY 29 Fiscal Year End ITEM Time TIME Time dimension simplifies time-series calculations .

Value of Dimensional Metadata Dimensions Shared Across Cubes REGION Sales Cube CUST Product SALES FACT Geography Time INVENTORY Inventory Cube ITEM Product TIME Time .

Value of Dimensional Metadata Aggregation Rules REGION Sales Cube ∑ Aggregation Rules Product: Sum Geography: Sum Time: Sum CUST Product SALES FACT Geography Time INVENTORY Inventory Cube ITEM Product TIME ∑ Aggregation Rules Product: Sum Time: Hierarchical Last Time .

Value of Dimensional Metadata Analytic Calculations Leverage Metadata REGION Sales Cube CUST Product SALES FACT Geography Time Calculations • Sales • YTD • YTD Growth • Market Share • Product Alert • Moving Average • … INVENTORY Inventory Cube ITEM Product TIME Calculations • Balance • Inventory Cost • Stock Out • … Time .

“Best-fit”. Year Ago. Rank within Parent/Level References to a Dimension member – Indexes – Comparison to "top performer" – Reference member at any aggregation level • • Forecasts – Linear. etc. Year-to-Date.Characteristics of Analytic Calculations OLAP calculations commonly include: • • • Calculations over Time – Period Ago. Holt-Winters. Models – Series of equations used to compute values for dimension members . Linear Regressions. Share of Parent/Ancestor. Moving Average Comparisons based on position in hierarchy – Ratios.

OLAP DML Programs. Calculation Templates 2.Calculation Glide-Path Solution Scales with Calculation Complexity • Calculation definition options support most any analytic calculation requirements: 1. Calculation Expression Syntax 3. Functions and Models .

Calculation Templates Choose from a wide range of common business calculations .

Calculation Expression Syntax • OLAP Expression Syntax: • Patterned after SQL analytic and window functions • Extended to leverage unique properties of OLAP model • Can leverage OLAP DML code .

to_date. decode. • Conditional Statements • Supports standard comparative operators • Examples: case. .Calculation Expression Syntax Similarity to Standard SQL Syntax • Identical to SQL syntax for: • Single Row Functions • Approximately 90 single row functions are identical to SQL • Examples: nvl. etc. >=. <. etc. ||. =. nullif. replace. <=. !=. >.

Calculation Expression Syntax SQL Syntax Extended for OLAP Metadata • Enables a single calculation to span various levels of aggregation • Leverages native understanding of hierarchical relationships • Requires no densification for time-series calculations • Includes the following functions: AVERAGE_RANK AVG COUNT DENSE_RANK HIER_PARENT HIER_TOP LAG LAG_VARIANCE LAG_VARIANCE_PERCENT LEAD LEAD_VARIANCE LEAD_VARIANCE_PERCENT MAX MIN RANK ROW_NUMBER SHARE SUM HIER_ANCESTOR HIER_CHILD_COUNT HIER_DEPTH HIER_LEVEL .

QUANTITY DESC NULLS LAST WITHIN PARENT) --SQL --Rank departments RANK() OVER (PARTITION --Rank categories RANK() OVER (PARTITION --Rank types RANK() OVER (PARTITION --Rank sub types RANK() OVER (PARTITION -.Rank within parent at any level RANK() OVER HIERARCHY (PRODUCT.Rank items RANK() OVER (PARTITION BY total_product_id ORDER BY sales DESC NULLS LAST) BY department_id ORDER BY sales DESC NULLS LAST) BY category_id ORDER BY sales DESC NULLS LAST) BY type_id ORDER BY sales DESC NULLS LAST) BY sub_type_id ORDER BY sales DESC NULLS LAST) .Calculation Expression Syntax Example of Extended SQL Syntax Window function example (RANK) • One OLAP Expression is equivalent to several SQL rank expressions --OLAP .STANDARD ORDER BY SALES_CUBE.

a „models‟) • Assignments based on user defined expressions . multidimensional selection and more • Includes hundreds of analytic functions • OLAP DML can be used: • Within a custom measure expression • To assign data to stored measures within a cube • Forecasts • Allocations • Systems of expressions (a.k. conditional logic.Calculations Using OLAP DML • OLAP DML is a dimensionally aware procedural programming language • Supports looping.

Calculations Using OLAP DML Example: Forecast “Scope the forecast limit geography to geography_levelrel eq 'REGION' limit product to product_levelrel eq 'TYPE' limit channel to 'ALL_CHANNELS' limit time to time_levelrel eq 'MONTH‘ "Set forecast parameters for 'best fit' fcset _handle APPROACH 'APPAUTO' periodicity 12 histperiods 36 "Execute the best-fit forecast FCEXEC _handle time time INTO forecast_best_fit seasonal forecast_seasonal smseasonal forecast_smseasonal backcast sales_cube_sales .

Calculations Using OLAP DML Example: Product Alert “Look “Have limit limit at product sales for the children of the current product they fallen compared to last year? product to children using product_parentrel _product product keep SALES_CUBE_SALES_PY_PCT_CHG lt 0 “If any products meet the criteria – return TRUE (an alert) if statlen(product) gt 0 then return true else return false .

J2EE.Cube Views Automatically Synchronized with Cubes Smart Search TIME Web Analysis SALES CUBE Smart Space Desktop Gadgets GEOGRAPHY SmartView INVENTORY CUBE Custom Application Hyperion Visual (SOAP.Net Explorer MDX. .) PRODUCT . etc.

Comparing "Star" Models CUBE VIEWS Geography_View Sales_Cube_View Time_View Geographies Sales_Fact TABLES Times Product_View Channel_View Products Channels • Single cube view contains many summary levels • Calculations exposed as columns and computed in OLAP engine • Fact table contains leaf data • Calculations computed in relational engine using functions in select list .

Generate OBIEE Metadata Over Cubes AWM Plug-in Automates Process Export cube metadata to OBIEE Administrator .

OBIEE Answers Leverages OLAP Calculations Computed in OLAP Engine .

Dem o Create an OBIEE Repository over Cubes Query Cubes Using OBIEE Answers . 4. 2.Demonstrations 1. Create Calculations Using AWM Query Cube Using SQL 3.

com/technology/products/bi/olap/olap. tutorials and more.com Oracle OLAP Oracle Technology Network For demonstrations.html .oracle.oracle.For More Information search. visit: http://www. white papers.

Sign up to vote on this title
UsefulNot useful