SlideShare uma empresa Scribd logo
1 de 36
Baixar para ler offline
Data Warrior LLC




  Reverse Engineering (and Re-Engineer) an
    Existing Database Using Oracle SQL
           Developer Data Modeler
                            Kent Graziano
                           Data Warrior LLC



     http://kentgraziano.com                  #Kscope
Data Warrior LLC


     Agenda

        Bio
        Reverse Engineering
        Logical Model
        Forward Engineer Changes
        Generate DDL
        Multidimensional Model
        Cool Features
        Demo, demo, demo



     http://kentgraziano.com        #Kscope
Data Warrior LLC


     My Bio

        Oracle ACE (BI/DW)
        Certified Data Vault Master
        Data Architecture and Data Warehouse Specialist
        Co-Author of
         ● The Business of Data Vault Modeling (2008)
         ● The Data Model Resource Book (1st Edition)
         ● Oracle Designer: A Template for Developing an Enterprise Standards
           Document
        Past-President of ODTUG and Rocky Mountain Oracle User
         Group
        Co-Chair BIDW SIG for ODTUG
        KScope12 Fitness Guru

     http://kentgraziano.com                                       #Kscope
Data Warrior LLC


     Install

        Mui Easy!
        Download, unzip, execute!
         ● http://www.oracle.com/technetwork/developer-
           tools/datamodeler/overview/index.html
        The best part – it is Free!




     http://kentgraziano.com                              #Kscope
Data Warrior LLC


     Reverse Engineering

        Called Import
         ● From Data Dictionary
         ● From DDL files




     http://kentgraziano.com      #Kscope
Data Warrior LLC


     Importing a Model (Reverse Engineering)




     http://kentgraziano.com           #Kscope
Data Warrior LLC


     Importing from DDL

        Select Import -> DDL
        Click green “+” to add a file to import
        Pick text file with DDL from browser
        Click OK
        Specify what DB the DDL came from
        Navigate the Merge wizard to select what to
         import
         ● Press Merge button

     http://kentgraziano.com                    #Kscope
Data Warrior LLC


     Supported Databases to Import




     http://kentgraziano.com         #Kscope
Data Warrior LLC


     Merging the Import




     http://kentgraziano.com   #Kscope
Data Warrior LLC


     Viola!




     http://kentgraziano.com   #Kscope
Data Warrior LLC


     Adding in FKs

        Many times existing DBs have no FKs
         ● Use the NEW “Discover Foreign Keys”
         ● Or draw them in by hand
        Automatically tries to generate a new
         migrating column in the target table
         ● Will only show candidate columns with exact
           data type and size match
         ● If you select an existing column, it will not
           save the generated column
     http://kentgraziano.com                     #Kscope
Data Warrior LLC


     Discover FKs (New Feature)




     http://kentgraziano.com      #Kscope
Data Warrior LLC


     Adding in FKs




     http://kentgraziano.com   #Kscope
Data Warrior LLC


     Creating the Logical Model

        One button push!
         ● Creates entities
             ●   All upper case
         ● Creates Attributes
             ●   Retains case like relational model




     http://kentgraziano.com                          #Kscope
Data Warrior LLC


     Creating the Logical Model




     http://kentgraziano.com      #Kscope
Data Warrior LLC


     Creating the Logical Model

         ● Creates relationships
             ●   Using Barker Notation
                   ●   Drops inherited PK columns
                   ●   Drops inherited FK column
             ●   Using Bachman Notation or Information
                 Engineering
                   ●   Displays inherited attributes
             ●   Can change notation on the fly with right mouse
                 menu
         ● Keeps layout of physical model!
     http://kentgraziano.com                             #Kscope
Data Warrior LLC


     Logical Model - Barker




     http://kentgraziano.com   #Kscope
Data Warrior LLC


     Logical Model - Bachman




     http://kentgraziano.com   #Kscope
Data Warrior LLC


     Forward Engineering Changes

        Edit the Logical
         ●   Add relationship names
         ●   Change or add attributes
         ●   Add new entities
         ●   Add new relationships
        Press the ‘engineer to relational model’ button
         ● Check dialog for changes
         ● Uncheck any unwanted changes


     http://kentgraziano.com                      #Kscope
