SlideShare a Scribd company logo
1 of 43
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Oracle SQLcl & SQL Developer
Tips & Tricks!! (updated for v4.2)
Jeff Smith
Senior Principal Product Manager
Database Development Tools
Jeff.d.smith@oracle.com
@thatjeffsmith
http://www.thatjeffsmith.com
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
whoami
 a tools geek since 2001
 that guy that blogs at thatjeffsmith.com
 #SQLDev Product Manager
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Improve
application
developers
experience
 SQL Developer, In a Nutshell
 The Show!!!
 Talk the Tip
 Show the Tip
 Questions As We Go!
 Take notes or borrow mine at the end…
How this session works…
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
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
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Oracle SQL Developer
History
Project Raptor
 Early 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.3
 Optimized Code Insight
 Oracle Big Data Appliance
2014 2015 2016
SQLDev 4.1
 ORDS Included/Full GUI
 instance Viewer
 SQLcl
 Copy PDB to DBaaS
 Larry live demos PDB relocate @ OOW
SQLDev/SQLcl 4.2
 SQLcl PROD
 SQL Dev Early Adopter
 Real Time SQL Monitoring
 TOP Report
 Formatter & Other Edtior Enhancements
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Split-Editors
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Split Editors
 Multiple ‘views’ of
a single object/file
 Click-drag the
splitter ‘widget’ OR
 Right-click > Split
on the doc tab
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Tab Groups
 Work with > 1
object at a time
 Right Click on
tab > New Doc
Tab Group
 Drag docs from
one group to
another
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Manual versus Automatic…
…what’s better?
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
 Automatic = suggestions as
you type
 Manual = suggestions as you
ask for them (ctrl+space)
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
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!
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Bonus: Get Help/Examples with Commands!
 peak into Docs for sample code
on your function/command
 click on ‘book’ to go straight
to the DOCS page for that
function/command
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Also Available on the command-line: SQLcl & <TAB>
 Just hit <TAB> for help
 Autocompletes on Single Match
 Lists possible matches otherwise!
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Your Best Queries? Originally
written by…
Aliens?
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
In lieu of clicking through SQL History (F8)
SQL History – Not aliens, just code from 6 days ago 
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
2. SQL History Logging: every SQL to DB captured
New for v4.1 – also captures BINDS
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
SQL Statement & Script History – access with Up/Down Key
 Sensitive commands,
connect black-listed
 Defaults to last 100
 Avail from session to
session per OS user
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
I love it when a plan comes
together!!
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Plans/AutoTrace – generate & compare side by side!
Hit the drop-down control next to Plan Button to
access cached plans from v$sql_plan
Pin Plan, Gen Plan, Right-Click >
Compare for Side By Side View
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
CLI: Use an ALIAS to Make DBMS_XPLAN EASY
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
PUT
THE
MOUSE
DOWN
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
7 Clicks to go from Grid to Formatted Export to Output
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
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
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Get your files, whichever way you want them
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Custom Formats, just add JavaScript
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Have you tried Ctrl+Click?
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
Alternatives to the Tree for Nav #1: 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
Three More Ways to Open/Browse Objects
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Snippet, Snippet GOOD.
Code Templates…GOLD!
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Auto-Replace Now Available (v4.2)
1. Program in Preferences
2. Type name
3. Ctrl+Spacebar OR enable
Auto-Replace
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
More Preferences To Consider
 Open Object on Single Click
 Code Editor Font
 Grid in checkerboard
 Display NULL As
 Shortcut Keys
 PL/SQL Syntax Colors
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
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
I’ll Take Potpourri for $200, Jeff
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
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 
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, …
Schema Browser
Ctrl+Click, Shift+F4, Object Search
XML Extensions
All of my #SQLDev Posts :)
The Tips in Blog Format
Oracle SQL Developer Tips & Tricks

More Related Content

What's hot

48742447 11g-sql-fundamentals-ii-additional-practices-and-solutions
48742447 11g-sql-fundamentals-ii-additional-practices-and-solutions48742447 11g-sql-fundamentals-ii-additional-practices-and-solutions
48742447 11g-sql-fundamentals-ii-additional-practices-and-solutions
Ashwin Kumar
 
