SlideShare a Scribd company logo
SQLcl overview - A new Command Line Interface for Oracle Database
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
SQLcl: SQL Developer Meets SQL*Plus
A New Command Line Interface for Oracle Database
Jeff Smith
Senior Principal Product Manager
Jeff.d.smith@oracle.com || @thatjeffsmith
Database Tools, Oracle Corp
Oracle Confidential – Internal/Restricted/Highly Restricted
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Improve
application
developers
experience
 Who, What, Why?
 Talk It
 Show It
 Questions As We Go, Mostly
Agenda
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Oracle SQL Tools
History
User Friendly Interface
 UFI
1979
SQLDev 1.1
 SQL Worksheet with Script
Engine (F5)
 Basic SQL*Plus Support
 Ships with 11gR1
SQL*Plus
 UFI Advanced
 Ships with Oracle v5
20071985 2008 2015 2016
SQLcl Early Adopter
 takes existing SQL*Plus engine in SQL
Developer to a new CLI
sqlplusW & iSQL*Plus
discontinued
 no longer shipped as of Oracle
Database 11g
1998
iSQL*Plus
 Web Based SQL*Plus
 Ships with 8i (Internet)
1993
SQL*Plus GUI
 sqlplusW.exe
 Windows ONLY SQLcl Released
 support tied to Database
 stand-alone or bundled
 ships with 12cR2
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Hot Technology from 1985
Merkur XR4Ti
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
 The Goonies
 MacGyver
 Wake Me Up Before You Go-Go
 SQL*Plus, replaces User Friendly Interface (UFI)
Other Popular Things from 1985
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. |
SQL Developer Script Engine
Existing SQL*Plus Scripting Support in the GUI
 SQL*Plus command support
 User friendly interface for running queries,
scripts, and reports
 What if…?
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
…We Could Take the Helpful GUI Elements to a CLI?
 Object Name/Command Completion
 SQL Execution History & Recall
 Query Result Formatting
 User friendly text editing
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Hot Technology from 1997
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
A new way to work with Oracle Database…
…brought to you from the makers of SQL Developer
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
SQLcl: a modern take on SQL*Plus
Included with SQL Developer, also available as a separate download/program
 Java 8 JRE or higher
 Small download
 Unzip & Go
 No Client Required
Supports all of your favorite SQL*Plus Commands
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Why?
 Not everyone likes a GUI for every task
 SQL*Plus is great but lacks many modern features
 Can we improve our users’ everyday experience
with our technology?
Improve
application
developers
experience
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Getting Started
 Download
 unzip
 run ‘sql’
 How to ‘install’
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Run Anywhere
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Connections
Supports:
 EZConnect
 TNS
 LDAP
 Proxy
 G/Login.SQL
 /nolog
 Native SSH tunnels
 Easy Wallet Config
Add -oci to connect string for thick connections
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
TNS Too  TNS_ADMIN Variable tells us where to look
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
New Dog, Old Tricks?
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Old stuff is still there, not going away…
 COLUMN SALARY FORMAT $99,990
 C/oldval/newval
 DESC
 & and &&
 pretty much everything else
you LOVE about SQL*Plus
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Commands:
 Highlighted and Doc in Help
 ALIAS
 APEX
 BRIDGE
 CD
 CTAS
 DDL
 FORMAT
 HISTORY
 INFORMATION (INFO & INFO+)
 SSHTUNNEL
What’s New?
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Customize/Pimp Your Ride
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Fun
set sqlprompt "@|blue _USER|@@@|green_CONNECT_IDENTIFIER|@@|blue >|@"
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
SYS@orcl >alias plan =
SELECT * FROM
TABLE(DBMS_XPLAN.DISPLAY_CURSOR)
SYS@orcl >alias plan2 =
SELECT * FROM TABLE
(DBMS_XPLAN.DISPLAY_CURSOR(
:ID, :CHILD))
Practical: Re-use Your
Commands & Scripts
With ALIAS
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Commands: Alias
Make your own
‘commands’ – map
SQL w/binds to an
alias
Example:
 Show me all
tables who have
columns using
:DATA_TYPE
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Commands: CTAS
DDL sent to BUFFER – edit or execute
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Commands: DDL
 generate object DDL
 create scripts using DDL
