Transcript
Page 1: Top 10 Cool Features in Oracle SQL Developer Data Modeler

Top 10 Cool Features in Oracle SQL

Developer Data Modeler

Kent Graziano

Data Warrior LLC

Page 2: Top 10 Cool Features in Oracle SQL Developer Data Modeler

Bio

Kent Graziano ● Owner, Data Warrior LLC

● Certified Data Vault Master

● Oracle ACE Director (BI/DW)

● Data Architecture and Data Warehouse Specialist ● 30+ years in IT

● 20+ years of Oracle-related work

● 15+ years of data warehousing experience

● Co-Author of

● The Business of Data Vault Modeling

● The Data Model Resource Book (1st Edition)

● Co-Chair BI/DW SIG for ODTUG

● Past-President of Oracle Development Tools User Group and Rocky Mountain Oracle User Group

Copyright 2013 Data Warrior LLC

Page 3: Top 10 Cool Features in Oracle SQL Developer Data Modeler

Agenda

What is the SDDM?

Cool Features

● Using Object Naming Templates

● The Abbreviations Utility

● Built in Report Tool

● The Reporting Repository

● Building a custom report using Oracle SQL

Developer

● DDL Preview

Copyright 2013 Data Warrior LLC

Page 4: Top 10 Cool Features in Oracle SQL Developer Data Modeler

Agenda

More Cool Features

● Adding Audit Columns to Every Table

● Using Built in Quality Checks (Design Rules)

● Adding Custom Design Rules

● Switching Model Notations and Resize

objects

● Creating Multiple Displays and SubViews

● Using the New Search Feature

Copyright 2013 Data Warrior LLC

Page 5: Top 10 Cool Features in Oracle SQL Developer Data Modeler

What is SDDM

Modern Data Modeling Tool

Latest is EA – Early Adopter 3.3

FREE FREE FREE

Does Logical, Relational, Physical, and

Multi Dimensional Models

Lots of options

Copyright 2013 Data Warrior LLC

Page 6: Top 10 Cool Features in Oracle SQL Developer Data Modeler

#10 - Using Object Naming Templates

Do you have naming standards?

Get some!

Set them here:

● Tools -> Preferences -> Data Model ->

Naming Standard -> Templates

Lots of options

● Add variables button

Set (or change) then apply

Copyright 2013 Data Warrior LLC

Page 7: Top 10 Cool Features in Oracle SQL Developer Data Modeler

Copyright 2013 Data Warrior LLC

Page 8: Top 10 Cool Features in Oracle SQL Developer Data Modeler

Copyright 2013 Data Warrior LLC

Page 9: Top 10 Cool Features in Oracle SQL Developer Data Modeler

#9 - Abbreviations Utility

Quickly apply standard abbreviations

Start with sample CSV

● Found in \datamodeler\templates

Set options

● Tools -> Name Abbreviations

One shot but can re-run

● Can also run in reverse!

Copyright 2013 Data Warrior LLC

Page 10: Top 10 Cool Features in Oracle SQL Developer Data Modeler

Copyright 2013 Data Warrior LLC

Page 11: Top 10 Cool Features in Oracle SQL Developer Data Modeler

#8 - Built in Report Tool

File -> Reports

Lots of options

● Pick output format

● Objects to report on

● Create standards template

● Create specific configuration

● Pick models and subviews to filter objects

Copyright 2013 Data Warrior LLC

Page 12: Top 10 Cool Features in Oracle SQL Developer Data Modeler

Copyright 2013 Data Warrior LLC

Page 13: Top 10 Cool Features in Oracle SQL Developer Data Modeler

#7 - The Reporting Repository

Export to a meta data schema

Must have a user account to build

File -> Export -> To reporting schema

Pick existing or add the target connection

Check maintenance tab for options (after

first build)

Find repository data models diagrams

● \datamodeler\reports\Reporting Schema

diagrams Copyright 2013 Data Warrior LLC

Page 14: Top 10 Cool Features in Oracle SQL Developer Data Modeler

Copyright 2013 Data Warrior LLC

Page 15: Top 10 Cool Features in Oracle SQL Developer Data Modeler

Building a Custom Report

Against the reporting repository

Using Oracle SQL Developer

Look at Reports tab

Use delivered report to see approach

Copy to User Defined Reports tab

● Then edit existing reports

● Right mouse on report name

Copyright 2013 Data Warrior LLC

Page 16: Top 10 Cool Features in Oracle SQL Developer Data Modeler

Copyright 2013 Data Warrior LLC

Page 17: Top 10 Cool Features in Oracle SQL Developer Data Modeler

Copyright 2013 Data Warrior LLC

Page 18: Top 10 Cool Features in Oracle SQL Developer Data Modeler

#6 - DDL Preview

Can you say “agile”?

Check and test your design on the fly

Right mouse on a table

● Pick DDL Preview

Cut and paste into SQL Developer window

● Execute

Go back make fixes if needed

Select another table with window open

● DDL changes on the fly for the new focus

