|
|
 |
Blogs Toad and Database Commentaries |
Toad World blogs are a mix of insightful how-tos from Quest experts as well as their commentary on experiences with new database technologies. Have some views of your own to share? Post your comments! Note: Comments are restricted to registered Toad World users.
Do you have a topic that you'd like discussed? We'd love to hear from you. Send us your idea for a blog topic.

 |
 |
|
|
 |
 |
|
The Cost of Poor Database Design |
|
MikeA
|
Wednesday, May 30, 2007 9:32 AM
|
|
|
|
I’ve been searching for a definitive answer to the question: “What is the cost of poor database design?” No doubt you have all seen the cost/benefit graphs for fixing application problems and the pyramid showing how up to 90 percent of performance issues in a running database are SQL and ind ...
|
 |
|
|
Read More...
|
|
|
|
Feuerstein in Buenos Aires and Magic Tricks |
|
StevenFeuersteinTW
|
Wednesday, May 09, 2007 11:24 AM
|
|
|
|
It is Wednesday, May 09, 2007 and I am sitting in the Admiral's Club at the Buenos Aires airport. I just finished two days in this lovely city. My first day was spent enjoying the chilly, but very sunny afternoon, walking for four hours around the city. It is a busy, busy place with many buses throwing way too much gritty exhaust into the air (hey, ...
|
 |
|
|
Read More...
|
|
|
Using Cross-Instance Parallel Query |
|
MikeA
|
Friday, May 04, 2007 11:23 AM
|
|
|
|
With the use of RAC on the rise it is time to talk about the use of a feature very under-utilized in Oracle. This feature I refer to is cross-instance parallel query. Many times on site visits I see people using single-instance parallel query, but no one whose system I reviewed has used cross-instance parallel. Some weren’t aware it was available ...
|
 |
|
|
Read More...
|
|
|
From SQL Optimization Hints to Plan Instructions |
|
RichardTo
|
Wednesday, May 02, 2007 7:05 AM
|
|
|
|
Most database vendors provide optimization hints which enable a user to influence the decision the database SQL optimizer will make when determining which execution plan it will choose. Oracle provides a full set of optimization hints to help users to rectify an i ...
|
 |
|
|
Read More...
|
|
|
|
Greetings from Las Vegas! |
|
StevenFeuersteinTW
|
Thursday, April 19, 2007 9:16 AM
|
|
|
|
I am visiting this, well, very artificial paradise dropped into the middle of a desert, so as to participate in Collaborate 07. It's been an interesting and fun several days. I have a room on the 26th floor of the Mandalay
|
 |
|
|
Read More...
|
|
|
We don’t need no stinking modeling tool |
|
Bert
|
Friday, April 13, 2007 3:49 PM
|
|
|
|
You’ll have to forgive me for spoofing the famous movie line “We don’t need no stinking badges” (Treasure of the Sierra Madre, 1948 and Blazing Saddles, 1974), it just seemed quite apropos
 |
|
|
Read More...
|
|
|
Sizing of Oracle10g Indexes |
|
MikeA
|
Wednesday, April 04, 2007 9:15 AM
|
|
|
|
In my last blog entry we looked at sizing tables in 10g, of course the other side of that coin is the sizing of indexes. As with tables the Oracle8 manuals had an explanation of how to size indexes, but manuals since then have been strangely silent on the subject. In this blog I will address the sizing of normal, b-tree ...
|
 |
|
|
Read More...
|
|
|
|
Send a memo to yourself! |
|
StevenFeuersteinTW
|
Thursday, March 29, 2007 9:37 AM
|
|
|
|
I rediscovered the joy of writing to myself a week ago, and I also was reminded of the danger of coding in isolation (that is, working by oneself).
 |
|
|
Read More...
|
|
|
|
Toad Data Modeler 3.0 Preview |
|
Bert
|
Monday, March 19, 2007 1:09 PM
|
|
|
|
In this installment I thought I'd write about the exciting, and soon to debut, Toad Data Modeler 3.0 release rather than yet another boring academic or technical topic on data modeling. TDM 3.0 is quite exciting. While it has not yet been made available for public beta – it will be very soon (so please email the product manager
|
 |
|
|
Read More...
|
|
|
Sizing Tables in Oracle |
|
MikeA
|
Friday, March 16, 2007 9:22 AM
|
|
|
|
On one of my first Oracle consulting assignments I had to come up with the sizing estimates for tables for a data warehouse for a telecommunications company in California. At that time, (1994) there were few products that provided sizing al ...
|
 |
