SlideShare a Scribd company logo
1 of 41
1

Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
Dimensional Modeling in Oracle
SQL Developer
Data
Modeler
Philip Stoyanov
Senior Software Development Manager

2

Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
Legal
The following is intended to outline our general product direction. It is intended for
information purposes only, and may not be incorporated into any contract. It is not a
commitment to deliver any material, code, or functionality, and should not be relied
upon in making purchasing decisions. The development, release, and timing of any
features or functionality described for Oracle‟s products remains at the sole
discretion of Oracle.

3

Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
Agenda



Reporting



4

Dimensional model

Dimensions in physical model for Oracle

Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
Models
Data Types
Model

Subject
Area 1

Subject
Area n

Relational
Model 1
Process Model
Data flow
diagramming

Logical
Model

5

…

Subject
Area 1

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

Dimensional
Models 1..n

Subject
Area n

…

…
Relational
Model n

DB Site 1
Oracle 9i

…
DB Site n
Oracle 12c

DB Site 1
DB2/390 v.8

…
DB Site n
MS SQLS 2005
Relational model without relationships
 Even if we add

foreign keys still
there are
dependencies
that remain
hidden

6

Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
Dimensional model can show more
Extends definitions in
Logical and
Relational models –
additional 1:1 and 1:n
dependencies in the
scope of one table
can be described

7

Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
Can be mapped to Logical or Relational
model
 Relational model – direct

mappings to tables and views
 Logical model – used entities
need to be engineered to
relational model in order to
have mapping to specific
tables

8

Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
Dimensional model elements


Dimension



Level



Hierarchy



Link



Cube



Measure



Slice – subset of cube dimensions and measures

Oracle names (short, long, plural) can be defined for each element and exported to Oracle OLAP

9

Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
Dimension


Can be Regular or Time



Consists of levels and hierarchies



Concept of merging dimensions is
supported – hierarchies can span
levels from more than one
dimension



Dimension has one base level that
defines dimension‟s grain

10

Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
Merging dimensions example
 Level “Sales

Territory Region”
belongs to three
dimensions

11

Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
Level
 Level is mapped to exactly one entity (table or view).

Several levels can be mapped to one entity
 Can be Regular level or level that represents value
based (parent-child) hierarchy
 Has a key defined over one or several attributes
 Has descriptive attributes that map to exactly one
column from dimension table

12

Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
Level
 Mapping of optional short description and long description

attributes can be defined and mapping of mandatory „time
span” and “time end” attributes should be defined for level
belonging to time dimension
 Has calculated attributes – expressions over dimension
table columns
 Value based hierarchy is defined with “level key” and
“parent key” attributes
 Member selection criteria can be defined

13

Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
Level - calculated attribute

14

Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
Hierarchy
 Defines roll-up path and can connect levels belonging

to different dimensions (merging dimensions)
 Hierarchies are built and modified automatically during
the process of connecting levels and dimension node
 Three types of hierarchies – Parent-Child (value based
hierarchy), Level based and Ragged
 Joins are defined for levels mapped to different tables

15

Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
Hierarchy
Hierarchy is created when dimension shape is connected (using “New Link”) to
base level.

16

Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
Link
Used to define hierarchies and dimension usage. Child to parent attributes can be defined
when link connects levels defined on different entities

17

Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
Value based hierarchy
Level is used to define key, parent key and descriptive attributes

18

Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
Ragged hierarchy
Corresponds to skip level hierarchy in Oracle OLAP – use “New Ragged Hierarchy Link”
tool in order to mark and represent a “jump” over level(s) – dashed green link below

19

Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
Dimension usage




20

link between cube and dimension – defines child to parent attributes (join of fact entity to base level
of dimension), whether it‟s role playing dimension and other related properties

Separate dimension is created in Oracle OLAP for each role playing dimension

Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
Cube
 Defines fact entities and joins

between them
 Container for measures defined
on facts from fact entities
 Defines dimensions usage and
joins to dimensions – support for
role playing dimensions
 Container for “Slices” based on
cube definition

Cube defined on two fact entities:
FactInternetSales and
FactResellerSales