Less04 database instance
Less04 database instanceLess04 database instance
Less04 database instance
Amit Bhalla
 

What's hot (20)

Oracle GoldenGate 21c New Features and Best Practices
Oracle GoldenGate 21c New Features and Best PracticesOracle GoldenGate 21c New Features and Best Practices
Oracle GoldenGate 21c New Features and Best Practices
 
Backup and recovery in oracle
Backup and recovery in oracleBackup and recovery in oracle
Backup and recovery in oracle
 
Oracle RAC 19c: Best Practices and Secret Internals
Oracle RAC 19c: Best Practices and Secret InternalsOracle RAC 19c: Best Practices and Secret Internals
Oracle RAC 19c: Best Practices and Secret Internals
 
How to use 23c AHF AIOPS to protect Oracle Databases 23c
How to use 23c AHF AIOPS to protect Oracle Databases 23c How to use 23c AHF AIOPS to protect Oracle Databases 23c
How to use 23c AHF AIOPS to protect Oracle Databases 23c
 
48742447 11g-sql-fundamentals-ii-additional-practices-and-solutions
48742447 11g-sql-fundamentals-ii-additional-practices-and-solutions48742447 11g-sql-fundamentals-ii-additional-practices-and-solutions
48742447 11g-sql-fundamentals-ii-additional-practices-and-solutions
 
Oracle Performance Tuning Fundamentals
Oracle Performance Tuning FundamentalsOracle Performance Tuning Fundamentals
Oracle Performance Tuning Fundamentals
 
An Introduction To Oracle Database
An Introduction To Oracle DatabaseAn Introduction To Oracle Database
An Introduction To Oracle Database
 
Less04 database instance
Less04 database instanceLess04 database instance
Less04 database instance
 
Oracle APEX Performance
Oracle APEX PerformanceOracle APEX Performance
Oracle APEX Performance
 
PostgreSQL Tutorial for Beginners | Edureka
PostgreSQL Tutorial for Beginners | EdurekaPostgreSQL Tutorial for Beginners | Edureka
PostgreSQL Tutorial for Beginners | Edureka
 
New Features for Multitenant in Oracle Database 21c
New Features for Multitenant in Oracle Database 21cNew Features for Multitenant in Oracle Database 21c
New Features for Multitenant in Oracle Database 21c
 
AutoUpgrade and Best Practices
AutoUpgrade and Best PracticesAutoUpgrade and Best Practices
AutoUpgrade and Best Practices
 
Oracle Data Integrator
Oracle Data Integrator Oracle Data Integrator
Oracle Data Integrator
 
Less08 users
Less08 usersLess08 users
Less08 users
 
Reporting with Oracle Application Express (APEX)
Reporting with Oracle Application Express (APEX)Reporting with Oracle Application Express (APEX)
Reporting with Oracle Application Express (APEX)
 
PostgreSQL Database Slides
PostgreSQL Database SlidesPostgreSQL Database Slides
PostgreSQL Database Slides
 
All of the Performance Tuning Features in Oracle SQL Developer
All of the Performance Tuning Features in Oracle SQL DeveloperAll of the Performance Tuning Features in Oracle SQL Developer
All of the Performance Tuning Features in Oracle SQL Developer
 
SQL Tuning, takes 3 to tango
SQL Tuning, takes 3 to tangoSQL Tuning, takes 3 to tango
SQL Tuning, takes 3 to tango
 
05 Creating Stored Procedures
05 Creating Stored Procedures05 Creating Stored Procedures
05 Creating Stored Procedures
 
Ms sql-server
Ms sql-serverMs sql-server
Ms sql-server
 

Similar to Oracle SQL Developer Tips & Tricks

Coding for desktop and mobile with HTML5 and Java EE 7 - Geertjan Wielenga
Coding for desktop and mobile with HTML5 and Java EE 7 - Geertjan WielengaCoding for desktop and mobile with HTML5 and Java EE 7 - Geertjan Wielenga
Coding for desktop and mobile with HTML5 and Java EE 7 - Geertjan Wielenga
JAXLondon_Conference
 

