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.
Ad

Recommended

Marketing - Etude de cas : NESPRESSO
Marketing - Etude de cas : NESPRESSO
Elise Fauvel
 
ER-Model-ER Diagram
ER-Model-ER Diagram
Saranya Natarajan
 
DB Time, Average Active Sessions, and ASH Math - Oracle performance fundamentals
DB Time, Average Active Sessions, and ASH Math - Oracle performance fundamentals
John Beresniewicz
 
Squirreling Away $640 Billion: How Stripe Leverages Flink for Change Data Cap...
Squirreling Away $640 Billion: How Stripe Leverages Flink for Change Data Cap...
Flink Forward
 
Database Design
Database Design
learnt
 
Descriptive statistics
Descriptive statistics
Rajesh Gunesh
 
Politique de distribution
Politique de distribution
Adnane El Binnani
 
Power BI for Big Data and the New Look of Big Data Solutions
Power BI for Big Data and the New Look of Big Data Solutions
James Serra
 
Oracle SQL Developer Data Modeler - Version Control Your Designs
Oracle SQL Developer Data Modeler - Version Control Your Designs
Jeff Smith
 
OER UNIT 1- SCHEMA DESIGN - DATA WAREHOUSING
OER UNIT 1- SCHEMA DESIGN - DATA WAREHOUSING
Girija Muscut
 
Heli data modeler wildcard2013
Heli data modeler wildcard2013
Andrejs Vorobjovs
 
Oracle sql high performance tuning
Oracle sql high performance tuning
Guy Harrison
 
The Oracle RAC Family of Solutions - Presentation
The Oracle RAC Family of Solutions - Presentation
Markus Michalewicz
 
Oracle Goldengate for Big Data - LendingClub Implementation
Oracle Goldengate for Big Data - LendingClub Implementation
Vengata Guruswamy
 
Oracle Database Migration to Oracle Cloud Infrastructure
Oracle Database Migration to Oracle Cloud Infrastructure
SinanPetrusToma
 
Nabil Nawaz Oracle Oracle 12c Data Guard Deep Dive Presentation
Nabil Nawaz Oracle Oracle 12c Data Guard Deep Dive Presentation
Nabil Nawaz
 
Oracle
Oracle
Mayank Mittal
 
A Cloud Journey - Move to the Oracle Cloud
A Cloud Journey - Move to the Oracle Cloud
Markus Michalewicz
 
Autonomous Data Warehouse
Autonomous Data Warehouse
MarketingArrowECS_CZ
 
しばちょう先生が語る!オラクルデータベースの進化の歴史と最新技術動向#3
しばちょう先生が語る!オラクルデータベースの進化の歴史と最新技術動向#3
オラクルエンジニア通信
 
Oracle statistics by example
Oracle statistics by example
Mauro Pagano
 
Data Lakehouse Symposium | Day 4
Data Lakehouse Symposium | Day 4
Databricks
 
Dataguard presentation
Dataguard presentation
Vimlendu Kumar
 
Postgresql database administration volume 1
Postgresql database administration volume 1
Federico Campoli
 
Oracle Performance Tools of the Trade
Oracle Performance Tools of the Trade
Carlos Sierra
 
Oracle RAC Virtualized - In VMs, in Containers, On-premises, and in the Cloud
Oracle RAC Virtualized - In VMs, in Containers, On-premises, and in the Cloud
Markus Michalewicz
 
Oracle db performance tuning
Oracle db performance tuning
Simon Huang
 
Oracle archi ppt
Oracle archi ppt
Hitesh Kumar Markam
 
Pemrograman Python untuk Pemula
Pemrograman Python untuk Pemula
Oon Arfiandwi
 
Tutorial Migrasi Database dari Microsoft SQL Server ke Oracle Database
Tutorial Migrasi Database dari Microsoft SQL Server ke Oracle Database
Hari Kurnia
 

More Related Content

What's hot (20)

Oracle SQL Developer Data Modeler - Version Control Your Designs
Oracle SQL Developer Data Modeler - Version Control Your Designs
Jeff Smith
 
