54
Oracle SQL Developer For the HiED Banner Audience Jeff Smith Helen J Sanders Senior Principal Product Manager Assistant Director, [email protected] Student Competency Center @thatjeffsmith Applications Development & Support Services http://www.thatjeffsmith.com [email protected] @helenjsanders http://www.helenjsanders.com

Pennsylvania Banner User Group Webinar: Oracle SQL Developer Tips & Tricks

Embed Size (px)

Citation preview

Page 1: Pennsylvania Banner User Group Webinar: Oracle SQL Developer Tips & Tricks

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

Oracle SQL DeveloperFor the HiED Banner Audience

Jeff Smith Helen J SandersSenior Principal Product Manager Assistant Director, [email protected] Student Competency Center@thatjeffsmith Applications Development & Support Services http://www.thatjeffsmith.com [email protected]

@helenjsanders http://www.helenjsanders.com

Page 2: Pennsylvania Banner User Group Webinar: Oracle SQL Developer Tips & Tricks

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

PABUG Annual Conference - Registration is open! 14 great tracks to Choose From: • Accounts Receivable• Advancement• Analytics and Reporting• Finance• Financial Aid• General• Human Resources• Leadership• Portal/Mobile• Student – Admissions and Registrar• Technical – DBA, Developer and

Everything Else

NEW!

Page 3: Pennsylvania Banner User Group Webinar: Oracle SQL Developer Tips & Tricks

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

• “Computer Programmer” since 1997 – started at Temple in Computer Services that year

• Temple Banner Student system went live spring of 2011

• Using SQL Developer, writing PL/SQL and SQL since then

• How I met Jeff...

whois Helen

Page 4: Pennsylvania Banner User Group Webinar: Oracle SQL Developer Tips & Tricks

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

Improve application developers experience

SQL Developer overview, boring slides On to The Show!!!

Talk the Tip Show the Tip Questions As We Go – Zoom Chat

Take notes or borrow mine at the end…

How this session works…

Page 5: Pennsylvania Banner User Group Webinar: Oracle SQL Developer Tips & Tricks

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

FREE Oracle Database IDE/GUI Windows, OS X, *NIX More than 4,500,000 users worldwide My Oracle Support available via your DB license

Page 6: Pennsylvania Banner User Group Webinar: Oracle SQL Developer Tips & Tricks

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

Oracle SQL Developer, Major Feature Areas PL/SQL IDE SQL editor GUI for browsing and managing database objects Ad Hoc reporting Database Design & Data Modeling Database Administration 3rd Party RDBMS Migrations to Oracle Deploy and Administer Oracle REST Data Services REST Enablement of the Database Command Line Interface

Page 7: Pennsylvania Banner User Group Webinar: Oracle SQL Developer Tips & Tricks

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

Oracle SQL DeveloperHistory

Project RaptorEarly Adopter on OTN

2005

SQLDev 1.1 File Based PL/SQL editing Reports Ships with 11gR1

SQLDev 1.5.x Localizations -

Japanese, Spanish, Italian, German, French, Portuguese, Chinese, & Koreans

Ships with 11gR2

SQLDev 1.0 SQL Worksheet Procedure Editor The world takes notice!

SQLDev 1.5 Schema Copy/Diff/Export Thick connections Versioning TimesTen

SQLDev 2.1 Unit Testing Data Modeler Viewer Unshared SQL Worksheets

2007 201020092006

SQLDev 3.0 Full Data Modeler View > DBA SQL Tuning Advisor Query Builder

2008 2011 2012

SQLDev 3.1 New Database DIFF PDF Reports RMAN Data Pump

2013

SQLDev 3.2 APEX Listener / ORDS

Support Database 12c Support Schema Service Support

SQLDev 4.0 Java 7 ASH/AWR/ADDM Color Coded Connections Command line Interface

SQLDev 4.0.3Optimized Code InsightOracle Big Data Appliance

2014 2015 2016

SQLDev 4.1 ORDS Included/Full GUI instance ViewerSQLclCopy PDB to DBaaSLarry live demos PDB relocate @ OOW

