Oracle SQL Developer Top 10 Tips & Tricks

  • View
    19.297

  • Download
    8

  • Category

    Software

Preview:

Citation preview

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

Oracle SQL DeveloperTips & Tricks

Jeff SmithJeff.d.smith@oracle.com || @thatjeffsmithSenior Principal Product ManagerDatabase Development Tools Group

Oracle Confidential – Internal/Restricted/Highly Restricted

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

My Oracle Support available via your DB license

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

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

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

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 dependencytree

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

7. Three More Ways to Open/Browse Objects

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

Create your ownobject actions

Extend the objecteditors

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. |

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

Recommended