Toad for Oracle 10.5. Writen by John Pocknell, Product Manager Quest Software TECHNICAL BRIEF

Similar documents
An Introduction to Toad Extension for Visual Studio. Written By Thomas Klughardt Systems Consultant Quest Software, Inc.

Go Beyond Basic Up/Down Monitoring

Direct Migration from SharePoint 2003 to SharePoint 2010

10.2. Auditing Cisco PIX Firewall with Quest InTrust

Toad for Oracle Compatibility with Windows 7 Revealed

Quest Management Agent for Forefront Identity Manager

Secure and Efficient Log Management with Quest OnDemand

Using Stat with Custom Applications

6.0. Planning for Capacity in Virtual Environments Reference Guide

Quest ChangeAuditor 5.0. For Windows File Servers. Events Reference

Taking Unix Identity and Access Management to the Next Level

Foglight for SQL Server

Eight Best Practices for Identity and Access Management

Migrating Your Applications to the Cloud

Proactive Performance Management for Enterprise Databases

Key Methods for Managing Complex Database Environments

2007 Quest Software, Inc. ALL RIGHTS RESERVED. TRADEMARKS. Disclaimer

Enterprise Single Sign-On Installation and Configuration Guide

Six Steps to Achieving Data Access Governance. Written By Quest Software

Enterprise Single Sign-On 8.0.3

An Innovative Approach to SOAP Monitoring. Written By Quest Software

Quest One Privileged Account Appliance

Quest Application Performance Monitoring Implementation Methodology

How to Use Custom Site Templates and Definitions supporting Corporate look-and-feel

Top Seven Tips and Tricks for Group Policy in Windows 7

Top Five Reasons to Choose Toad Over SQL Developer

How to Use Custom Site Templates and Definitions supporting Corporate look-and-feel

The Case for Quest One Identity Manager

6.5. Web Interface. User Guide

Foglight Foglight Experience Viewer (FxV) Upgrade Field Guide

2009 Quest Software, Inc. ALL RIGHTS RESERVED. Trademarks. Disclaimer

Foglight for Oracle. Managing Oracle Database Systems Getting Started Guide

The Active Directory Recycle Bin: The End of Third-Party Recovery Tools?

for Oracle User Guide

Foglight. Dashboard Support Guide

Foglight Managing SQL Server Database Systems Getting Started Guide. for SQL Server

Benchmark Factory for Databases 6.5. User Guide

Foglight Managing SQL Server Database Systems Getting Started Guide. for SQL Server

Are You Spending More than You Realize on Active Directory Management?

FOR WINDOWS FILE SERVERS

Quest Support: vworkspace Troubleshooting Guide. Version 1.0

Quest ChangeAuditor 5.1 FOR ACTIVE DIRECTORY. User Guide

Protecting and Auditing Active Directory with Quest Solutions

Toad for Oracle Tips and Tricks

Quest SQL Optimizer 6.5. for SQL Server. Installation Guide

Achieving ISO/IEC Compliance with Quest One Solutions for Privileged Access. Written By Quest Software, Inc.

ChangeAuditor 5.6. For Windows File Servers Event Reference Guide

formerly Help Desk Authority Quest Free Network Tools User Manual

2010 Quest Software, Inc. ALL RIGHTS RESERVED. Trademarks. Third Party Contributions

4.0. Offline Folder Wizard. User Guide

Implementing Database Development Best Practices for Oracle

Exchange 2010 and Your Audit Strategy

The Quest Cloud Automation Platform

Best Practices for SharePoint Development and Customization

Foglight. Foglight for Virtualization, Free Edition Installation and Configuration Guide

Defender Delegated Administration. User Guide

Quest ChangeAuditor 4.8

Migrating Lotus Notes Applications to Microsoft Office 365 and SharePoint Online

Moving to the Cloud : Best Practices for Migrating from Novell GroupWise to Microsoft Exchange Online Standard

Quick Connect Express for Active Directory

formerly Help Desk Authority HDAccess Administrator Guide

ChangeAuditor 6.0 For Windows File Servers. Event Reference Guide

The Top 10 Things DBAs Should Know About Toad for IBM DB2

Quest One Password Manager

Enterprise Single Sign-On Getting Started with SSOWatch

Identifying Problematic SQL in Sybase ASE. Abstract. Introduction

Spotlight on Messaging. Evaluator s Guide

Foglight. Managing Java EE Systems Supported Platforms and Servers Guide

Foglight. Managing Hyper-V Systems User and Reference Guide

Foglight Cartridge for Active Directory Installation Guide