Similar to Oracle SQL Developer Tips & Tricks (20)

PL/SQL All the Things in Oracle SQL Developer
PL/SQL All the Things in Oracle SQL DeveloperPL/SQL All the Things in Oracle SQL Developer
PL/SQL All the Things in Oracle SQL Developer
 
Pennsylvania Banner User Group Webinar: Oracle SQL Developer Tips & Tricks
Pennsylvania Banner User Group Webinar: Oracle SQL Developer Tips & TricksPennsylvania Banner User Group Webinar: Oracle SQL Developer Tips & Tricks
Pennsylvania Banner User Group Webinar: Oracle SQL Developer Tips & Tricks
 
Oracle SQL Developer: You're Doing it Wrong!
Oracle SQL Developer: You're Doing it Wrong!Oracle SQL Developer: You're Doing it Wrong!
Oracle SQL Developer: You're Doing it Wrong!
 
What's New in Oracle SQL Developer for 2018
What's New in Oracle SQL Developer for 2018What's New in Oracle SQL Developer for 2018
What's New in Oracle SQL Developer for 2018
 
Oracle SQL Developer: 3 Features You're Not Using But Should Be
Oracle SQL Developer: 3 Features You're Not Using But Should BeOracle SQL Developer: 3 Features You're Not Using But Should Be
Oracle SQL Developer: 3 Features You're Not Using But Should Be
 
Debugging PL/SQL from your APEX Applications with Oracle SQL Developer
Debugging PL/SQL from your APEX Applications with Oracle SQL DeveloperDebugging PL/SQL from your APEX Applications with Oracle SQL Developer
Debugging PL/SQL from your APEX Applications with Oracle SQL Developer
 
Oracle SQL Developer for SQL Server?
Oracle SQL Developer for SQL Server?Oracle SQL Developer for SQL Server?
Oracle SQL Developer for SQL Server?
 
SQLcl overview - A new Command Line Interface for Oracle Database
SQLcl overview - A new Command Line Interface for Oracle DatabaseSQLcl overview - A new Command Line Interface for Oracle Database
SQLcl overview - A new Command Line Interface for Oracle Database
 
Oracle Database 12c Feature Support in Oracle SQL Developer
Oracle Database 12c Feature Support in Oracle SQL DeveloperOracle Database 12c Feature Support in Oracle SQL Developer
Oracle Database 12c Feature Support in Oracle SQL Developer
 
Debugging PL/SQL with Oracle SQL Developer
Debugging PL/SQL with Oracle SQL DeveloperDebugging PL/SQL with Oracle SQL Developer
Debugging PL/SQL with Oracle SQL Developer
 
Oracle SQL Developer for the DBA
Oracle SQL Developer for the DBAOracle SQL Developer for the DBA
Oracle SQL Developer for the DBA
 
Oracle SQL Developer Top 10 Tips & Tricks
Oracle SQL Developer Top 10 Tips & TricksOracle SQL Developer Top 10 Tips & Tricks
Oracle SQL Developer Top 10 Tips & Tricks
 
Oracle SQL Developer Reports
Oracle SQL Developer ReportsOracle SQL Developer Reports
Oracle SQL Developer Reports
 
Oracle SQL Developer version 4.0 New Features Overview
Oracle SQL Developer version 4.0 New Features OverviewOracle SQL Developer version 4.0 New Features Overview
Oracle SQL Developer version 4.0 New Features Overview
 
UKOUG
UKOUG UKOUG
UKOUG
 
Oracle SQLcl: Formatting your Query Results
Oracle SQLcl: Formatting your Query ResultsOracle SQLcl: Formatting your Query Results
Oracle SQLcl: Formatting your Query Results
 
