Plsql+tips+n+tricks+2011

  • 3,404 views
Uploaded on

Toad empowers the PL/SQL professional. Get more out of Toad!

Toad empowers the PL/SQL professional. Get more out of Toad!

More in: Technology
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
No Downloads

Views

Total Views
3,404
On Slideshare
0
From Embeds
0
Number of Embeds
2

Actions

Shares
Downloads
95
Comments
0
Likes
1

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

Transcript

  • 1. Toad Tips & Tricks for the PL/SQL Pro
    Toad® for Oracle
    Tips & Tricks for the PL/SQL Professional
  • 2. Editor 201
    Code Insight
    Object name completion (CNTRL + Period)
    Column Popup (Multi-Select!)
    PL/SQL Completion
    Too ‘Mr. Clippy’ for yourtastes? Disable thefeature!
    VS
  • 3. 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
  • 4. Split Editor
    • Work with multiple sections of your file simultaneously
    • 5. Left/Right
    • 6. Top/Bottom
  • 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
  • 7. Editor 201
    Keyboard Shortcuts
    Check your options!
    Customize Toolbars
    Hate Toad’s 80 gazillion buttons and toolbars? TURN THEM OFF 
  • 8. 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!
  • 9. 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
    • 10. You tell Toad which session to grab. Toad automatically steps into the code.
  • 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
  • 11. Code Road Map – Document and Create Local Test/Development Environments – 1 Click!
    • Diagram Views & PL/SQL Objects
    • 12. Generate Test Data
    • 13. Generate DDL Scripts
    • 14. Build HTML Reports
  • 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.
  • 15. 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.
  • 16. PL/SQL Execution – View REF Cursors
    Does your PL/SQL return a REF Cursor? Let Toad put it into a Data Grid for you.
  • 17. 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
  • 18. 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.
  • 19. 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
  • 20. Code Tester for Oracle Writes the Test Code For You!
    Step 2: Sit back and relax as Code Tester generates your test code.
  • 21. 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.
  • 22. 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
  • 23. Thank you
    Thank you
    Questions?you