|
|
Read More...
|
|
|
You call this work? |
|
StevenFeuersteinTW
|
Wednesday, March 14, 2007 9:54 AM
|
|
|
|
Some musings about the life of a programmer....
Two weeks ago, we held the second annual Oracle PL/SQL Programming conference (I talked about it in last week's
 |
|
|
Read More...
|
|
|
|
|
Dummy SQL Transformation Rules? |
|
RichardTo
|
Thursday, March 01, 2007 10:33 AM
|
|
|
|
I have been asked many times that why there are some dummy SQL transformations/rewrites that look meaningless, but it works in certain situations. Let me give you some examples that may help to explain what theory on behind of Quest SQL Optimizer.
 |
|
|
Read More...
|
|
|
Tracing, Testing, Debugging |
|
StevenFeuersteinTW
|
Friday, February 23, 2007 5:16 PM
|
|
|
|
Test your code! Debug your code! Trace your code! We all hear about how we should or at least could perform these activities with our programs. And all too often the terms and usages seem to blur, and be confused. In reality, these three activities – test, debug, trace – are all quite different in nature and serve different purposes.
This blog entry o ...
|
 |
|
|
Read More...
|
|
|
How is Oracle Like Scuba Diving? |
|
MikeA
|
Wednesday, February 21, 2007 4:08 PM
|
|
|
|
One of my favorite things to do (when I am not tuning and managing Oracle databases) is to don a scuba tank, mask, and exposure suit and slip beneath the waters surface. For a long time I wondered how to reconcile these two interests and then it came to me.
 |
|
|
Read More...
|
|
|
Irrational Relationships and their Ramifications |
|
Bert
|
Friday, February 16, 2007 8:25 AM
|
|
|
|
Over the decades I’ve worked with many data modelers – and I’ve learned something key to building a great model that is not always intuitively obvious: spend at least 50% of your data modeling time on the relationships. Often modelers are so overly concerned with the entities, attributes and unique identifiers or keys ...
|
 |
|
|
Read More...
|
|
|
What's New with Quest Code Tester for Oracle 1.5 |
|
StevenFeuersteinTW
|
Wednesday, February 14, 2007 2:09 PM
|
|
|
|
The Major Enhancements in the 1.5 Release
Of course, we spent lots of time just fixing bugs and making lots of small changes. But there were some very critical "big ticket" enhancements that were requeste ...
|
 |
|
|
Read More...
|
|
|
Transformation Rules Relating to Index Usage |
|
RichardTo
|
Friday, February 09, 2007 8:25 AM
|
|
|
|
In Quest SQL Optimizer, transformation rules relating to index usage are designed to guide the database SQL optimizer as to how it should use the indexes for a specific SQL statement. Although those rules may familiar to most of SQL developers, but it is still worth to illustrate some commonly used rules for SQL beg ...
|
 |
|
|
Read More...
|
|
|
Here comes Quest Code Tester for Oracle! |
|
StevenFeuersteinTW
|
Wednesday, February 07, 2007 11:26 AM
|
|
|
|
As I write these very words, we are preparing to release the commercial release of Quest Code Tester for Oracle 1.5.
I hope that you have already heard about this new testing tool. If not, I offer a quick intro/overview ...
|
 |
|
|
Read More...
|
|
|
Sharing the wealth (of knowledge and expertise) |
|
StevenFeuersteinTW
|
Wednesday, January 31, 2007 12:07 PM
|
|
|
|
I recently spent two days training a group of about 30 developers and DBAs out east. As with any sizeable collection of technologists, the level of expertise and the years of experience varied greatly (and don't always go hand in hand!).
|
 |
|
|
Read More...
|
|
|
Tuning UNDO Segments |
|
MikeA
|
Monday, January 29, 2007 9:03 PM
|
|
|
|
Of the many databases I have examined on releases 9i and 10g, most are using the automatic undo management feature and on the whole it does a pretty good job of managing the undo segments (for you other old timers, rollback segments).
 |
|
|
Read More...
|
|
|
|
Normalization in Non-Gobbledygook Language |
|
Bert
|
Friday, January 12, 2007 8:45 AM
|
|
|
|
Probably one of the most often discussed and hotly debated topics in both data modeling and database design is that of normalization. Many database designers, architects, DBAs and senior developers have differing positions and/or beliefs on the topic. However quite ...
|
 |
|
|
Read More...
|
|
|
Hidden Costs |
|
MikeA
|
Monday, January 08, 2007 9:40 AM
|
|
|
|
Caveat Emptor (Buyer beware) has been around since, well, since time began. Whether barter or cash, when doing a deal the buyer has to careful, this is especially true in the complex area of software licensing.
|
 |
|
|
Read More...
|
|
|
How to control many table join |
|
RichardTo
|
Wednesday, January 03, 2007 3:42 PM
|
|
|
|
In my last blog, I use two tables join to illustrate the simple path control, now let’s use a three table join SQL statement to demonstrate a more complicated scenario. Let’s assume that A.key, B.key and C.key are all indexed.
|
 |
|
|
Read More...
|
|
|
Tailoring Session Parameters |
|
MikeA
|
Tuesday, December 26, 2006 5:03 PM
|
|
|
|
Many times I am asked how to tailor the initialization parameters for a specific process or user. Essentially the easiest way to set custom initialization parameters for a particular session is to use the ALTER SESSION SET command in a logon trigger keyed to a specific schema or schemas. For example, say we had an application where we wanted to set ...
|
 |
|
|
Read More...
|
|
|
An Ode to Toad |
|
StevenFeuersteinTW
|
Tuesday, December 19, 2006 3:47 PM
|
|
|
|
I thought I would take a moment out of my busy Quest Code Tester development efforts (that is, heads-down coding, writing specifications, working with developers in Chicago, Columbus, St. Louis and Russia) to give thanks to Toad.
&l ...
|
 |
|
|
Read More...
|
|
|
Removing 10g Grid Control |
|
MikeA
|
Thursday, December 14, 2006 12:36 PM
|
|
|
|
I recently went on a very nice vacation to Curacao. Before I went on vacation the Oracle 10g Grid Control (10.2.0.2) I had installed on my Laptop for monitoring my home office systems was working. I took my laptop with me to allow offload of pictures from my cameras and to track email while I was away. When I returned home and hooked my laptop back up to my home network Grid Control wouldn’t start and of course ...
|
 |
|
|
Read More...
|
|
|
How to Control Two Tables Join Path? |
|
RichardTo
|
Thursday, December 07, 2006 3:06 PM
|
|
|
|
In old version of Oracle database, it is easy to control the join path by reordering the tables in table list after the FROM clause, but it is getting difficult to control the join path in today’s cost based SQL optimizer, I am going to introduce method that is applicable in most databases such as Oracle, Sybase, DB2 and SQL Server in the following:
To control a join path, we cannot tell the database SQL optimizer which path is the best one to select. Instead, we add something to the syntax of the SQL statement that causes an increase to the cost of the current join path selected by database SQL optimizer. Let’s take a look at the following example of two table join scenarios.
|
 |
|
|
Read More...
|
|
|
Are errors positive or negative? |
|
StevenFeuersteinTW
|
Monday, December 04, 2006 10:30 PM
|
|
|
|
You probably don't give this a second thought, but sometimes the question rears its ugly and bewildering head in the code you are writing – precisely because Oracle itself provides multiple answers to the question, right from inside its own code base. Let's take a closer look.
& ...
|
 |
|
|
Read More...
|
|
|
Forward Engineering – A Better Approach to Design |
|
Bert
|
Wednesday, November 29, 2006 8:10 AM
|
|
|
|
Last month I wrote about “Why Reverse Engineering is Always Worthwhile.” So the logical next issue to examine is forward engineering – its different approaches and its many comparative benefits. The best way to do this is via an analogical example
 |
|
|
Read More...
|
|
|
Watching Your ASMM in Oracle10g |
|
MikeA
|
Monday, November 27, 2006 8:44 AM
|
|
|
|
Oracle’s Oracle10g requires more memory than was ever required before. If you utilize any of the new features such as automatic storage management (ASM) and automatic shared memory management (ASMM) then you really need to pay attention to what memory is doing in 10g.
|
 |
|
|
Read More...
|
|
|
The Brave New World of Oracle Management |
|
MikeA
|
Wednesday, November 15, 2006 3:50 PM
|
|
|
|
I remember reading “Brave New World” when I was in high school, we needn’t mention the year. I was fascinated by the system described in the book that seemed so logical on the surface but needed so many props underneath to keep it going. It reminds me at times of some of the Oracle management that goes on these days. ...
|
 |
|
|
Read More...
|
|
|
Why Join Path Matters |
|
RichardTo
|
Monday, November 13, 2006 12:28 PM
|
|
|
|
The Nested Loop join operation is the basic join operation which is supported by most RDBMS, since it requires less memory and less temporary space. Normally, it can provide faster data response time than other join operations. But, the path of a Nested Loop join will significantly affect the speed of the join operation. Let’s use a two table join as an example to understand how this works.
|
 |
|
|
Read More...
|
|
|
PL/SQL Breadcrumbs |
|
StevenFeuersteinTW
|
Thursday, November 09, 2006 11:55 AM
|
|
|
|
When an exception is raised, one of the most important pieces of information a programmer would love to get hold of is the line of code that caused the exception to be raised. Before Oracle 10g came long, the only way to get this information was to allow the exception to go unhandled and then view the error stack. The following chain of program calls shows you what I mean.
|
 |
|
|
Read More...
|
|
|
Why Can’t Johnny Tune? |
|
MikeA
|
Wednesday, November 08, 2006 1:46 PM
|
|
|
|
I often see DBAs and developers who don’t know the first thing about tuning SQL. They ask “Why do I need to know that, can’t Oracle tune itself?” The truth of the matter is that Oracle is, for the most part, able to do a pretty decent job of tuning itself if it is given enough information and the queries or tuning tas ...
|
 |
|
|
Read More...
|
|
|
Aw, who cares about testing, anyway? |
|
StevenFeuersteinTW
|
Thursday, November 02, 2006 11:28 AM
|
|
|
|
All those big brain technoids always make such a big deal out of testing. Too many bugs in our software! Bugs cost money! Bugs make us look bad! Test your code before you give it to your users! Test your code before you write your code! Test your code before you learn how to write code! C'mon, I say, give us a break!
< ...
|
 |
|
|
Read More...
|
|
|
Are DBA’s Obsolete? |
|
MikeA
|
Wednesday, November 01, 2006 3:30 PM
|
|
|
|
With each new release of a database, be it Oracle or one of their competitors, we hear the cry that this release will make DBAs as we know them obsolete. We hear again and again how this automated feature set or that new GUI interface will automate the DBA job. So far, all of these claims of DBA obsolescence have been for naught, to mis-quote Samual Clements “The reports of the DBAs death are greatly ex ...
|
 |
|
|
Read More...
|
|
|
Three Tips Most Excellent for PL/SQL Developers |
|
StevenFeuersteinTW
|
Monday, October 30, 2006 4:58 PM
|
|
|
|
Welcome to my Toad World blog! I will offer on this blog a wide variety of tips and incredibly deep and surprising insights on the Oracle PL/SQL language (the object of my obsessive personality for the last 10+ years). I look forward to your responses and critiques. That is: I hope you will engage with these ideas and feel perfectly comfortable with disagreeing with me, offering other, perhaps better, i ...
|
 |
|
|
Read More...
|
|
|
Why SQL Tuning? |
|
RichardTo
|
Monday, October 30, 2006 2:28 PM
|
|
|
|
For years, commercial database manufacturers have fought an endless battle to improve the performance of inserting, updating, deleting, and retrieving information stored in the database. Despite their continual efforts and hard work, we have not seen a significant improvement in the performance of most Relational Database Management Systems (RDBMS). Users still suffer from under-performing SQL statements and database expe ...
|
 |
|
|
Read More...
|
|
|
Why Reverse Engineering is Always Worthwhile |
|
Bert
|
Monday, October 30, 2006 1:04 PM
|
|
|
|
In many shops that I visit, neither the DBA’s nor the database developers place much value on performing data modeling. Often there are seemingly sound reasons for this exclusion: the historically high price of data modeling tools, data models are not required as a project milestone or deliverable, and quite often the database was simply either inherited or supports a third party application – ...
|
 |
|
|
Read More...
|
|
|
Changes in SQL Tuning |
|
MikeA
|
Wednesday, October 18, 2006 4:54 PM
|
|
|
|
When I started working with Oracle in 1990 there weren’t many SQL tuning tools available. At most you had the Oracle supplied tools which allowed you to capture an explain plan and minimal tracing. Most SQL tuning consisted of either encouragin ...
|
 |
|
|
Read More...
|
|
|
 |
 |
|
 |
|
 |
|
|