•
•
•

21

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

Abbreviations:
A – measure based on fact
FX – measure based on
formula expression
R – reference to dimension
Cube - partitioning
 Partitioning

dimension,
hierarchy, level
 Settings for

composites

22

Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
Cube – summary levels (pre-compute)

23

Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
Measure
 Measure can be based on single fact (direct mapping to

column) or expression involving facts and other measures
 Measure can be Full-Additive, Semi-Additive or NoneAdditive
 One (at least) or more aggregation functions can be defined
for Full-Additive and Semi-Additive measure.
 Semi-Additive measure has a list of dimensions on which it
is valid

24

Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
Basic measure

25

Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
Calculated measure

26

Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
Reports
 There are no standard reports for Dimensional model
 Custom reports integrated in Search functionality can be

created – two levels of details are supported for cubes and
dimensions (in Data Modeler 4.0)
 Custom reports can be generated in HTML, PDF or Excel
format; the latter one can be used to change properties in
Excel file and then to import them back into model

27

Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
Custom report template

28

Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
Custom report – dimensions with details for
hierarchies and levels

29

Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
Dimensional Model - usage
 Communication with customers – custom reports, detailed

and compact diagrams – for compact diagram use “Show
Compact model” in context menu for dimensional model
node in the browser
 Can be exported to Oracle AW
 Dimensions in Oracle physical model can be created using
“Engineer to Oracle Model” functionality

30

Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
Detailed diagram

31

Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
Compact diagram

32

Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
Dimensions in Oracle physical model
 Used by database

engine for query
rewrite related to
materialized views
 Can be imported from
database dictionary or
DDL script

33

Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
SQL Dimension

34

Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
Dimension – physical model




35

Dimensions, levels and
hierarchies can be
created/edited
manually
Can be used as starting
point to create new
Dimensional model

Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
Dimensional model – engineer from physical
model

36

Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
Dimensional model – based on Sales History (SH)
sample schema

37

Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
Example
Oracle SQL Developer Data Modeler 3.3 (4.0) is
distributed with sample design and complementary
description located in
datamodelerdatamodelersamplesDimensional_model
directory

38

Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
Learn More..
 SQL Developer Data Modeler on OTN -

http://www.oracle.com/technetwork/developer-tools/datamodeler
 SQL Developer Data Modeler forum
https://forums.oracle.com/community/developer/english/development_to
ols/application_development_in_pl_sql/sql_developer_data_modeler
 Oracle Learning Library
http://apex.oracle.com/pls/apex/f?p=44785:2:0:FORCE_QUERY::2,RIR
,CIR:P2_TAGS:Data%20Modeler
 Jeff Smith http://www.thatjeffsmith.com/
 Ashley Chen http://oracletoolsgirl.blogspot.co.uk/
 Kris Rice http://krisrice.blogspot.co.uk/

39

Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
40

Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
41

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

More Related Content

What's hot

Introduction of ssis
Introduction of ssisIntroduction of ssis
Introduction of ssis
deepakk073
 

What's hot (20)

Sybase PowerDesigner Vs Erwin
Sybase PowerDesigner Vs ErwinSybase PowerDesigner Vs Erwin
Sybase PowerDesigner Vs Erwin
 
Data Vault Overview
Data Vault OverviewData Vault Overview
Data Vault Overview
 
Building an Effective Data Warehouse Architecture
Building an Effective Data Warehouse ArchitectureBuilding an Effective Data Warehouse Architecture
Building an Effective Data Warehouse Architecture
 
Salesforce Development Best Practices
Salesforce Development Best PracticesSalesforce Development Best Practices
Salesforce Development Best Practices
 
Oracle
OracleOracle
Oracle
 
Get Savvy with Snowflake
Get Savvy with SnowflakeGet Savvy with Snowflake
Get Savvy with Snowflake
 
Snowflake Data Science and AI/ML at Scale
Snowflake Data Science and AI/ML at ScaleSnowflake Data Science and AI/ML at Scale
Snowflake Data Science and AI/ML at Scale
 
