You are on page 1of 108

Quest Software

Toad Seminar April 2008

Daisy Tai

Copyright 2006 Quest Software

Management is the Challenge


IT is inherently complex because the current and future business
environment demands it If the company reaches such an
inflection point where IT complexity outpaces the ability to
manage it effectively, then the overall business value of IT is
diminished or negative.
- Kathy Harris, Gartner
The perceived relationship:
Spend on IT, create value no limits

The actual relationship: Spend on IT,


create value up to your inflection point

Value

Value

Value
inflection
point

Complexity

Complexity

Source: IT Complexity May Be the Reason Youre Spending More and Gaining Less Kathy Harris, Gartner, Dec 20, 2005

You Need More than Out of the Box

You Need More than Out of the Box


More Productivity
More Performance
More Reliability
More Availability
More Flexibility
More Security
More Automation

More Value

Quest Corporate Overview


Founded: 1987, Listed:1999
Nasdaq: QSFT
$631 M in 07 Revenues
3,300+ employees
Customers
90,000+ worldwide
75%+ of the Fortune 500

700
600
500
400
300
200
100
0
1999

2001

2003

Revenue (in USD M)

Strong Strategic Partners

2005

2007

Worldwide Offices
Norway

Columbus
Montreal
Toronto
Chicago
Ottawa
St. Louis
Detroit

Denmark

Calgary

Pleasanton
San Francisco

Aliso
Aliso Viejo
Viejo

Halifax


New York

Boston

Denver

D.C.

Dallas
Raleigh

Atlanta
Houston

Mexico

Guatemala
El Salvador

Finland

Netherlands

Westlake

Seattle

Sweden

Lithuania/Latvia


UK
Germany Poland

Ireland

Estonia Hungary

Belgium


Romania

France
Slovenia/Croatia

Spain

Turkey
Italy

Portugal
Greece
U.A.E.
Israel

Saudi Arabia

Venezuela

Panama

Russia
Korea (South)
Taiwan

China

India

Thailand

Hong Kong

Japan

Singapore

Colombia
Peru

Uruguay
Chile

Malaysia

Brazil

Argentina

Indonesia

South Africa

Australia

New Zealand

Quest Solutions for Enterprise IT


We help you deliver,
manage and control
complex application
environments.

We improve DBA and


developer productivity and
increase database
performance with marketleading database
management products.

Java Applications
NET Applications
Oracle Fusion (Oracle EBusiness, PeopleSoft, Siebel)
SAP
SharePoint applications
Custom applications

We simplify, automate and


secure your Windows
infrastructure with
comprehensive migration,
management and
interoperability capabilities.

Oracle
SQL Server
IBM DB2
MySQL
Sybase

Active Directory
Exchange Server
Windows Server
SharePoint
Systems Center
PowerShell
Visual Studio.NET

Quest Software develops


innovative products that
help customers get more
performance and
productivity from their
applications, databases,
and Windows
infrastructure.

Accolades & Awards

No. 1 vendor in Distributed Data Management Facilities,


IDC, 2006

Microsoft TechEd Best of Show Winner, 2006

Microsoft TechEd Europe Best of Show Winner, 2006

No. 1 vendor in Application Management Software,


Gartner Dataquest, 2006

Jolt Productivity Award Winner

Network Computing Editors Choice Winner

Agenda
Review Full-Cycle Development Best Practices
Toad for Development Best Practices
Toad, Toad Data Modeler, Quest Code Tester for
Oracle for Single Developer process
SQL Optimizer to optimize code
Benchmark Factory for Scalability testing
Toad for Managing production environment
Whats New in Toad version 9.6
Available resources online communities

Agenda
Review Full-Cycle Development Best Practices
Toad for Development Best Practices
Toad, Toad Data Modeler, Quest Code Tester for
Oracle for Single Developer process
SQL Optimizer to optimize code
Benchmark Factory for Scalability testing
Toad for Managing production environment
Whats New in Toad version 9.6
Available resources online communities

