April, 2002
In This Issue
Free Oracle Utility: Space Check before Data LOAD (DW)
Migrating to Oracle9i
Tuning Without Cache-Hit Ratios
DB2: Building a Scalable e-Business Platform
Data Modeling Part 3: Reality Requires Super and Sub Types

All articles have been reprinted with the written consent of their respective authors.

Atlantic OTC - April 25 & 26
Washington Convention Center - Washington, DC

Schedule At A Glance:
Thursday, April 25
Friday, April 26

Register Online by April 15 for just $300 and save $100 off the late registration/walk-in fee.  Click Here for secure online registration.

Free Oracle Utilities

Space Check Before Data LOAD (DW)
By Shankar Govindan

Running a script like this before loading millions of records will help the person loading get a fair idea of how much space is required to sustain the load and not fail.  This also helps the person loading estimate and inform the DBA that a load is to happen and space does not seem to be sufficient in a tablespace where the loading table exists.

Basically, the script gives us the approximate space required for the load based upon the size of the records existing in the table multiplied by the number of records.  So, the table needs to have some data in order to get this information and calculate.  This will not work for a table that is empty.

To get the exact values, we need to analyze the table.  Once this is done, the DBA_TABLE views get populated with the AVG_ROW_LENGTH and then we calculate from there.  The analyze for a table of DW size would run for hours and that would also upset the query plans.  Click Here for the script.
  

Oracle Administration

Migrating to Oracle9i
By Michael R. Ault, TUSC
Author, "Oracle 9i Administration and Management", John Wiley & Sons (May 2002 Availability)

The long awaited moment approaches.  The long heralded release of Oracle9i into production has/is happening.  So, what do we as DBAs and application developers do?  We migrate.  Of course we should take the proper steps to ensure that we migrate like graceful geese flying across a sunset rather than lemmings dashing forward over a cliff.  At TUSC we prefer the graceful flight across the sunset.  Click Here for the paper.

Tuning Without Cache-Hit Ratios
By Gaja Krishna Vaidyanatha, Director of Storage Management Solutions, Quest Software
Co-author, "Oracle Performance Tuning 101", Osborne McGraw-Hill

From time immemorial, Oracle performance tuning has seemed like witchcraft, secretly practiced by an elite group of individuals, who appear to use voodoo to cure the performance problems of an Oracle system.  To compound this misperception, many thousands of pages of published material has been written that propagates the idea of tuning Oracle with cache-hit ratios.  There are many references to how performance is good when the ratios are high and, when those ratios are below a "desired percentage" there is great cause for concern.  All of this causes confusion, with very scarce mention about unearthing the actual source of the bottlenecks that are inflicting performance pain on the entire system.

Oracle tuning efforts should be based on isolating and pinpointing bottlenecks (the disease) not cache-hit ratios (the symptoms).  The purpose of this paper is to dispel any misconceptions that correlate Oracle database performance with cache-hit ratios.  It also provides a methodology that guarantees repeated success in unearthing the actual source of performance problems.  Click Here for the paper.

Have you written a Users Group paper or presentation that you would like to share with your colleagues around the world?  Send your paper to campbell.white@quest.com for possible publication in the Pipeline Newsletter.  If your article is accepted, it will be mailed to over 25,000 readers and you will receive a free gift from Quest Software as a gesture of our appreciation.
DB2

Building a Scalable e-Business Platform
A Performance Case Study for WebSphere
TM Application Server and DB2® Universal Database®
an IBM White Paper 

In today's fluctuating economy, any strategic investment must be given careful consideration.  Building an information technology infrastructure that is only focused on serving the needs of today, could spell disaster for tomorrow.  Companies deploying e-commerce must insure that the building blocks of that infrastructure will also expand to meet their future challenges, maximizing their return on investment.  In short, they want a cost-effective platform that will meet their growing demands.  Today's business environment carries enough risk and uncertainty without building an e-business infrastructure on unknowns.  It is important to have an infrastructure that will grow in a predictable manner to serve the dynamic business needs.

This paper documents the highlights of a joint effort by IBM, Quest Software, and Intel Corporation to demonstrate how IBM's e-business software, WebSphere and DB2, running on IBM's Intel-based servers, provides such an infrastructure.  A set of robust benchmark tests, designed to emulate an online brokerage firm, were conducted at IBM's xSeries Teraplex Integration Center to measure the scalability characteristics of representative configurations as they grow to service more users and more transactions.  Quest's Benchmark FactoryTM was used to simulate volumes of customers accessing trading services via web browsers.  Test results demonstrated convincingly that WebSphere and DB2 running on IBM Intel-based servers deliver a scalable, cost effective solution with the predictability that is critical to manage growing e-business systems.  Click Here for the paper.
 

Oracle Development

Data Modeling, Part 3: Reality Requires Super and Sub Types
By Bert Scalzo, Ph.D., Quest Software

Welcome to this third paper in an ongoing series regarding common data modeling mistakes and their impact. The key premise throughout is that poor database design:

  • Is more often responsible for pitiable application performance than the SQL code
  • Is more likely to occur if there’s inadequate data modeling training or mentoring
  • Cannot always be automatically detected and/or corrected by data modeling tools
  • Cannot generally be overcome by even the best and brightest SQL programmers