SQLDev/SQLcl 4.2 SQLcl PROD SQL Dev Early Adopter Real Time SQL Monitoring TOP Report Formatter & Other Editor Enhancements

Page 8: Pennsylvania Banner User Group Webinar: Oracle SQL Developer Tips & Tricks

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

Helen Tip: Organize Connections

Each Schema in its own folder

Colorized user accounts

Page 9: Pennsylvania Banner User Group Webinar: Oracle SQL Developer Tips & Tricks

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

Helen Tip: Set Editor Preferences

Enlarged Font – sans serif type – much easier to read!

Page 10: Pennsylvania Banner User Group Webinar: Oracle SQL Developer Tips & Tricks
Page 11: Pennsylvania Banner User Group Webinar: Oracle SQL Developer Tips & Tricks

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

Page 12: Pennsylvania Banner User Group Webinar: Oracle SQL Developer Tips & Tricks

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

Adjust delay Suppress automatic suggestions

OR

Turn off completely and use keyboard, on demand

Completion Insight, I recommend The Stick!

Page 13: Pennsylvania Banner User Group Webinar: Oracle SQL Developer Tips & Tricks

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

Helen Tip: Drag and Drop for SELECT

Drag and drop table name to build a SELECT statement

Page 14: Pennsylvania Banner User Group Webinar: Oracle SQL Developer Tips & Tricks

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

Helen Tip: Drag and Drop for SELECT Certain columns can also be chosen for the SELECT, ctrl + click to choose

Page 15: Pennsylvania Banner User Group Webinar: Oracle SQL Developer Tips & Tricks

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

Helen Tip: Drag and Drop for SELECT Then drag to build your statement.

Page 16: Pennsylvania Banner User Group Webinar: Oracle SQL Developer Tips & Tricks

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

Insight/Auto-Complete Object Names and Commands

Just hit <TAB> for help Autocompletes on Single Match Lists possible matches otherwise!

Page 17: Pennsylvania Banner User Group Webinar: Oracle SQL Developer Tips & Tricks

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

Helen Tip: Use the Relational Diagrams!

Page 18: Pennsylvania Banner User Group Webinar: Oracle SQL Developer Tips & Tricks

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

The Decline and Fall of YourSQL Queries and Scripts

Page 19: Pennsylvania Banner User Group Webinar: Oracle SQL Developer Tips & Tricks

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

In lieu of clicking through SQL History (F8)

SQL History

Page 20: Pennsylvania Banner User Group Webinar: Oracle SQL Developer Tips & Tricks

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

2. SQL History Logging Version 4.1 Updates!

Page 21: Pennsylvania Banner User Group Webinar: Oracle SQL Developer Tips & Tricks

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

SQL Statement & Script History

Page 22: Pennsylvania Banner User Group Webinar: Oracle SQL Developer Tips & Tricks

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

I love it when a plan comes together!!

Page 23: Pennsylvania Banner User Group Webinar: Oracle SQL Developer Tips & Tricks

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

Query Plans: Get, Read, & Compare

Page 24: Pennsylvania Banner User Group Webinar: Oracle SQL Developer Tips & Tricks

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

Alias PLAN = Go get me DBMS_XPLAN!!!

Page 25: Pennsylvania Banner User Group Webinar: Oracle SQL Developer Tips & Tricks

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

PUTTHEMOUSEDOWN

Page 26: Pennsylvania Banner User Group Webinar: Oracle SQL Developer Tips & Tricks

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

7 Clicks to go from Grid to Formatted Export to Output?

Page 27: Pennsylvania Banner User Group Webinar: Oracle SQL Developer 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…

& SQLcl

Format Query Results Directly to CSV, XML, etc

Page 28: Pennsylvania Banner User Group Webinar: Oracle SQL Developer Tips & Tricks

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

Format Query Results Directly to CSV, XML, etc

Version 4.1 Updates! SET SQLFORMAT JSON ANSICONSOLE

Page 29: Pennsylvania Banner User Group Webinar: Oracle SQL Developer Tips & Tricks

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

Get your files, whichever way you want them