Full-Cycle Management with Quest Solutions


(Dev
QA
Production)

Agenda
Review Full-Cycle Development Best Practices
Toad for Development Best Practices
Toad, Toad Data Modeler, Quest Code Tester for
Oracle for Single Developer process
SQL Optimizer to optimize code
Benchmark Factory for Scalability testing
Toad for Managing production environment
Whats New in Toad version 9.6
Available resources online communities

Development Best
Practices with

Copyright 2006 Quest Software

Development Best Practices

13

Development Best Practices Workflow


Team Review

Pre-deployment

Scheduled
Code Review
& SQL Scan

Promote to QA
and Scalability
Tuning

Code review
Successful

US Dev Team

Taiwan Dev Team

Version Control (Team Coding)

SG Dev Team

Management
Reporting

Ready for Production

Each Developer

Manager
Bad Code or
Problematic SQL
Detected:
Return to
Development
14

Agenda
Review Full-Cycle Development Best Practices
Toad for Development Best Practices
Toad, Toad Data Modeler, Quest Code Tester for
Oracle for Single Developer process
SQL Optimizer to optimize code
Benchmark Factory for Scalability testing
Toad for Managing production environment
Whats New in Toad version 9.6
Available resources online communities

15

Single Developer Process using Toad


Preparation
Project Manager

Code Standards
Review

Data Modeler

Code Formatting

QCTO Define Tests

CodeXpert

Unit / Functional
Test Code
Code Generation
Re-Use & Share

Quest Code Tester for


Oracle

Optimise SQL

Editor

SQL Scanner

Code Snippets

SQL Optimizer

Debug Code
Debugging
Knowledge Xpert

16

Toad for Oracle Project Manager


Harness the FULL power of Toad.
Database
Connections

Objects Access

Shared
Workspace

Files for project

User Tutorial:
www.toadsoft.com/haveumet.htm
l

17

Create, maintain and document quality database designs


and structures across more than 30 different platforms

18

19

20

21

22

23

24

25

26

Single Developer Process using Toad


Preparation
Project Manager

Code Standards
Review

Toad Data Modeler

Code Formatting

QCTO Define Tests

CodeXpert

Unit / Functional
Test Code
Code Generation
Re-Use & Share

Quest Code Tester for


Oracle

Optimise SQL

Team Coding

SQL Scanner

PL/SQL Templates

SQL Optimizer

Code Snippets

Debug Code
Debugging
Knowledge Xpert

27

Toad for Oracle Team Coding


Use With or Without 3rd Party Source Control

28

Toad for Oracle Coding Standards


PL/SQL Templates
Automatically Achieve:
In-Depth Commenting
Homogenous Code Structure
Consistent readability for all
team members!
Higher productivity, less
typing.

Toad also offers fully customizable code snippets. Get complete code
fragments with as few as 3 keystrokes! These can also be shared
among team members, which will result in even more consistent coding
techniques and development.
29

Single Developer Process using Toad


Preparation
Project Manager

Code Standards
Review

Data Modeler

Code Formatting

QCTO Define Tests

CodeXpert

Unit / Functional
Test Code
Code Generation
Re-Use & Share
Team Coding
PL/SQL Templates
Code Snippets

Quest Code Tester for


Oracle

Optimise SQL
SQL Scanner

Debug Code

SQL Optimizer

Debugging
Knowledge Xpert

30

Developed by Steven Feuerstein


World's leading experts on the
PL/SQL language
The industrys first complete Unit
Testing tool for PL/SQL

31

A Central Dashboard Keep track of your Units and


execute Tests at the click of a button.

32

Just describe the test, no coding required.

33

1961 lines of code written for you

34

Results automatically

= Bad,

= Good

35

Status Reports available in several rich formats

36

Single Developer Process using Toad


Preparation
Project Manager

Code Standards
Review

Data Modeler

Code Formatting

QCTO Define Tests

CodeXpert