Tableau Suite Analysis
Tableau Suite Analysis Tableau Suite Analysis
Tableau Suite Analysis
 
Introduction to Graph Databases
Introduction to Graph DatabasesIntroduction to Graph Databases
Introduction to Graph Databases
 
Data Visualization With Tableau | Edureka
Data Visualization With Tableau | EdurekaData Visualization With Tableau | Edureka
Data Visualization With Tableau | Edureka
 
Cloudera SDX
Cloudera SDXCloudera SDX
Cloudera SDX
 
Creating Views - oracle database
Creating Views - oracle databaseCreating Views - oracle database
Creating Views - oracle database
 
Visualization using Tableau
Visualization using TableauVisualization using Tableau
Visualization using Tableau
 
Introduction of ssis
Introduction of ssisIntroduction of ssis
Introduction of ssis
 
Introduction to Oracle Cloud
Introduction to Oracle CloudIntroduction to Oracle Cloud
Introduction to Oracle Cloud
 
Unified Big Data Processing with Apache Spark (QCON 2014)
Unified Big Data Processing with Apache Spark (QCON 2014)Unified Big Data Processing with Apache Spark (QCON 2014)
Unified Big Data Processing with Apache Spark (QCON 2014)
 
Tableau Tutorial for Data Science | Edureka
Tableau Tutorial for Data Science | EdurekaTableau Tutorial for Data Science | Edureka
Tableau Tutorial for Data Science | Edureka
 
Introduction to Azure Databricks
Introduction to Azure DatabricksIntroduction to Azure Databricks
Introduction to Azure Databricks
 
Oracle SQL Developer Data Modeler - for SQL Server
Oracle SQL Developer Data Modeler - for SQL ServerOracle SQL Developer Data Modeler - for SQL Server
Oracle SQL Developer Data Modeler - for SQL Server
 
Power BI Interview Questions and Answers | Power BI Certification | Power BI ...
Power BI Interview Questions and Answers | Power BI Certification | Power BI ...Power BI Interview Questions and Answers | Power BI Certification | Power BI ...
Power BI Interview Questions and Answers | Power BI Certification | Power BI ...
 

Viewers also liked (8)

Pemrograman Python untuk Pemula
Pemrograman Python untuk PemulaPemrograman Python untuk Pemula
Pemrograman Python untuk Pemula
 
Tutorial Migrasi Database dari Microsoft SQL Server ke Oracle Database
Tutorial Migrasi Database dari Microsoft SQL Server ke Oracle DatabaseTutorial Migrasi Database dari Microsoft SQL Server ke Oracle Database
Tutorial Migrasi Database dari Microsoft SQL Server ke Oracle Database
 
ORACLE Di Virtual Box : Ringkasan Penggunaan
ORACLE Di Virtual Box : Ringkasan PenggunaanORACLE Di Virtual Box : Ringkasan Penggunaan
ORACLE Di Virtual Box : Ringkasan Penggunaan
 
Laporan praktikum modul 6 pemrogrman database dengan jdbc
Laporan praktikum modul 6 pemrogrman database dengan jdbcLaporan praktikum modul 6 pemrogrman database dengan jdbc
Laporan praktikum modul 6 pemrogrman database dengan jdbc
 
Belajar netbeans java pemula dari 0 sampai mahir
Belajar netbeans java pemula dari 0 sampai mahirBelajar netbeans java pemula dari 0 sampai mahir
Belajar netbeans java pemula dari 0 sampai mahir
 
Oracle SQL Developer Tips & Tricks
Oracle SQL Developer Tips & TricksOracle SQL Developer Tips & Tricks
Oracle SQL Developer Tips & Tricks
 
Hendri python
Hendri pythonHendri python
Hendri python
 
My sql dari pemula hingga mahir
My sql dari pemula hingga mahirMy sql dari pemula hingga mahir
My sql dari pemula hingga mahir
 

Similar to Dimensional modeling in oracle sql developer

Con9534 fusion financials
Con9534 fusion financialsCon9534 fusion financials
Con9534 fusion financials
Berry Clemens
 
