SlideShare ist ein Scribd-Unternehmen logo
1 von 91
Downloaden Sie, um offline zu lesen
© 2009 Quest Software, Inc. ALL RIGHTS RESERVED
Toad Tips & Tricks for the PL/SQL Pro
Tips & Tricks for Analysts, Developer and DBA’s
Toad® for Oracle
2
Three Main Presentation Topics:
• Basics for newbies and often even old hands
• Advanced features for PL/SQL Developers
• Advanced features for DBA’s
3
Part #1
• Basics for newbies and often even old hands
4
Which Toad Version Do I Have?
5
How Do I Upgrade my Toad Version?
• You must be current on Toad maintenance contract
• Then simply login and download from Quest Support
– http://support.quest.com
• You cannot:
– Upgrade commercial using trial from web site
– Upgrade commercial using trial from show DVD
• What if I let my maintenance lapse? What can I do?
– Contact sales – ask for options (all depends…)
6
I don’t like Toad’s Menus and Toolbars!
Just like Microsoft Office, simply choose menu or toolbar and choose customize …
7
Drag-and-Drop:
•Existing toolbar icons and/or menu
items around (reorganize)
•Existing toolbar icons and/or menu
items to Customize Window (remove)
•Customize Window toolbar text/icons
to toolbar and/or menu location (add)
8
Toad does not work the way I want!
Always check Toad Options
•Can Toad do this …
•Can Toad work this way …
•Can Toad look like this …
•How do I customize Toad
9
Ten Years of Options – and Growing …
10
11
What is Toad Doing? How does it do that?
Built-In Method Stand-Alone EXE
SQLMonitor.exe
12
13
14
Toad Seems Slow or Slower Than Before?
Speed Up Toad - Updated
http://www.toadworld.com/Community/Blogs/tabid/67/EntryID/274/Default.aspx
Speed Up Toad
http://www.toadworld.com/Community/Blogs/tabid/67/EntryID/162/Default.aspx
Toad Sometimes Slow on Oracle 10g
http://www.toadworld.com/Community/Blogs/tabid/67/EntryID/135/Default.aspx
15
16
Toad Crashed – How do I troubleshoot?
http://support.quest.com
Your Toad Options settings
17
Toad (like Keebler Cookies) has Elves !!!
When Toad screen or utility crashes, the Delphi code traps
the error and pops-up the special “Elf” error dialog screen
This is critical – do not just say OK and close the screen
Choose “click here” to see more info …
18
Toad.ini file + Support Bundle file + Toad.elf file = much better chance finding bug or user error
19
20
tnsnames.ora ---Nothing--- OID or MS AD
21
22
23
Hard to see on printed slides, but adds a
color border around the entire window too
24
Of the more often used screens, Toad Schema
Browser is probably the most user configurable
25
Left Hand Side (LHS) Right Hand Side (RHS) Refresh all LHS objects
Refresh current or
focused LHS object
Refresh current or
focused RHS details
26
27
28
29
30
In Tree-View mode, Toad basically looks
and feels just like other tools, such as:
• SQL Navigator
• PL/SQL Developer
• SQL Developer
31
32
33
Now I have a Schema Browser that fits
my specific job needs, with no excess
stuff displayed and no over crowding!
But not quite done just yet ☺☺☺☺
34
35
Now Schema Browser is “just right” ☺☺☺☺
36
Did you notice that the Funnel
icon is red instead of grey?
What does that mean?
Always notice Funnel color!
Common object operations
on the LHS toolbar, and all
object operations available
via right-hand-mouse menu
37
38
There’s also the “Quick Filter”
Accepts standard wildcards (*)
Accepts database wildcards (%)
39
Schema Browser navigation history …
40
Instantly jumps from EMPLOYEE table to the EMPLOYEE_PK
index (i.e. it automatically changes the focus or navigates to
“Indexes” tab with the specific index in focus or preselected)
41
42
43
44
45
46
To delete all saved schema
browser layout settings …
47
48
49
Cut & Paste …
50
Part #2
• Advanced features for developers
51
Editor 201
• Code Insight
– Object name completion (CNTRL + Period)
– Column Popup (Multi-Select!)
– PL/SQL Completion
– Too ‘Mr. Clippy’ for your
tastes? Disable the
feature!
52
Editor 201
• SQL Recall
– Use Named SQL for super fast recall.
– ALT + Up/Dn to scroll through history recall list
• Code Snippets
– If..Then..Elsif..
– Exceptions
– Cursor For Loop
– Your custom code
53
Split Editor
• Work with multiple sections of your file simultaneously
– Left/Right
– Top/Bottom
54
Editor 201
• Make/Strip Code
– Translate Delphi, Java, C++, Perl, C#, VB, etc to SQL
– Translate SQL to Delphi, Java, …
– Write your own custom Code Transformation Templates
55
Editor 201
• Keyboard Shortcuts
– Check your options!
• Customize Toolbars
– Hate Toad’s 80 gazillion
buttons and toolbars?
TURN THEM OFF ☺
56
Editor 201
• Debugger
– Conditional Breakpoints
– Use Watches to change variable values and as breakpoints
– Step into TYPE Body
– Supports DML Triggers
– Toad can now write your DBMS_OUTPUT instrumentation code for you!
57
External Debugging
• Debug a session that is spawned from a remote
application or service.
• Step thorough your code and view the data as it was
initialized somewhere else in the world.
• Your application’s session
sets a DEBUG Flag with a
named Identifier
• You tell Toad which session
to grab. Toad automatically
steps into the code.
58
Editor 201
• Never build a DBMS_OUTPUT statement manually !
– Right-click – Output Statements
• Find a matching END IF, END or ) using bracketing
• Code Folding
• Code Refactoring
59
Code Road Map – Document and Create Local
Test/Development Environments – 1 Click!
• Diagram Views &
PL/SQL Objects
– Generate Test Data
– Generate DDL Scripts
– Build HTML Reports
60
PL/SQL Profiler (DBMS_ & Hierarchical
Support)
• Find out which lines take longer to run than others.
• Identify execution bottlenecks
• Figure out what needs tuning
Integrated with the Editor for
instant analysis.
Graphs for quicker identification.
61
PL/SQL Execution – View Collections
• Return Values & Out Parameters for your PL/SQL – let Toad
build DMBS_OUPUT for you
• Example – A 2 Dimensional PL/SQL Table Package Function
that returns a PL/SQL Table.
62
PL/SQL Execution – View REF Cursors
• Does your PL/SQL return a REF Cursor? Let Toad put it
into a Data Grid for you.
63
3rd Party Source Code Control Integration
• CVS
• MSFT TFS 2005, 2008, 2010
• MSFT Visual Source Safe
• Perforce
• PVCS (Serena)
• Subversion
Control files or additionally control objects in the database via
Toad’s Team Coding Feature
64
CodeXpert – let Toad review your code before your
peers laugh at you ☺
• Analyzes your code against Best Practices rules
developed by Steven Feuerstein, Bert Scalzo, and Quest’s
Oracle experts.
Explains why your
code is flagged and
gives advice for better
implementations.
Can identify SQL that
needs Optimized.
65
Ok, you’ve written some kick-butt PL/SQL,
but does it work?• Quest’s latest PL/SQL tool automatically tests your
PL/SQL for correctness.
Step 1: Tell Code Tester what your program does in PLAIN ENGLISH
66
Code Tester for Oracle Writes the Test Code For You!
Step 2: Sit back and relax as Code Tester generates your test code.
67
Run your tests on demand to see what your programs
DO and DO NOT accomplish.
Step 3: Analyze the results. RED = BAD. See the Expected VS Actual
Results.
68
Test Performance/Scalability
• Your stored procedure runs OK for 1 user, how will it handle
10? 50? 100?
• Toad can answer that question, track response time to user
load
69
Part #3
• Advanced features for DBA’s
70
Database Browser
71
72
73
74
75
76
77
78
Subset of Schema Browser for those objects not owned
by a schema (i.e. public owner or simply just no owner)
79
App Designer
80
Often you go into a Toad screen to set some settings, push
exec, and have something happen (perform work) …
Toad has for a long time had a way to capture those settings
and then let you repeat work that from command line …
But old way had problems, and was not everywhere …
So we’re working on replacing the old command line method
with a cool, new Toad Application Designer. Think of it as a
macro record and playback facility …
Toad 9.6 started this effort – was called actions …
Toad 9.7 revised the approach – now called App Designer
81
Some screens still not converted to app designer …
Look for open folder and floppy disk icons …
These are for load and save screen settings …
Notice no camera icon in bottom left corner (new method)
82
83
84
85
86
87
88
89
90
Now you can automate tasks and program
dependencies and iterations, with conditional logic
and anything else you can imagine and program ☺☺☺☺
© 2009 Quest Software, Inc. ALL RIGHTS RESERVED
Thank youThank you Questions?you