Unit / Functional
Test Code
Code Generation
Re-Use & Share
Team Coding
PL/SQL Templates
Code Snippets

Quest Code Tester for


Oracle

Optimise SQL
SQL Scanner

Debug Code

SQL Optimizer

Debugging
Knowledge Xpert

37

Development Times Dissected

25% Reading

10% Coding
Too much debugging
Little writing of new code

65% Debugging

Source: GARTNER GROUP


38

Problem with Manual Debugging

Cumbersome
Time Consuming
Highly Unproductive
Can introduce new bugs
Toad can help quickly create output statements

39

Debugging with the PL/SQL Debugger

Integrated with Editor

Step through code line by line

Control where, when and why the


code stops by using conditional
break points

Set watches to view and modify


variable values

Examine a logical representation


of the execution stack

Verify accuracy of the output

Includes Just-In-Time debugging

Includes JDWP debugging for


Java source
40

Watches & Breakpoints

DEMO
41

Identify Code Performance Bottlenecks with


PL/SQL Profiling
Profiler Data Analysis
2 viewing methods
In-line with code (coverage)
Graphically (bottlenecks)
View run statistics
By line
By program

42

Line-by-line Execution Stats

Codes not executed


Codes executed

43

Hierarchical Profiler for Oracle 11g

Found in Options | Execute/Compile


44

Hierarchical Profiler for Oracle 11g

45

Single Developer Process using Toad


Preparation
Project Manager

Code Standards
Review

Data Modeler

Code Formatting

QCTO Define Tests

CodeXpert

Unit / Functional
Test Code
Code Generation
Re-Use & Share

Quest Code Tester for


Oracle

Optimise SQL

Editor

SQL Scanner

Code Snippets

SQL Optimizer

Debug Code
Debugging
Knowledge Xpert

46

Professionally Validate Your Code With


Code Xpert
144 Configurable
Rule Sets
Written by Steven
Feuerstein and
other industry
leading experts
Assesses :

Efficiency
Correctness
Maintainability
Readability
Program
structure

47

CodeXpert Rules List

Review all the rules in CodeXpert by clicking on the Rules tab. Rules
are organized according to the drop-down selection.
48

CodeXpert -- Result Set

The Results tree will be displayed when the CodeXpert scan completes.

Each objective is broken down into sub-categories and shows a count of the
rules that failed.

The Properties category displays a list of statistics about the code. This is
comparable to the information available in the Formatter profile statistics.
49

CodeXpert Flagged Rule Options

Right-clicking on a flagged rule allows the user to see a detailed


explanation of the rule and its purpose (Show Tip)

User can also override, or ignore, a rule. A rule can be overridden


completely or just a specific occurrence.

Once a rule has been overridden, it can also be accepted back if the
user changes their mind.
50

CodeXpert Rule Insights

Double-clicking on the rule description in the Result Summary or


selecting the Show Tip option in the right-click menu displays
insights for that rule.

51

CodeXpert Report Summary

52

Single Developer Process using Toad


Preparation
Project Manager

Code Standards
Review

Data Modeler

Code Formatting

QCTO Define Tests

CodeXpert

Unit / Functional
Test Code
Code Generation
Re-Use & Share

Quest Code Tester for


Oracle

Optimise SQL

Editor

SQL Scanner

Code Snippets

SQL Optimizer

Debug Code
Debugging
Knowledge Xpert

53

Agenda
Review Full-Cycle Development Best Practices
Toad for Development Best Practices
Toad, Toad Data Modeler, Quest Code Tester for
Oracle for Single Developer process
SQL Optimizer to optimize code
Benchmark Factory for Scalability testing
Toad for Managing production environment
Whats New in Toad version 9.6
Available resources online communities

54

Deliver Optimal Code


Review coding best practices
Proactively identify problematic SQL directly from the
source code
Automatically rewrite SQL code in every possible
alternative
SEVEN Times more costly to fix issues in production
than in development
HW
Network

DB Changes

Indexes

90%
60%