Foglight. Foglight for Virtualization, Enterprise Edition 7.2. Virtual Appliance Installation and Setup Guide

Spotlight Management Pack for SCOM

2.0. Quick Start Guide

System Requirements and Platform Support Guide

Go beyond basic up/down monitoring

formerly Help Desk Authority Upgrade Guide

Spotlight Management Pack for SCOM

Quest SQL Optimizer. for Oracle 8.0. User Guide

Customer evaluation guide Toad for Oracle v12 Database administration

Unified and Intelligent Identity and Access Management

Quest ActiveRoles Server

Quest Software Product Guide

ActiveRoles 6.8. Web Interface User Guide

Security Analytics Engine 1.0. Help Desk User Guide

Transcription:

Toad for Oracle 10.5 Writen by John Pocknell, Product Manager Quest Software TECHNICAL BRIEF

2010 Quest Software, Inc. ALL RIGHTS RESERVED. This document contains proprietary information protected by copyright. No part of this document may be reproduced or transmitted in any form or by any means, electronic or mechanical, including photocopying and recording for any purpose without the written permission of Quest Software, Inc. ( Quest ). The information in this document is provided in connection with Quest products. No license, express or implied, by estoppel or otherwise, to any intellectual property right is granted by this document or in connection with the sale of Quest products. EXCEPT AS SET FORTH IN QUEST'S TERMS AND CONDITIONS AS SPECIFIED IN THE LICENSE AGREEMENT FOR THIS PRODUCT, QUEST ASSUMES NO LIABILITY WHATSOEVER AND DISCLAIMS ANY EXPRESS, IMPLIED OR STATUTORY WARRANTY RELATING TO ITS PRODUCTS INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT. IN NO EVENT SHALL QUEST BE LIABLE FOR ANY DIRECT, INDIRECT, CONSEQUENTIAL, PUNITIVE, SPECIAL OR INCIDENTAL DAMAGES (INCLUDING, WITHOUT LIMITATION, DAMAGES FOR LOSS OF PROFITS, BUSINESS INTERRUPTION OR LOSS OF INFORMATION) ARISING OUT OF THE USE OR INABILITY TO USE THIS DOCUMENT, EVEN IF QUEST HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. Quest makes no representations or warranties with respect to the accuracy or completeness of the contents of this document and reserves the right to make changes to specifications and product descriptions at any time without notice. Quest does not make any commitment to update the information contained in this document. If you have any questions regarding your potential use of this material, contact: Quest Software World Headquarters LEGAL Dept 5 Polaris Way Aliso Viejo, CA 92656 www.quest.com email: legal@quest.com Refer to our Web site for regional and international office information. Trademarks Quest, Quest Software, the Quest Software logo, AccessManager, ActiveRoles, Aelita, Akonix, AppAssure, Benchmark Factory, Big Brother, BridgeAccess, BridgeAutoEscalate, BridgeSearch, BridgeTrak, BusinessInsight, ChangeAuditor, ChangeManager, Defender, DeployDirector, Desktop Authority, DirectoryAnalyzer, DirectoryTroubleshooter, DS Analyzer, DS Expert, Foglight, GPOADmin, Help Desk Authority, Imceda, IntelliProfile, InTrust, Invirtus, itoken, I/Watch, JClass, Jint, JProbe, LeccoTech, LiteSpeed, LiveReorg, LogADmin, MessageStats, Monosphere, MultSess, NBSpool, NetBase, NetControl, Npulse, NetPro, PassGo, PerformaSure, Point,Click,Done!, PowerGUI, Quest Central, Quest vtoolkit, Quest vworkspace, ReportADmin, RestoreADmin, ScriptLogic, Security Lifecycle Map, SelfServiceADmin, SharePlex, Sitraka, SmartAlarm, Spotlight, SQL Navigator, SQL Watch, SQLab, Stat, StealthCollect, Storage Horizon, Tag and Follow, Toad, T.O.A.D., Toad World, vautomator, vcontrol, vconverter, vfoglight, voptimizer, vranger, Vintela, Virtual DBA, VizionCore, Vizioncore vautomation Suite, Vizioncore vbackup, Vizioncore vessentials, Vizioncore vmigrator, Vizioncore vreplicator, WebDefender, Webthority, Xaffire, and XRT are trademarks and registered trademarks of Quest Software, Inc in the United States of America and other countries. Other trademarks and registered trademarks used in this guide are property of their respective owners. Updated May 2010 Technical Brief: Toad for Oracle 10.5 2