Weitere ähnliche Inhalte

Was ist angesagt?

Oracle sql developer_slides
Oracle sql developer_slidesOracle sql developer_slides
Oracle sql developer_slidesKrishna Murthy
 
Hibernate in XPages
Hibernate in XPagesHibernate in XPages
Hibernate in XPagesToby Samples
 
Haj 4308-open jpa, eclipselink, and the migration toolkit
Haj 4308-open jpa, eclipselink, and the migration toolkitHaj 4308-open jpa, eclipselink, and the migration toolkit
Haj 4308-open jpa, eclipselink, and the migration toolkitKevin Sutter
 
Databases & Microsoft SQL Server
Databases & Microsoft SQL ServerDatabases & Microsoft SQL Server
Databases & Microsoft SQL ServerMahmoud Abdallah
 
Architecture and tools
Architecture and toolsArchitecture and tools
Architecture and toolssanjay_jha
 
NLOUG 2017- Oracle WebCenter Portal 12c Performance
NLOUG 2017- Oracle WebCenter Portal 12c PerformanceNLOUG 2017- Oracle WebCenter Portal 12c Performance
NLOUG 2017- Oracle WebCenter Portal 12c PerformanceDaniel Merchán García
 
Microsoft SQL Server internals & architecture
Microsoft SQL Server internals & architectureMicrosoft SQL Server internals & architecture
Microsoft SQL Server internals & architectureKevin Kline
 
