Top 10 Cool Features in Oracle SQL
Developer Data Modeler
Kent Graziano
Data Warrior LLC
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
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
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
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
#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
Copyright 2013 Data Warrior LLC
Copyright 2013 Data Warrior LLC
#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
Copyright 2013 Data Warrior LLC
#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
Copyright 2013 Data Warrior LLC
#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
Copyright 2013 Data Warrior LLC
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
Copyright 2013 Data Warrior LLC
Copyright 2013 Data Warrior LLC
#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
Copyright 2013 Data Warrior LLC
#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
Copyright 2013 Data Warrior LLC
#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
Copyright 2013 Data Warrior LLC
Copyright 2013 Data Warrior LLC
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
Copyright 2013 Data Warrior LLC
#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
Copyright 2013 Data Warrior LLC
#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
Copyright 2013 Data Warrior LLC
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
Copyright 2013 Data Warrior LLC
#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
Copyright 2013 Data Warrior LLC
Copyright 2013 Data Warrior LLC
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
Available on Amazon.com http://www.amazon.com/Check-Doing-Design-Reviews-
ebook/dp/B008RG9L5E/
Hold for Kscope13 slide
Contact Information
Kent Graziano
The Oracle Data Warrior
Data Warrior LLC
Visit my blog at
http://kentgraziano.com