Contents Abstract... 4 Introduction... 5 Recap of Recent Product Updates... 6 Toad for Oracle v10.5 Developer Functionality... 7 Enhanced Predictive Editing (All Toad Editions)... 7 New Code Road Map (All Toad Editions)... 8 Adding PL/SQL Objects to Code Road Map... 9 Additional Features of Code Road Map... 9 Auto Debugger (All Toad Editions)... 10 Enhanced Code Refactoring (All Toad Editions)... 10 New SQL Auto Optimize (Toad Xpert Edition and Suites)... 12 Toad for Oracle 10.5 DBA Functionality... 14 Compare Databases (DB Admin Module Add-on)... 16 Database Health Check Enhancements (DB Admin Module Add-on)... 17 Contextual Spotlight on Oracle Integration (Toad DBA Suite for Oracle)... 18 Toad for Oracle v10.5 Functionality for Everyone... 20 Session Browser Enhancements (All Toad Editions)... 20 NEW SQL Tracker (Client-only Version in All Editions; Server Version in Xpert Edition and Suites)... 20 Automation Designer Enhancements (All Toad Editions)... 22 Additional Data Grid Enhancements (All Toad Editions)... 23 Product Releases for Other Toad for Oracle Solutions... 25 Toad for Oracle Resources... 26 About the Author... 27 About Quest Software, Inc.... 28 Technical Brief: Toad for Oracle 10.5 3

Abstract This technical brief explains many of the key new features and enhancements in Toad for Oracle v10.5. Technical Brief: Toad for Oracle 10.5 4

Introduction Toad for Oracle v10.5 adds new features and enhances many existing ones. These changes are designed to save you time, increase accuracy and give you better visibility of your work environment whether you re a developer working in an unfamiliar database or maintaining legacy code, or a DBA trying to manage multiple databases. Toad 10.0 marked the beginning of a new generation of Toad releases which offer significant productivity improvements to developers, DBAs and analysts moving forward. If I were to sum-up the core characteristics of what the Toad 10 generation is about, I would say: 1. Usability Enables you to discover more of Toad s features and ensures the tasks you do offer maximum productivity and follow a logical workflow. 2. Automation Provides you with even more capabilities to maximize productivity by creating and using automated workflow from regular tasks performed in Toad. 3. Education Enables you to discover a huge range of services related to Toad which will both extend your current knowledge of Toad and provide expert help when needed, thus helping you get maximum value from your investment in Toad. 4. Flexibility Extends the use of Toad into regions where different character sets are used, and provides a much simpler, coherent licensing mechanism. Technical Brief: Toad for Oracle 10.5 5

Recap of Recent Product Updates In December 2009, Quest launched a minor release of Toad for Oracle (10.1) featuring support for Oracle 11g R2 and Windows 7, as well as an upgraded version of the Spotlight on Oracle component for Toad DBA Suite users. This component provides predictive diagnostics functionality, Spotlight on Unix/Linux and Spotlight on Windows at no extra cost. Additionally, Toad for Oracle v10.1 provides free use of Quest's data modeling tool, Toad Data Modeler, in addition to Toad for Data Analysts, for querying and data modeling that supports multiple database platforms. Toad Data Modeler integrates with the ER Diagram feature in Toad to enable schema objects to be reverse engineered into a physical data model. Quest also released the Toad DBA Suite for Oracle - RAC Edition in January 2010. This suite is specifically targeted for DBAs who manage Oracle RAC environments and includes Spotlight on RAC. Technical Brief: Toad for Oracle 10.5 6

Toad for Oracle v10.5 Developer Functionality Enhanced Predictive Editing (All Toad Editions) The Editor is perhaps one of the most popular windows in Toad, especially among developers. Because high productivity is vital in this window, we've enhanced Code Insight, the feature that provides suggestions as to what to type next, based on context. Specifically, Code Insight has been expanded to show code tokens and variables or parameters. The tokens, variables and parameters are automatically invoked or can be manually invoked using Crtl+. or Crtl+T. To enable the automatic display of a list, in the main Toad Options window, under Editor Code Assist Toad Insight Objects, check the Expected Tokens box. You may also check the Available Variables/Parameters box. As you start to type, Toad will present a list of the most logical entries from which you can select one. This will enable you to productively compose code even if you re unfamiliar with the environment. Figure 1. Keyword and object name auto-lookup Code Insight is particularly valuable for writing and maintaining PL/SQL code. Within the scope of a block of code, Code Insight will offer a list of parameters and variables you can select from. Figure 2. Auto-lookup of parameters and variables in code There are also some additional keystrokes related to using the new Code Insight: Spacebar Adds the selected item from the list with a space after the character. (Period) Adds a period with the chosen selection; e.g., SCOTT. ( (Open Parenthesis) Adds a ( with the chosen selection; e.g., Var_5( Technical Brief: Toad for Oracle 10.5 7