Oracle Warehouse Builder to Oracle Data Integrator 12c Migration Utility
Oracle Warehouse Builder to Oracle Data Integrator 12c Migration UtilityOracle Warehouse Builder to Oracle Data Integrator 12c Migration Utility
Oracle Warehouse Builder to Oracle Data Integrator 12c Migration Utility
 
Pimping SQL Developer and Data Modeler
Pimping SQL Developer and Data ModelerPimping SQL Developer and Data Modeler
Pimping SQL Developer and Data Modeler
 
REST Enabling your Oracle Database (2018 Update)
REST Enabling your Oracle Database (2018 Update)REST Enabling your Oracle Database (2018 Update)
REST Enabling your Oracle Database (2018 Update)
 
Coding for desktop and mobile with HTML5 and Java EE 7 - Geertjan Wielenga
Coding for desktop and mobile with HTML5 and Java EE 7 - Geertjan WielengaCoding for desktop and mobile with HTML5 and Java EE 7 - Geertjan Wielenga
Coding for desktop and mobile with HTML5 and Java EE 7 - Geertjan Wielenga
 

More from Jeff Smith

More from Jeff Smith (13)

Oracle REST Data Services: POUG Edition
Oracle REST Data Services: POUG EditionOracle REST Data Services: POUG Edition
Oracle REST Data Services: POUG Edition
 
Oracle SQL Developer Tips and Tricks: Data Edition
Oracle SQL Developer Tips and Tricks: Data EditionOracle SQL Developer Tips and Tricks: Data Edition
Oracle SQL Developer Tips and Tricks: Data Edition
 
Change Management for Oracle Database with SQLcl
Change Management for Oracle Database with SQLcl Change Management for Oracle Database with SQLcl
Change Management for Oracle Database with SQLcl
 
RESTful Services for your Oracle Autonomous Database
RESTful Services for your Oracle Autonomous DatabaseRESTful Services for your Oracle Autonomous Database
RESTful Services for your Oracle Autonomous Database
 
Oracle Database Management REST API
Oracle Database Management REST APIOracle Database Management REST API
Oracle Database Management REST API
 
Oracle REST Data Services: Options for your Web Services
Oracle REST Data Services: Options for your Web ServicesOracle REST Data Services: Options for your Web Services
Oracle REST Data Services: Options for your Web Services
 
Oracle SQL Developer Data Modeler - for SQL Server
Oracle SQL Developer Data Modeler - for SQL ServerOracle SQL Developer Data Modeler - for SQL Server
Oracle SQL Developer Data Modeler - for SQL Server
 
Social Media - Why a Database Person Should Care
Social Media  - Why a Database Person Should CareSocial Media  - Why a Database Person Should Care
Social Media - Why a Database Person Should Care
 
REST Enabling Your Oracle Database
REST Enabling Your Oracle DatabaseREST Enabling Your Oracle Database
REST Enabling Your Oracle Database
 
If You Oracle Then You Should Twitter Too
If You Oracle Then You Should Twitter TooIf You Oracle Then You Should Twitter Too
If You Oracle Then You Should Twitter Too
 
My Favorite Oracle SQL Developer Data Modeler Features
My Favorite Oracle SQL Developer Data Modeler FeaturesMy Favorite Oracle SQL Developer Data Modeler Features
My Favorite Oracle SQL Developer Data Modeler Features
 
Oracle SQL Developer Data Modeler - Version Control Your Designs
Oracle SQL Developer Data Modeler - Version Control Your DesignsOracle SQL Developer Data Modeler - Version Control Your Designs
Oracle SQL Developer Data Modeler - Version Control Your Designs
 
Dimensional modeling in oracle sql developer
Dimensional modeling in oracle sql developerDimensional modeling in oracle sql developer
Dimensional modeling in oracle sql developer
 

Recently uploaded

Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
vu2urc
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
giselly40
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
Earley Information Science
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 

Recently uploaded (20)

Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 