& SPOOL commands
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
 Automatically format query results
 SET SQLFORMAT csv
 html
 xml
 json
 csv
 insert
 loader
 ansiconsole
DEMO – Output Formatting
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
ANSICONSOLE??? Escape Sequences to Effect Console Output
Fancy Output, LOOP(
 get a PAGE…
 ‘smart’ size Columns…
 PAGE++
 )
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
ANSICONSOLE Formatting
Fetch page, format column sizes, print, continue…
SET sqlformat ansiconsole
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Demo, ANSI Console Coloring
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
DEMO – SQL History
Statement Execution History
 Last 100 statements
 Persist between sessions
 Cycle through using UP/DN
 Full List
 Also Tracks Total Execution
Time & # of Executions
 Filter Types of Commands
saved in History
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
INFOrmation– a better DESCribe
Object Metadata
Example: Tables
 Keys
 Comments
 INMEMORY status
 Stats
 Indexes
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Demo, Object Completion
Think ‘the Ctrl+Spacebar stuff’
in SQL Developer
 activated with a <TAB>
 object, column names, and
keywords
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Demo, Command Completion
ALTER SESSION {ENABLE | DISABLE | FORCE} PARALLEL
{DML|DDL|QUERY} [PARALLEL int]
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Client Side Scripting? (JavaScript)
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
YouTube Overview (10 Minutes)
Barry’s Blog
Kris’ Blog
How to install & connect
OTN Home Page, Downloads, FAQs, Release Notes, & More
Resources
SQLcl overview - A new Command Line Interface for Oracle Database

More Related Content

PPTX
Apache Spark Architecture
PDF
Introducing DataFrames in Spark for Large Scale Data Science
PDF
A Deep Dive into Query Execution Engine of Spark SQL
PDF
The Apache Spark File Format Ecosystem
PDF
Introduction to PySpark
PDF
Native Support of Prometheus Monitoring in Apache Spark 3.0
PDF
Introduction to Apache NiFi dws19 DWS - DC 2019
PDF
Oracle RAC 19c: Best Practices and Secret Internals
Apache Spark Architecture
Introducing DataFrames in Spark for Large Scale Data Science
A Deep Dive into Query Execution Engine of Spark SQL
The Apache Spark File Format Ecosystem
Introduction to PySpark
Native Support of Prometheus Monitoring in Apache Spark 3.0
Introduction to Apache NiFi dws19 DWS - DC 2019
Oracle RAC 19c: Best Practices and Secret Internals

What's hot (20)

PPTX
Hitchhiker's Guide to free Oracle tuning tools
PPTX
Reusable, composable, battle-tested Terraform modules
PPTX
Oracle GoldenGate 21c New Features and Best Practices
PDF
Meet up roadmap cloudera 2020 - janeiro
PPTX
Hexagonal architecture with Spring Boot
PPTX
PDF
[오픈소스컨설팅]쿠버네티스를 활용한 개발환경 구축
PDF
Introduction to DataFusion An Embeddable Query Engine Written in Rust
PDF
PySpark Programming | PySpark Concepts with Hands-On | PySpark Training | Edu...
PDF
Spark SQL Tutorial | Spark Tutorial for Beginners | Apache Spark Training | E...
PDF
Getting Started with Apache Spark on Kubernetes
PDF
ACID ORC, Iceberg, and Delta Lake—An Overview of Table Formats for Large Scal...
PDF
NiFi 시작하기
PDF
PySpark in practice slides
PDF
New Generation Oracle RAC Performance
PDF
Redefining tables online without surprises
PPTX
Oracle database upgrade to 12c and available methods
PDF
Oracle_Multitenant_19c_-_All_About_Pluggable_D.pdf
PPTX
Tanel Poder Oracle Scripts and Tools (2010)
PDF
Apache Spark Data Source V2 with Wenchen Fan and Gengliang Wang
Hitchhiker's Guide to free Oracle tuning tools
Reusable, composable, battle-tested Terraform modules
Oracle GoldenGate 21c New Features and Best Practices
Meet up roadmap cloudera 2020 - janeiro
Hexagonal architecture with Spring Boot
[오픈소스컨설팅]쿠버네티스를 활용한 개발환경 구축
Introduction to DataFusion An Embeddable Query Engine Written in Rust
PySpark Programming | PySpark Concepts with Hands-On | PySpark Training | Edu...
Spark SQL Tutorial | Spark Tutorial for Beginners | Apache Spark Training | E...
Getting Started with Apache Spark on Kubernetes
ACID ORC, Iceberg, and Delta Lake—An Overview of Table Formats for Large Scal...
NiFi 시작하기
PySpark in practice slides
New Generation Oracle RAC Performance
Redefining tables online without surprises
Oracle database upgrade to 12c and available methods
Oracle_Multitenant_19c_-_All_About_Pluggable_D.pdf
Tanel Poder Oracle Scripts and Tools (2010)
Apache Spark Data Source V2 with Wenchen Fan and Gengliang Wang
Ad

