SlideShare a Scribd company logo
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

PDF
SQLAlchemy Primer
泰 増田
 
PPT
2. Entity Relationship Model in DBMS
koolkampus
 
PPTX
DBMS and its Models
AhmadShah Sultani
 
PDF
Marketing - Etude de cas : NESPRESSO
Elise Fauvel
 
PPTX
Big data ppt
Nasrin Hussain
 
PDF
Nespresso Case Study
Vania Paone
 
PDF
Politique de distribution
Adnane El Binnani
 
PPTX
trigger dbms
kuldeep100
 
SQLAlchemy Primer
泰 増田
 
2. Entity Relationship Model in DBMS
koolkampus
 
DBMS and its Models
AhmadShah Sultani
 
Marketing - Etude de cas : NESPRESSO
Elise Fauvel
 
Big data ppt
Nasrin Hussain
 
Nespresso Case Study
Vania Paone
 
Politique de distribution
Adnane El Binnani
 
trigger dbms
kuldeep100
 

What's hot (20)

PDF
OER UNIT 1- SCHEMA DESIGN - DATA WAREHOUSING
Girija Muscut
 
PPTX
Oracle SQL Developer Data Modeler - Version Control Your Designs
Jeff Smith
 
PPTX
The oracle database architecture
Akash Pramanik
 
PPTX
Oracle database introduction
Mohammad Javad Beheshtian
 
PPS
Oracle Database Overview
honglee71
 
PDF
Workshop Español - Introducción a Neo4j
Neo4j
 
PPTX
Azure Synapse Analytics Overview (r1)
James Serra
 
PPTX
Heli data modeler wildcard2013
Andrejs Vorobjovs
 
PDF
Technical Overview of CDS View – SAP HANA Part I
Ashish Saxena
 
PPTX
An Introduction To Oracle Database
Meysam Javadi
 
PPTX
Oracle Database Introduction
Chhom Karath
 
PDF
Customer exit variables in sap
saborhade
 
PPT
Less01 architecture
Amit Bhalla
 
PPTX
5. stored procedure and functions
Amrit Kaur
 
PPTX
Azure data bricks by Eugene Polonichko
Alex Tumanoff
 
PPTX
Architecture as Linked Data
Danny Greefhorst
 
PPT
Informatica Cloud Overview
Darren Cunningham
 
PPTX
Why oracle data guard new features in oracle 18c, 19c
Satishbabu Gunukula
 
PPT
Oracle Transparent Data Encryption (TDE) 12c
Nabeel Yoosuf
 
PDF
Migration to Oracle Multitenant
Jitendra Singh
 
OER UNIT 1- SCHEMA DESIGN - DATA WAREHOUSING
Girija Muscut
 
Oracle SQL Developer Data Modeler - Version Control Your Designs
Jeff Smith
 
The oracle database architecture
Akash Pramanik
 
Oracle database introduction
Mohammad Javad Beheshtian
 
Oracle Database Overview
honglee71
 
Workshop Español - Introducción a Neo4j
Neo4j
 
Azure Synapse Analytics Overview (r1)
James Serra
 
Heli data modeler wildcard2013
Andrejs Vorobjovs
 
Technical Overview of CDS View – SAP HANA Part I
Ashish Saxena
 
An Introduction To Oracle Database
Meysam Javadi
 
Oracle Database Introduction
Chhom Karath
 
Customer exit variables in sap
saborhade
 
Less01 architecture
Amit Bhalla
 
5. stored procedure and functions
Amrit Kaur
 
Azure data bricks by Eugene Polonichko
Alex Tumanoff
 
Architecture as Linked Data
Danny Greefhorst
 
Informatica Cloud Overview
Darren Cunningham
 
Why oracle data guard new features in oracle 18c, 19c
Satishbabu Gunukula
 
Oracle Transparent Data Encryption (TDE) 12c
Nabeel Yoosuf
 
Migration to Oracle Multitenant
Jitendra Singh
 
Ad

Viewers also liked (8)

PDF
Pemrograman Python untuk Pemula
Oon Arfiandwi
 