Data Warrior LLC


     Engineer to Relational




     http://kentgraziano.com   #Kscope
Data Warrior LLC


     Generating New DDL

        Use the new Reconcile button to sync the
         database and the model
         ● Get Compare dialog to select what to change
        Will generate alters if appropriate
         ● New columns
         ● Change in mandatory setting
        Will generate a complete replacement script
         that copies existing data
         ● Change in data type or precision

     http://kentgraziano.com                         #Kscope
Data Warrior LLC


     Generate Sync Changes




     http://kentgraziano.com   #Kscope
Data Warrior LLC


     Sync DDL (Alter)

     ALTER TABLE HR.COUNTRIES
       MODIFY ( COUNTRY_NAME NOT NULL )
     ;
     ALTER TABLE HR.COUNTRIES ADD
       ( Country_Abbreviation VARCHAR2 (4) NOT NULL )
     ;
     ALTER TABLE HR.JOBS
       MODIFY ( MIN_SALARY NOT NULL )
     ;
     ALTER TABLE HR.REGIONS
       MODIFY ( REGION_NAME NOT NULL )
     ;




     http://kentgraziano.com                            #Kscope
Data Warrior LLC


     Sync DDL (Recreate)
     ALTER TABLE HR.JOBS RENAME TO bcp_JOBS
     ;
     CREATE TABLE HR.JOBS
       (
        JOB_ID VARCHAR2 (10 BYTE) NOT NULL ,
        JOB_TITLE VARCHAR2 (35 BYTE)
        CONSTRAINT JOB_TITLE_NN NOT NULL ,
        MIN_SALARY NUMBER (20) NOT NULL ,
        MAX_SALARY NUMBER (6)
       )
     ;
     INSERT INTO HR.JOBS
       (JOB_ID , JOB_TITLE , MIN_SALARY , MAX_SALARY )
     SELECT
       JOB_ID , JOB_TITLE , MIN_SALARY , MAX_SALARY
     FROM
       bcp_JOBS
     ;
     http://kentgraziano.com                             #Kscope
Data Warrior LLC


     Building a Multidimensional Model

        Create from 3NF Logical
         Model
         ● Right mouse – New MDD
         ● Create Dimensions,
           Levels, Hierarchies, Cubes
           using MDD diagramming
           icons




     http://kentgraziano.com            #Kscope
Data Warrior LLC


     Build a Dimension (from Entity)

        Create Dim container
        Create Level or Levels
         ● Pick Entity to base Level on
         ● Pick Level Key and Attributes
        Link 1st Level to Dimension
        Link other levels together to build hierarchies
        Dim levels can be from different entities
        Right mouse option to Engineer to Oracle
         Model
         ● Creates Oracle Dimensions in physical model
     http://kentgraziano.com                        #Kscope
Data Warrior LLC


     Build a Dimension




     http://kentgraziano.com   #Kscope
Data Warrior LLC


     Cool Multidimensional Diagram!




     http://kentgraziano.com          #Kscope
Data Warrior LLC


     Convert to Tables




     http://kentgraziano.com   #Kscope
Data Warrior LLC


     Other Cool Features

        Can have
         ● Multiple Relational Models
             ●   From one logical
         ● Multiple Physical Designs
             ●   Different database implementations from one relational
         ● Multiple dimensional models
        Cool visual query builder for views
        Real time view query tester
        And much more….

     http://kentgraziano.com                                     #Kscope
Data Warrior LLC


     Other Cool Features

        Standards Enforcement
         ● Can define and apply design rules
         ● One button to check the whole model and all rules
         ● Rules checked when generating DDL
             ●   Vary by RDBMS and version
             ●   Even with errors it generates the code




     http://kentgraziano.com                              #Kscope
Data Warrior LLC


     Design Rules




     http://kentgraziano.com   #Kscope
Data Warrior LLC


     The Good News

        It’s FREE!
        Easy to learn
         ● You can easily be productive in a few hours
        Just read the dialog boxes to see all the
         properties
        Bonus: There is a also a process modeler
         that does data flow diagrams!
        Plus lots of other business related meta data
     http://kentgraziano.com                       #Kscope
Data Warrior LLC




     http://kentgraziano.com   #Kscope