Tab Fills search values containing names that start with the same characters; e.g., "QUEST_" Shift+Ctrl+T Presents the picklist with no alias When making a call to an unfamiliar program, you can invoke its arguments from the open parentheses "(". Figure 3. The list of arguments is automatically displayed. New Code Road Map (All Toad Editions) To minimize coding and other errors typically associated with an incomplete understanding of PL/SQL code inter- dependencies or relationships to other objects in the schema, developers need a simple way to graphically visualize and create reports for this information. The new Code Road Map provides far more capabilities than its predecessor, particularly when it comes to graphical manipulation and reporting. It offers features similar to those now available in the ER Diagram introduced in Toad 10.0. Figure 4. New Code Road Map showing PL/SQL code and other dependent schema objects Technical Brief: Toad for Oracle 10.5 8

Adding PL/SQL Objects to Code Road Map There are a number of ways to include or add schema objects to Code Road Map: Using the Toad Toolbar menu From the menu by choosing Database Report CRM SB drag-and-drop (only for Packages, Types, Functions, Procedures, Tables, Views, Materialized Views, Triggers and Synonyms) Object Palette drag-and-drop (only for Tables Views, Materialized Views and Synonyms) Schema Browser right click (opens in new CRM instance) Additional Features of Code Road Map Zoom, Pan, Loupe and Fit-to-View are all available for maximum flexibility when working with large schemas. In addition, a grid can be displayed with objects being snapped-to-grid or aligned to each other to enable excellent close-up work as well. There is also an Autolayout button. You can display the properties of objects directly in the diagram using the F4 function key, and you can right-click an object and view the Schema Browser right-click menu on the fly if you need to perform a task such as Alter Table. You can add notes and a title block for additional documentation. Toad for Oracle v10.5 also includes a Category feature, allowing different groups of objects to be assigned a unique color (for example, by functional area). For printing purposes, multiple formats are supported up to A3 size, and there is a fit-to-page feature. Workspaces allow specific parts of an application to be drawn separately when that is conve connections to the main diagram remain. nient, but the Diagrams can be exported into bmp, png and jpeg formats and reports can be generated in HTML or RTF format. The HTML diagram is hyperlinked so you can view object details simply by clicking on the object in the diagram. You can also automatically zip and add reports as an email attachment by opening your Windows Outlook client. Figure 5. Example of an HTML report showing code dependencies Technical Brief: Toad for Oracle 10.5 9

Auto Debugger (All Toad Editions) Many PL/SQL developers still prefer the "old fashioned" DBMS_OUTPUT form of debugging instead of the debugging offered by most IDEs. For those users, we ve provided a way of automating the generation of DBMS_OUTPUT.PUT_LINE statements by parsing the code and injecting statements wherever variables in the code are used. Output messages generated using this method are displayed in a separate tab in the DBMS_OUTPUT panel. Figure 6. PL/SQL function with auto-generated DBMS_OUTPUT statements Enhanced Code Refactoring (All Toad Editions) Code refactoring is the process of improving the design of the code without affecting its overall behavior. In Toad for Oracle v10.5, all refactoring methods are now presented from the Toad Editor s right-click menu in their own group, Refactor. Technical Brief: Toad for Oracle 10.5 10

Figure 7. Refactoring your PL/SQL code Plus, there are two new refactoring methods: Find Unused Variables and Rename Identifier. Find Unused Variables locates variables that are no longer used in your code: Rename Identifier renames all occurrences of a selected identifier within the same scope:. Technical Brief: Toad for Oracle 10.5 11

New SQL Auto Optimize (Toad Xpert Edition and Suites) Optimizing SQL performance can be very challenging at best, but when you have little experience in what's involved and you barely understand what an Oracle execution plan is showing you let alone know what to do to fix the performance issue, it can be next to impossible. Quest's SQL Optimizer for Oracle product, a component of Toad Xpert Edition and the Toad Suites, is designed to address this problem by providing an array of technologies to discover where in the application the problem is happening. Then it helps resolve that problem, either through a SQL re-write or by recommending one or more appropriate indexes. SQL Optimizer is typically used by developers, DBAs, testers and QA personnel. The SQL Optimizer interface could be a little daunting if you are, for example, an application developer building a Java application that runs SQL on the Oracle database. You need a simple but effective way to optimize SQL while you are in the Toad Editor, and that's one use case SQL Optimizer is designed to support. With the SQL statement visible in the Editor, simply select the SQL Optimizer drop-down and click Optimize Current SQL to start optimizing your SQL. Clicking Optimize Current SQL will initiate an optimization task based on the caret position of the SQL statement in the Editor (if you have more than one). Figure 8. Auto-optimizing a SQL statement in the Editor Technical Brief: Toad for Oracle 10.5 12