Oracle no sql database bigdata
Oracle no sql database   bigdataOracle no sql database   bigdata
Oracle no sql database bigdataJoão Gabriel Lima
 
JSON, A Splash of SODA, and a SQL Chaser: Real-World Use Cases for Autonomous...
JSON, A Splash of SODA, and a SQL Chaser: Real-World Use Cases for Autonomous...JSON, A Splash of SODA, and a SQL Chaser: Real-World Use Cases for Autonomous...
JSON, A Splash of SODA, and a SQL Chaser: Real-World Use Cases for Autonomous...Jim Czuprynski
 
SOURCE Boston --Attacking Oracle Web Applications with Metasploit & wXf
SOURCE Boston --Attacking Oracle Web Applications with Metasploit & wXfSOURCE Boston --Attacking Oracle Web Applications with Metasploit & wXf
SOURCE Boston --Attacking Oracle Web Applications with Metasploit & wXfChris Gates
 
Advanced t sql - querying and programming inside sql server
Advanced t sql - querying and programming inside sql serverAdvanced t sql - querying and programming inside sql server
Advanced t sql - querying and programming inside sql serverVinod Kumar
 
SQL200A Microsoft Access SQL Design
SQL200A Microsoft Access SQL DesignSQL200A Microsoft Access SQL Design
SQL200A Microsoft Access SQL DesignDan D'Urso
 
SSDT Workshop @ SQL Bits X (2012-03-29)
SSDT Workshop @ SQL Bits X (2012-03-29)SSDT Workshop @ SQL Bits X (2012-03-29)
SSDT Workshop @ SQL Bits X (2012-03-29)Gert Drapers
 

Was ist angesagt? (20)

Obia with odi
Obia with odiObia with odi
Obia with odi
 
Oracle sql developer_slides
Oracle sql developer_slidesOracle sql developer_slides
Oracle sql developer_slides
 
Hibernate in XPages
Hibernate in XPagesHibernate in XPages
Hibernate in XPages
 
Oracle 10g Form
Oracle 10g Form Oracle 10g Form
Oracle 10g Form
 
10g forms
10g forms10g forms
10g forms
 
Haj 4308-open jpa, eclipselink, and the migration toolkit
Haj 4308-open jpa, eclipselink, and the migration toolkitHaj 4308-open jpa, eclipselink, and the migration toolkit
Haj 4308-open jpa, eclipselink, and the migration toolkit
 
Databases & Microsoft SQL Server
Databases & Microsoft SQL ServerDatabases & Microsoft SQL Server
Databases & Microsoft SQL Server
 