Each paper in the series focuses upon a narrow range of the more common and costly data modeling mistakes, exposing their impacts to project success and espousing sound data modeling practices to overcome them.

This issue we’ll examine the often overlooked and under utilized technique of entity super and sub typing, also known as generalization hierarchies or inheritance – with the goal of answering two key questions:

  • Where, when and why we should super and sub type our entities
  • How to generate DDL that truly implements what’s been modeled

Click Here for the paper.

Introduction to Oracle8i Analytic Functions
By Adrian Billington

Analytic functions were introduced in Release 2 of 8i and simplify greatly the means by which pivot reports and OLAP queries can be computed in straight, non-procedural SQL.  Prior to the introduction of analytic functions, complex reports could be produced in SQL by complex self-joins, sub-queries and inline-views but these were resource-intensive and very inefficient.  Furthermore, if a question to be answered was too complex, it could be written in PL/SQL, which by its very nature is usually less efficient than a single SQL statement.

There are three types of SQL extensions that fall under the banner of "analytic functions" (though the first could be said to provide "analytic functionality" rather than actually be analytic functions):

  • new grouping of result sets through extensions to the GROUP BY clause (ROLLUP and CUBE)

  • new analytic functions themselves

  • TOP-N analysis (largely enabled by the analytic functions).

Each of these will be dealt with in turn.  Click Here for the paper.

Microsoft SQL Server

The Curse and Blessings of Dynamic SQL
By Erland Sommarskog 

In this article I will discuss the use of dynamic SQL in stored procedures in MS SQL Server, and I will show that this is a powerful feature that should be used with care.  I first recapitulate why we use stored procedures at all, before I explain the feature as such.  I then look at the conflicts between the virtues of stored procedures and the effects of dynamic SQL.  There are two sections of other general problems with dynamic SQL.  I conclude with discussing several cases where dynamic SQL is often given as a solution, but not always is a good solution, and I discuss alternative strategies for these problems.  Click Here for the article.  

Product Update: The Knowledge Xpert for SQL Server v1.1 fully integrates with Microsoft's Visual Studio suite, including Visual Basic, Visual C++, and Visual InterDev.  Click Here for the announcement.
 

Project Management Tips & Techniques

Getting a Project Back on Schedule
Tom Mochal, www.tenstep.com 
Each month, Tom Mochal presents a set of project management tips and techniques for handling various aspects of planning and managing a project.  Tom as over 23 years of IT experience.  He has developed a comprehensive, scalable project management process called TenStep, which can be viewed at www.tenstep.com

Just because you monitor your project on an ongoing basis does not mean that you will never miss deadlines.  The good thing about managing the workplan is that you will know very quickly if you are trending over the end date.  This will give you an opportunity to put a proactive plan in place to get back on schedule.  A project trending over its deadline is always caused by the critical path trending over its deadline.  There is not a simple process that will do the trick in every case.  However, there are some techniques you can apply to get the job done.  Click Here for this month's article.
 

News & Events

TOAD User Groups in 20 Cities - Sign Up Today!
 

Quest Software is proud to present the 2002 TOAD User Groups, where TOAD and his entourage are hitting the road and coming to a city near you.  That's right, we are bringing you a series of free, full-day local user groups to help you get more out of your favorite development tool and exchange ideas with the real TOAD experts -- users like you!  Click Here to register.

Free e-Seminars
For detailed information on these free e-Seminars, please visit our News and Events page.

Visit the e-Seminar Archives

Tips of the Month
Oracle DBA Tip of the Month:  Displaying Only Committed Transactions with LogMiner
PL/SQL Tip of the Month:  Turning a SQL Statement into XML Using the C Version of XSU
DB2 Tip of the Month:  Comparing DSNTIAUL, REORG UNLOAD External & UNLOAD
SQL Server Tip of the Month: Restricting Access to SQL Server to Certain Machines
Humor

Interactive Crossword Puzzle: "High Minded"   

 
1 Down - Oracle, for Example
Test your knowledge with the Pipeline Newsletter's Monthly Crossword Puzzle. 

Click Here to Play!

 

Regular Features

Get FREE Stuff from Quest!

We love getting white papers, tips, articles, and code examples/archives from our readers around the world.  Send your submission to campbell.white@quest.com.  If your article is published, we will mail you a FREE gift from Quest as a gesture or our appreciation.

Our mission at Quest Software - RevealNet Labs is to anticipate the daily responsibilities and challenges faced by database professionals.  Our products help thousands of people solve problems and implement solutions every day.  This newsletter is designed to help facilitate the sharing of information among database professionals.  It is currently circulated to 25,000 readers.

About the Newsletter

This newsletter is distributed to Quest Software - RevealNet Labs customers, prospects and friends who have subscribed to it from our website. If you would like to unsubscribe, please send a note to info@quest-pipelines.com and we will make every effort to remove you from our list.

Subscribe a Friend!

Do you know someone who would like to receive the Pipeline Newsletter? If so, please enter their email address in the box below and click SUBMIT.

  
Subscribe to re:Quest,
Quest's Quarterly newsletter with articles, new product announcements, success stories and much more.
 

Past Issues of the Pipeline Newsletter