Data Warrior LLC




     http://kentgraziano.com   #Kscope
Data Warrior LLC


                        Contact Information

                              Kent Graziano
                         The Oracle Data Warrior
                            Data Warrior LLC
                           Kent.graziano@att.net
                             Visit my blog at
                        http://kentgraziano.com




     http://kentgraziano.com                       #Kscope

Mais conteúdo relacionado

Destaque

Intership Report for printing
Intership Report for printingIntership Report for printing
Intership Report for printingOmar Javed
 
ERAI -Counterfeit Awareness-Avoidance Training
ERAI -Counterfeit Awareness-Avoidance Training ERAI -Counterfeit Awareness-Avoidance Training
ERAI -Counterfeit Awareness-Avoidance Training Kristal Snider
 
Crimp Interconnect Systems for Printed Electronics
Crimp Interconnect Systems for Printed ElectronicsCrimp Interconnect Systems for Printed Electronics
Crimp Interconnect Systems for Printed ElectronicsPhil Heft
 
Setpoint Process Automation Overview
Setpoint Process Automation OverviewSetpoint Process Automation Overview
Setpoint Process Automation OverviewJonathan Hoy
 
2011 mtf course brochure
2011 mtf course brochure2011 mtf course brochure
2011 mtf course brochureRobert Tully
 
Variable frequency drives rod pump control podcast
Variable frequency drives rod pump control podcastVariable frequency drives rod pump control podcast
Variable frequency drives rod pump control podcastSchneider Electric
 
Airbus A380 & B-2 Spirit Stealth Bomber
Airbus A380 & B-2 Spirit Stealth BomberAirbus A380 & B-2 Spirit Stealth Bomber
Airbus A380 & B-2 Spirit Stealth Bomberkennyv
 
Eddy current inspection
Eddy current inspectionEddy current inspection
Eddy current inspectionVertika Nigam
 
HYDRAULIC CYLINDER REPAIR project JUNE 2013 ppt
HYDRAULIC CYLINDER REPAIR project JUNE 2013  pptHYDRAULIC CYLINDER REPAIR project JUNE 2013  ppt
HYDRAULIC CYLINDER REPAIR project JUNE 2013 pptMarcial Jr Militante
 
Red Hat JBOSS Data Virtualization
Red Hat JBOSS Data VirtualizationRed Hat JBOSS Data Virtualization
Red Hat JBOSS Data VirtualizationDLT Solutions
 
Odroid Magazine March 2014
Odroid Magazine March 2014Odroid Magazine March 2014
Odroid Magazine March 2014Nanik Tolaram
 
BOEING 787 US's Dreamliner Or Nightmare-Liner? Who will Ultimately Win the Ae...
BOEING 787 US's Dreamliner Or Nightmare-Liner? Who will Ultimately Win the Ae...BOEING 787 US's Dreamliner Or Nightmare-Liner? Who will Ultimately Win the Ae...
BOEING 787 US's Dreamliner Or Nightmare-Liner? Who will Ultimately Win the Ae...France Houdard
 
LMS Imagine.Lab Amesim - Think positive displacement and virtual pump design
LMS Imagine.Lab Amesim - Think positive displacement and virtual pump designLMS Imagine.Lab Amesim - Think positive displacement and virtual pump design
LMS Imagine.Lab Amesim - Think positive displacement and virtual pump designSiemens PLM Software
 
ssd vs hdd infographic
ssd vs hdd infographicssd vs hdd infographic
ssd vs hdd infographicAnnie Jones
 

Destaque (16)

Intership Report for printing
Intership Report for printingIntership Report for printing
Intership Report for printing
 
esi profile
esi profileesi profile
esi profile
 
ERAI -Counterfeit Awareness-Avoidance Training
ERAI -Counterfeit Awareness-Avoidance Training ERAI -Counterfeit Awareness-Avoidance Training
ERAI -Counterfeit Awareness-Avoidance Training
 
Crimp Interconnect Systems for Printed Electronics
Crimp Interconnect Systems for Printed ElectronicsCrimp Interconnect Systems for Printed Electronics
Crimp Interconnect Systems for Printed Electronics
 