Root of Database
Performance Impact
Source: Forrester Research

SQL Statements
55

Send Problematic SQL to SQL Optimizer

SQL Scan
In CodeXpert

56

SQL Optimizer for Oracle

Batch Optimizer
SQL Scanner
SGA Inspector
Tuning Lab
Global Indexing
Impact Analyzer
Outline Manager

57

Development Best Practices Workflow


Each Developer

Team Review
Scheduled
Code Review
& SQL Scan

Code
review
Successful

US Dev Team

Taiwan Dev Team

Version Control (Team Coding)

SG Dev Team

Management
Reporting

Optimize
Codes &
Tune SQL

Ready for
Production ?

Manager
Bad Code or
Problematic SQL
Detected:
Return to
Development
58

Development Best Practices Workflow


Each Developer

Team Review

Pre-deployment

Scheduled
Code Review
& SQL Scan

Promote to QA
and Scalability
Tuning

Code review
Successful

US Dev Team

Taiwan Dev Team

Version Control (Team Coding)

SG Dev Team

Management
Reporting

Optimize
Codes &
Tune SQL

Manager
Bad Code or
Problematic SQL
Detected:
Return to
Development
59

Agenda
Review Full-Cycle Development Best Practices
Toad for Development Best Practices
Toad, Toad Data Modeler, Quest Code Tester for
Oracle for Single Developer process
SQL Optimizer to optimize code
Benchmark Factory for Scalability testing
Toad for Managing production environment
Whats New in Toad version 9.6
Available resources online communities

60

Development Best Practices

61

Send Selected SQL to Benchmark Factory (BMF) to test for Scalability

62

Select the required User Loads and Iterations

63

Sample Run Report (3D Comparison Graph with Legend)


64

Agenda
Review Full-Cycle Development Best Practices
Toad for Development Best Practices
Toad, Toad Data Modeler, Quest Code Tester for
Oracle for Single Developer process
SQL Optimizer to optimize code
Benchmark Factory for Scalability testing
Toad for Managing production environment
Whats New in Toad version 9.6
Available resources online communities
Q&A

65

Full-Cycle Management with Quest Solutions


(Production)

66

Toad with DB Admin Module


Managing General Administration
Application Change Request on Database
Database Monitoring
Health Check

67

Typical Oracle DBA Times Dissected


Planning
Tuning

Too much firefighting


No TIME for planning
Need to free up time from
monitoring and dev support

Fire Fighting
Dev Support
Monitoring

10

20

30

40

% of Time Spent
Source: James F Koopmann
68

Schema Browser Four different styles


Single-line tabbed

Drop down List

Multi-line tabbed

TreeView

69

User Administration

Create User
Clone / Copy
Compare with another user
Expire Account
Check Roles
Which users have DBA role ?

70

Tablespace Administration

Create / Alter / Drop


Create Like
Create in another database
Export Tablespace
Rename Tablespace
Show Tablespace Map
Launch Space Manager

71

Compare Features
Data, Schema,
Data duplicates,
Database
To compare two
schemas
Switchable sync
Script
Fully configurable
Can compare
individual object and
view sync script
Can optionally
compare with
encrypted definition
file
72

Session Browser
Grouping the database sessions per program
Information displayed

Most up-to-date and open cursors


I/O (Buffer Gets, Physical Reads)
Waits
Access (which objects by session)
Locks + Blocking / Waiting Locks
Long Ops (running time of Oracle Export for example)

Explain Plan

73

Monitoring of an Oracle Import operation

74

Database Monitor
How is my database being used ?

75

Statspack Browser
Graphical performance
tool for databases
Collection, automation,
storage and viewing of
performance data
Trending and timeseries analysis

76

Proactive Approach
86-point Health Check of the database (schedulable in
Toad for Oracle 8.5 and above)

77

Tablespaces
Are the Tablespaces online ?
Is there sufficient space in the Tablespaces ?

78

Cost Reduction Tablespace Map