OER UNIT 1- SCHEMA DESIGN - DATA WAREHOUSING
OER UNIT 1- SCHEMA DESIGN - DATA WAREHOUSING
Girija Muscut
 
Heli data modeler wildcard2013
Heli data modeler wildcard2013
Andrejs Vorobjovs
 
Oracle sql high performance tuning
Oracle sql high performance tuning
Guy Harrison
 
The Oracle RAC Family of Solutions - Presentation
The Oracle RAC Family of Solutions - Presentation
Markus Michalewicz
 
Oracle Goldengate for Big Data - LendingClub Implementation
Oracle Goldengate for Big Data - LendingClub Implementation
Vengata Guruswamy
 
Oracle Database Migration to Oracle Cloud Infrastructure
Oracle Database Migration to Oracle Cloud Infrastructure
SinanPetrusToma
 
Nabil Nawaz Oracle Oracle 12c Data Guard Deep Dive Presentation
Nabil Nawaz Oracle Oracle 12c Data Guard Deep Dive Presentation
Nabil Nawaz
 
Oracle
Oracle
Mayank Mittal
 
A Cloud Journey - Move to the Oracle Cloud
A Cloud Journey - Move to the Oracle Cloud
Markus Michalewicz
 
Autonomous Data Warehouse
Autonomous Data Warehouse
MarketingArrowECS_CZ
 
しばちょう先生が語る!オラクルデータベースの進化の歴史と最新技術動向#3
しばちょう先生が語る!オラクルデータベースの進化の歴史と最新技術動向#3
オラクルエンジニア通信
 
Oracle statistics by example
Oracle statistics by example
Mauro Pagano
 
Data Lakehouse Symposium | Day 4
Data Lakehouse Symposium | Day 4
Databricks
 
Dataguard presentation
Dataguard presentation
Vimlendu Kumar
 
Postgresql database administration volume 1
Postgresql database administration volume 1
Federico Campoli
 
Oracle Performance Tools of the Trade
Oracle Performance Tools of the Trade
Carlos Sierra
 
Oracle RAC Virtualized - In VMs, in Containers, On-premises, and in the Cloud
Oracle RAC Virtualized - In VMs, in Containers, On-premises, and in the Cloud
Markus Michalewicz
 
Oracle db performance tuning
Oracle db performance tuning
Simon Huang
 
Oracle archi ppt
Oracle archi ppt
Hitesh Kumar Markam
 
Oracle SQL Developer Data Modeler - Version Control Your Designs
Oracle SQL Developer Data Modeler - Version Control Your Designs
Jeff Smith
 
OER UNIT 1- SCHEMA DESIGN - DATA WAREHOUSING
OER UNIT 1- SCHEMA DESIGN - DATA WAREHOUSING
Girija Muscut
 
Heli data modeler wildcard2013
Heli data modeler wildcard2013
Andrejs Vorobjovs
 
Oracle sql high performance tuning
Oracle sql high performance tuning
Guy Harrison
 
The Oracle RAC Family of Solutions - Presentation
The Oracle RAC Family of Solutions - Presentation
Markus Michalewicz
 
Oracle Goldengate for Big Data - LendingClub Implementation
Oracle Goldengate for Big Data - LendingClub Implementation
Vengata Guruswamy
 
Oracle Database Migration to Oracle Cloud Infrastructure
Oracle Database Migration to Oracle Cloud Infrastructure
SinanPetrusToma
 
Nabil Nawaz Oracle Oracle 12c Data Guard Deep Dive Presentation
Nabil Nawaz Oracle Oracle 12c Data Guard Deep Dive Presentation
Nabil Nawaz
 
A Cloud Journey - Move to the Oracle Cloud
A Cloud Journey - Move to the Oracle Cloud
Markus Michalewicz
 
しばちょう先生が語る!オラクルデータベースの進化の歴史と最新技術動向#3
しばちょう先生が語る!オラクルデータベースの進化の歴史と最新技術動向#3
オラクルエンジニア通信
 
Oracle statistics by example
Oracle statistics by example
Mauro Pagano
 
Data Lakehouse Symposium | Day 4
Data Lakehouse Symposium | Day 4
Databricks
 