Setpoint Process Automation Overview
Setpoint Process Automation OverviewSetpoint Process Automation Overview
Setpoint Process Automation Overview
 
2011 mtf course brochure
2011 mtf course brochure2011 mtf course brochure
2011 mtf course brochure
 
24 June 2014: materials and structures enduring challenge
24 June 2014: materials and structures enduring challenge24 June 2014: materials and structures enduring challenge
24 June 2014: materials and structures enduring challenge
 
Variable frequency drives rod pump control podcast
Variable frequency drives rod pump control podcastVariable frequency drives rod pump control podcast
Variable frequency drives rod pump control podcast
 
Airbus A380 & B-2 Spirit Stealth Bomber
Airbus A380 & B-2 Spirit Stealth BomberAirbus A380 & B-2 Spirit Stealth Bomber
Airbus A380 & B-2 Spirit Stealth Bomber
 
Eddy current inspection
Eddy current inspectionEddy current inspection
Eddy current inspection
 
HYDRAULIC CYLINDER REPAIR project JUNE 2013 ppt
HYDRAULIC CYLINDER REPAIR project JUNE 2013  pptHYDRAULIC CYLINDER REPAIR project JUNE 2013  ppt
HYDRAULIC CYLINDER REPAIR project JUNE 2013 ppt
 
Red Hat JBOSS Data Virtualization
Red Hat JBOSS Data VirtualizationRed Hat JBOSS Data Virtualization
Red Hat JBOSS Data Virtualization
 
Odroid Magazine March 2014
Odroid Magazine March 2014Odroid Magazine March 2014
Odroid Magazine March 2014
 
BOEING 787 US's Dreamliner Or Nightmare-Liner? Who will Ultimately Win the Ae...
BOEING 787 US's Dreamliner Or Nightmare-Liner? Who will Ultimately Win the Ae...BOEING 787 US's Dreamliner Or Nightmare-Liner? Who will Ultimately Win the Ae...
BOEING 787 US's Dreamliner Or Nightmare-Liner? Who will Ultimately Win the Ae...
 
LMS Imagine.Lab Amesim - Think positive displacement and virtual pump design
LMS Imagine.Lab Amesim - Think positive displacement and virtual pump designLMS Imagine.Lab Amesim - Think positive displacement and virtual pump design
LMS Imagine.Lab Amesim - Think positive displacement and virtual pump design
 
ssd vs hdd infographic
ssd vs hdd infographicssd vs hdd infographic
ssd vs hdd infographic
 

Mais de Kent Graziano

Balance agility and governance with #TrueDataOps and The Data Cloud
Balance agility and governance with #TrueDataOps and The Data CloudBalance agility and governance with #TrueDataOps and The Data Cloud
Balance agility and governance with #TrueDataOps and The Data CloudKent Graziano
 
Data Mesh for Dinner
Data Mesh for DinnerData Mesh for Dinner
Data Mesh for DinnerKent Graziano
 
