Tips and Tricks for Toad

Embed Size (px)


Тренинг для продвинутых разработчиков и администраторов Oracle. Посвящен самому известному и распространенному на планете инструменту для разработки, тестирования, управления и оптимизации баз данных и приложений для СУБД - продукту Toad от Dell Software.

Text of Tips and Tricks for Toad

  • 1. Toad for Oracle Martin Rapetti Business Development Manager

2. 2 Confidential Database Performance Monitoring Agenda Toad For Oracle Toad for Developers Toad for Database Administrators Oracle Database Monitoring & Performance Diagnostics Foglight for Oracle 3. 3 Confidential Emerging Markets TOAD 4. 4 Confidential Emerging Markets Toad Toad is a comprehensive database tool for development and administration that enables you to perform daily tasks efficiently and accurately. It has grown over the past 15 years into the most advanced and widely-used tool of its kind. Toad provides tremendous value to DBAs, Developers, Development Managers and Analysts by providing the following key functions: Browse multiple Oracle databases and view and administer database and schema objects efficiently Write, debug and tune code accurately Smooth workflow allows users to easily move from one task to another Tasks can be automated and scheduled Extensive reporting capabilities deliver quantifiable data and documentation Toad World community membership for access to Toad resources and expertise 5. Oct. 1998 v5 Initial Quest release. Yahoo! Groups and established June 1999 v6.1 Already has 70 distinct screens Feb. 2000 v6.3 Debugger, SQL Modeler, Oracle 8 object support Dec. 2000 v6.5 DBA Module April 2001 v7.0 Toad Reports May 2003 v7.5 Team Coding, Data Grid support for advanced data types Toad for Oracle Release History July 2004 v8.0 XML Support, Code Xpert, Script Debugger, Rebrand to Toad for Oracle June 2005 v8.5 JIT debugging, Citrix, RAC and enhanced 10g support Oct. 2006 v9.0 Merged Editor, improved Code Xpert integration, ADM, ADDM AWR Mgmt. Nov. 2007 v9.5 Integration with SQL Optimizer v7.2, Debugger, Profiler, Code Xpert updates, StatsPack Browser, Oracle 11g support Sept. 2008 v9.7 Data Generator, RMAN scripts, Trace File Browser, Subversion support, Toad AppDesigner, StatsPack and AWR Advisories October 2009 v10.0 Unicode Support, Data Generator, new Data Grids, Improved ERD multi-tasking, enhanced Health Check, New Licensing system Dec. 2009 v10.1 Toad Data Modeler included with all Toad for Oracle Editions, 11gR2 support, more automation April 2010 v10.5 Enhanced Editor, more automation, Auto Optimize, DBMS_ OUTPUT debug, TFS support, improved CRM RAC in Health, contextual Spotlight integration Sept. 2010 v10.6 Performance improvements, enhanced Editor and Code Road Map, Actions in Project Manager, Toad Idea Pond, Support for TFS 2010 and Perforce Sept. 2011 v11.0 New Code Analysis, Editor productivity updates, enhanced DB Health Check, production DB protection, improved reporting April 2012 v11.5 Enhanced Query Builder, Code Analysis with custom rules and naming conventions, APEX support, Exadata Health Checks and community collaboration Oct 2012 v11.6 Code Analysis enhancements Enhanced Code Tester for Oracle integration, Reports and Documentation localized in East Asian Languages Web application for remote script execution Cloud based script sharing Jun 2013 v12.0 Forum window with Connected Intelligence Jump search Multiple Schema Compare & Sync Team Coding enhancements Windows 8 Oracle 8i Oracle 9i Oracle 10g R1 (Nov. 2003) Oracle 10g R2 Oracle 11g R1 (June 2007) Oracle 11g R2 6. 6 Confidential Emerging Markets Toad for Oracle Toad for Oracle is a productivity toolset that provides efficient and accurate development and administration to Oracle database professionals of all skill and experience levels. It is the most widely-used tool of its kind on the market. Which version is right for me Toad for Oracle Freeware ( available from ) Toad for Oracle BASE edition Toad for Oracle Professional edition Toad for Oracle Xpert edition ( includes SQL Optimizer for Oracle ) Toad for Oracle Development Suite Toad for Oracle DBA Suite ( Exadata, RAC and non-RAC versions available ) 7. Recommended Toad edition by job function Analyst Application Developer PL/SQL Developer Database Administrator BI Suite Xpert Edition Development Suite DBA Suite An integrated solution that improves decision making by enabling users to fully leverage their BI environments and corporate information. Build code with a focus on ensuring standardization and that the most optimal code possible is being used. Employ a best-practices approach to database development, which encompasses code quality, performance and maintainability. Includes Toad Data Modeler and SQL Optimizer for Oracle A complete productivity toolset that automates maintenance, boosts performance and Mitigates the risks associated with changes. Includes Toad for Oracle Xpert plus Benchmark Factory and Code Tester for Oracle Includes Toad for Oracle Xpert, Spotlight on Oracle, Benchmark Factory and Backup Reporter (RAC and Exadata Editions avail.) Includes Toad Data Point, Toad Decision Point and Intelligence Central 8. Help guarantee application success by employing a database development best practices methodology that encompasses code quality, performance and maintainability. Ensure high quality code is delivered to production Maximize SQL performance, to reduce bottlenecks and avoid service interruptions Reduce maintenance costs through coding standards and testing Collaborate among team members and leverage their expertise and existing work Maximize productivity to meet deadlines through automation, templates and intuitive interfaces Toad for Developers 9. 11 Confidential Emerging Markets Toad for Oracle Xpert Edition (includes Quest SQL Optimizer for Oracle): Ensure efficient & accurate development, utilising a best practices workflow & validate database code for the best-possible performance Quest Code Tester for Oracle : Perform thorough, automated functional code testing Benchmark Factory for Databases Oracle Edition: Validate code against performance SLAs and test code for performance and scalability before deployment Toad Data Modeler : visually create database structures and provide documentation or make changes to existing models Toad Development Suite 10. 12 Confidential Emerging Markets Demo SQL Profiles 11. 13 Confidential Emerging Markets QCTO is a tool that automates the process of building & running tests for Oracle PL/SQL program units Rather than write test code & manually verify results, you describe the expected behaviours of a program QCTO stores those behaviours as test cases in a repository It generates the test code as a PL/SQL package It runs your tests & automatically verifies results Code Tester for Oracle 12. 14 Confidential Emerging Markets CREATE OR REPLACE FUNCTION betwnstr ( string_in IN VARCHAR2 , start_in IN PLS_INTEGER , end_in IN PLS_INTEGER , inclusive_in IN BOOLEAN DEFAULT TRUE ) RETURN VARCHAR2 DETERMINISTIC IS BEGIN RETURN (SUBSTR (string_in, start_in, end_in - start_in +1)); END; Code Tester for Oracle SUBSTR 13. 15 Confidential Emerging Markets Look deeper at what we have string_in start_in end_in abcdefg 2 4 abcdefg 2 100 abcdefg 0 4 NULL 2 4 abcdefg -1 -4 abcdefg 3 NULL Are you thinking. What are the expected outcomes ? Code Tester for Oracle SUBSTR 14. 16 Confidential Emerging Markets Code Tester for Oracle Things to notice I specify what my program should do I do not write any test code Code Tester tells me where/if my code fails to work as expected I can re-run the tests whenever needed Ref : 15. Toad for DBAs Improve operational efficiency to lower costs through a systematic approach that automates maintenance, ensures optimal performance and mitigates the impact of planned changes. Ensure maintainability through task automation, reducing the risk of inconsistencies Maximize performance by accurately diagnosing and efficiently resolving inefficiencies Understand the impact of changes to reduce risk before deployment Work more productively and be more proactive with workflow automation, consistent processes and greater accuracy 16. 26 Confidential Emerging Markets Toad for Oracle Xpert Edition (includes Quest SQL Optimizer for Oracle) simplify database administration through task automation and validate code to ensure the best-possible performance Toad DB Admin Module compare and synchronize database schema, objects and data and assess your risk for security vulnerabilities Spotlight on Oracle visualize database components in real time and pinpoint performance problems quickly so you can easily eliminate bottlenecks Benchmark Factory for Databases (Oracle Edition) replay database workload to test performance under production-like conditions or run standard benchmarks like TPC-H , Scalable Hardware, etc Backup Reporter for Oracle Shows the status of your RMAN backups across all the managed databases Toad Data Modeler visually create database structures and provide documentation or make changes to existing models Toad for Oracle DBA Suite 17. 27 Confidential Emerging Markets Demo SQL Profiles 18. 30 Confidential Emerging Markets Backup Reporter for Oracle ( added to DBA Suite 11.5 ) Read-only reporting tool for reporting on the status of your RMAN backups across all the managed databases as well as providing reports, health check advisories & policy violations 19. 36 Confidential Emerging Markets Use Toad World realize the power of connected intelligence Login to the newly-redesigned Toad World community Connect with peers and world-renowned subject-matter experts Share knowledge and become one of the experts Get help and access resources from inside Toad for Oracle 20. Foglight Database Monitoring for Oracle 21. 38 Confidential Database Performance Monitoring Challenges that Customers Face with Database Performance Monitoring Database Administrators and Managers are challenged with establishing consistent visibility across heterogen