PDF
Tutorial Migrasi Database dari Microsoft SQL Server ke Oracle Database
Hari Kurnia
 
ODP
ORACLE Di Virtual Box : Ringkasan Penggunaan
Agus SA
 
DOCX
Laporan praktikum modul 6 pemrogrman database dengan jdbc
Devi Apriansyah
 
PDF
Belajar netbeans java pemula dari 0 sampai mahir
harisonmtd
 
PPTX
Oracle SQL Developer Tips & Tricks
Jeff Smith
 
PDF
Hendri python
Char Lie
 
DOCX
My sql dari pemula hingga mahir
Denny Yahya
 
Pemrograman Python untuk Pemula
Oon Arfiandwi
 
Tutorial Migrasi Database dari Microsoft SQL Server ke Oracle Database
Hari Kurnia
 
ORACLE Di Virtual Box : Ringkasan Penggunaan
Agus SA
 
Laporan praktikum modul 6 pemrogrman database dengan jdbc
Devi Apriansyah
 
Belajar netbeans java pemula dari 0 sampai mahir
harisonmtd
 
Oracle SQL Developer Tips & Tricks
Jeff Smith
 
Hendri python
Char Lie
 
My sql dari pemula hingga mahir
Denny Yahya
 
Ad

Similar to Dimensional modeling in oracle sql developer (20)

PPTX
Oracle Sql Developer Data Modeler 3 3 new features
Philip Stoyanov
 
PPTX
Oracle Optimizer: 12c New Capabilities
Guatemala User Group
 