Architecture and tools
Architecture and toolsArchitecture and tools
Architecture and tools
 
Hacking oracle using metasploit
Hacking oracle using metasploitHacking oracle using metasploit
Hacking oracle using metasploit
 
NLOUG 2017- Oracle WebCenter Portal 12c Performance
NLOUG 2017- Oracle WebCenter Portal 12c PerformanceNLOUG 2017- Oracle WebCenter Portal 12c Performance
NLOUG 2017- Oracle WebCenter Portal 12c Performance
 
Microsoft SQL Server internals & architecture
Microsoft SQL Server internals & architectureMicrosoft SQL Server internals & architecture
Microsoft SQL Server internals & architecture
 
Oracle no sql database bigdata
Oracle no sql database   bigdataOracle no sql database   bigdata
Oracle no sql database bigdata
 
JSON, A Splash of SODA, and a SQL Chaser: Real-World Use Cases for Autonomous...
JSON, A Splash of SODA, and a SQL Chaser: Real-World Use Cases for Autonomous...JSON, A Splash of SODA, and a SQL Chaser: Real-World Use Cases for Autonomous...
JSON, A Splash of SODA, and a SQL Chaser: Real-World Use Cases for Autonomous...
 
Sql Server 2012
Sql Server 2012Sql Server 2012
Sql Server 2012
 
FREE Sql Server syllabus
FREE Sql Server syllabusFREE Sql Server syllabus
FREE Sql Server syllabus
 
SOURCE Boston --Attacking Oracle Web Applications with Metasploit & wXf
SOURCE Boston --Attacking Oracle Web Applications with Metasploit & wXfSOURCE Boston --Attacking Oracle Web Applications with Metasploit & wXf
SOURCE Boston --Attacking Oracle Web Applications with Metasploit & wXf
 
Advanced t sql - querying and programming inside sql server
Advanced t sql - querying and programming inside sql serverAdvanced t sql - querying and programming inside sql server
Advanced t sql - querying and programming inside sql server
 
SQL200A Microsoft Access SQL Design
SQL200A Microsoft Access SQL DesignSQL200A Microsoft Access SQL Design
SQL200A Microsoft Access SQL Design
 
SSDT Workshop @ SQL Bits X (2012-03-29)
SSDT Workshop @ SQL Bits X (2012-03-29)SSDT Workshop @ SQL Bits X (2012-03-29)
SSDT Workshop @ SQL Bits X (2012-03-29)
 
ORACLE 9i
ORACLE 9iORACLE 9i
ORACLE 9i
 

Ähnlich wie Toad tipstricksexpertinsight

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 EditionJeff Smith
 
Add-On Development: EE Expects that Every Developer will do his Duty
Add-On Development: EE Expects that Every Developer will do his DutyAdd-On Development: EE Expects that Every Developer will do his Duty
Add-On Development: EE Expects that Every Developer will do his DutyLeslie Doherty
 
Add-On Development: EE Expects that Every Developer will do his Duty
Add-On Development: EE Expects that Every Developer will do his DutyAdd-On Development: EE Expects that Every Developer will do his Duty
Add-On Development: EE Expects that Every Developer will do his Dutyreedmaniac
 
Features, Exportables & You
Features, Exportables & YouFeatures, Exportables & You
Features, Exportables & Youjskulski
 
Yapc10 Cdt World Domination
Yapc10   Cdt World DominationYapc10   Cdt World Domination
Yapc10 Cdt World DominationcPanel
 
Engage 2020 - Best Practices for analyzing Domino Applications
Engage 2020 - Best Practices for analyzing Domino ApplicationsEngage 2020 - Best Practices for analyzing Domino Applications
Engage 2020 - Best Practices for analyzing Domino Applicationspanagenda
 
On non existent 0-days, stable binary exploits and
On non existent 0-days, stable binary exploits andOn non existent 0-days, stable binary exploits and
On non existent 0-days, stable binary exploits andAlisa Esage Шевченко
 
IBM Domino Designer: Tips and tricks for maximum productivity
IBM Domino Designer: Tips and tricks for maximum productivityIBM Domino Designer: Tips and tricks for maximum productivity
IBM Domino Designer: Tips and tricks for maximum productivitySocialBiz UserGroup
 