Copyright 2013 Data Warrior LLC

Page 19: Top 10 Cool Features in Oracle SQL Developer Data Modeler

Copyright 2013 Data Warrior LLC

Page 20: Top 10 Cool Features in Oracle SQL Developer Data Modeler

#5 - Adding Audit Columns

Use Table Template and Transformation Script

Tools -> Design Rules -> Customer Transformations

Look for “table template” delivered script ● No change needed

Create table called table_template ● With required columns and properties to be copied

Select “Apply” ● Changes all tables in design

Note: can script all sorts of stuff ● Check /datamodeler/xmlmetadata/doc

Copyright 2013 Data Warrior LLC

Page 21: Top 10 Cool Features in Oracle SQL Developer Data Modeler

Copyright 2013 Data Warrior LLC

Page 22: Top 10 Cool Features in Oracle SQL Developer Data Modeler

#4 - Using Built in Quality Checks

AKA Design Rules

Tools -> Design Rules -> Design Rules

Pick rule to check

● Aply Selected

Or just Apply All

Errors and warnings

● Can drill to problem object

Build custom rule set for standard checks

● Use “edit” button to add rules

Copyright 2013 Data Warrior LLC

Page 23: Top 10 Cool Features in Oracle SQL Developer Data Modeler

Copyright 2013 Data Warrior LLC

Page 24: Top 10 Cool Features in Oracle SQL Developer Data Modeler

Copyright 2013 Data Warrior LLC

Page 25: Top 10 Cool Features in Oracle SQL Developer Data Modeler

Adding Custom Design Rules

Create any rules you want to check your model ● Different name lengths?

Can’t edit existing rules

Tools -> Design Rules -> Custom Design Rules

Create new rule ● Can pick object type

● Can pick “type” – error or warning

Great Design Rules demo: ● http://download.oracle.com/otn_hosted_doc/sqldev/User

DefinedDesignRules/UserDefinedDesignRules.html

Copyright 2013 Data Warrior LLC

Page 26: Top 10 Cool Features in Oracle SQL Developer Data Modeler

Copyright 2013 Data Warrior LLC

Page 27: Top 10 Cool Features in Oracle SQL Developer Data Modeler

#3 - Switching Model Notations & Resize

On Logical Model

Right mouse (in white space)

● Barker

● Bachman

● Information Engineering

Also choose Box-in-Box for sub types

Resize to Visible

● Right mouse on table or entity

Copyright 2013 Data Warrior LLC

Page 28: Top 10 Cool Features in Oracle SQL Developer Data Modeler

Copyright 2013 Data Warrior LLC

Page 29: Top 10 Cool Features in Oracle SQL Developer Data Modeler

#2 - Creating Multiple Displays

Right mouse menu option on diagram

Creates a copy of diagram

● Stays in sync with changes

Can use to show different notations

● Turn on or off various display details (like

data types)

Can have different layout

Different audience – different display

Copyright 2013 Data Warrior LLC

Page 30: Top 10 Cool Features in Oracle SQL Developer Data Modeler

Copyright 2013 Data Warrior LLC

Page 31: Top 10 Cool Features in Oracle SQL Developer Data Modeler

Using SubViews

Same right mouse menu

Populate sub views with sub set of objects from

main design

Select objects then right mouse on one

● Create SubView from selected

Again, changes to the objects will sync

However – new objects must be added

● Create new

● Drag from Browser

Copyright 2013 Data Warrior LLC

Page 32: Top 10 Cool Features in Oracle SQL Developer Data Modeler

Copyright 2013 Data Warrior LLC

Page 33: Top 10 Cool Features in Oracle SQL Developer Data Modeler

#1 - Using the New Search Feature

New in 3.3

● Edit -> Find

● Pull up bottom pane to see it

Simply or complex search

● Use ‘*’ as wildcard

● Filter base don object type

Can then export or report the results

Exported text can be edited then re-imported!

● Right mouse option on Logical or Relational

● Great way to get users to edit definitions

Copyright 2013 Data Warrior LLC

Page 34: Top 10 Cool Features in Oracle SQL Developer Data Modeler

Copyright 2013 Data Warrior LLC

Page 35: Top 10 Cool Features in Oracle SQL Developer Data Modeler

Copyright 2013 Data Warrior LLC

Page 36: Top 10 Cool Features in Oracle SQL Developer Data Modeler

In Review…

Get the latest version

● Early Adopter 3.3

Lots of options

Get on the OTN Forum

● Great support from product developers

Follow @thatJeffSmith

● Product Manager

● Has SQL Developer blog

Copyright 2013 Data Warrior LLC

Page 38: Top 10 Cool Features in Oracle SQL Developer Data Modeler

Hold for Kscope13 slide

Page 39: Top 10 Cool Features in Oracle SQL Developer Data Modeler

Contact Information

Kent Graziano

The Oracle Data Warrior

Data Warrior LLC

[email protected]

Visit my blog at

http://kentgraziano.com


Recommended