Dataguard presentation
Dataguard presentation
Vimlendu Kumar
 
Postgresql database administration volume 1
Postgresql database administration volume 1
Federico Campoli
 
Oracle Performance Tools of the Trade
Oracle Performance Tools of the Trade
Carlos Sierra
 
Oracle RAC Virtualized - In VMs, in Containers, On-premises, and in the Cloud
Oracle RAC Virtualized - In VMs, in Containers, On-premises, and in the Cloud
Markus Michalewicz
 
Oracle db performance tuning
Oracle db performance tuning
Simon Huang
 

Viewers also liked (8)

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

Similar to Dimensional modeling in oracle sql developer (20)

Multi dimensional model vs (1)
Multi dimensional model vs (1)
JamesDempsey1
 
A Gentle Introduction to Microsoft SSAS
A Gentle Introduction to Microsoft SSAS
John Paredes
 
OLAP Cubes in Datawarehousing
OLAP Cubes in Datawarehousing
Prithwis Mukerjee
 
Introduction to Dimesional Modelling
Introduction to Dimesional Modelling
Ashish Chandwani
 
Dimensional modeling primer - SQL Saturday Madison - April 11th, 2015
Dimensional modeling primer - SQL Saturday Madison - April 11th, 2015
Terry Bunio
 
Asper database presentation - Data Modeling Topics
Asper database presentation - Data Modeling Topics
Terry Bunio
 
Dimensional Modeling
Dimensional Modeling
Sunita Sahu
 
Become BI Architect with 1KEY Agile BI Suite - OLAP
Become BI Architect with 1KEY Agile BI Suite - OLAP
Dhiren Gala
 
mdmodel multidimensional (MD) modeling approach to represent more complex da...
mdmodel multidimensional (MD) modeling approach to represent more complex da...
anitha803197
 
Sql Server 2005 Business Inteligence
Sql Server 2005 Business Inteligence
abercius24
 
Lecture 3:Introduction to Dimensional Modelling.pptx
Lecture 3:Introduction to Dimensional Modelling.pptx
RehmahAtugonza
 
Data Warehousing concepts for Data Engineering
Data Warehousing concepts for Data Engineering
GouthumM
 
Data warehouse 19 dimensional model
Data warehouse 19 dimensional model
Vaibhav Khanna
 
Dimensional Modelling
Dimensional Modelling
Prithwis Mukerjee
 
OLAP Basics and Fundamentals by Bharat Kalia
OLAP Basics and Fundamentals by Bharat Kalia
Bharat Kalia
 
Chap7-Multidimensional data modeling.pptx
Chap7-Multidimensional data modeling.pptx
MOHDAIMANFARHANBINMO
 
1-Data Warehousing-Multi Dim Data Model.pptx
1-Data Warehousing-Multi Dim Data Model.pptx
ShobySunny2
 
05 OLAP v6 weekend
05 OLAP v6 weekend
Prithwis Mukerjee
 
MULTI-DIMENSIONAL DATABASES.pptx
MULTI-DIMENSIONAL DATABASES.pptx
KeshavGupta506671
 
Data warehouse 17 dimensional data model
Data warehouse 17 dimensional data model
Vaibhav Khanna
 
Multi dimensional model vs (1)
Multi dimensional model vs (1)
JamesDempsey1
 
A Gentle Introduction to Microsoft SSAS
A Gentle Introduction to Microsoft SSAS
John Paredes
 
OLAP Cubes in Datawarehousing
OLAP Cubes in Datawarehousing
Prithwis Mukerjee
 
Introduction to Dimesional Modelling
Introduction to Dimesional Modelling
Ashish Chandwani
 
Dimensional modeling primer - SQL Saturday Madison - April 11th, 2015
Dimensional modeling primer - SQL Saturday Madison - April 11th, 2015
Terry Bunio
 
Asper database presentation - Data Modeling Topics
Asper database presentation - Data Modeling Topics
Terry Bunio
 
Dimensional Modeling
Dimensional Modeling
Sunita Sahu
 
Become BI Architect with 1KEY Agile BI Suite - OLAP
Become BI Architect with 1KEY Agile BI Suite - OLAP
Dhiren Gala
 