Viewers also liked (20)

PPTX
Oracle SQL Developer Tips & Tricks
PDF
Oracle SQLcl
PPTX
All of the Performance Tuning Features in Oracle SQL Developer
PDF
SQLcl the next generation of SQLPlus?
PPTX
Oracle SQL Developer Top 10 Tips & Tricks
PPTX
Is SQLcl the Next Generation of SQL*Plus?
PPTX
Pennsylvania Banner User Group Webinar: Oracle SQL Developer Tips & Tricks
PPTX
Oracle SQL Developer version 4.0 New Features Overview
PPSX
Execute sql query or sql command sql server using command prompt
PDF
Database design & Normalization (1NF, 2NF, 3NF)
PDF
BI Forum 2012 - Analýza nestrukturovaných dat pomocí Oracle Endeca Informatio...
PDF
Oracle Solaris Day 2013 - Oracle DB and OS Solaris
PDF
Exadata and the Oracle Optimizer: The Untold Story
PPT
Normalization
PPTX
Backup &amp; recovery for exadata
PPT
Oracle PL/SQL - Creative Conditional Compilation
PDF
Introdução PLSQL
PDF
Spring 3 MVC CodeMash 2009
PDF
新版阿尔法城背后的前端MVC实践
PPTX
My Favorite Oracle SQL Developer Data Modeler Features
Oracle SQL Developer Tips & Tricks
Oracle SQLcl
All of the Performance Tuning Features in Oracle SQL Developer
SQLcl the next generation of SQLPlus?
Oracle SQL Developer Top 10 Tips & Tricks
Is SQLcl the Next Generation of SQL*Plus?
Pennsylvania Banner User Group Webinar: Oracle SQL Developer Tips & Tricks
Oracle SQL Developer version 4.0 New Features Overview
Execute sql query or sql command sql server using command prompt
Database design & Normalization (1NF, 2NF, 3NF)
BI Forum 2012 - Analýza nestrukturovaných dat pomocí Oracle Endeca Informatio...
Oracle Solaris Day 2013 - Oracle DB and OS Solaris
Exadata and the Oracle Optimizer: The Untold Story
Normalization
Backup &amp; recovery for exadata
Oracle PL/SQL - Creative Conditional Compilation
Introdução PLSQL
Spring 3 MVC CodeMash 2009
新版阿尔法城背后的前端MVC实践
My Favorite Oracle SQL Developer Data Modeler Features
Ad

Similar to SQLcl overview - A new Command Line Interface for Oracle Database (20)