Oracle SQL Developer Tips & Tricks

  • 1. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Oracle SQLcl & SQL Developer Tips & Tricks!! (updated for v4.2) Jeff Smith Senior Principal Product Manager Database Development Tools Jeff.d.smith@oracle.com @thatjeffsmith http://www.thatjeffsmith.com
  • 2. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | whoami  a tools geek since 2001  that guy that blogs at thatjeffsmith.com  #SQLDev Product Manager
  • 3. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Improve application developers experience  SQL Developer, In a Nutshell  The Show!!!  Talk the Tip  Show the Tip  Questions As We Go!  Take notes or borrow mine at the end… How this session works…
  • 4. 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
  • 5. 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
  • 6. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Oracle SQL Developer History Project Raptor  Early 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.3  Optimized Code Insight  Oracle Big Data Appliance 2014 2015 2016 SQLDev 4.1  ORDS Included/Full GUI  instance Viewer  SQLcl  Copy PDB to DBaaS  Larry live demos PDB relocate @ OOW SQLDev/SQLcl 4.2  SQLcl PROD  SQL Dev Early Adopter  Real Time SQL Monitoring  TOP Report  Formatter & Other Edtior Enhancements
  • 7. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
  • 8. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Split-Editors
  • 9. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Split Editors  Multiple ‘views’ of a single object/file  Click-drag the splitter ‘widget’ OR  Right-click > Split on the doc tab
  • 10. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Tab Groups  Work with > 1 object at a time  Right Click on tab > New Doc Tab Group  Drag docs from one group to another
  • 11. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Manual versus Automatic… …what’s better?
  • 12. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |  Automatic = suggestions as you type  Manual = suggestions as you ask for them (ctrl+space)
  • 13. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
  • 14. 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!
  • 15. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Bonus: Get Help/Examples with Commands!  peak into Docs for sample code on your function/command  click on ‘book’ to go straight to the DOCS page for that function/command
  • 16. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Also Available on the command-line: SQLcl & <TAB>  Just hit <TAB> for help  Autocompletes on Single Match  Lists possible matches otherwise!
  • 17. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Your Best Queries? Originally written by… Aliens?
  • 18. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | In lieu of clicking through SQL History (F8) SQL History – Not aliens, just code from 6 days ago 
  • 19. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | 2. SQL History Logging: every SQL to DB captured New for v4.1 – also captures BINDS
  • 20. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | SQL Statement & Script History – access with Up/Down Key  Sensitive commands, connect black-listed  Defaults to last 100  Avail from session to session per OS user
  • 21. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | I love it when a plan comes together!!
  • 22. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Plans/AutoTrace – generate & compare side by side! Hit the drop-down control next to Plan Button to access cached plans from v$sql_plan Pin Plan, Gen Plan, Right-Click > Compare for Side By Side View
  • 23. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | CLI: Use an ALIAS to Make DBMS_XPLAN EASY
  • 24. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | PUT THE MOUSE DOWN
  • 25. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | 7 Clicks to go from Grid to Formatted Export to Output
  • 26. 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
  • 27. 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
  • 28. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Get your files, whichever way you want them
  • 29. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Custom Formats, just add JavaScript
  • 30. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Have you tried Ctrl+Click?
  • 31. 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 Alternatives to the Tree for Nav #1: Schema Browser
  • 32. 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 Three More Ways to Open/Browse Objects
  • 33. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Snippet, Snippet GOOD. Code Templates…GOLD!
  • 34. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Auto-Replace Now Available (v4.2) 1. Program in Preferences 2. Type name 3. Ctrl+Spacebar OR enable Auto-Replace
  • 35. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
  • 36. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | More Preferences To Consider  Open Object on Single Click  Code Editor Font  Grid in checkerboard  Display NULL As  Shortcut Keys  PL/SQL Syntax Colors
  • 37. 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
  • 38. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | I’ll Take Potpourri for $200, Jeff
  • 39. 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
  • 40. 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 
  • 41. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | OTN – SQL Developer – Forums – By Example Tutorials – My Tips & Tricks Blog Resources
  • 42. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Customize Preferences Recall SQL History via keyboard Script Output in CSV, HTML, … Schema Browser Ctrl+Click, Shift+F4, Object Search XML Extensions All of my #SQLDev Posts :) The Tips in Blog Format