mdmodel multidimensional (MD) modeling approach to represent more complex da...
mdmodel multidimensional (MD) modeling approach to represent more complex da...
anitha803197
 
Sql Server 2005 Business Inteligence
Sql Server 2005 Business Inteligence
abercius24
 
Lecture 3:Introduction to Dimensional Modelling.pptx
Lecture 3:Introduction to Dimensional Modelling.pptx
RehmahAtugonza
 
Data Warehousing concepts for Data Engineering
Data Warehousing concepts for Data Engineering
GouthumM
 
Data warehouse 19 dimensional model
Data warehouse 19 dimensional model
Vaibhav Khanna
 
OLAP Basics and Fundamentals by Bharat Kalia
OLAP Basics and Fundamentals by Bharat Kalia
Bharat Kalia
 
Chap7-Multidimensional data modeling.pptx
Chap7-Multidimensional data modeling.pptx
MOHDAIMANFARHANBINMO
 
1-Data Warehousing-Multi Dim Data Model.pptx
1-Data Warehousing-Multi Dim Data Model.pptx
ShobySunny2
 
MULTI-DIMENSIONAL DATABASES.pptx
MULTI-DIMENSIONAL DATABASES.pptx
KeshavGupta506671
 
Data warehouse 17 dimensional data model
Data warehouse 17 dimensional data model
Vaibhav Khanna
 
Ad

More from Jeff Smith (20)

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

Recently uploaded (20)

War_And_Cyber_3_Years_Of_Struggle_And_Lessons_For_Global_Security.pdf
War_And_Cyber_3_Years_Of_Struggle_And_Lessons_For_Global_Security.pdf
biswajitbanerjee38
 
Smarter Aviation Data Management: Lessons from Swedavia Airports and Sweco
Smarter Aviation Data Management: Lessons from Swedavia Airports and Sweco
Safe Software
 
The Future of AI Agent Development Trends to Watch.pptx
The Future of AI Agent Development Trends to Watch.pptx
Lisa ward
 
Securing AI - There Is No Try, Only Do!.pdf
Securing AI - There Is No Try, Only Do!.pdf
Priyanka Aash
 
FIDO Alliance Seminar State of Passkeys.pptx
FIDO Alliance Seminar State of Passkeys.pptx
FIDO Alliance
 
CapCut Pro Crack For PC Latest Version {Fully Unlocked} 2025
CapCut Pro Crack For PC Latest Version {Fully Unlocked} 2025
pcprocore
 
You are not excused! How to avoid security blind spots on the way to production
You are not excused! How to avoid security blind spots on the way to production
Michele Leroux Bustamante
 
FIDO Seminar: Authentication for a Billion Consumers - Amazon.pptx
FIDO Seminar: Authentication for a Billion Consumers - Amazon.pptx
FIDO Alliance
 
The Future of Technology: 2025-2125 by Saikat Basu.pdf
The Future of Technology: 2025-2125 by Saikat Basu.pdf
Saikat Basu
 
Techniques for Automatic Device Identification and Network Assignment.pdf
Techniques for Automatic Device Identification and Network Assignment.pdf
Priyanka Aash
 
OWASP Barcelona 2025 Threat Model Library
OWASP Barcelona 2025 Threat Model Library
PetraVukmirovic
 
10 Key Challenges for AI within the EU Data Protection Framework.pdf
10 Key Challenges for AI within the EU Data Protection Framework.pdf
Priyanka Aash
 
Improving Data Integrity: Synchronization between EAM and ArcGIS Utility Netw...
Improving Data Integrity: Synchronization between EAM and ArcGIS Utility Netw...
Safe Software
 
OpenPOWER Foundation & Open-Source Core Innovations
OpenPOWER Foundation & Open-Source Core Innovations
IBM
 
FIDO Seminar: Perspectives on Passkeys & Consumer Adoption.pptx
FIDO Seminar: Perspectives on Passkeys & Consumer Adoption.pptx
FIDO Alliance
 
Powering Multi-Page Web Applications Using Flow Apps and FME Data Streaming
Powering Multi-Page Web Applications Using Flow Apps and FME Data Streaming
Safe Software
 