PPTX
Oracle SQLcl: Formatting your Query Results
PDF
Erik_van_Roon.pdf
PPTX
Oracle SQL Developer: You're Doing it Wrong!
PDF
Isqlplus command
PPTX
What's New in Oracle SQL Developer for 2018
PPT
Less04 instance
PPTX
Oracle SQL Developer for SQL Server?
PPT
Overview of Primary Components of the Oracle
PDF
Oracle Sqlplus Pocket Reference 3rd Ed Jonathan Gennick
PPT
Intro oracle10gexpress
PDF
Oracle SQL Plus pocket reference 3rd ed Edition Jonathan Gennick
PPTX
Oracle institutes in Hyderabad.
PPTX
PL/SQL All the Things in Oracle SQL Developer
PPTX
Pimping SQL Developer and Data Modeler
PPTX
DBMS week 2 hjghg hvgfhgf,3 BSCS 6th.pptx
PDF
PT- Oracle session01
PPTX
Oracle SQL Developer for the DBA
PDF
Oracle sql developer_slides
PPTX
Oracle 10g
PDF
Sql developer - Powerful Free tool for Developers and DBA's
Oracle SQLcl: Formatting your Query Results
Erik_van_Roon.pdf
Oracle SQL Developer: You're Doing it Wrong!
Isqlplus command
What's New in Oracle SQL Developer for 2018
Less04 instance
Oracle SQL Developer for SQL Server?
Overview of Primary Components of the Oracle
Oracle Sqlplus Pocket Reference 3rd Ed Jonathan Gennick
Intro oracle10gexpress
Oracle SQL Plus pocket reference 3rd ed Edition Jonathan Gennick
Oracle institutes in Hyderabad.
PL/SQL All the Things in Oracle SQL Developer
Pimping SQL Developer and Data Modeler
DBMS week 2 hjghg hvgfhgf,3 BSCS 6th.pptx
PT- Oracle session01
Oracle SQL Developer for the DBA
Oracle sql developer_slides
Oracle 10g
Sql developer - Powerful Free tool for Developers and DBA's

More from Jeff Smith (18)

PPTX
Oracle REST Data Services: POUG Edition
PPTX
Oracle SQL Developer Tips and Tricks: Data Edition
PPTX
Change Management for Oracle Database with SQLcl
PPTX
RESTful Services for your Oracle Autonomous Database
PPTX
Debugging PL/SQL from your APEX Applications with Oracle SQL Developer
PPTX
Oracle Database Management REST API
PPTX
Oracle REST Data Services: Options for your Web Services
PPTX
Oracle SQL Developer Data Modeler - for SQL Server
PPTX
REST Enabling your Oracle Database (2018 Update)
PPTX
Social Media - Why a Database Person Should Care
PPTX
Oracle SQL Developer Reports
PPTX
Oracle SQL Developer: 3 Features You're Not Using But Should Be
PPTX
Debugging PL/SQL with Oracle SQL Developer
PPTX
REST Enabling Your Oracle Database
PPT
If You Oracle Then You Should Twitter Too
PPTX
Oracle Database 12c Feature Support in Oracle SQL Developer
PPTX
Oracle SQL Developer Data Modeler - Version Control Your Designs
PPTX
Dimensional modeling in oracle sql developer
Oracle REST Data Services: POUG Edition
Oracle SQL Developer Tips and Tricks: Data Edition
Change Management for Oracle Database with SQLcl
RESTful Services for your Oracle Autonomous Database
Debugging PL/SQL from your APEX Applications with Oracle SQL Developer
Oracle Database Management REST API
Oracle REST Data Services: Options for your Web Services
Oracle SQL Developer Data Modeler - for SQL Server
REST Enabling your Oracle Database (2018 Update)
Social Media - Why a Database Person Should Care
Oracle SQL Developer Reports
Oracle SQL Developer: 3 Features You're Not Using But Should Be
Debugging PL/SQL with Oracle SQL Developer
REST Enabling Your Oracle Database
If You Oracle Then You Should Twitter Too
Oracle Database 12c Feature Support in Oracle SQL Developer
Oracle SQL Developer Data Modeler - Version Control Your Designs
Dimensional modeling in oracle sql developer

Recently uploaded (20)