HOW TO SAVE PILEs of $$$ BY CREATING THE BEST DATA MODEL THE FIRST TIME (Ksc...
HOW TO SAVE  PILEs of $$$BY CREATING THE BEST DATA MODEL THE FIRST TIME (Ksc...HOW TO SAVE  PILEs of $$$BY CREATING THE BEST DATA MODEL THE FIRST TIME (Ksc...
HOW TO SAVE PILEs of $$$ BY CREATING THE BEST DATA MODEL THE FIRST TIME (Ksc...Kent Graziano
 
Intro to Data Vault 2.0 on Snowflake
Intro to Data Vault 2.0 on SnowflakeIntro to Data Vault 2.0 on Snowflake
Intro to Data Vault 2.0 on SnowflakeKent Graziano
 
Rise of the Data Cloud
Rise of the Data CloudRise of the Data Cloud
Rise of the Data CloudKent Graziano
 
Delivering Data Democratization in the Cloud with Snowflake
Delivering Data Democratization in the Cloud with SnowflakeDelivering Data Democratization in the Cloud with Snowflake
Delivering Data Democratization in the Cloud with SnowflakeKent Graziano
 
Demystifying Data Warehousing as a Service (GLOC 2019)
Demystifying Data Warehousing as a Service (GLOC 2019)Demystifying Data Warehousing as a Service (GLOC 2019)
Demystifying Data Warehousing as a Service (GLOC 2019)Kent Graziano
 
Making Sense of Schema on Read
Making Sense of Schema on ReadMaking Sense of Schema on Read
Making Sense of Schema on ReadKent Graziano
 
Agile Data Engineering: Introduction to Data Vault 2.0 (2018)
Agile Data Engineering: Introduction to Data Vault 2.0 (2018)Agile Data Engineering: Introduction to Data Vault 2.0 (2018)
Agile Data Engineering: Introduction to Data Vault 2.0 (2018)Kent Graziano
 
Demystifying Data Warehousing as a Service - DFW
Demystifying Data Warehousing as a Service - DFWDemystifying Data Warehousing as a Service - DFW
Demystifying Data Warehousing as a Service - DFWKent Graziano
 
Extreme BI: Creating Virtualized Hybrid Type 1+2 Dimensions
Extreme BI: Creating Virtualized Hybrid Type 1+2 DimensionsExtreme BI: Creating Virtualized Hybrid Type 1+2 Dimensions
Extreme BI: Creating Virtualized Hybrid Type 1+2 DimensionsKent Graziano
 
Demystifying Data Warehouse as a Service (DWaaS)
Demystifying Data Warehouse as a Service (DWaaS)Demystifying Data Warehouse as a Service (DWaaS)
Demystifying Data Warehouse as a Service (DWaaS)Kent Graziano
 
Agile Data Warehousing: Using SDDM to Build a Virtualized ODS
Agile Data Warehousing: Using SDDM to Build a Virtualized ODSAgile Data Warehousing: Using SDDM to Build a Virtualized ODS
Agile Data Warehousing: Using SDDM to Build a Virtualized ODSKent Graziano
 
Agile Data Engineering - Intro to Data Vault Modeling (2016)
Agile Data Engineering - Intro to Data Vault Modeling (2016)Agile Data Engineering - Intro to Data Vault Modeling (2016)
Agile Data Engineering - Intro to Data Vault Modeling (2016)Kent Graziano
 
Agile Methods and Data Warehousing (2016 update)
Agile Methods and Data Warehousing (2016 update)Agile Methods and Data Warehousing (2016 update)
Agile Methods and Data Warehousing (2016 update)Kent Graziano
 
Data Warehousing 2016
Data Warehousing 2016Data Warehousing 2016
Data Warehousing 2016Kent Graziano
 
Worst Practices in Data Warehouse Design
Worst Practices in Data Warehouse DesignWorst Practices in Data Warehouse Design
Worst Practices in Data Warehouse DesignKent Graziano
 
Data Vault 2.0: Using MD5 Hashes for Change Data Capture
Data Vault 2.0: Using MD5 Hashes for Change Data CaptureData Vault 2.0: Using MD5 Hashes for Change Data Capture
Data Vault 2.0: Using MD5 Hashes for Change Data CaptureKent Graziano
 
Agile Methods and Data Warehousing
Agile Methods and Data WarehousingAgile Methods and Data Warehousing
Agile Methods and Data WarehousingKent Graziano
 
Agile Data Warehouse Modeling: Introduction to Data Vault Data Modeling
Agile Data Warehouse Modeling: Introduction to Data Vault Data ModelingAgile Data Warehouse Modeling: Introduction to Data Vault Data Modeling
Agile Data Warehouse Modeling: Introduction to Data Vault Data ModelingKent Graziano
 

Mais de Kent Graziano (20)

Balance agility and governance with #TrueDataOps and The Data Cloud
Balance agility and governance with #TrueDataOps and The Data CloudBalance agility and governance with #TrueDataOps and The Data Cloud
Balance agility and governance with #TrueDataOps and The Data Cloud
 
Data Mesh for Dinner
Data Mesh for DinnerData Mesh for Dinner
Data Mesh for Dinner
 
HOW TO SAVE PILEs of $$$ BY CREATING THE BEST DATA MODEL THE FIRST TIME (Ksc...
HOW TO SAVE  PILEs of $$$BY CREATING THE BEST DATA MODEL THE FIRST TIME (Ksc...HOW TO SAVE  PILEs of $$$BY CREATING THE BEST DATA MODEL THE FIRST TIME (Ksc...
HOW TO SAVE PILEs of $$$ BY CREATING THE BEST DATA MODEL THE FIRST TIME (Ksc...
 
Intro to Data Vault 2.0 on Snowflake
Intro to Data Vault 2.0 on SnowflakeIntro to Data Vault 2.0 on Snowflake
Intro to Data Vault 2.0 on Snowflake
 
Rise of the Data Cloud
Rise of the Data CloudRise of the Data Cloud
Rise of the Data Cloud
 
Delivering Data Democratization in the Cloud with Snowflake
Delivering Data Democratization in the Cloud with SnowflakeDelivering Data Democratization in the Cloud with Snowflake
Delivering Data Democratization in the Cloud with Snowflake
 
Demystifying Data Warehousing as a Service (GLOC 2019)
Demystifying Data Warehousing as a Service (GLOC 2019)Demystifying Data Warehousing as a Service (GLOC 2019)
Demystifying Data Warehousing as a Service (GLOC 2019)
 
Making Sense of Schema on Read
Making Sense of Schema on ReadMaking Sense of Schema on Read
Making Sense of Schema on Read
 
Agile Data Engineering: Introduction to Data Vault 2.0 (2018)
Agile Data Engineering: Introduction to Data Vault 2.0 (2018)Agile Data Engineering: Introduction to Data Vault 2.0 (2018)
Agile Data Engineering: Introduction to Data Vault 2.0 (2018)
 
Demystifying Data Warehousing as a Service - DFW
Demystifying Data Warehousing as a Service - DFWDemystifying Data Warehousing as a Service - DFW
Demystifying Data Warehousing as a Service - DFW
 
Extreme BI: Creating Virtualized Hybrid Type 1+2 Dimensions
Extreme BI: Creating Virtualized Hybrid Type 1+2 DimensionsExtreme BI: Creating Virtualized Hybrid Type 1+2 Dimensions
Extreme BI: Creating Virtualized Hybrid Type 1+2 Dimensions
 
Demystifying Data Warehouse as a Service (DWaaS)
Demystifying Data Warehouse as a Service (DWaaS)Demystifying Data Warehouse as a Service (DWaaS)
Demystifying Data Warehouse as a Service (DWaaS)
 
Agile Data Warehousing: Using SDDM to Build a Virtualized ODS
Agile Data Warehousing: Using SDDM to Build a Virtualized ODSAgile Data Warehousing: Using SDDM to Build a Virtualized ODS
Agile Data Warehousing: Using SDDM to Build a Virtualized ODS
 
Agile Data Engineering - Intro to Data Vault Modeling (2016)
Agile Data Engineering - Intro to Data Vault Modeling (2016)Agile Data Engineering - Intro to Data Vault Modeling (2016)
Agile Data Engineering - Intro to Data Vault Modeling (2016)
 
Agile Methods and Data Warehousing (2016 update)
Agile Methods and Data Warehousing (2016 update)Agile Methods and Data Warehousing (2016 update)
Agile Methods and Data Warehousing (2016 update)
 
Data Warehousing 2016
Data Warehousing 2016Data Warehousing 2016
Data Warehousing 2016
 
Worst Practices in Data Warehouse Design
Worst Practices in Data Warehouse DesignWorst Practices in Data Warehouse Design
Worst Practices in Data Warehouse Design
 
Data Vault 2.0: Using MD5 Hashes for Change Data Capture
Data Vault 2.0: Using MD5 Hashes for Change Data CaptureData Vault 2.0: Using MD5 Hashes for Change Data Capture
Data Vault 2.0: Using MD5 Hashes for Change Data Capture
 
Agile Methods and Data Warehousing
Agile Methods and Data WarehousingAgile Methods and Data Warehousing
Agile Methods and Data Warehousing
 
Agile Data Warehouse Modeling: Introduction to Data Vault Data Modeling
Agile Data Warehouse Modeling: Introduction to Data Vault Data ModelingAgile Data Warehouse Modeling: Introduction to Data Vault Data Modeling
Agile Data Warehouse Modeling: Introduction to Data Vault Data Modeling
 

Último

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...Drew Madelung
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Servicegiselly40
 
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 RobisonAnna Loughnan Colquhoun
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
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 MenDelhi Call girls
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Allon Mureinik
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slidevu2urc
 
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 MenDelhi Call girls
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘RTylerCroy
 
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 textsMaria Levchenko
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersThousandEyes
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024The Digital Insurer
 
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...gurkirankumar98700
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024Results
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhisoniya singh
 

Último (20)

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...
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
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
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
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
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
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
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
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
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
 

Reverse Engineering an Existing Database Using Oracle SQL Developer Data Modeler

  • 1. Data Warrior LLC Reverse Engineering (and Re-Engineer) an Existing Database Using Oracle SQL Developer Data Modeler Kent Graziano Data Warrior LLC http://kentgraziano.com #Kscope
  • 2. Data Warrior LLC Agenda  Bio  Reverse Engineering  Logical Model  Forward Engineer Changes  Generate DDL  Multidimensional Model  Cool Features  Demo, demo, demo http://kentgraziano.com #Kscope
  • 3. Data Warrior LLC My Bio  Oracle ACE (BI/DW)  Certified Data Vault Master  Data Architecture and Data Warehouse Specialist  Co-Author of ● The Business of Data Vault Modeling (2008) ● The Data Model Resource Book (1st Edition) ● Oracle Designer: A Template for Developing an Enterprise Standards Document  Past-President of ODTUG and Rocky Mountain Oracle User Group  Co-Chair BIDW SIG for ODTUG  KScope12 Fitness Guru http://kentgraziano.com #Kscope
  • 4. Data Warrior LLC Install  Mui Easy!  Download, unzip, execute! ● http://www.oracle.com/technetwork/developer- tools/datamodeler/overview/index.html  The best part – it is Free! http://kentgraziano.com #Kscope
  • 5. Data Warrior LLC Reverse Engineering  Called Import ● From Data Dictionary ● From DDL files http://kentgraziano.com #Kscope
  • 6. Data Warrior LLC Importing a Model (Reverse Engineering) http://kentgraziano.com #Kscope
  • 7. Data Warrior LLC Importing from DDL  Select Import -> DDL  Click green “+” to add a file to import  Pick text file with DDL from browser  Click OK  Specify what DB the DDL came from  Navigate the Merge wizard to select what to import ● Press Merge button http://kentgraziano.com #Kscope
  • 8. Data Warrior LLC Supported Databases to Import http://kentgraziano.com #Kscope
  • 9. Data Warrior LLC Merging the Import http://kentgraziano.com #Kscope
  • 10. Data Warrior LLC Viola! http://kentgraziano.com #Kscope
  • 11. Data Warrior LLC Adding in FKs  Many times existing DBs have no FKs ● Use the NEW “Discover Foreign Keys” ● Or draw them in by hand  Automatically tries to generate a new migrating column in the target table ● Will only show candidate columns with exact data type and size match ● If you select an existing column, it will not save the generated column http://kentgraziano.com #Kscope
  • 12. Data Warrior LLC Discover FKs (New Feature) http://kentgraziano.com #Kscope
  • 13. Data Warrior LLC Adding in FKs http://kentgraziano.com #Kscope
  • 14. Data Warrior LLC Creating the Logical Model  One button push! ● Creates entities ● All upper case ● Creates Attributes ● Retains case like relational model http://kentgraziano.com #Kscope
  • 15. Data Warrior LLC Creating the Logical Model http://kentgraziano.com #Kscope
  • 16. Data Warrior LLC Creating the Logical Model ● Creates relationships ● Using Barker Notation ● Drops inherited PK columns ● Drops inherited FK column ● Using Bachman Notation or Information Engineering ● Displays inherited attributes ● Can change notation on the fly with right mouse menu ● Keeps layout of physical model! http://kentgraziano.com #Kscope
  • 17. Data Warrior LLC Logical Model - Barker http://kentgraziano.com #Kscope
  • 18. Data Warrior LLC Logical Model - Bachman http://kentgraziano.com #Kscope
  • 19. Data Warrior LLC Forward Engineering Changes  Edit the Logical ● Add relationship names ● Change or add attributes ● Add new entities ● Add new relationships  Press the ‘engineer to relational model’ button ● Check dialog for changes ● Uncheck any unwanted changes http://kentgraziano.com #Kscope
  • 20. Data Warrior LLC Engineer to Relational http://kentgraziano.com #Kscope
  • 21. Data Warrior LLC Generating New DDL  Use the new Reconcile button to sync the database and the model ● Get Compare dialog to select what to change  Will generate alters if appropriate ● New columns ● Change in mandatory setting  Will generate a complete replacement script that copies existing data ● Change in data type or precision http://kentgraziano.com #Kscope
  • 22. Data Warrior LLC Generate Sync Changes http://kentgraziano.com #Kscope
  • 23. Data Warrior LLC Sync DDL (Alter) ALTER TABLE HR.COUNTRIES MODIFY ( COUNTRY_NAME NOT NULL ) ; ALTER TABLE HR.COUNTRIES ADD ( Country_Abbreviation VARCHAR2 (4) NOT NULL ) ; ALTER TABLE HR.JOBS MODIFY ( MIN_SALARY NOT NULL ) ; ALTER TABLE HR.REGIONS MODIFY ( REGION_NAME NOT NULL ) ; http://kentgraziano.com #Kscope
  • 24. Data Warrior LLC Sync DDL (Recreate) ALTER TABLE HR.JOBS RENAME TO bcp_JOBS ; CREATE TABLE HR.JOBS ( JOB_ID VARCHAR2 (10 BYTE) NOT NULL , JOB_TITLE VARCHAR2 (35 BYTE) CONSTRAINT JOB_TITLE_NN NOT NULL , MIN_SALARY NUMBER (20) NOT NULL , MAX_SALARY NUMBER (6) ) ; INSERT INTO HR.JOBS (JOB_ID , JOB_TITLE , MIN_SALARY , MAX_SALARY ) SELECT JOB_ID , JOB_TITLE , MIN_SALARY , MAX_SALARY FROM bcp_JOBS ; http://kentgraziano.com #Kscope
  • 25. Data Warrior LLC Building a Multidimensional Model  Create from 3NF Logical Model ● Right mouse – New MDD ● Create Dimensions, Levels, Hierarchies, Cubes using MDD diagramming icons http://kentgraziano.com #Kscope
  • 26. Data Warrior LLC Build a Dimension (from Entity)  Create Dim container  Create Level or Levels ● Pick Entity to base Level on ● Pick Level Key and Attributes  Link 1st Level to Dimension  Link other levels together to build hierarchies  Dim levels can be from different entities  Right mouse option to Engineer to Oracle Model ● Creates Oracle Dimensions in physical model http://kentgraziano.com #Kscope
  • 27. Data Warrior LLC Build a Dimension http://kentgraziano.com #Kscope
  • 28. Data Warrior LLC Cool Multidimensional Diagram! http://kentgraziano.com #Kscope
  • 29. Data Warrior LLC Convert to Tables http://kentgraziano.com #Kscope
  • 30. Data Warrior LLC Other Cool Features  Can have ● Multiple Relational Models ● From one logical ● Multiple Physical Designs ● Different database implementations from one relational ● Multiple dimensional models  Cool visual query builder for views  Real time view query tester  And much more…. http://kentgraziano.com #Kscope
  • 31. Data Warrior LLC Other Cool Features  Standards Enforcement ● Can define and apply design rules ● One button to check the whole model and all rules ● Rules checked when generating DDL ● Vary by RDBMS and version ● Even with errors it generates the code http://kentgraziano.com #Kscope
  • 32. Data Warrior LLC Design Rules http://kentgraziano.com #Kscope
  • 33. Data Warrior LLC The Good News  It’s FREE!  Easy to learn ● You can easily be productive in a few hours  Just read the dialog boxes to see all the properties  Bonus: There is a also a process modeler that does data flow diagrams!  Plus lots of other business related meta data http://kentgraziano.com #Kscope
  • 34. Data Warrior LLC http://kentgraziano.com #Kscope
  • 35. Data Warrior LLC http://kentgraziano.com #Kscope
  • 36. Data Warrior LLC Contact Information Kent Graziano The Oracle Data Warrior Data Warrior LLC Kent.graziano@att.net Visit my blog at http://kentgraziano.com http://kentgraziano.com #Kscope