Page 30: Pennsylvania Banner User Group Webinar: Oracle SQL Developer Tips & Tricks

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

Custom Formats, just add JavaScript

Page 31: Pennsylvania Banner User Group Webinar: Oracle SQL Developer Tips & Tricks

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

Have you tried Ctrl+Click?

Page 32: Pennsylvania Banner User Group Webinar: Oracle SQL Developer 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

Schema Browser

Page 33: Pennsylvania Banner User Group Webinar: Oracle SQL Developer 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

Three More Ways to Open/Browse Objects

Page 34: Pennsylvania Banner User Group Webinar: Oracle SQL Developer Tips & Tricks

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

Helen Tip: Global Search

Click the Search icon indicate which Schema you want to search in, and what. Then click “Go”

Page 35: Pennsylvania Banner User Group Webinar: Oracle SQL Developer Tips & Tricks

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

Helen Tip: Global Search

Search results. Depend upon your permissions Click to drill down and see source (next slide)

Page 36: Pennsylvania Banner User Group Webinar: Oracle SQL Developer Tips & Tricks

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

Helen Tip: Global Search

source – from search results

Page 37: Pennsylvania Banner User Group Webinar: Oracle SQL Developer Tips & Tricks

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

Helen Tip: Filter the Users List

How to reduce the number of users you see in the tree viewFilter!

Page 38: Pennsylvania Banner User Group Webinar: Oracle SQL Developer Tips & Tricks

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

Helen Tip #3: Filter the Tables List

How to reduce the number of table you see in the tree viewFilter!

Page 39: Pennsylvania Banner User Group Webinar: Oracle SQL Developer Tips & Tricks

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

Helen Tip: Filter the Tables List

Filter by a wildcard with ‘%’.Eg: Filter for all validation tables, use STV%

Page 40: Pennsylvania Banner User Group Webinar: Oracle SQL Developer Tips & Tricks

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

Helen Tip: Filter the Tables List

All tables that start with “STV” will display

Page 41: Pennsylvania Banner User Group Webinar: Oracle SQL Developer Tips & Tricks

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

Page 42: Pennsylvania Banner User Group Webinar: Oracle SQL Developer Tips & Tricks

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

Build Your Own

Page 43: Pennsylvania Banner User Group Webinar: Oracle SQL Developer Tips & Tricks

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

Page 44: Pennsylvania Banner User Group Webinar: Oracle SQL Developer Tips & Tricks

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

Split-•Personality•Pants•Editors

Page 45: Pennsylvania Banner User Group Webinar: Oracle SQL Developer Tips & Tricks

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

Split = ‘mirrored objects’ New Tab Group = View multiple editors concurrently

Split Editors & New Document Tab Groups

Page 46: Pennsylvania Banner User Group Webinar: Oracle SQL Developer Tips & Tricks

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

Snippet, Snippet GOOD.

Code Templates…GOLD!

Page 47: Pennsylvania Banner User Group Webinar: Oracle SQL Developer Tips & Tricks

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

Auto-Replace Now Available (v4.2)

Page 48: Pennsylvania Banner User Group Webinar: Oracle SQL Developer Tips & Tricks

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

Auto-Replace/Spell Checking in SQLcl

Uses SCRIPT/JS Looks for ‘bad’ text Replaces before sending to JDBC Shows corrected SQL with Output

Page 49: Pennsylvania Banner User Group Webinar: Oracle SQL Developer Tips & Tricks

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

I’ll Take Potpourri for $200, Jeff

Page 50: Pennsylvania Banner User Group Webinar: Oracle SQL Developer Tips & Tricks

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

Double the functionality in SQL Developer…

View Menu ‘DBA’ Adding new things every release Not JUST for developers anymore

Page 51: Pennsylvania Banner User Group Webinar: Oracle SQL Developer Tips & Tricks

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

Watch Database Activity

agent-less ZERO DB objects a ‘fancy’ report

no history● no alerts● drill-downs

We’re making more of these

Page 52: Pennsylvania Banner User Group Webinar: Oracle SQL Developer 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 54: Pennsylvania Banner User Group Webinar: Oracle SQL Developer Tips & Tricks