PDF
Wondershare Filmora 15 Crack With Activation Key [2025
PDF
Upgrade and Innovation Strategies for SAP ERP Customers
PDF
Why TechBuilder is the Future of Pickup and Delivery App Development (1).pdf
PDF
EN-Survey-Report-SAP-LeanIX-EA-Insights-2025.pdf
PDF
T3DD25 TYPO3 Content Blocks - Deep Dive by André Kraus
PPTX
Essential Infomation Tech presentation.pptx
PDF
PTS Company Brochure 2025 (1).pdf.......
PDF
System and Network Administration Chapter 2
PDF
How to Choose the Right IT Partner for Your Business in Malaysia
PDF
medical staffing services at VALiNTRY
PPTX
VVF-Customer-Presentation2025-Ver1.9.pptx
PPTX
Reimagine Home Health with the Power of Agentic AI​
PDF
Adobe Premiere Pro 2025 (v24.5.0.057) Crack free
PDF
How to Migrate SBCGlobal Email to Yahoo Easily
PDF
Adobe Illustrator 28.6 Crack My Vision of Vector Design
PDF
Audit Checklist Design Aligning with ISO, IATF, and Industry Standards — Omne...
PPTX
Oracle E-Business Suite: A Comprehensive Guide for Modern Enterprises
PDF
top salesforce developer skills in 2025.pdf
PDF
Understanding Forklifts - TECH EHS Solution
PDF
SAP S4 Hana Brochure 3 (PTS SYSTEMS AND SOLUTIONS)
Wondershare Filmora 15 Crack With Activation Key [2025
Upgrade and Innovation Strategies for SAP ERP Customers
Why TechBuilder is the Future of Pickup and Delivery App Development (1).pdf
EN-Survey-Report-SAP-LeanIX-EA-Insights-2025.pdf
T3DD25 TYPO3 Content Blocks - Deep Dive by André Kraus
Essential Infomation Tech presentation.pptx
PTS Company Brochure 2025 (1).pdf.......
System and Network Administration Chapter 2
How to Choose the Right IT Partner for Your Business in Malaysia
medical staffing services at VALiNTRY
VVF-Customer-Presentation2025-Ver1.9.pptx
Reimagine Home Health with the Power of Agentic AI​
Adobe Premiere Pro 2025 (v24.5.0.057) Crack free
How to Migrate SBCGlobal Email to Yahoo Easily
Adobe Illustrator 28.6 Crack My Vision of Vector Design
Audit Checklist Design Aligning with ISO, IATF, and Industry Standards — Omne...
Oracle E-Business Suite: A Comprehensive Guide for Modern Enterprises
top salesforce developer skills in 2025.pdf
Understanding Forklifts - TECH EHS Solution
SAP S4 Hana Brochure 3 (PTS SYSTEMS AND SOLUTIONS)

SQLcl overview - A new Command Line Interface for Oracle Database

  • 2. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | SQLcl: SQL Developer Meets SQL*Plus A New Command Line Interface for Oracle Database Jeff Smith Senior Principal Product Manager Jeff.d.smith@oracle.com || @thatjeffsmith Database Tools, Oracle Corp Oracle Confidential – Internal/Restricted/Highly Restricted
  • 3. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Improve application developers experience  Who, What, Why?  Talk It  Show It  Questions As We Go, Mostly Agenda
  • 4. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Oracle SQL Tools History User Friendly Interface  UFI 1979 SQLDev 1.1  SQL Worksheet with Script Engine (F5)  Basic SQL*Plus Support  Ships with 11gR1 SQL*Plus  UFI Advanced  Ships with Oracle v5 20071985 2008 2015 2016 SQLcl Early Adopter  takes existing SQL*Plus engine in SQL Developer to a new CLI sqlplusW & iSQL*Plus discontinued  no longer shipped as of Oracle Database 11g 1998 iSQL*Plus  Web Based SQL*Plus  Ships with 8i (Internet) 1993 SQL*Plus GUI  sqlplusW.exe  Windows ONLY SQLcl Released  support tied to Database  stand-alone or bundled  ships with 12cR2
  • 5. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Hot Technology from 1985 Merkur XR4Ti
  • 6. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |  The Goonies  MacGyver  Wake Me Up Before You Go-Go  SQL*Plus, replaces User Friendly Interface (UFI) Other Popular Things from 1985
  • 7. 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
  • 8. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | SQL Developer Script Engine Existing SQL*Plus Scripting Support in the GUI  SQL*Plus command support  User friendly interface for running queries, scripts, and reports  What if…?
  • 9. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | …We Could Take the Helpful GUI Elements to a CLI?  Object Name/Command Completion  SQL Execution History & Recall  Query Result Formatting  User friendly text editing
  • 10. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Hot Technology from 1997
  • 11. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | A new way to work with Oracle Database… …brought to you from the makers of SQL Developer
  • 12. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | SQLcl: a modern take on SQL*Plus Included with SQL Developer, also available as a separate download/program  Java 8 JRE or higher  Small download  Unzip & Go  No Client Required Supports all of your favorite SQL*Plus Commands
  • 13. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Why?  Not everyone likes a GUI for every task  SQL*Plus is great but lacks many modern features  Can we improve our users’ everyday experience with our technology? Improve application developers experience
  • 14. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Getting Started  Download  unzip  run ‘sql’  How to ‘install’
  • 15. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Run Anywhere
  • 16. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Connections Supports:  EZConnect  TNS  LDAP  Proxy  G/Login.SQL  /nolog  Native SSH tunnels  Easy Wallet Config Add -oci to connect string for thick connections
  • 17. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | TNS Too  TNS_ADMIN Variable tells us where to look
  • 18. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | New Dog, Old Tricks?
  • 19. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Old stuff is still there, not going away…  COLUMN SALARY FORMAT $99,990  C/oldval/newval  DESC  & and &&  pretty much everything else you LOVE about SQL*Plus
  • 20. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Commands:  Highlighted and Doc in Help  ALIAS  APEX  BRIDGE  CD  CTAS  DDL  FORMAT  HISTORY  INFORMATION (INFO & INFO+)  SSHTUNNEL What’s New?
  • 21. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Customize/Pimp Your Ride
  • 22. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Fun set sqlprompt "@|blue _USER|@@@|green_CONNECT_IDENTIFIER|@@|blue >|@"
  • 23. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | SYS@orcl >alias plan = SELECT * FROM TABLE(DBMS_XPLAN.DISPLAY_CURSOR) SYS@orcl >alias plan2 = SELECT * FROM TABLE (DBMS_XPLAN.DISPLAY_CURSOR( :ID, :CHILD)) Practical: Re-use Your Commands & Scripts With ALIAS
  • 24. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Commands: Alias Make your own ‘commands’ – map SQL w/binds to an alias Example:  Show me all tables who have columns using :DATA_TYPE
  • 25. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Commands: CTAS DDL sent to BUFFER – edit or execute
  • 26. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Commands: DDL  generate object DDL  create scripts using DDL & SPOOL commands
  • 27. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |  Automatically format query results  SET SQLFORMAT csv  html  xml  json  csv  insert  loader  ansiconsole DEMO – Output Formatting
  • 28. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | ANSICONSOLE??? Escape Sequences to Effect Console Output Fancy Output, LOOP(  get a PAGE…  ‘smart’ size Columns…  PAGE++  )
  • 29. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | ANSICONSOLE Formatting Fetch page, format column sizes, print, continue… SET sqlformat ansiconsole
  • 30. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Demo, ANSI Console Coloring
  • 31. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | DEMO – SQL History Statement Execution History  Last 100 statements  Persist between sessions  Cycle through using UP/DN  Full List  Also Tracks Total Execution Time & # of Executions  Filter Types of Commands saved in History
  • 32. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | INFOrmation– a better DESCribe Object Metadata Example: Tables  Keys  Comments  INMEMORY status  Stats  Indexes
  • 33. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
  • 34. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Demo, Object Completion Think ‘the Ctrl+Spacebar stuff’ in SQL Developer  activated with a <TAB>  object, column names, and keywords
  • 35. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Demo, Command Completion ALTER SESSION {ENABLE | DISABLE | FORCE} PARALLEL {DML|DDL|QUERY} [PARALLEL int]
  • 36. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Client Side Scripting? (JavaScript)
  • 37. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | YouTube Overview (10 Minutes) Barry’s Blog Kris’ Blog How to install & connect OTN Home Page, Downloads, FAQs, Release Notes, & More Resources

Editor's Notes

  • #3: To customize this slide with your own picture: Right-click the slide area and choose Format Background from the pop-up menu. From the Fill menu, click Picture and texture fill. Under Insert from: click File. Locate your new picture and click Insert. To Replace the LOGO on this sample slide: Right-click the sample LOGO and choose Change Picture. Navigate to the location where the new logo is stored, select desired logo file and click on the Open button to replace the sample logo.