cnc-processing-centers-centateq-p-110-en.pdf
cnc-processing-centers-centateq-p-110-en.pdf
AmirStern2
 
AI VIDEO MAGAZINE - June 2025 - r/aivideo
AI VIDEO MAGAZINE - June 2025 - r/aivideo
1pcity Studios, Inc
 
Oh, the Possibilities - Balancing Innovation and Risk with Generative AI.pdf
Oh, the Possibilities - Balancing Innovation and Risk with Generative AI.pdf
Priyanka Aash
 
Enhance GitHub Copilot using MCP - Enterprise version.pdf
Enhance GitHub Copilot using MCP - Enterprise version.pdf
Nilesh Gule
 
War_And_Cyber_3_Years_Of_Struggle_And_Lessons_For_Global_Security.pdf
War_And_Cyber_3_Years_Of_Struggle_And_Lessons_For_Global_Security.pdf
biswajitbanerjee38
 
Smarter Aviation Data Management: Lessons from Swedavia Airports and Sweco
Smarter Aviation Data Management: Lessons from Swedavia Airports and Sweco
Safe Software
 
The Future of AI Agent Development Trends to Watch.pptx
The Future of AI Agent Development Trends to Watch.pptx
Lisa ward
 
Securing AI - There Is No Try, Only Do!.pdf
Securing AI - There Is No Try, Only Do!.pdf
Priyanka Aash
 
FIDO Alliance Seminar State of Passkeys.pptx
FIDO Alliance Seminar State of Passkeys.pptx
FIDO Alliance
 
CapCut Pro Crack For PC Latest Version {Fully Unlocked} 2025
CapCut Pro Crack For PC Latest Version {Fully Unlocked} 2025
pcprocore
 
You are not excused! How to avoid security blind spots on the way to production
You are not excused! How to avoid security blind spots on the way to production
Michele Leroux Bustamante
 
FIDO Seminar: Authentication for a Billion Consumers - Amazon.pptx
FIDO Seminar: Authentication for a Billion Consumers - Amazon.pptx
FIDO Alliance
 
The Future of Technology: 2025-2125 by Saikat Basu.pdf
The Future of Technology: 2025-2125 by Saikat Basu.pdf
Saikat Basu
 
Techniques for Automatic Device Identification and Network Assignment.pdf
Techniques for Automatic Device Identification and Network Assignment.pdf
Priyanka Aash
 
OWASP Barcelona 2025 Threat Model Library
OWASP Barcelona 2025 Threat Model Library
PetraVukmirovic
 
10 Key Challenges for AI within the EU Data Protection Framework.pdf
10 Key Challenges for AI within the EU Data Protection Framework.pdf
Priyanka Aash
 
Improving Data Integrity: Synchronization between EAM and ArcGIS Utility Netw...
Improving Data Integrity: Synchronization between EAM and ArcGIS Utility Netw...
Safe Software
 
OpenPOWER Foundation & Open-Source Core Innovations
OpenPOWER Foundation & Open-Source Core Innovations
IBM
 
FIDO Seminar: Perspectives on Passkeys & Consumer Adoption.pptx
FIDO Seminar: Perspectives on Passkeys & Consumer Adoption.pptx
FIDO Alliance
 
Powering Multi-Page Web Applications Using Flow Apps and FME Data Streaming
Powering Multi-Page Web Applications Using Flow Apps and FME Data Streaming
Safe Software
 
cnc-processing-centers-centateq-p-110-en.pdf
cnc-processing-centers-centateq-p-110-en.pdf
AmirStern2
 
AI VIDEO MAGAZINE - June 2025 - r/aivideo
AI VIDEO MAGAZINE - June 2025 - r/aivideo
1pcity Studios, Inc
 
Oh, the Possibilities - Balancing Innovation and Risk with Generative AI.pdf
Oh, the Possibilities - Balancing Innovation and Risk with Generative AI.pdf
Priyanka Aash
 
Enhance GitHub Copilot using MCP - Enterprise version.pdf
Enhance GitHub Copilot using MCP - Enterprise version.pdf
Nilesh Gule
 

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