Table data was deleted but space is not being
released!

79

Agenda
Review Full-Cycle Development Best Practices
Toad for Development Best Practices
Toad, Toad Data Modeler, Quest Code Tester for
Oracle for Single Developer process
SQL Optimizer to optimize code
Benchmark Factory for Scalability testing
Toad for Managing production environment
Whats New in Toad version 9.6
Available resources online communities

80

Great News - bundle changes for 9.6

MORE for Standard Edition:


Debugging moves to Standard (this includes DBMS, JDWP, External and
Script debugging)
Knowledge Xpert for PL/SQL moves to Standard
Knowledge Xpert for DBA moves to Standard

MORE for Professional Edition


Oracle Import Utility (still in DB Admin module)
Oracle Export Utility (still in DB Admin module)

DBA Module -> DB Admin Module to better reflect the great


deal of functionality to simplify the administration of the Oracle
databases

81

New in 9.6 - New AWR Browser

Exactly like the Statspack browser, it is able to browse AWR


(Automatic Workload Repository) data.

82

New in 9.6 - Database Browser Updates


Updated to allow
more use of the
Schema Browser.
Added Nodes for
Database object
levels to view
database in full
Allows navigation of
multiple instances

83

New in 9.6 - Health Check Vulnerability Assessment


23 new checks added to Heath Check
Which users have been granted DBA role privileges
Where you have database links that use passwords
Where you have oracle or third-party user accounts that are
still using the default password

84

New in 9.6 - Code Insight Enhances

Refer to as dot lookup


Type first few letters of an object name, comes a list of the
matching objects.
Ability to see many object types: tables, views, aliases,
functions, procedures, packages, types, java source,
sequences, users, public synonyms.
Ability to cache objects from other schemas for lookups
Option to filter out object type to reduce cache size

85

New in 9.6: Profiler Analysis update

The Line Item Profiler has been updated to provide further


integration with the DBMS Profiler Analysis window.

The Details button to takes you directly to the DBMS Profiler


Analysis pane.
Selecting a line item will now automatically open the referenced
SQL source and line.

86

New in 9.6 - New 11g Flashback Archives

Oracle 11g and Toad DB Admin module required


Flashback Archives tab has been added to the Schema Browser
Create/Alter Flashback Archive window has been added, to support database
script, and compare Schema.
Basic function of tab is to manage the archives

87

New in 9.6 - Oracle Tuning Advisor updates

New window to view, create, and delete tuning tasks.


View the results on this screen for the current and past tuning
tasks. Launch script from this screen for 10gR2 or newer.
A tab to configure the Auto SQL tuning task for Oracle 11g

88

New in 9.6 - Integration of Quest Code Tester


Added button on MOE and right click option on Schema browser
if a PL/SQL object has tests in the QCTO Repository
Allows completed tests to be displayed in Toad

To launch Quest Code Tester


89

New in 9.6 - Integration of Toad Data Modeler 3.1

Added button to launch TDM 3.1 for saved Toad ER Diagrams.


This will perform a database connection and automatically initiate the
Reverse Engineering process to create a new Physical Data Model

Inside TDM 3.1, you will see 5 main integration areas:

File -> Open Toad Project


Utilizing Toad connections
Object Palette
Import Toad for Oracle ERD
Select Toad icons
90

Development Best Practices

91

Development Best Practices

TOAD Development Suite


for Oracle & SQL Server
& DB2
92

Agenda
Review Full-Cycle Development Best Practices
Toad for Development Best Practices
Toad, Toad Data Modeler, Quest Code Tester for
Oracle for Single Developer process
SQL Optimizer to optimize code
Benchmark Factory for Scalability testing
Toad for Managing production environment
Whats New in Toad version 9.6
Available resources online communities

93

www.toadworld.com

sqloptimizer.inside.quest.com
94

unittest.inside.quest.com

modeling.inside.quest.com

95

96

97

98

99

100

101

Latest Toad Downloads


102

103

104

105

106

107

You might also like