Esage on non-existent 0-days, stable binary exploits and user interaction
Esage   on non-existent 0-days, stable binary exploits and user interactionEsage   on non-existent 0-days, stable binary exploits and user interaction
Esage on non-existent 0-days, stable binary exploits and user interactionDefconRussia
 
DMann-SQLDeveloper4Reporting
DMann-SQLDeveloper4ReportingDMann-SQLDeveloper4Reporting
DMann-SQLDeveloper4ReportingDavid Mann
 
Software Qualitiy with Sonar Tool 2013_4
Software Qualitiy with Sonar Tool 2013_4Software Qualitiy with Sonar Tool 2013_4
Software Qualitiy with Sonar Tool 2013_4Max Kleiner
 
2.4 Optimizing your Visual COBOL Applications
2.4   Optimizing your Visual COBOL Applications2.4   Optimizing your Visual COBOL Applications
2.4 Optimizing your Visual COBOL ApplicationsMicro Focus
 
Rajnish singh(presentation on oracle )
Rajnish singh(presentation on  oracle )Rajnish singh(presentation on  oracle )
Rajnish singh(presentation on oracle )Rajput Rajnish
 
Way #5 Don’t end up in a ditch because you weren’t aware of roadblocks in you...
Way #5 Don’t end up in a ditch because you weren’t aware of roadblocks in you...Way #5 Don’t end up in a ditch because you weren’t aware of roadblocks in you...
Way #5 Don’t end up in a ditch because you weren’t aware of roadblocks in you...panagenda
 
My first powershell script
My first powershell scriptMy first powershell script
My first powershell scriptDavid Cobb
 
Uklug 2014 connections dev faq
Uklug 2014  connections dev faqUklug 2014  connections dev faq
Uklug 2014 connections dev faqMark Myers
 
Top Tips Every Notes Developer Needs To Know
Top Tips Every Notes Developer Needs To KnowTop Tips Every Notes Developer Needs To Know
Top Tips Every Notes Developer Needs To KnowKathy Brown
 

Ähnlich wie Toad tipstricksexpertinsight (20)

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
 
Add-On Development: EE Expects that Every Developer will do his Duty
Add-On Development: EE Expects that Every Developer will do his DutyAdd-On Development: EE Expects that Every Developer will do his Duty
Add-On Development: EE Expects that Every Developer will do his Duty
 
presentation
presentationpresentation
presentation
 
Add-On Development: EE Expects that Every Developer will do his Duty
Add-On Development: EE Expects that Every Developer will do his DutyAdd-On Development: EE Expects that Every Developer will do his Duty
Add-On Development: EE Expects that Every Developer will do his Duty
 
presentation
presentationpresentation
presentation
 
Features, Exportables & You
Features, Exportables & YouFeatures, Exportables & You
Features, Exportables & You
 
Yapc10 Cdt World Domination
Yapc10   Cdt World DominationYapc10   Cdt World Domination
Yapc10 Cdt World Domination
 
Engage 2020 - Best Practices for analyzing Domino Applications
Engage 2020 - Best Practices for analyzing Domino ApplicationsEngage 2020 - Best Practices for analyzing Domino Applications
Engage 2020 - Best Practices for analyzing Domino Applications
 
On non existent 0-days, stable binary exploits and
On non existent 0-days, stable binary exploits andOn non existent 0-days, stable binary exploits and
On non existent 0-days, stable binary exploits and
 
IBM Domino Designer: Tips and tricks for maximum productivity
IBM Domino Designer: Tips and tricks for maximum productivityIBM Domino Designer: Tips and tricks for maximum productivity
IBM Domino Designer: Tips and tricks for maximum productivity
 
Esage on non-existent 0-days, stable binary exploits and user interaction
Esage   on non-existent 0-days, stable binary exploits and user interactionEsage   on non-existent 0-days, stable binary exploits and user interaction
Esage on non-existent 0-days, stable binary exploits and user interaction
 
Oracle 12c Launch Event 01 JDeveloper Jonathan Damen and Marcel Oldenkamp
Oracle 12c Launch Event 01 JDeveloper Jonathan Damen and Marcel OldenkampOracle 12c Launch Event 01 JDeveloper Jonathan Damen and Marcel Oldenkamp
Oracle 12c Launch Event 01 JDeveloper Jonathan Damen and Marcel Oldenkamp
 
DMann-SQLDeveloper4Reporting
DMann-SQLDeveloper4ReportingDMann-SQLDeveloper4Reporting
DMann-SQLDeveloper4Reporting
 
