Professional Documents
Culture Documents
Abstract
Introduction
For many years, Toad for Oracle Base Edition has provided a firm
and reliable foundation for general database development tasks.
However, as the role of the database professional has evolved
to require more sophisticated processes and higher code quality
standards, many organizations have upgraded to Toad for
Oracle Xpert Edition for the additional functionality it provides
particularly, its support for developers in the areas of speed, code
quality, integration, testing and change management.
In this brief, well explore five ways Toad for Oracle Xpert
Edition can help you write better code. But you dont have
to take our word for it Dell makes it easy for your entire
organization to evaluate our solution with a free 30-day trial.
See for yourself how Toad for Oracle Xpert Edition provides the
advanced database tooling you need today.
Auto Optimize
For the database developer, Toad for
Oracles built-in Auto Optimize feature
enables quick rewrites of code (see
Figure 1). You can refactor and rewrite
statements, as well as choose from
alternatives suggested by Toad that are
optimized for environment-specific
requirements such as online transaction
processing (OLTP), data warehouses or
mixed database environments. And you
can do all of this without ever leaving
the Toad for Oracle interface.
SQL Optimizer for Oracle
For DBAs who require more finegrained and broader support for code
performance enhancements such
as index recommendations and SQL
rewrites, Toad for Oracle Xpert Edition
Figure 1. Developers can optimize statements quickly and easily using Toads Auto
Optimize feature.
Figure 2. SQL Optimizer identifies the SQL statements most likely to benefit from
tuning and automatically recommends the best rewrites.
includes SQL Optimizer for Oracle. SQL
Optimizer reduces query times for both:
New code Developers can use SQL
Optimizer to optimize code prior to its
promotion from DEV to TEST and PROD.
Existing code For DBAs with a large
body of legacy code, the spectre of
optimizing all of it can be daunting. But
SQL Optimizer makes it easy: Simply select
existing procedural code in bulk, and SQL
Optimizer will identify the SQL statements
most likely to benefit from tuning and
automatically recommend the best rewrites
for each to reduce the elapsed run time
(see Figure 2).
Figure 3. The Toad Editor validates code against enterprise standards for code quality
and semantic correctness in real time.
Figure 4. Code Analysis enables you to validate code in bulk against enterprise
standards for code quality and semantic correctness.
Using Code Analysis
By launching the Code Analysis interface,
you get a more detailed view of the
same information, as well as additional
metrics measuring the overall quality of
your code. In addition, you can perform
code quality checks against multiple
statements and objects in a single
step, as well as generate HTML reports
detailing the results to share with other
stakeholders (see Figure 4).
Code Analysis also helps ensure that true
enterprise-level code quality standards
are met by all users. Users can modify or
create their own code quality standards
templates, categorize those templates
into manageable subsets, and share them
with teams across the entire organization.
Code Analysis provides objective
measures of code quality, including
Complexity, Toad Code Rating, Halstead
Volume and McCabes Cyclomatic,
which can be used to determine
which code might most benefit from
optimization with SQL Optimizer.
Integrated features like this help ensure
that your code base is consistent,
easy to manage and easy to refactor
throughout its lifecycle.
Figure 5. Toad can automatically generate a Code Analysis report as part of check-in of
version-controlled objects, ensuring that only validated code is added to your project.
Figure 6. Toad generates data using real-world templates, so the data is appropriate
given the field name (such as US Address) and context.
you do not account for enforcement of
referential integrity, you will be unable to
return datasets when writing test queries
against the tables because none of the
data matches. By choosing the Enforce
Referential Integrity option when using
Data Generation, you can ensure data
consistency, and you also get fine-
Figure 7. You can use Data Generations Enforce Referential Integrity option when
populating child tables with data from a parent table.
Figure 8. The Master Detail Browser in the Schema Browser lets you quickly confirm
that data generated in a parent table also has corresponding data in the child table.
This screenshot highlights a particular customer ID value in the parent table and the
corresponding value in the child table.
You can easily and visually confirm
that generated data is truly correct
and related by using the Master Detail
Browser in the Toad Schema Browser to
ensure that each generated record in the
parent table has a corresponding record
in the child table (see Figure 8).
Creating enterprise-size test datasets
If you need to generate large, enterprisesize test datasets, you can create serverside objects to handle data generation
operations on a more capable server,
rather than on your desktop.
Figure 9. Using the Compare Multiple Schemas feature, you can efficiently compare
multiple schemas on one database with matching multiple schemas on another,
instead of having to configure multiple separate comparisons.
job to perform the 1-to-50 schema
comparison operation in one fell swoop,
saving you significant time.
Version control of schema snapshots
You can add any schema snapshots
to your organizations version control
process. This makes state information
easy to diagnose you can simply pull
schema changes for any period from
version control to assess changes
over time and even roll them back
if necessary.
Conclusion
Today, a successful development
team must do far more than produce
syntactically correct code. Toad
for Oracle Xpert Edition delivers the
advanced functionality your organization
needs, enabling you to:
Reduce the overhead associated with
long-running or inefficient queries (Auto
Optimize and SQL Optimizer).
9
TechBrief-FiveWaysToadXpertEdition-US-AC-25607