Upload
others
View
13
Download
0
Embed Size (px)
Citation preview
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Oracle SQL Developer Tips & Tricks
Jeff Smith [email protected] || @thatjeffsmith Senior Principal Product Manager Database Development Tools Group
Oracle Confidential – Internal/Restricted/Highly Restricted
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Safe Harbor Statement
The preceding 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.
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Improve application developers experience
A Little History
Talk the Tip
Show the Tip
Questions As We Go!
Take notes or borrow mine at the end…
Agenda
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Oracle SQL Developer
FREE Oracle Database IDE/GUI
Windows, OS X, *NIX
More than 3,600,000 users worldwide
My Oracle Support available via your DB license
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
SQL Developer Data Modeler Included for free, also available as a separate download/program
Strategy and Analysis
Relational
Database Design
Data Type
Star Schema Physical
Multidimensional
ERD DFD
Logical
Reporting
Import Models
Domains
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Project Raptor (2005) ~ Oracle SQL Developer v1.0 (2006)
Version 1.5 (2008)
Version 2.1 (2009)
Version 3.0 (2011)
Version 3.1, 3.2 (2012)
Version 4.0 (2013)
Version 4.0.3 (Sept 2014)
Release History
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
4.0.3 ‘Trick’: SSH Tunneling
Integrated SSH support
Establish tunnel to machine that can talk to your database listener
User/PWD or SSH Keys
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
4.0.3 ‘Trick’: Cloning Objects
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Automatic can be annoying Disable: Open Object on Single Click
I like my data to stay put Enable: Show query results in new tabs
1. Configure the Automatic Stuff
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Adjust delay as
comfortable
Suppress automatic
suggestions if too many
‘hits’
Turn off completely and
use ctrl+spacebar
Tweaked in v4.0.2
1B. Show the Automatic Completion Stuff
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
In lieu of clicking through SQL History (F8)
2. SQL History
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Add Comment
Execute via F5 (Script)
Comment labels match grid export formatter labels
ONLY works in SQLDev
3a. Format Query Results Directly to CSV, XML, etc
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
3b. Copying Grids WITH Column Headers
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
4a. Drag-n-Drop Objects to Editor
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Shift, Select, Drag, Drop
OR Ctrl+Select, Drag..
Ctrl walks the dependency tree
Preview DDL, save, export, etc
4b. Drag-n-Drop Objects to Model
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
5. Viewing PL/SQL Execution Output (RefCursors)
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Right-Click on a Connection
Drop Down Controls for
Schema
Object
Same Functionality as Tree
6. Schema Browser
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
1. Hold down Ctrl... …Mouse over object ...CLICK to open object
2. SHIFT+F4 (DESC)
3. Find DB Object Alt+G on object text
7. Three More Ways to Open/Browse Objects
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Create your own object actions
Extend the object editors
8. Extend the product with XML+SQL
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
8. Extend the product with XML+SQL
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Export data to Excel
Import from Excel to table
Existing
Build New One
XLSX Exports in 4 are faster
9. Excel Stuff
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
9. Excel Stuff – the Imports get a LOT easier in v4.1
Preview data as you define column mappings
Bad data highlighted
Best guess data types & date formats
CLI Support
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Right Click in the Editor Tab, split gives you 2 independent views of the editor, New Tab Group lets you see multiple editors at once
10. Split Editors & New Document Tab Groups
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
OTN – SQL Developer
– Forums
– By Example Tutorials
– My Tips & Tricks Blog
Resources
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Customize Preferences
Recall SQL History via keyboard
Script Output in CSV, HTML, ...
Drag ‘n’ Drop Tables to Worksheet
Drag ‘n’ Drop Tables to Model
PL/SQL Output
Schema Browser
Ctrl+Click, Shift+F4, Object Search
Copying Grids w/ Column Headers
XML Extensions
All of my #SQLDev Posts :)
The Tips in Blog Format