Software Qualitiy with Sonar Tool 2013_4
Software Qualitiy with Sonar Tool 2013_4Software Qualitiy with Sonar Tool 2013_4
Software Qualitiy with Sonar Tool 2013_4
 
2.4 Optimizing your Visual COBOL Applications
2.4   Optimizing your Visual COBOL Applications2.4   Optimizing your Visual COBOL Applications
2.4 Optimizing your Visual COBOL Applications
 
Rajnish singh(presentation on oracle )
Rajnish singh(presentation on  oracle )Rajnish singh(presentation on  oracle )
Rajnish singh(presentation on oracle )
 
Way #5 Don’t end up in a ditch because you weren’t aware of roadblocks in you...
Way #5 Don’t end up in a ditch because you weren’t aware of roadblocks in you...Way #5 Don’t end up in a ditch because you weren’t aware of roadblocks in you...
Way #5 Don’t end up in a ditch because you weren’t aware of roadblocks in you...
 
My first powershell script
My first powershell scriptMy first powershell script
My first powershell script
 
Uklug 2014 connections dev faq
Uklug 2014  connections dev faqUklug 2014  connections dev faq
Uklug 2014 connections dev faq
 
Top Tips Every Notes Developer Needs To Know
Top Tips Every Notes Developer Needs To KnowTop Tips Every Notes Developer Needs To Know
Top Tips Every Notes Developer Needs To Know
 

Kürzlich hochgeladen

ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITYISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITYKayeClaireEstoconing
 
How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17Celine George
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxiammrhaywood
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPCeline George
 
Barangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptxBarangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptxCarlos105
 
Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Celine George
 
Judging the Relevance and worth of ideas part 2.pptx
Judging the Relevance  and worth of ideas part 2.pptxJudging the Relevance  and worth of ideas part 2.pptx
Judging the Relevance and worth of ideas part 2.pptxSherlyMaeNeri
 
Karra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxKarra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxAshokKarra1
 
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)lakshayb543
 
ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4MiaBumagat1
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for BeginnersSabitha Banu
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatYousafMalik24
 
Science 7 Quarter 4 Module 2: Natural Resources.pptx
Science 7 Quarter 4 Module 2: Natural Resources.pptxScience 7 Quarter 4 Module 2: Natural Resources.pptx
Science 7 Quarter 4 Module 2: Natural Resources.pptxMaryGraceBautista27
 
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTSGRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTSJoshuaGantuangco2
 
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Celine George
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...JhezDiaz1
 

Kürzlich hochgeladen (20)

ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITYISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
 
How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERP
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
Barangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptxBarangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptx
 
Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17
 
OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
Judging the Relevance and worth of ideas part 2.pptx
Judging the Relevance  and worth of ideas part 2.pptxJudging the Relevance  and worth of ideas part 2.pptx
Judging the Relevance and worth of ideas part 2.pptx
 
Karra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxKarra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptx
 
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
 
ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for Beginners
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice great
 
Science 7 Quarter 4 Module 2: Natural Resources.pptx
Science 7 Quarter 4 Module 2: Natural Resources.pptxScience 7 Quarter 4 Module 2: Natural Resources.pptx
Science 7 Quarter 4 Module 2: Natural Resources.pptx
 
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTSGRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
 
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptxYOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
 
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
 

