Toad For Oracle v10: Technical Brief
Toad For Oracle v10: Technical Brief
Toad For Oracle v10: Technical Brief
Written by
Quest Software Inc.
Technical Brief
© 2009 Quest Software, Inc.
ALL RIGHTS RESERVED.
WARRANTY
TRADEMARKS
All trademarks and registered trademarks used in this guide are property of their
respective owners.
World Headquarters:
5 Polaris Way
Aliso Viejo, CA 92656
e-mail: info@quest.com
Please refer to our Web site (www.quest.com) for regional and international office
information.
Updated—August 2009
TBD-ToadForOracle-v10-AG
CONTENTS
INTRODUCTION ..........................................................................................1
NEW DATA GRIDS .......................................................................................2
NEW ER DIAGRAM .......................................................................................3
NEW SEARCH BAR .......................................................................................5
NEW DIRECT SQL TUNING IN THE EDITOR..................................................6
MULTI-TASK EXECUTION........................................................................... 10
NOW WE ARE TRULY MULTI-TASKING ☺............................................................... 13
SERVER, INSTANCE AND SCHEMA COMPARE ......................................................... 14
ABOUT QUEST SOFTWARE, INC. ................................................................ 15
CONTACTING QUEST SOFTWARE ....................................................................... 15
CONTACTING QUEST SUPPORT ......................................................................... 15
i
Technical Brief
INTRODUCTION
The latest generation of Toad® for Oracle will soon make its appearance (early
October 2009) so we thought it was time to peel back the covers and give you a
peek at what’s coming.
Toad for Oracle v10 has been a long time coming, primarily due to significant
platform upgrades that now enable Toad to support Unicode.
Toad for Oracle v10 will have both new features and enhancements to existing
features, all designed to augment user workflow and enable you to get your work
done more productively, accurately and with better visibility into your work
environment—whether you are a developer working in an unfamiliar schema or a
DBA trying to manage multiple databases.
1
Toad® for Oracle v10
The new data grid shows customizable column headers, column grouping and sub-
grouping as well as sub-totaling of records.
• You’ll notice a new grouping region above the grid where you can drag and
drop column headers that you want to group and sub-group.
• The data grid navigator is now located at the bottom of the grid,
simplifying the toolbar.
• Column selection is now easier. A new button on the top left on the grid
allows you to determine which columns you want to be visible.
• The right-click menu is more simplified and the ‘Save As’ feature has been
renamed as ‘Export Dataset’. The range of file format options to save to
has not changed.
2
Technical Brief
NEW ER DIAGRAM
Developers and DBAs need a simple way to visualize the database schema. The
Toad ER Diagram window serves that purpose very well. The new ERD for Toad v10
is based on the same technology as our successful Toad® Data Modeler product
and therefore provides far more capabilities than its predecessor (particularly when
it comes to graphical manipulation and reporting).
3
Toad® for Oracle v10
There are a number of ways to include or add schema objects into the ER Diagram:
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 objects aligned to each other to enable excellent close-up work.
There is also an Autolayout button.
Notes and a Title block can be added for additional documentation and there is
even a Category feature that allows you to assign a unique color to different
groups of objects.
For printing purposes, multiple formats are supported up to A3 size and there is a
fit-to-page feature.
Diagrams can be exported into .bmp, .png and .jpeg format and reports can be
generated in HTML. The HTML diagram is hyperlinked, allowing you to view object
details simply by clicking on the object in the diagram.
4
Technical Brief
As always, if you also have a copy of Toad Data Modeler, you can reverse-engineer
schema objects in the Toad ER Diagram to create a complete physical data model in
Toad Data Modeler.
You can also create data for tables viewed in the diagram (Professional Edition
and above).
The ability to search for educational content will give you direct access to video
clips, expert blogs, Oracle technology information and much more in-context with
what you are doing. This will save you time and enhance your knowledge of Toad
and Oracle.
5
Toad® for Oracle v10
However, sometimes you need to be able to quickly tune a SQL statement on-the-
fly without opening the SQL Optimizer interface. Or maybe you are an application
developer writing Java or .NET but have an apparent performance problem with a
SQL statement and don’t know what to do. If this is the case, then this new feature
is for you!
Direct SQL tuning in the Editor, as that implies, means giving you with sufficient
capabilities within the Toad Editor itself to provide you with a number of potential
SQL alternatives which perform better than your original. From these alternatives,
you can chose the most suitable to give you the performance improvement you
expect from your application. This new SQL tuning interface uses the power of SQL
Optimizer to do all the “back-end” optimization processing.
You will be able to compare elapsed execution times graphically together with
execution plans and other pertinent information. You still, ultimately, have the
choice as to which SQL statement re-write to use in your application based on the
evidence. Or, you can simply use the one which has the shortest elapsed time. The
best alternative can then replace your original SQL statement leaving you with a
faster application.
Here’s the process based on a prototype of what the finished feature will look like:
First, have your problematic SQL statement visible in the Editor, then select Auto
Optimize current SQL. Notice that you can still fully launch the SQL Optimizer from
here too.
Next, accept the defaults and enter any bind variables if necessary and click OK.
You can clearly see which alternative has the lowest elapsed time, but you can also
view other information as necessary. also In addition, you have the option of trying
an index build on a table used in the SQL statement to see if that might have a
higher benefit.
You can compare the original SQL statement to the “best” alternative.
7
Toad® for Oracle v10
After deciding on the most suitable alternative, we make it really easy to return this
modified SQL statement into your SQL code or PL/SQL program by simply clicking
the Accept button.
8
Technical Brief
This new SQL tuning methodology harnesses the power of our world-class SQL
Optimizer for Oracle technology. However, it is presented in a way that is simple to
use for those less familiar with SQL tuning techniques or those who just want a
very fast, effective solution to a frustrating application performance problem.
9
Toad® for Oracle v10
MULTI-TASK EXECUTION
You probably have routine tasks you often have to perform every day or every
week and you probably wish there was some way you could automate them. Here
are a couple of things we think you will like.
The first one is more for DBAs, but developers could use it too—Script Manager.
DBAs sometimes have to run multiple scripts against a number of their managed
databases, but they can only run them one at a time and then they have to repeat
the process for each database. What if you could select ALL of your scripts and run
them simultaneously against ALL of your databases?
Script Manager itself is not a new feature for Toad v10, but the ability to select a
group of database connections against which you need to run a group of scripts is.
The “Connections to use” panel is new. It will be pre-populated with any currently
active connections, but you can use the Add button to select additional ones from
the main Connections window.
You can then highlight the scripts you wish to execute (the same way you did
before) and click the Execute button. This lets you execute scripts in this window or
the Quest ScriptRunner tool. The outputs from each script run will appear in a
tabbed region in the Output tab. See below.
10
Technical Brief
There is also an options button which lets you select the Editor as the default. A
separate Editor window will open for each connection.
Also notice the “On File Menu” column in the lower data grid in the previous and
following screen shots. Whatever scripts you check here will appear in the following
three places in Toad:
11
Toad® for Oracle v10
Database Browser (right click a database instance): This part is new for Toad v10.
This gives you the flexibility to run one of more regularly executed scripts on-the-
fly (without having to open the Script Manager window) from multiple places where
it is most logical to do so.
The Database Browser launch point is perhaps the most likely, since DBAs can use
it to view all of their servers and databases in one single screen.
12
Technical Brief
Automation Designer allows you to save tasks you normally perform interactively in
Toad, (from saving data to a file, comparing two schemas to running a database
health check) select and execute them on-the-fly. For more information on this
feature, please refer to this blog article published on Toad World.
In Toad v10, you now have the capability to execute these tasks (or what we call
Actions) or groups of tasks saved as a sequential workflow (or what we call Action
Sets) against multiple database connections simultaneously.
Here, you can see an Action Set in the right panel with a selection of tasks which
can be executed sequentially, such as Export DDL, Schema reports, script
execution, etc.
If you right-click an App (Action Set), you can select which database connections
you want to run these tasks against. The Connections window opens and you can
multi-select which ones to use.
13
Toad® for Oracle v10
The Toad for Oracle v10 beta program is well underway, enabling Toad users who
are on the full commercial version to perform a side-by-side install of the beta for
testing, and providing the Toad development team with direct feedback.
The Toad Beta community is hosted by the Toad development team so they can
provide instant dialogue with beta testers —this means any tweaks can literally
performed in minutes!
Please note that any future plans represent our intentions as of the date hereof,
and our development plans and priorities are subject to change due to competitive
factors, availability of resources and other matters common to all independent
software vendors. Accordingly, these general indications of development schedules
should not be relied upon if making a purchasing decision and should not be
interpreted or construed as any form of a commitment that Quest will ultimately
release any or all of the above-described products or features on the schedule or in
the order described, or at all. The content, release, and timing of any features or
functionality described above remains at the sole discretion of Quest Software, Inc.
14
Technical Brief
Please refer to our Web site for regional and international office information.
View the Global Support Guide for a detailed explanation of support programs,
online services, contact information, and policy and procedures. The guide is
available at: http://support.quest.com/pdfs/Global Support Guide.pdf
15