May, 2006  

  In This Issue

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

Oracle Administration

Tapping into Oracle's Metadata - Part 2
by James F. Koopmann

In this article James continues to explore the Oracle's Metadata API and provides a powerful function to compare objects and schemas and print the DDL required to bring them in sync.

In Part I of this two part series we explored how to use simple SELECT statements with the DBMS_METATA API. This simple ad hoc interface is great for just doing quick lookups into the metadata, verifying structures, and possibly rebuilding some objects down the line. That particular interface is meant to be a very simplistic method that is great for tinkering with the DDL in your database. Unfortunately it does not address some of the more sophisticated DDL manipulation that we often want to do. Such as creating a certain set of DDL statements from one schema into another. Or comparing two schemas to see where differences are. To really dive into the full power of the DBMS_METADATA API that lets you manipulate DDL you need have to venture past these simple queries and put some application logic around it.

This article does just that. It shows some of the minor differences in how to construct PL/SQL around the API calls to get at and manipulate the DDL extracted from the DBMS_METADATA API. This article takes on the task of comparing the tables in two different schemas to see where the differences are. Keep in mind this example could quickly be converted to compare any types of objects or you could extend the code to accept the object types to compare. Either way I am sure you will see the simplicity and power behind this form of compare that does not require you to get deep into the DBA_ views.

Click here for the article. 
 

DB2

Fetching New Features
by Willie Favero

One of the coolest features in DB2 for z/OS version 8 turns an old programming rule on its head. For years, we taught DB2 application programmers not to use arrays (with the exception of the indicator variable). DB2 version 8 changes that with multirow FETCH and INSERT.

This version 8 SQL enhancement does exactly what you would expect; it lets you insert or fetch multiple rows with a single SQL statement. Imagine the performance advantages, especially in a distributed environment. This enhancement can boost the performance of INSERT processing by as much as 20 percent and FETCH processing by as much as 50 percent. One customer I know tested this feature and averaged 76 percent improvement for FETCH processing and 20 percent improvement for INSERTs. You'll need to do your own testing, of course, because your performance will probably differ.

Click here for the article.  
  

Oracle Development

Oracle Quiz on SQL and PL/SQL - See Water Burning
(ODTUG 2005)
by Lucas Jellema, AMIS

This paper presents a compilation of quirky questions, tantalizing puzzles and cheeky challenges that will have you wander among many interesting, useful and often surprising features and functionality, sometimes as old as Oracle 7.2, yet often overlooked and forgotten. While some of the stuff will challenge and astound even seasoned developers, most can be understood and appreciated by developers with intermediate programming skills in SQL and PL/SQL. I assure you that anyone reading will have ‘since when is that possible’ experiences!

Many of the topics in this paper are not entirely my doing. I do not live on an island and there are so many excellent writers on the internet that write articles, tips, suggestions etc. that have heavily inspired me. Tom Kyte, his books and his AskTom website should really be mentioned here.

By the way, most examples are taken from the Oracle 7Up workshop that we have developed at AMIS, to help Oracle developers familiar with SQL and PL/SQL as it was in Oracle 7, quickly get up to speed with the many really useful features that have been added ever since.

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 newsletter@quest-pipelines.com for possible publication in the Pipeline Newsletter.  If your article is accepted, it will be mailed to over 28,000 readers!
Microsoft SQL Server

Comparison of Oracle Drivers
by Haidong Ji

Oracle is usually a dirty word in the SQL Server community, but like it or not, lots of data resides in Oracle databases. And SQL Server is often used to gather this data together in a warehouse of some sort for spinning cubes, generating reports, etc. Haidong Ji looks at the various methods that you can connect to an Oracle driver and compares the speed of each. If you need to get data from Oracle, or may need to, this is the place you want to start.

Click here for this article.


In A Nutshell
by Kevin Kline

Interested in learning more tips and techniques for SQL Server? "In A Nutshell" is what you are looking for. Kevin Kline, author of O'Reilly's "SQL in a Nutshell" and "Transact-SQL Programming" and President of The Professional Association for SQL Server, offers tips, techniques and much more.  Updated numerous times a week, there is always valuable material to be had!

Click here to see what Kevin is up to in the SQL Server world.
 

Project Management Tips & Techniques
Find the Right Partners Through a Vendor Selection Process
by Tom Mochal, www.tenstep.com 
Each month, Tom Mochal, President of TenStep, Inc. presents project management tips and techniques for planning and managing a project. TenStep, Inc. has a comprehensive, scalable project management process called TenStep (www.TenStep.com), as well as a project lifecycle process called LifecycleStep (www.LifecycleStep.com). Pipeline readers receive 20% off any TenStep or LifecycleStep purchase by entering the coupon code of "Pipeline" in their purchase.

There are times when all organizations look for vendors to fill certain needs. The process is simple. However, depending on the vendor, this might be a lengthy process to complete. The following process can be used in most any selection process - package selection, vendor selection, hardware selection, etc. This process is described at a high-level and will require some drill-down on the details to make sure that it is performed with appropriate diligence for your project.

Click here for more information about the vendor selection process.
 

News & Events

Webcasts
For detailed information on these webcasts, please visit our News and Events page.

Tips of the Month
Oracle DBA Tip of the Month:  Why Isn't Oracle Using the Index?
PL/SQL Tip of the Month:  Altering Types
DB2 Tip of the Month:  Joining Tables Together with XML Functions
SQL Server Tip of the Month: Data Queries from SQL Server to Other Sources
MySQL Tip of the Month: GROUP BY Versus ORDER BY
Puzzle

Interactive Crossword Puzzle: "Name That Capital"
 

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

Click here to Play!

Regular Features

We love getting white papers, tips, articles, and code examples/archives from our readers around the world.  Send your submission to newsletter@quest-pipelines.com.  If your article is published, it will be mailed to over 28,000 subscribers.

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.  

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 visit http://qlist01.quest.com/UnsubMailingList/

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