Toad tipstricksexpertinsight

  • 1. © 2009 Quest Software, Inc. ALL RIGHTS RESERVED Toad Tips & Tricks for the PL/SQL Pro Tips & Tricks for Analysts, Developer and DBA’s Toad® for Oracle
  • 2. 2 Three Main Presentation Topics: • Basics for newbies and often even old hands • Advanced features for PL/SQL Developers • Advanced features for DBA’s
  • 3. 3 Part #1 • Basics for newbies and often even old hands
  • 4. 4 Which Toad Version Do I Have?
  • 5. 5 How Do I Upgrade my Toad Version? • You must be current on Toad maintenance contract • Then simply login and download from Quest Support – http://support.quest.com • You cannot: – Upgrade commercial using trial from web site – Upgrade commercial using trial from show DVD • What if I let my maintenance lapse? What can I do? – Contact sales – ask for options (all depends…)
  • 6. 6 I don’t like Toad’s Menus and Toolbars! Just like Microsoft Office, simply choose menu or toolbar and choose customize …
  • 7. 7 Drag-and-Drop: •Existing toolbar icons and/or menu items around (reorganize) •Existing toolbar icons and/or menu items to Customize Window (remove) •Customize Window toolbar text/icons to toolbar and/or menu location (add)
  • 8. 8 Toad does not work the way I want! Always check Toad Options •Can Toad do this … •Can Toad work this way … •Can Toad look like this … •How do I customize Toad
  • 9. 9 Ten Years of Options – and Growing …
  • 10. 10
  • 11. 11 What is Toad Doing? How does it do that? Built-In Method Stand-Alone EXE SQLMonitor.exe
  • 12. 12
  • 13. 13
  • 14. 14 Toad Seems Slow or Slower Than Before? Speed Up Toad - Updated http://www.toadworld.com/Community/Blogs/tabid/67/EntryID/274/Default.aspx Speed Up Toad http://www.toadworld.com/Community/Blogs/tabid/67/EntryID/162/Default.aspx Toad Sometimes Slow on Oracle 10g http://www.toadworld.com/Community/Blogs/tabid/67/EntryID/135/Default.aspx
  • 15. 15
  • 16. 16 Toad Crashed – How do I troubleshoot? http://support.quest.com Your Toad Options settings
  • 17. 17 Toad (like Keebler Cookies) has Elves !!! When Toad screen or utility crashes, the Delphi code traps the error and pops-up the special “Elf” error dialog screen This is critical – do not just say OK and close the screen Choose “click here” to see more info …
  • 18. 18 Toad.ini file + Support Bundle file + Toad.elf file = much better chance finding bug or user error
  • 19. 19
  • 21. 21
  • 22. 22
  • 23. 23 Hard to see on printed slides, but adds a color border around the entire window too
  • 24. 24 Of the more often used screens, Toad Schema Browser is probably the most user configurable
  • 25. 25 Left Hand Side (LHS) Right Hand Side (RHS) Refresh all LHS objects Refresh current or focused LHS object Refresh current or focused RHS details
  • 26. 26
  • 27. 27
  • 28. 28
  • 29. 29
  • 30. 30 In Tree-View mode, Toad basically looks and feels just like other tools, such as: • SQL Navigator • PL/SQL Developer • SQL Developer
  • 31. 31
  • 32. 32
  • 33. 33 Now I have a Schema Browser that fits my specific job needs, with no excess stuff displayed and no over crowding! But not quite done just yet ☺☺☺☺
  • 34. 34
  • 35. 35 Now Schema Browser is “just right” ☺☺☺☺
  • 36. 36 Did you notice that the Funnel icon is red instead of grey? What does that mean? Always notice Funnel color! Common object operations on the LHS toolbar, and all object operations available via right-hand-mouse menu
  • 37. 37
  • 38. 38 There’s also the “Quick Filter” Accepts standard wildcards (*) Accepts database wildcards (%)
  • 40. 40 Instantly jumps from EMPLOYEE table to the EMPLOYEE_PK index (i.e. it automatically changes the focus or navigates to “Indexes” tab with the specific index in focus or preselected)
  • 41. 41
  • 42. 42
  • 43. 43
  • 44. 44
  • 45. 45
  • 46. 46 To delete all saved schema browser layout settings …
  • 47. 47
  • 48. 48
  • 50. 50 Part #2 • Advanced features for developers
  • 51. 51 Editor 201 • Code Insight – Object name completion (CNTRL + Period) – Column Popup (Multi-Select!) – PL/SQL Completion – Too ‘Mr. Clippy’ for your tastes? Disable the feature!
  • 52. 52 Editor 201 • SQL Recall – Use Named SQL for super fast recall. – ALT + Up/Dn to scroll through history recall list • Code Snippets – If..Then..Elsif.. – Exceptions – Cursor For Loop – Your custom code
  • 53. 53 Split Editor • Work with multiple sections of your file simultaneously – Left/Right – Top/Bottom
  • 54. 54 Editor 201 • Make/Strip Code – Translate Delphi, Java, C++, Perl, C#, VB, etc to SQL – Translate SQL to Delphi, Java, … – Write your own custom Code Transformation Templates
  • 55. 55 Editor 201 • Keyboard Shortcuts – Check your options! • Customize Toolbars – Hate Toad’s 80 gazillion buttons and toolbars? TURN THEM OFF ☺
  • 56. 56 Editor 201 • Debugger – Conditional Breakpoints – Use Watches to change variable values and as breakpoints – Step into TYPE Body – Supports DML Triggers – Toad can now write your DBMS_OUTPUT instrumentation code for you!
  • 57. 57 External Debugging • Debug a session that is spawned from a remote application or service. • Step thorough your code and view the data as it was initialized somewhere else in the world. • Your application’s session sets a DEBUG Flag with a named Identifier • You tell Toad which session to grab. Toad automatically steps into the code.
  • 58. 58 Editor 201 • Never build a DBMS_OUTPUT statement manually ! – Right-click – Output Statements • Find a matching END IF, END or ) using bracketing • Code Folding • Code Refactoring
  • 59. 59 Code Road Map – Document and Create Local Test/Development Environments – 1 Click! • Diagram Views & PL/SQL Objects – Generate Test Data – Generate DDL Scripts – Build HTML Reports
  • 60. 60 PL/SQL Profiler (DBMS_ & Hierarchical Support) • Find out which lines take longer to run than others. • Identify execution bottlenecks • Figure out what needs tuning Integrated with the Editor for instant analysis. Graphs for quicker identification.
  • 61. 61 PL/SQL Execution – View Collections • Return Values & Out Parameters for your PL/SQL – let Toad build DMBS_OUPUT for you • Example – A 2 Dimensional PL/SQL Table Package Function that returns a PL/SQL Table.
  • 62. 62 PL/SQL Execution – View REF Cursors • Does your PL/SQL return a REF Cursor? Let Toad put it into a Data Grid for you.
  • 63. 63 3rd Party Source Code Control Integration • CVS • MSFT TFS 2005, 2008, 2010 • MSFT Visual Source Safe • Perforce • PVCS (Serena) • Subversion Control files or additionally control objects in the database via Toad’s Team Coding Feature
  • 64. 64 CodeXpert – let Toad review your code before your peers laugh at you ☺ • Analyzes your code against Best Practices rules developed by Steven Feuerstein, Bert Scalzo, and Quest’s Oracle experts. Explains why your code is flagged and gives advice for better implementations. Can identify SQL that needs Optimized.
  • 65. 65 Ok, you’ve written some kick-butt PL/SQL, but does it work?• Quest’s latest PL/SQL tool automatically tests your PL/SQL for correctness. Step 1: Tell Code Tester what your program does in PLAIN ENGLISH
  • 66. 66 Code Tester for Oracle Writes the Test Code For You! Step 2: Sit back and relax as Code Tester generates your test code.
  • 67. 67 Run your tests on demand to see what your programs DO and DO NOT accomplish. Step 3: Analyze the results. RED = BAD. See the Expected VS Actual Results.
  • 68. 68 Test Performance/Scalability • Your stored procedure runs OK for 1 user, how will it handle 10? 50? 100? • Toad can answer that question, track response time to user load
  • 69. 69 Part #3 • Advanced features for DBA’s
  • 71. 71
  • 72. 72
  • 73. 73
  • 74. 74
  • 75. 75
  • 76. 76
  • 77. 77
  • 78. 78 Subset of Schema Browser for those objects not owned by a schema (i.e. public owner or simply just no owner)
  • 80. 80 Often you go into a Toad screen to set some settings, push exec, and have something happen (perform work) … Toad has for a long time had a way to capture those settings and then let you repeat work that from command line … But old way had problems, and was not everywhere … So we’re working on replacing the old command line method with a cool, new Toad Application Designer. Think of it as a macro record and playback facility … Toad 9.6 started this effort – was called actions … Toad 9.7 revised the approach – now called App Designer
  • 81. 81 Some screens still not converted to app designer … Look for open folder and floppy disk icons … These are for load and save screen settings … Notice no camera icon in bottom left corner (new method)
  • 82. 82
  • 83. 83
  • 84. 84
  • 85. 85
  • 86. 86
  • 87. 87
  • 88. 88
  • 89. 89
  • 90. 90 Now you can automate tasks and program dependencies and iterations, with conditional logic and anything else you can imagine and program ☺☺☺☺
  • 91. © 2009 Quest Software, Inc. ALL RIGHTS RESERVED Thank youThank you Questions?you