22

Oracle SQL Developer Top 10 Tips & Tricks

Embed Size (px)

Citation preview

Page 1: Oracle SQL Developer Top 10 Tips & Tricks
Page 2: Oracle SQL Developer Top 10 Tips & Tricks

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |

Oracle SQL DeveloperTips & Tricks

Jeff [email protected] || @thatjeffsmithSenior Principal Product ManagerDatabase Development Tools Group

Oracle Confidential – Internal/Restricted/Highly Restricted

Page 3: Oracle SQL Developer Top 10 Tips & Tricks

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

Page 4: Oracle SQL Developer Top 10 Tips & Tricks

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,500,000 users worldwide

My Oracle Support available via your DB license

Page 5: Oracle SQL Developer Top 10 Tips & Tricks

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |

SQL Developer Data ModelerIncluded 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

Page 6: Oracle SQL Developer Top 10 Tips & Tricks

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)

Release History

Page 7: Oracle SQL Developer Top 10 Tips & Tricks

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |

Automatic can be annoyingDisable:Open Object on Single Click

I like my data to stay putEnable:Show query results in new tabs

1. Configure the Automatic Stuff

Page 8: Oracle SQL Developer Top 10 Tips & Tricks

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

Page 9: Oracle SQL Developer Top 10 Tips & Tricks

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |

In lieu of clicking through SQL History (F8)

2. SQL History

Page 10: Oracle SQL Developer Top 10 Tips & Tricks

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

Page 11: Oracle SQL Developer Top 10 Tips & Tricks

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |

3b. Copying Grids WITH Column Headers

Page 12: Oracle SQL Developer Top 10 Tips & Tricks

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |

4a. Drag-n-Drop Objects to Editor

Page 13: Oracle SQL Developer Top 10 Tips & Tricks

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |

Shift, Select, Drag, Drop

OR Ctrl+Select, Drag..

Ctrl walks the dependencytree

Preview DDL, save, export, etc

4b. Drag-n-Drop Objects to Model

Page 14: Oracle SQL Developer Top 10 Tips & Tricks

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |

5. Viewing PL/SQL Execution Output (RefCursors)

Page 15: Oracle SQL Developer Top 10 Tips & Tricks

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

Page 16: Oracle SQL Developer Top 10 Tips & Tricks

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 ObjectAlt+G on object text

7. Three More Ways to Open/Browse Objects

Page 17: Oracle SQL Developer Top 10 Tips & Tricks

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |

Create your ownobject actions

Extend the objecteditors

8. Extend the product with XML+SQL

Page 18: Oracle SQL Developer Top 10 Tips & Tricks

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

Page 19: Oracle SQL Developer Top 10 Tips & Tricks

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

Page 20: Oracle SQL Developer Top 10 Tips & Tricks

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |

OTN – SQL Developer

– Forums

– By Example Tutorials

– My Tips & Tricks Blog

Resources

Page 21: Oracle SQL Developer Top 10 Tips & Tricks

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

Page 22: Oracle SQL Developer Top 10 Tips & Tricks