Auto Optimize will look for as many alternative rewrites as you want based on database type and search depth. The deeper the search depth, the more re-writes, but the longer it will take. It will then show you which alternative was best in terms of elapsed time, or any other metric you select from the drop-down. You can compare the best (or any other) SQL alternative side-by-side with the original SQL to reveal the SQL, explain plan, and execution statistics. Then if you decide that you want to investigate index alternatives or other possible improvements, you can launch SQL Optimizer directly from that screen. Technical Brief: Toad for Oracle 10.5 13

Toad for Oracle 10.5 DBA Functionality Oracle Alert Log Viewer (DB Admin Module Add-on) DBAs frequently rely on the Alert Log because it keeps a record of when events happen in the database. The Alert Log is also a good place to look for clues when something goes wrong in the database. However, the Alert Log is a text file on the server, which means that it s sometimes inconvenient to access and look through from a Windows desktop, especially if the server runs Unix. Toad 10.5 provides access to the Oracle Alert Log by using the UTL_FILE package. Access requires permissions and directories such as: A directory for the Alert log (for example, CREATE OR REPLACE DIRECTORY TOAD_BDUMP_DIR as 'C:\ORACLEXE\APP\ORACLE\ADMIN\XE\BDUMP';) EXECUTE privileges on the UTL_FILE package A directory for the Trace file (for example, CREATE OR REPLACE DIRECTORY <directory name> as 'c:\oraclexe\app\oracle\admin\xe\udump ;) Even if it is convenient to get to the Alert Log, there is still the problem of wading through what can be a very big text file and attempting to find some useful information. The Toad for Oracle Alert Log Viewer is accessed from the main menu under Database Diagnose Alert Log Viewer, and helps make sense of the data. Just open the window, make a selection under Amount to Load, and click the green triangle. Some popular filters are "Today" and "Last 1000 lines." Figure 9. Alert Log Viewer showing events that occurred "today" Technical Brief: Toad for Oracle 10.5 14

Usually, an event will span multiple lines in the file. The grid on the top half of the screen groups each event into one row. The bottom half of the screen lists all lines represented by the selected row in the grid. However, since this is a standard Toad grid with amazing filtering powers, you can get a quick overview of what has happened in the Alert Log just by clicking the filter drop-down for the Statement Type column. The grid will be filtered to show only the statements of the type you choose. Where you see Trace File Created in the statement type column, you can click the link to load the actual trace file. Figure 10. Oracle Trace File loaded directly from the Viewer Another handy feature is that you can sort the grid by clicking the column headers. Finally, to save a local copy of the whole Alert Log, or just a portion, you can click the Save button on the toolbar. Technical Brief: Toad for Oracle 10.5 15

Compare Databases (DB Admin Module Add-on) Toad for Oracle v10.0 s Compare Schemas feature made it possible to compare a source schema against one or more targets. In response to customer feedback, the Compare Databases feature has been enhanced so you can compare a source database server against one or more targets. Figure 11. Compare Databases main window The lower panels of the screen allow a target database to be specified by a live connection to the server so that the comparison will be carried out through access to the Oracle data dictionaries. Alternately, you can create a snapshot. Snapshots are like Windows Savepoints; they represent the database server settings at a point in time and can be reused. Processing is significantly faster too. Toad for Oracle v10.5 makes it very easy to switch source and target databases. Simply right-click one or the other and select "Switch with Reference Database." Figure 12. Compare Databases (Toad 10.1 and earlier) Figure 13. Compare Databases (Toad 10.5) Technical Brief: Toad for Oracle 10.5 16

In the left screenshot, you can see that earlier versions of Toad compared only database object types; the right screenshot shows how Toad v10.5 enables you to compare object types and database parameter settings. This allows you to see if configuration parameters are different too. Remember, you can compare against multiple target servers and automate the execution of this task any time you like. The Compare Databases feature is one of many that you can now save as an Action in Toad. An Action is a persistent state of a window in Toad (such as Compare Schemas, HTML Schema Doc Generator, Export Dataset, etc) which has specific settings. The window, together with its settings, is re-usable and can be included as part of a sequential workflow by using the Toad Automation Designer feature. Learn how Automation Designer can help you save hours of time by automating routine tasks. In the right-hand screenshot above, you can use the red box in the bottom left corner "Save/load window snapshot" to create an action. Since Compare Schemas can also be saved as an Action, you can combine both of these into an automated workflow. Compare Schemas also compares table row count, so you have a really thorough comparison tool. Database Health Check Enhancements (DB Admin Module Add-on) The Database Health Check is a reporting tool for DBAs that looks at database characteristics such as configuration, performance, storage, and security vulnerabilities. Configuring Oracle RAC correctly is complex and getting it wrong can have a significant impact on database performance. In Toad for Oracle v10.5, 16 new checks report on the major RAC configuration settings and will ensure that you haven't overlooked anything. Some of these Health Checks are configurable just look for those with the text at the right-hand side. Clicking that hyperlink opens a parameter window where you can make any necessary changes for the database in question. Figure 14. New configuration checks for RAC in the Database Health Check Technical Brief: Toad for Oracle 10.5 17

The settings you select for a specific database can also be saved as an Action, where they become part of your routine task list using Automation Designer. Contextual Spotlight on Oracle Integration (Toad DBA Suite for Oracle) Spotlight on Oracle is a component of the Toad DBA Suite for Oracle, which enables DBAs to perform real-time diagnostics on multiple databases to quickly find the root cause of a performance bottleneck. Spotlight on Oracle provides a home page that shows the complete Oracle architecture in a highly visual, real-time display, and enables the DBA to drill down on any metric for a more detailed view to find the root cause. In Toad v10.0, we introduced the ability to use the Toad Database Monitor as the "initiator" of a response to something happening on an Oracle database. Through an alert (a flashing Toad icon in the Windows desktop system tray) the DBA can immediately launch Spotlight on the database exhibiting the problem. Figure 15. Right-click Toad in System Tray to launch Spotlight with the correct database connection Several of the detailed views in Spotlight are contextually similar to some of the windows in Toad, so contextual integration points from Toad to the appropriate detail screen in Spotlight helps to diagnose an issue more quickly. Consider the following example. Below, you can see the Toad Session Browser and, circled in red, the Spotlight on Oracle button. If you re interested in seeing which sessions are consuming the most resources or some other issue such as locking, you can be taken directly to the right place when Spotlight launches. Figure 16. Session Browser showing the Spotlight launch point Clicking the Spotlight button launches Spotlight, passes the Toad database connection information across, and opens the Spotlight Activity Summary detail screen looking at all the user sessions on that particular database in real time. Technical Brief: Toad for Oracle 10.5 18

While there, you can take advantage of the other information Spotlight provides, such as Waits, Wait Events, Locks, Latches, Transactions, etc. Figure 17. Spotlight on Oracle Activity Summary detail showing the Sessions panel Toad for Oracle v10.5 provides similar contextual launch points from the following Toad windows: Top Session Finder (Database menu Monitor) AWR Browser (Database menu Monitor) (please check your Oracle Diagnostics Pack license) StatsPack Browser (Database menu Monitor) Log Switch Frequency Map (Database menu Diagnose) Undo Advisor (Database menu Diagnose) (please check your Oracle Diagnostics Pack license) Segment Advisor (Database menu Diagnose) (please check your Oracle Diagnostics Pack license) Oracle Tuning Advisor (Database menu Optimize) (please check your Oracle Diagnostics and Tuning Pack license) Spotlight on Oracle can also be launched from the Database Browser, the most important management console for a DBA using Toad. Technical Brief: Toad for Oracle 10.5 19

Toad for Oracle v10.5 Functionality for Everyone Session Browser Enhancements (All Toad Editions) Quest has made enhancements to this very popular feature. When using the Session Browser to start and stop an Oracle trace, you can now choose which method to use via three new tabs in the Start Trace window: DBMS_Monitor, DBMS_System and DBMS_Support. In addition, the sessions being traced are highlighted in green so they are more visible. Figure 18. Session Browser showing session(s) currently being traced NEW SQL Tracker (Client-only Version in All Editions; Server Version in Xpert Edition and Suites) SQL Tracker is the new name for SQL Monitor. SQL Monitor was a free (unsupported) utility provided with Toad, which has now become an essential supported component of Toad for Oracle. SQL Tracker is designed to help you diagnose problems related to SQL executions. For instance, SQL generated by an application you are working on might be exhibiting a problem you can't diagnose (perhaps via a PL/SQL stored procedure). By providing you with the actual SQL statements in real time, SQL Tracker enables you to see the problem happening at the point in which the application is running and pinpoint the problem. SQL Tracker comes in two forms: The client version (in all Toad for Oracle editions) enables the user to track SQL execution requests submitted from any Windows client application (including 64-bit). The server version (in Toad Xpert Edition and Toad Suites) allows you to track SQL executions as they arrive on the Oracle database. Note: The server version is intended for use only on non-production servers. Technical Brief: Toad for Oracle 10.5 20

SQL Tracker now supports the same Windows and Oracle database platforms as Toad does. It is Unicode-enabled and it supports 64-bit Windows applications. Figure 19. SQL Tracker tracking SQL executions from Toad for Oracle SQL Tracker will automatically look up the applications which are using Oracle (as you can see above) and you can add additional processes, similar to Windows Task Manager. SQL Tracker is launched from the Database Monitor menu in Toad or from the Windows Start button. Simply select the process that you want to track and click the green arrow on the toolbar. SQL executions will immediately begin displaying in the lower panel. The new SQL Tracker has a similar look-and-feel as its predecessor, but has several new features. Figure 20. SQL Tracker toolbar Tracking SQL on the Oracle server requires you to simply select the oracle.exe program in the SQL Tracker navigator. A pop-up window will ask you to confirm that you intend to use SQL Tracker on a non-production server. You can then choose which Oracle session to display and begin tracking. Technical Brief: Toad for Oracle 10.5 21

Figure 21. Using SQL Tracker to track SQL executions on an Oracle development server The really cool thing with Oracle server tracking is that if the application uses extensive bind variables that make it difficult to see the complete SQL statement, SQL Tracker will present the "complete" SQL. Problematic SQL statements can then be copied into Quest SQL Optimizer for Oracle (another component of Toad Xpert Edition) to optimize their performance. Automation Designer Enhancements (All Toad Editions) For the busy DBA managing lots of databases, or for anyone who wants to save time when using Toad, automation of routine tasks is essential to reducing workload and giving you more time to concentrate on other priorities. With Toad for Oracle v10.5, additional windows can be saved as Actions, which means they too can become part of your task automation process. These windows are: Copy Table Data (All Editions) Data Generator (Professional Edition) Data Pump Import and Export (Professional Edition and DB Admin Module add-on) Compare Databases (DB Admin Module add-on) Generate Schema Script (DB Admin Module add-on) Generate Database Script (DB Admin Module add-on) Alternatively, these features are available within the Automation Designer window itself. Figure 22. Automation Designer showing additional tasks which can be stored as Actions Technical Brief: Toad for Oracle 10.5 22

Additional Data Grid Enhancements (All Toad Editions) The data grids in Toad had a major overhaul for version 10.0 (primarily to support Unicode). In Toad v10.5, the data grids enable even greater productivity, making them a lot more fun to use. Perhaps one of the best examples of this is the use of themes. Previously, you had to set the font, size, color, etc. separately. Now, these (and a lot more options) are combined into themes that you can access from the Toad Options window (View menu Options) similar to using Themes in Windows. Figure 23. Toad Options window showing data grid styles settings Once you've opened the styles settings, you can either change to a different style, or actually customize one of the numerous existing styles. This allows you to "fine tune" font styles, colors, bolding and even background graphics for the data grid grouping area to create an entirely customized data grid "experience." In Toad 10, we added a simpler way to select or deselect columns via the icon in the grid's top-left corner. Now, rightclicking this button accesses a menu from which you can do things like select/deselect all items, or sort the column list alphabetically. You can now also arrange the data columns themselves by right-clicking on the data grid and selecting Sort Columns. You can sort the table's columns any way you like or simply alphabetize them. Figure 24. Toad Options window showing data grid styles settings Technical Brief: Toad for Oracle 10.5 23

In the screenshot below, you can see an example of some of the things you can do in the data grids (and remember, you can do these things with any grid in Toad). Figure 25. A customized data grid showing some of the new right-click options Technical Brief: Toad for Oracle 10.5 24

Product Releases for Other Toad for Oracle Solutions Synchronized with the launch of Toad for Oracle v10.5 was the launch of new versions of other desktop products, including: SQL Optimizer for Oracle 7.5.3 (Toad Xpert Edition, Dev and DBA Suites) New search bar provides direct access to educational resources on our Toad user community, Toad World. Toad Data Modeler 3.5 (all editions) Includes Alter Script generation enhancements, templates (including using Toad templates), enhanced Object Viewer, and enhanced Naming Conventions Quest Code Tester for Oracle 1.9.1 (Toad Dev Suite) Code Coverage was extended to include testing Object Types, as well as improved Code Coverage analysis and reporting. For more information regarding Toad for Oracle 10.5 and Toad in general, please visit our on-line community at http://www.toadworld.com/products/toadfororacle/tabid/215/default.aspx. Technical Brief: Toad for Oracle 10.5 25

Toad for Oracle Resources Toad for Oracle is primarily developed based on contributions from the large user community of over a million users. To continue this tradition and help you make full use of Toad, we encourage you to use Toad World (www.toadworld.com), your one-stop resource for eduation, expertise and collaboration. The Toad for Oracle beta program enables Toad users who are on the full commercial version to perform a side-byside install of the beta for testing, and to provide the Toad development team with direct feedback. New beta programs follow shortly after a new release. The Toad Beta community is hosted by the Toad development team themselves so they can provide instant dialogue with beta testers, which means tweaks can be performed literally in minutes. There are several additional resources available that will help you make the most out of your Toad investment. These include: - Business Brief: The Hidden Costs of Freeware A Critical Look at the Costly Use of Free Software (http://www.quest.com/documents/landing.aspx?id=9440&technology=&prod=1&prodfamily=&loc=) - Product Review: A Perfect 10 for Toad 10 A Quick Tour Through the New and Improved Toad http://www.quest.com/documents/landing.aspx?id=10620&technology=&prod=1&prodfamily=&loc= - Predicting Oracle Performance Issues http://www.quest.com/documents/landing.aspx?id=11112&technology=&prod=1&prodfamily=&loc= - How Managers Can Help Their Developers Write Excellent Code http://www.quest.com/documents/landing.aspx?id=11557&technology=&prod=1&prodfamily=&loc= - Toad Says RAC 'Em Up! http://www.quest.com/documents/landing.aspx?id=11556&technology=&prod=1&prodfamily=&loc= If you are interested in participating, visit: http://www.toadfororacle.com/beta.jspa Technical Brief: Toad for Oracle 10.5 26

About the Author John Pocknell is a product manager at Quest Software, based out of the European headquarters in Maidenhead UK. He is responsible for Toad for Oracle and its various editions which include other products (including Java) from the Toad family. He has been with Quest since 2000, working in the database design, development and deployment product areas and has run many Toad training courses for customers. John has spent the last 9 years successfully evangelizing Toad to customers at various events throughout Europe, the U.S. and Asia-Pacific. He writes many blogs and papers which are published on the Toad user community, ToadWorld. John has worked in I.T. for more than 20 years, most of that time being based in Oracle application design and development. He is a qualified aeronautical engineer, with over 10 years as a Business Development manager provisioning I.T. consulting services and implementation of Quality Assurance systems to ISO 9001. Technical Brief: Toad for Oracle 10.5 27

TECHNICAL BRIEF About Quest Software, Inc. Now more than ever, organizations need to work smart and improve efficiency. Quest Software creates and supports smart systems management products helping our customers solve everyday IT challenges faster and easier. Visit www.quest.com for more information. Contacting Quest Software PHONE 800.306.9329 (United States and Canada) If you are located outside North America, you can find your local office information on our Web site. E-MAIL MAIL sales@quest.com Quest Software, Inc. World Headquarters 5 Polaris Way Aliso Viejo, CA 92656 USA WEB SITE www.quest.com Contacting Quest Support Quest Support is available to customers who have a trial version of a Quest product or who have purchased a commercial version and have a valid maintenance contract. Quest Support provides around-the-clock coverage with SupportLink, our Web self-service. Visit SupportLink at https://support.quest.com. SupportLink gives users of Quest Software products the ability to: Search Quest s online Knowledgebase Download the latest releases, documentation, and patches for Quest products Log support cases Manage existing support cases View the Global Support Guide for a detailed explanation of support programs, online services, contact information, and policies and procedures. 5 Polaris Way, Aliso Viejo, CA 92656 PHONE 800.306.9329 WEB www.quest.com E-MAIL sales@quest.com If you are located outside North America, you can find your local office information on our Web site. 2010 Quest Software, Inc. ALL RIGHTS RESERVED Quest Software and Toad are registered trademarks of Quest Software, Inc. in the U.S.A. and/or other countries. All other trademarks and registered trademarks are property of their respective owners. TBD-Toad4Oracle-10.5-US-AG-20100516