PDF
How To Model and Construct Graphs with Oracle Database (AskTOM Office Hours p...
Jean Ihm
 
PPTX
Oracle 12c Optimizer Overview - 2014
Connor McDonald
 
PDF
Module 1: JavaScript Basics
Daniel McGhan
 
PPTX
Intro to GraphQL for Database Developers
Daniel McGhan
 
PPTX
Oracle 12c Optimizer IOUG
Connor McDonald
 
PPTX
Property Graphs in APEX.pptx
ssuser923120
 
PDF
Con9534 fusion financials
Berry Clemens
 
PPT
A Metadata-Driven Approach to Computing Financial Analytics in a Relational D...
inscit2006
 
PDF
SQL for Analytics.pdfSQL for Analytics.pdf
namtunguyen6
 
PDF
Solution Use Case Demo: The Power of Relationships in Your Big Data
InfiniteGraph
 
PDF
Advanced Controls access and user security for superusers con8824
Oracle
 
PDF
Intro to JavaScript for APEX Developers
Daniel McGhan
 
PDF
Introducing new AIOps innovations in Oracle 19c - San Jose AICUG
Sandesh Rao
 
PPTX
Functional Programming With Lambdas and Streams in JDK8
IndicThreads
 
PDF
Primavera Cost Unifier cost controls and project delivery modules tips and tr...
p6academy
 
PDF
SAP Analytics Cloud: Modeling and Data Transformation
Libreria ERP
 
PPTX
High performing Salesforce Data Connectors
Nishanth Kadiyala
 
PPTX
APEX Office Hours Interactive Grid Deep Dive
JohnSnyders
 
Oracle Sql Developer Data Modeler 3 3 new features
Philip Stoyanov
 
Oracle Optimizer: 12c New Capabilities
Guatemala User Group
 
How To Model and Construct Graphs with Oracle Database (AskTOM Office Hours p...
Jean Ihm
 
Oracle 12c Optimizer Overview - 2014
Connor McDonald
 
Module 1: JavaScript Basics
Daniel McGhan
 
Intro to GraphQL for Database Developers
Daniel McGhan
 
Oracle 12c Optimizer IOUG
Connor McDonald
 
Property Graphs in APEX.pptx
ssuser923120
 
Con9534 fusion financials
Berry Clemens
 
A Metadata-Driven Approach to Computing Financial Analytics in a Relational D...
inscit2006
 
SQL for Analytics.pdfSQL for Analytics.pdf
namtunguyen6
 
Solution Use Case Demo: The Power of Relationships in Your Big Data
InfiniteGraph
 
Advanced Controls access and user security for superusers con8824
Oracle
 
Intro to JavaScript for APEX Developers
Daniel McGhan
 
Introducing new AIOps innovations in Oracle 19c - San Jose AICUG
Sandesh Rao
 
Functional Programming With Lambdas and Streams in JDK8
IndicThreads
 
Primavera Cost Unifier cost controls and project delivery modules tips and tr...
p6academy
 
SAP Analytics Cloud: Modeling and Data Transformation
Libreria ERP
 
High performing Salesforce Data Connectors
Nishanth Kadiyala
 
APEX Office Hours Interactive Grid Deep Dive
JohnSnyders
 

More from Jeff Smith (20)

PPTX
Oracle REST Data Services: POUG Edition
Jeff Smith
 
PPTX
Oracle SQL Developer Tips and Tricks: Data Edition
Jeff Smith
 
PPTX
Change Management for Oracle Database with SQLcl
Jeff Smith
 
PPTX
RESTful Services for your Oracle Autonomous Database
Jeff Smith
 
PPTX
Oracle SQLcl: Formatting your Query Results
Jeff Smith
 
PPTX
Debugging PL/SQL from your APEX Applications with Oracle SQL Developer
Jeff Smith
 
PPTX
Oracle Database Management REST API
Jeff Smith
 
PPTX
Oracle REST Data Services: Options for your Web Services
Jeff Smith
 
PPTX
Oracle SQL Developer Data Modeler - for SQL Server
Jeff Smith
 
PPTX
What's New in Oracle SQL Developer for 2018
Jeff Smith
 
PPTX
Oracle SQL Developer: You're Doing it Wrong!
Jeff Smith
 
PPTX
REST Enabling your Oracle Database (2018 Update)
Jeff Smith
 
PPTX
Social Media - Why a Database Person Should Care
Jeff Smith
 
PPTX
Oracle SQL Developer Reports
Jeff Smith
 
PPTX
Oracle SQL Developer: 3 Features You're Not Using But Should Be
Jeff Smith
 
PPTX
Pennsylvania Banner User Group Webinar: Oracle SQL Developer Tips & Tricks
Jeff Smith
 
PPTX
PL/SQL All the Things in Oracle SQL Developer
Jeff Smith
 
PPTX
Debugging PL/SQL with Oracle SQL Developer
Jeff Smith
 
PPTX
REST Enabling Your Oracle Database
Jeff Smith
 
PPTX
All of the Performance Tuning Features in Oracle SQL Developer
Jeff Smith
 
Oracle REST Data Services: POUG Edition
Jeff Smith
 
Oracle SQL Developer Tips and Tricks: Data Edition
Jeff Smith
 
Change Management for Oracle Database with SQLcl
Jeff Smith
 
RESTful Services for your Oracle Autonomous Database
Jeff Smith
 
Oracle SQLcl: Formatting your Query Results
Jeff Smith
 
Debugging PL/SQL from your APEX Applications with Oracle SQL Developer
Jeff Smith
 
Oracle Database Management REST API
Jeff Smith
 
Oracle REST Data Services: Options for your Web Services
Jeff Smith
 
Oracle SQL Developer Data Modeler - for SQL Server
Jeff Smith
 
What's New in Oracle SQL Developer for 2018
Jeff Smith
 
Oracle SQL Developer: You're Doing it Wrong!
Jeff Smith
 
REST Enabling your Oracle Database (2018 Update)
Jeff Smith
 
Social Media - Why a Database Person Should Care
Jeff Smith
 
Oracle SQL Developer Reports
Jeff Smith
 
Oracle SQL Developer: 3 Features You're Not Using But Should Be
Jeff Smith
 
Pennsylvania Banner User Group Webinar: Oracle SQL Developer Tips & Tricks
Jeff Smith
 
PL/SQL All the Things in Oracle SQL Developer
Jeff Smith
 
Debugging PL/SQL with Oracle SQL Developer
Jeff Smith
 
REST Enabling Your Oracle Database
Jeff Smith
 
All of the Performance Tuning Features in Oracle SQL Developer
Jeff Smith
 

Recently uploaded (20)

PDF
This slide provides an overview Technology
mineshkharadi333
 
PDF
Cloud-Migration-Best-Practices-A-Practical-Guide-to-AWS-Azure-and-Google-Clou...
Artjoker Software Development Company
 
PDF
How Open Source Changed My Career by abdelrahman ismail
a0m0rajab1
 
PDF
Presentation about Hardware and Software in Computer
snehamodhawadiya
 
PDF
SparkLabs Primer on Artificial Intelligence 2025
SparkLabs Group
 
PDF
AI Unleashed - Shaping the Future -Starting Today - AIOUG Yatra 2025 - For Co...
Sandesh Rao
 
PPTX
The-Ethical-Hackers-Imperative-Safeguarding-the-Digital-Frontier.pptx
sujalchauhan1305
 
PPTX
What-is-the-World-Wide-Web -- Introduction
tonifi9488
 
PPTX
Applied-Statistics-Mastering-Data-Driven-Decisions.pptx
parmaryashparmaryash
 
PDF
Software Development Company | KodekX
KodekX
 
PPTX
AI and Robotics for Human Well-being.pptx
JAYMIN SUTHAR
 
PPTX
IoT Sensor Integration 2025 Powering Smart Tech and Industrial Automation.pptx
Rejig Digital
 
PPTX
Coupa-Overview _Assumptions presentation
annapureddyn
 
PPTX
ChatGPT's Deck on The Enduring Legacy of Fax Machines
Greg Swan
 
PDF
A Day in the Life of Location Data - Turning Where into How.pdf
Precisely
 
PDF
Security features in Dell, HP, and Lenovo PC systems: A research-based compar...
Principled Technologies
 
PDF
NewMind AI Weekly Chronicles - July'25 - Week IV
NewMind AI
 
PDF
Oracle AI Vector Search- Getting Started and what's new in 2025- AIOUG Yatra ...
Sandesh Rao
 
PDF
Unlocking the Future- AI Agents Meet Oracle Database 23ai - AIOUG Yatra 2025.pdf
Sandesh Rao
 
PDF
Using Anchore and DefectDojo to Stand Up Your DevSecOps Function
Anchore
 
This slide provides an overview Technology
mineshkharadi333
 
Cloud-Migration-Best-Practices-A-Practical-Guide-to-AWS-Azure-and-Google-Clou...
Artjoker Software Development Company
 
How Open Source Changed My Career by abdelrahman ismail
a0m0rajab1
 
Presentation about Hardware and Software in Computer
snehamodhawadiya
 
SparkLabs Primer on Artificial Intelligence 2025
SparkLabs Group
 
AI Unleashed - Shaping the Future -Starting Today - AIOUG Yatra 2025 - For Co...
Sandesh Rao
 
The-Ethical-Hackers-Imperative-Safeguarding-the-Digital-Frontier.pptx
sujalchauhan1305
 
What-is-the-World-Wide-Web -- Introduction
tonifi9488
 
Applied-Statistics-Mastering-Data-Driven-Decisions.pptx
parmaryashparmaryash
 
Software Development Company | KodekX
KodekX
 
AI and Robotics for Human Well-being.pptx
JAYMIN SUTHAR
 
IoT Sensor Integration 2025 Powering Smart Tech and Industrial Automation.pptx
Rejig Digital
 
Coupa-Overview _Assumptions presentation
annapureddyn
 
ChatGPT's Deck on The Enduring Legacy of Fax Machines
Greg Swan
 
A Day in the Life of Location Data - Turning Where into How.pdf
Precisely
 
Security features in Dell, HP, and Lenovo PC systems: A research-based compar...
Principled Technologies
 
NewMind AI Weekly Chronicles - July'25 - Week IV
NewMind AI
 
Oracle AI Vector Search- Getting Started and what's new in 2025- AIOUG Yatra ...
Sandesh Rao
 
Unlocking the Future- AI Agents Meet Oracle Database 23ai - AIOUG Yatra 2025.pdf
Sandesh Rao
 
Using Anchore and DefectDojo to Stand Up Your DevSecOps Function
Anchore
 

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

  • #26: Summary levels can be define for basic measure – not exported to Oracle OLAP