High performing Salesforce Data Connectors
High performing Salesforce Data ConnectorsHigh performing Salesforce Data Connectors
High performing Salesforce Data Connectors
Nishanth Kadiyala
 

Similar to Dimensional modeling in oracle sql developer (20)

Oracle Sql Developer Data Modeler 3 3 new features
Oracle Sql Developer Data Modeler 3 3 new featuresOracle Sql Developer Data Modeler 3 3 new features
Oracle Sql Developer Data Modeler 3 3 new features
 
Oracle Optimizer: 12c New Capabilities
Oracle Optimizer: 12c New CapabilitiesOracle Optimizer: 12c New Capabilities
Oracle Optimizer: 12c New Capabilities
 
How To Model and Construct Graphs with Oracle Database (AskTOM Office Hours p...
How To Model and Construct Graphs with Oracle Database (AskTOM Office Hours p...How To Model and Construct Graphs with Oracle Database (AskTOM Office Hours p...
How To Model and Construct Graphs with Oracle Database (AskTOM Office Hours p...
 
Oracle 12c Optimizer Overview - 2014
Oracle 12c Optimizer Overview - 2014Oracle 12c Optimizer Overview - 2014
Oracle 12c Optimizer Overview - 2014
 
Module 1: JavaScript Basics
Module 1: JavaScript BasicsModule 1: JavaScript Basics
Module 1: JavaScript Basics
 
Intro to GraphQL for Database Developers
Intro to GraphQL for Database DevelopersIntro to GraphQL for Database Developers
Intro to GraphQL for Database Developers
 
Oracle 12c Optimizer IOUG
Oracle 12c Optimizer IOUGOracle 12c Optimizer IOUG
Oracle 12c Optimizer IOUG
 
Property Graphs in APEX.pptx
Property Graphs in APEX.pptxProperty Graphs in APEX.pptx
Property Graphs in APEX.pptx
 
Con9534 fusion financials
Con9534 fusion financialsCon9534 fusion financials
Con9534 fusion financials
 
A Metadata-Driven Approach to Computing Financial Analytics in a Relational D...
A Metadata-Driven Approach to Computing Financial Analytics in a Relational D...A Metadata-Driven Approach to Computing Financial Analytics in a Relational D...
A Metadata-Driven Approach to Computing Financial Analytics in a Relational D...
 
Solution Use Case Demo: The Power of Relationships in Your Big Data
Solution Use Case Demo: The Power of Relationships in Your Big DataSolution Use Case Demo: The Power of Relationships in Your Big Data
Solution Use Case Demo: The Power of Relationships in Your Big Data
 
Advanced Controls access and user security for superusers con8824
Advanced Controls access and user security for superusers con8824Advanced Controls access and user security for superusers con8824
Advanced Controls access and user security for superusers con8824
 
Intro to JavaScript for APEX Developers
Intro to JavaScript for APEX DevelopersIntro to JavaScript for APEX Developers
Intro to JavaScript for APEX Developers
 
Introducing new AIOps innovations in Oracle 19c - San Jose AICUG
Introducing new AIOps innovations in Oracle 19c - San Jose AICUGIntroducing new AIOps innovations in Oracle 19c - San Jose AICUG
Introducing new AIOps innovations in Oracle 19c - San Jose AICUG
 
Functional Programming With Lambdas and Streams in JDK8
 Functional Programming With Lambdas and Streams in JDK8 Functional Programming With Lambdas and Streams in JDK8
Functional Programming With Lambdas and Streams in JDK8
 
Primavera Cost Unifier cost controls and project delivery modules tips and tr...
Primavera Cost Unifier cost controls and project delivery modules tips and tr...Primavera Cost Unifier cost controls and project delivery modules tips and tr...
Primavera Cost Unifier cost controls and project delivery modules tips and tr...
 
High performing Salesforce Data Connectors
High performing Salesforce Data ConnectorsHigh performing Salesforce Data Connectors
High performing Salesforce Data Connectors
 
APEX Office Hours Interactive Grid Deep Dive
APEX Office Hours Interactive Grid Deep DiveAPEX Office Hours Interactive Grid Deep Dive
APEX Office Hours Interactive Grid Deep Dive
 
User 2013-oracle-big-data-analytics-1971985
User 2013-oracle-big-data-analytics-1971985User 2013-oracle-big-data-analytics-1971985
User 2013-oracle-big-data-analytics-1971985
 
Getting started-oracle-analytics-cloud
Getting started-oracle-analytics-cloudGetting started-oracle-analytics-cloud
Getting started-oracle-analytics-cloud
 

More from Jeff Smith

More from Jeff Smith (20)

Oracle REST Data Services: POUG Edition
Oracle REST Data Services: POUG EditionOracle REST Data Services: POUG Edition
Oracle REST Data Services: POUG Edition
 
Oracle SQL Developer Tips and Tricks: Data Edition
Oracle SQL Developer Tips and Tricks: Data EditionOracle SQL Developer Tips and Tricks: Data Edition
Oracle SQL Developer Tips and Tricks: Data Edition
 
Change Management for Oracle Database with SQLcl
Change Management for Oracle Database with SQLcl Change Management for Oracle Database with SQLcl
Change Management for Oracle Database with SQLcl
 
RESTful Services for your Oracle Autonomous Database
RESTful Services for your Oracle Autonomous DatabaseRESTful Services for your Oracle Autonomous Database
RESTful Services for your Oracle Autonomous Database
 
Oracle SQLcl: Formatting your Query Results
Oracle SQLcl: Formatting your Query ResultsOracle SQLcl: Formatting your Query Results
Oracle SQLcl: Formatting your Query Results
 
Debugging PL/SQL from your APEX Applications with Oracle SQL Developer
Debugging PL/SQL from your APEX Applications with Oracle SQL DeveloperDebugging PL/SQL from your APEX Applications with Oracle SQL Developer
Debugging PL/SQL from your APEX Applications with Oracle SQL Developer
 
Oracle Database Management REST API
Oracle Database Management REST APIOracle Database Management REST API
Oracle Database Management REST API
 
Oracle REST Data Services: Options for your Web Services
Oracle REST Data Services: Options for your Web ServicesOracle REST Data Services: Options for your Web Services
Oracle REST Data Services: Options for your Web Services
 
What's New in Oracle SQL Developer for 2018
What's New in Oracle SQL Developer for 2018What's New in Oracle SQL Developer for 2018
What's New in Oracle SQL Developer for 2018
 
Oracle SQL Developer: You're Doing it Wrong!
Oracle SQL Developer: You're Doing it Wrong!Oracle SQL Developer: You're Doing it Wrong!
Oracle SQL Developer: You're Doing it Wrong!
 
REST Enabling your Oracle Database (2018 Update)
REST Enabling your Oracle Database (2018 Update)REST Enabling your Oracle Database (2018 Update)
REST Enabling your Oracle Database (2018 Update)
 
Social Media - Why a Database Person Should Care
Social Media  - Why a Database Person Should CareSocial Media  - Why a Database Person Should Care
Social Media - Why a Database Person Should Care
 
Oracle SQL Developer Reports
Oracle SQL Developer ReportsOracle SQL Developer Reports
Oracle SQL Developer Reports
 
Oracle SQL Developer: 3 Features You're Not Using But Should Be
Oracle SQL Developer: 3 Features You're Not Using But Should BeOracle SQL Developer: 3 Features You're Not Using But Should Be
Oracle SQL Developer: 3 Features You're Not Using But Should Be
 
Pennsylvania Banner User Group Webinar: Oracle SQL Developer Tips & Tricks
Pennsylvania Banner User Group Webinar: Oracle SQL Developer Tips & TricksPennsylvania Banner User Group Webinar: Oracle SQL Developer Tips & Tricks
Pennsylvania Banner User Group Webinar: Oracle SQL Developer Tips & Tricks
 
PL/SQL All the Things in Oracle SQL Developer
PL/SQL All the Things in Oracle SQL DeveloperPL/SQL All the Things in Oracle SQL Developer
PL/SQL All the Things in Oracle SQL Developer
 
Debugging PL/SQL with Oracle SQL Developer
Debugging PL/SQL with Oracle SQL DeveloperDebugging PL/SQL with Oracle SQL Developer
Debugging PL/SQL with Oracle SQL Developer
 
REST Enabling Your Oracle Database
REST Enabling Your Oracle DatabaseREST Enabling Your Oracle Database
REST Enabling Your Oracle Database
 
All of the Performance Tuning Features in Oracle SQL Developer
All of the Performance Tuning Features in Oracle SQL DeveloperAll of the Performance Tuning Features in Oracle SQL Developer
All of the Performance Tuning Features in Oracle SQL Developer
 
If You Oracle Then You Should Twitter Too
If You Oracle Then You Should Twitter TooIf You Oracle Then You Should Twitter Too
If You Oracle Then You Should Twitter Too
 

Recently uploaded

IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
Enterprise Knowledge
 

Recently uploaded (20)

Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your Business
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 

Dimensional modeling in oracle sql developer

  • 1. 1 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
  • 2. Dimensional Modeling in Oracle SQL Developer Data Modeler Philip Stoyanov Senior Software Development Manager 2 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
  • 3. Legal The following is intended to outline our general product direction. It is intended for information purposes only, and may not be incorporated into any contract. It is not a commitment to deliver any material, code, or functionality, and should not be relied upon in making purchasing decisions. The development, release, and timing of any features or functionality described for Oracle‟s products remains at the sole discretion of Oracle. 3 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
  • 4. Agenda   Reporting  4 Dimensional model Dimensions in physical model for Oracle Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
  • 5. Models Data Types Model Subject Area 1 Subject Area n Relational Model 1 Process Model Data flow diagramming Logical Model 5 … Subject Area 1 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Dimensional Models 1..n Subject Area n … … Relational Model n DB Site 1 Oracle 9i … DB Site n Oracle 12c DB Site 1 DB2/390 v.8 … DB Site n MS SQLS 2005
  • 6. Relational model without relationships  Even if we add foreign keys still there are dependencies that remain hidden 6 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
  • 7. Dimensional model can show more Extends definitions in Logical and Relational models – additional 1:1 and 1:n dependencies in the scope of one table can be described 7 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
  • 8. Can be mapped to Logical or Relational model  Relational model – direct mappings to tables and views  Logical model – used entities need to be engineered to relational model in order to have mapping to specific tables 8 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
  • 9. Dimensional model elements  Dimension  Level  Hierarchy  Link  Cube  Measure  Slice – subset of cube dimensions and measures Oracle names (short, long, plural) can be defined for each element and exported to Oracle OLAP 9 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
  • 10. Dimension  Can be Regular or Time  Consists of levels and hierarchies  Concept of merging dimensions is supported – hierarchies can span levels from more than one dimension  Dimension has one base level that defines dimension‟s grain 10 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
  • 11. Merging dimensions example  Level “Sales Territory Region” belongs to three dimensions 11 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
  • 12. Level  Level is mapped to exactly one entity (table or view). Several levels can be mapped to one entity  Can be Regular level or level that represents value based (parent-child) hierarchy  Has a key defined over one or several attributes  Has descriptive attributes that map to exactly one column from dimension table 12 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
  • 13. Level  Mapping of optional short description and long description attributes can be defined and mapping of mandatory „time span” and “time end” attributes should be defined for level belonging to time dimension  Has calculated attributes – expressions over dimension table columns  Value based hierarchy is defined with “level key” and “parent key” attributes  Member selection criteria can be defined 13 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
  • 14. Level - calculated attribute 14 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
  • 15. Hierarchy  Defines roll-up path and can connect levels belonging to different dimensions (merging dimensions)  Hierarchies are built and modified automatically during the process of connecting levels and dimension node  Three types of hierarchies – Parent-Child (value based hierarchy), Level based and Ragged  Joins are defined for levels mapped to different tables 15 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
  • 16. Hierarchy Hierarchy is created when dimension shape is connected (using “New Link”) to base level. 16 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
  • 17. Link Used to define hierarchies and dimension usage. Child to parent attributes can be defined when link connects levels defined on different entities 17 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
  • 18. Value based hierarchy Level is used to define key, parent key and descriptive attributes 18 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
  • 19. Ragged hierarchy Corresponds to skip level hierarchy in Oracle OLAP – use “New Ragged Hierarchy Link” tool in order to mark and represent a “jump” over level(s) – dashed green link below 19 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
  • 20. Dimension usage   20 link between cube and dimension – defines child to parent attributes (join of fact entity to base level of dimension), whether it‟s role playing dimension and other related properties Separate dimension is created in Oracle OLAP for each role playing dimension Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
  • 21. Cube  Defines fact entities and joins between them  Container for measures defined on facts from fact entities  Defines dimensions usage and joins to dimensions – support for role playing dimensions  Container for “Slices” based on cube definition Cube defined on two fact entities: FactInternetSales and FactResellerSales • • • 21 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Abbreviations: A – measure based on fact FX – measure based on formula expression R – reference to dimension
  • 22. Cube - partitioning  Partitioning dimension, hierarchy, level  Settings for composites 22 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
  • 23. Cube – summary levels (pre-compute) 23 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
  • 24. Measure  Measure can be based on single fact (direct mapping to column) or expression involving facts and other measures  Measure can be Full-Additive, Semi-Additive or NoneAdditive  One (at least) or more aggregation functions can be defined for Full-Additive and Semi-Additive measure.  Semi-Additive measure has a list of dimensions on which it is valid 24 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
  • 25. Basic measure 25 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
  • 26. Calculated measure 26 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
  • 27. Reports  There are no standard reports for Dimensional model  Custom reports integrated in Search functionality can be created – two levels of details are supported for cubes and dimensions (in Data Modeler 4.0)  Custom reports can be generated in HTML, PDF or Excel format; the latter one can be used to change properties in Excel file and then to import them back into model 27 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
  • 28. Custom report template 28 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
  • 29. Custom report – dimensions with details for hierarchies and levels 29 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
  • 30. Dimensional Model - usage  Communication with customers – custom reports, detailed and compact diagrams – for compact diagram use “Show Compact model” in context menu for dimensional model node in the browser  Can be exported to Oracle AW  Dimensions in Oracle physical model can be created using “Engineer to Oracle Model” functionality 30 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
  • 31. Detailed diagram 31 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
  • 32. Compact diagram 32 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
  • 33. Dimensions in Oracle physical model  Used by database engine for query rewrite related to materialized views  Can be imported from database dictionary or DDL script 33 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
  • 34. SQL Dimension 34 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
  • 35. Dimension – physical model   35 Dimensions, levels and hierarchies can be created/edited manually Can be used as starting point to create new Dimensional model Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
  • 36. Dimensional model – engineer from physical model 36 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
  • 37. Dimensional model – based on Sales History (SH) sample schema 37 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
  • 38. Example Oracle SQL Developer Data Modeler 3.3 (4.0) is distributed with sample design and complementary description located in datamodelerdatamodelersamplesDimensional_model directory 38 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
  • 39. Learn More..  SQL Developer Data Modeler on OTN - http://www.oracle.com/technetwork/developer-tools/datamodeler  SQL Developer Data Modeler forum https://forums.oracle.com/community/developer/english/development_to ols/application_development_in_pl_sql/sql_developer_data_modeler  Oracle Learning Library http://apex.oracle.com/pls/apex/f?p=44785:2:0:FORCE_QUERY::2,RIR ,CIR:P2_TAGS:Data%20Modeler  Jeff Smith http://www.thatjeffsmith.com/  Ashley Chen http://oracletoolsgirl.blogspot.co.uk/  Kris Rice http://krisrice.blogspot.co.uk/ 39 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
  • 40. 40 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
  • 41. 41 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.

Editor's Notes

  1. Summary levels can be define for basic measure – not exported to Oracle OLAP