Upload
others
View
4
Download
0
Embed Size (px)
Citation preview
Jeff Smith, Master Product Manager at [email protected] || https://www.thatjeffsmith.com || @thatjeffsmith
1
SQL Developer Tips & Tricks for the Data Professional
Copyright © 2019, Oracle and/or its affiliates. All rights reserved. |
Helpful Links
ORACLE SQL DEVELOPERhttps://www.oracle.com/sqldeveloper
2
Replays
Formerly called the BIWA Summit with the Spatial and Graph SummitSame great technical content…new name!
www.AnalyticsandDataSummit.org
Submit a topic to share at https://analyticsanddatasummit.org/techcasts/
Jeff Smith
4
Oracle SQL Developer Tips & Tricks
Master Product Manager
https://www.thatjeffsmith.com || @thatjeffsmith
Our mission is to help people see data in new ways,
discover insights, unlock endless possibilities.
• A lot of tips, in a short amount of time
• Make your job/task…easier
• Have fun!
• Watch the video (30 minutes)
What this talk is about
• 60+ tutorials
• Feature demos
• Tips & Tricks
• Short & Long Form
• SQL Developer
• SQLcl
• Data Modeler
• ORDS
More Videos!
• 850+ posts
• 3 minute reads
• Have a question, Google it!
No, seriously
SQL Developer Snapshot
9
Time Tested
Launched in 2005
An Industry Standard
5M+ Oracle DBAs & Developers
Always Improving
Quarterly Releases
4
Project Raptor• Early Adopter on OTN
2005
1.1• File Based PL/SQL editing• Reports• Ships with 11gR1
1.5.x• Localizations - Japanese,
Spanish, Italian, …• Ships with 11gR2
SQLDev v1.0• SQL Worksheet• Procedure Editor• The world takes notice!
1.5• Schema Copy/Diff/Export• Versioning• TimesTen
2.1• Unit Testing• Data Modeler Viewer• Unshared SQL Worksheets
2007 201020092006
3.0• Data Modeler• View > DBA• SQL Tuning Advisor• Query Builder
2008 2011 2012
3.1• PDF Reports• RMAN• Data Pump
2013
3.2• APEX Listener / ORDS
Support• Database 12c Support• Schema Service Support
4.0• ASH/AWR/ADDM• Color Coded Connections• Command line Interface
15 years of releases
2018 2019
18.1• Autonomous Data Warehouse Support• New Welcome Screen/Connections• SQL Injection Detection• PL/Scope SQL Statement Support• Better Formatting
19.4
• SQL Dev Web
Quarterly Updates
About Oracle Java…
• We support Oracle JDK 8, 11, & 12
• Oracle SQL Developer is an Oracle product
• Oracle products requiring JDK’s don’t require $
7 Clicks to go from Grid to Formatted Output
• Add Comment
• Execute via F5 (Script)
• Comment labels match grid export formatter labels
Format Query Results Directly
set sqlformatjson-formatted
Don’t forget we support SPOOL…and DDL
Speaking of SPOOL…
• Save some clicks!
• Set DEFAULTSfor Exports
If you are going to use a mouse…
Grid tricks
Split editors (or grids)
• PIN table
• Doc Tab Groups
Browse two or more tables at once
• Build a report
• Turn it into aproject/objectnavigator!
Links?
Bar charts
Quick and dirty Copying Rows
More copy/paste tricks
Ctrl+SHIFT+C
More copy/paste tricks
• Insight
• SQL Text Expansion
• * - peeking
• Avoid errors in advance
Help with getting your data
Insight• peak into Docs for sample code
on your function/command
• click on ‘book’ to go straight to the DOCS page for that function/command
Insight, Auto vs On Demand
Peek behind the curtains
Joins, Insight & Refactoring
ANSI or Oracle (+)
That’s not the TABLE you’re looking for
Back to the JOINs…what are we joining?
Oh, but our flat file system looks like this
PK Col – littered about
• 50 tables to a Single Excel File
• 50 tables to 50 Excel Files
Getting Data Out..to Excel…Ew.
Getting data to another database
From Non-Oracle souces too!
Move a LOT of data, FAST
• Point to delimited text file…
• choose your adventure
Or generate a Loader/External Scenario
• Data Pump
• Import from Excel
• Cart
• Drag and Drop
Getting data to the Cloud
Getting to my data is slow…
Compare Plans/Traces
Read trace files…in SQLDev!
• 850+ posts
• Resource page for getting started
• Video available if you don’t like words
• I can do this ‘live’ via the Internet for you and your team
Tips in Long Form
Thank you!
The Video
Master Product Manager
Jeff Smith