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

PDF
Troubleshooting Complex Performance issues - Oracle SEG$ contention
PDF
Clone Oracle Databases In Minutes Without Risk Using Enterprise Manager 13c
PDF
Migration From Oracle to PostgreSQL
PDF
Monitoring Oracle Database Instances with Zabbix
PPTX
Oracle Database in-Memory Overivew
PPTX
Hit Refresh with Oracle GoldenGate Microservices
PDF
Apache Flink internals
PDF
Tanel Poder - Troubleshooting Complex Oracle Performance Issues - Part 2
Troubleshooting Complex Performance issues - Oracle SEG$ contention
Clone Oracle Databases In Minutes Without Risk Using Enterprise Manager 13c
Migration From Oracle to PostgreSQL
Monitoring Oracle Database Instances with Zabbix
Oracle Database in-Memory Overivew
Hit Refresh with Oracle GoldenGate Microservices
Apache Flink internals
Tanel Poder - Troubleshooting Complex Oracle Performance Issues - Part 2

What's hot (20)

PDF
Best Practices of Infrastructure as Code with Terraform
PDF
LinuxCon 2015 Stateful NAT with OVS
PDF
Oracle Performance Tuning Fundamentals
PDF
Building a SIMD Supported Vectorized Native Engine for Spark SQL
PDF
Oracle Database Performance Tuning Concept
PDF
Oracle Exadata Maintenance tasks 101 - OTN Tour 2015
PDF
Oracle Flex ASM - What’s New and Best Practices by Jim Williams
PDF
Oracle Management Cloud サービス概要説明資料
PPTX
Automate DBA Tasks With Ansible
PDF
Analyzing and Interpreting AWR
PPTX
Oracle Audit Vault and Database Vault のご紹介
PPTX
Oracle GoldenGate Performance Tuning
PDF
nexus helm 설치, docker/helm repo 설정과 예제
PDF
NiFi 시작하기
PPTX
Running Airflow Workflows as ETL Processes on Hadoop
PPTX
Apache Flink and what it is used for
PDF
The Oracle RAC Family of Solutions - Presentation
PDF
SSL certificates in the Oracle Database without surprises
KEY
AlfrescoとSolr(中編)
PPTX
Introduction to openshift
Best Practices of Infrastructure as Code with Terraform
LinuxCon 2015 Stateful NAT with OVS
Oracle Performance Tuning Fundamentals
Building a SIMD Supported Vectorized Native Engine for Spark SQL
Oracle Database Performance Tuning Concept
Oracle Exadata Maintenance tasks 101 - OTN Tour 2015
Oracle Flex ASM - What’s New and Best Practices by Jim Williams
Oracle Management Cloud サービス概要説明資料
Automate DBA Tasks With Ansible
Analyzing and Interpreting AWR
Oracle Audit Vault and Database Vault のご紹介
Oracle GoldenGate Performance Tuning
nexus helm 설치, docker/helm repo 설정과 예제
NiFi 시작하기
Running Airflow Workflows as ETL Processes on Hadoop
Apache Flink and what it is used for
The Oracle RAC Family of Solutions - Presentation
SSL certificates in the Oracle Database without surprises
AlfrescoとSolr(中編)
Introduction to openshift
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
PPTX
Tanel Poder Oracle Scripts and Tools (2010)
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
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
Tanel Poder Oracle Scripts and Tools (2010)
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

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
System and Network Administration Chapter 2
PDF
top salesforce developer skills in 2025.pdf
PDF
Multi-factor Authentication (MFA) requirement for Microsoft 365 Admin Center_...
DOCX
The Five Best AI Cover Tools in 2025.docx
PPTX
What to Capture When It Breaks: 16 Artifacts That Reveal Root Causes
PDF
2025 Textile ERP Trends: SAP, Odoo & Oracle
PPTX
Materi_Pemrograman_Komputer-Looping.pptx
PPTX
ManageIQ - Sprint 268 Review - Slide Deck
PDF
Become an Agentblazer Champion Challenge Kickoff
PPTX
VVF-Customer-Presentation2025-Ver1.9.pptx
PDF
A REACT POMODORO TIMER WEB APPLICATION.pdf
PDF
System and Network Administraation Chapter 3
PPTX
FLIGHT TICKET RESERVATION SYSTEM | FLIGHT BOOKING ENGINE API
PPTX
Lecture 3: Operating Systems Introduction to Computer Hardware Systems
PDF
The Role of Automation and AI in EHS Management for Data Centers.pdf
PDF
Upgrade and Innovation Strategies for SAP ERP Customers
PDF
Addressing The Cult of Project Management Tools-Why Disconnected Work is Hold...
PDF
Softaken Excel to vCard Converter Software.pdf
PDF
T3DD25 TYPO3 Content Blocks - Deep Dive by André Kraus
PDF
Digital Strategies for Manufacturing Companies
System and Network Administration Chapter 2
top salesforce developer skills in 2025.pdf
Multi-factor Authentication (MFA) requirement for Microsoft 365 Admin Center_...
The Five Best AI Cover Tools in 2025.docx
What to Capture When It Breaks: 16 Artifacts That Reveal Root Causes
2025 Textile ERP Trends: SAP, Odoo & Oracle
Materi_Pemrograman_Komputer-Looping.pptx
ManageIQ - Sprint 268 Review - Slide Deck
Become an Agentblazer Champion Challenge Kickoff
VVF-Customer-Presentation2025-Ver1.9.pptx
A REACT POMODORO TIMER WEB APPLICATION.pdf
System and Network Administraation Chapter 3
FLIGHT TICKET RESERVATION SYSTEM | FLIGHT BOOKING ENGINE API
Lecture 3: Operating Systems Introduction to Computer Hardware Systems
The Role of Automation and AI in EHS Management for Data Centers.pdf
Upgrade and Innovation Strategies for SAP ERP Customers
Addressing The Cult of Project Management Tools-Why Disconnected Work is Hold...
Softaken Excel to vCard Converter Software.pdf
T3DD25 TYPO3 Content Blocks - Deep Dive by André Kraus
Digital Strategies for Manufacturing Companies

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 [email protected] || @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.