By Richard To on
Tuesday, April 28, 2009 8:50 AM
This blog is the second in a series about common misconceptions surrounding SQL tuning. It covers the misconception that the goal of SQL tuning is to write a better SQL statement. The real goal of SQL tuning is not to create a better SQL statement, but it is to help the database optimizer to make the right decision when it is choosing the execution plan.
If you browse the internet with the key words “SQL Tuning”, you...
|
By Steven Feuerstein on
Monday, April 27, 2009 8:47 AM
Every month, a Toad World newsletter goes out to thousands of Toad users and it includes a monthly puzzle that I write. Last month's puzzle went like this:
Which of the following blocks does not contain an infinite loop?
A.
DECLARE
l_line VARCHAR2(32767);
l_file UTL_FILE.file_type :=
UTL_FILE.fopen ('C:\temp', 'my_file.txt', 'R');
BEGIN
LOOP
UTL_FILE.get_line (l_file, l_line);
END LOOP;...
|
By Steven Feuerstein on
Wednesday, April 22, 2009 6:06 PM
In case you simply can't get enough of Steven Feuerstein (no, I don't generally talk about my self in the third person or in the royal "we"), I invite you to check out this interview. I had an awful lot of fun answering the questions, and you might be entertained reading them.
|
By Richard To on
Friday, April 17, 2009 2:37 AM
Written by Rene Woody
This blog is the first of a series about test running the SQL statements in the Tuning Lab in Quest SQL Optimizer for Oracle to find the best performing SQL statement in your database environment. It covers the options for terminating the SQL alternatives when they are executed in a batch.
The SQL optimization process in the Tuning Lab generates multiple alternative SQL statements that...
|
By Steven Feuerstein on
Monday, April 13, 2009 9:57 AM
It's truly one of the oddities of the PL/SQL language that it does not offer a delimited string parsing program. The closest we can get is DBMS_UTILITY.COMMA_TO_TABLE, and that is sadly deficient (it only parses comma-delimited strings and each item between the commas must be a valid PL/SQL identifier).
So I built one myself (the parse package) and put it in the demo.zip file...
|
By Richard To on
Monday, April 13, 2009 2:18 AM
Written by Rene Woody
This blog is a continuation of a series about the SQL optimization process in the Batch Optimizer and the Tuning Lab modules of Quest SQL Optimizer for Oracle. It explains how to generate SQL alternatives that do not have Oracle optimization hints.
Oracle provides optimization hints that can be added to the syntax of a SQL statements to attempt to influence the execution plan that the database optimizer will use to execute the SQL statement. Quest SQL Optimizer for Oracle uses this technique in its optimization process to generate more unique execution plans for your original SQL statement. For more information on how the SQL alternatives are generated, see this previous blog: Optimizing SQL Part 1 – The Optimization Process. ...
|
By John Pocknell on
Wednesday, April 01, 2009
In this week’s blog, I’d like to introduce you to Toad’s Formatter. For those older “Toadies”, you’ll be familiar with its predecessor Formatter Plus.
|
By Mark Kurtz on
3/31/2009 6:33 AM
Recently there have been a lot of questions on some of the features of Toad Data Modeler which are part of the basic components of the tool but for whatever reason people seem to have a bit of trouble figuring them out.
In the past I have published some papers on a couple of these features on Toad World and I will provide links to them at the bottom of this blog.
One of the best and easiest ways to find...
|
By Jeff Smith on
3/31/2009
This was a question I got this morning from a customer. I showed them how to do this with the ‘Alter’ dialog in Toad’s Schema Browser. However, they wanted to do it for more than one table at a time, and apparently some OTHER tool could do so. Why couldn’t Toad?
Great question. It turns out that IT CAN INDEED do so. Here’s how:
Step 0: Open the ‘Rebuild Multiple Objects’ window
 ...
|
By Daniel Norwood on
3/27/2009 4:30 PM
If you’re like many of the analysts I speak with on a regular basis, then you use Microsoft Excel. It’s a staple of the Information Age, right!? It seems like you can do everything but wash your car with Excel. But what if you want to get that data out of your database and into a series of worksheets… on a regular basis…? Unless you have lots of free time, this is probably something that you don’t look forward to. Let’s take a look at how Toad for Data Analysts can make your Excel-life even easier!
|
By Steven Feuerstein on
Friday, March 27, 2009 6:14 AM
Developers are hard people to satisfy. Oracle gives us this incredibly robust, powerful and easy to use database programming language – and all we can do is complain about what it doesn't do for us.
Well, that's reality for you: PL/SQL is powerful and robust and easy to use, but also very narrowly focused. So if you want it to do something outside of its area of expertise, sometimes you have to jump through a few more hoops than you'd like. ...
|
By Devin Gallagher on
3/25/2009 8:33 AM
I had a very productive visit with an information management company, demonstrating the complete range of Toad solutions, including the Toad Development and DBA Suite for Oracle, Toad for SQL Server, as well as Toad for Data Analysts. The presentation took place in Boston, and dialed in through a webcast were attendees in Massachusetts, Pennsylvania, Belfast, and Bangalore. This visit was scheduled well in advance, and we...
|
By Jeff Smith on
3/25/2009
I think we can all agree that of ALL the features in Toad that impact the most number of users is the data grid. Whether investigating the contents of a table, running queries, or monitoring connected sessions in the Session Browser, the data grids deliver information to the user. How well you know the data grid and all of its embedded features will impact how useful and productive you are for your employer.
We often...
|
By Devin Gallagher on
3/24/2009 7:03 AM
I am an SC for Quest Software, and very fortunate to be able to demonstrate the solutions that make up the Toad product family. My initial goals for this blog will be to share some of the interesting conversations and discussions that arise from Toad demonstrations. Rather than screen shots of a certain feature, I will try and relate Toad functionality to real life scenarios and examples.
To start and end my demonstrations,...
|
By Jeff Smith on
3/24/2009
While co-presenting with Bert at the Rocky Mountain Oracle User group, Bert yells out “Hey, show that cool FK lookup thingie in the data grids.” I was like, ‘huh?’ Surely Bert just didn’t call me out in front of 100 or so people on a Toad feature that I did not fully understand?
Well, I got around to figuring out just what Bert was talking about, and NOW I remember what all the fuss was about. This feature was added...
|
By Bert Scalzo on
Wednesday, March 18, 2009 4:28 AM
A lot of times people will ask the Toad Yahoo discussion group or live at Toad Tips & Tricks events whether Toad can do something. Specifically, the question might be more like can Toad version X support this very cool new Oracle feature I’d like to leverage.
For example, a user might ask does Toad 8.0 offer a screen for Oracle AWR. If you look back at my earlier Toad World blog about Toad versus Oracle versions,...
|
By Johannes Ahrends on
3/18/2009 4:09 AM
By Johannes Ahrends and John Pocknell
In the previous blog, we compared and contrasted how database Performance Management operations are performed in Oracle’s Enterprise Manager (OEM) and Quest’s Toad DBA Suite for Oracle and how Toad is an excellent complement to OEM because it simplifies and automates many tasks which would...
|
By Richard To on
Friday, March 13, 2009 4:11 AM
This blog is the first in a series about misconceptions surrounding SQL tuning that are quite common. The first one covers the misconception that you can use the estimated cost from the database SQL optimizer to accurately judge the performance of a SQL statement in comparison to its rewrites.
SQL tuning is a very interesting topic and most DBA or developers have at least some experience with tuning SQL. They...
|
By Kevin Dalton on
3/12/2009 9:41 AM
Welcome to my first blog! I am very excited about this opportunity to relay information about benchmarking/performance testing and, in particular, Benchmark Factory for Databases (BMF), but where to begin? For my first blog, I’ll start on the topic of latency.
One key thing to understand when doing testing is the characteristics of the workload, and a big piece of the workload is how fast the transactions are submitted...
|
By Steven Feuerstein on
Monday, March 09, 2009 8:18 AM
In part 1 of this series, I reviewed the automated refactoring features in SQL Developer. In part 2, I checked out PL/SQL Developer's refactoring features. Now, it's time for Toad.
Differently from both PL/SQL Developer and SQL Developer, Toad does not have...
|
By Johannes Ahrends on
3/2/2009 6:04 AM
By Johannes Ahrends and John Pocknell
In the previous blog, we compared and contrasted how Database Maintenance operations are performed in Oracle’s Enterprise Manager (OEM) and Quest’s Toad DBA Suite for Oracle and how Toad is an excellent complement to OEM because it simplifies and automates many tasks which would take longer in OEM. ...
|
By Bert Scalzo on
Wednesday, February 25, 2009 6:11 AM
The joint IOUG and OAUG Collaborate 2009 conference is a just over two months away. Not only is Collaborate a premier event for Oracle database technology and applications technical sessions, it’s a good format for hobnobbing with fellow database professionals.
This year’s event is being held Sunday, May 3rd, through Thursday, May 7th, at the Orlando convention center. I’m taking my family along and fully intend...
|
By Jeff Smith on
2/24/2009
I recently got an email from a user, and after I replied figured that it might be helpful for others to see as well.
The Question:
“I was at the ROUMG conference and have a question. You guys showed how to setup a short cut in the options. Like to do a select statement – you can type in a short cut word and it will do the put the script in. Like autofinish.
I know I need to build...
|
By Bert Scalzo on
Wednesday, February 18, 2009 8:04 AM
Like most things in life, there are prerequisites and preparations for Oracle databases. Regardless of version, this is especially true for application access and usage. Oracle is a highly scalable and configurable database, therefore DBAs must configure their database for how it will be used to guarantee meeting their users’ expectations – including database developers. Failure to do so can lead to perceptions of “slow performance”...
|
By Richard To on
Friday, February 13, 2009 6:16 AM
Written by Rene Woody
This blog is a continuation of a series about the SQL optimization process in the Batch Optimizer and the Tuning Lab modules of Quest SQL Optimizer for Oracle. It sheds some insight on why the SQL optimization process can take hours to run and what you can do to shorten the process.
SQL Statement...
|
By Richard To on
Wednesday, February 04, 2009 10:35 AM
|
By Bert Scalzo on
Wednesday, February 04, 2009 8:09 AM
The Oracle 11g database is nothing short of a modern technical marvel. From the features it offers to the many platforms it runs upon – it’s amazing how far they’ve come. But as a “true enterprise” database, Oracle 11g requires some DBA oversight to be applied when creating databases. Although Oracle supplies a very simple and yet fully capable database creation assistant (DBCA) utility, one needs to use it intelligently. AS I tried to point out in a prior blog, Oracle 11g on a notebook: Tread Lightly, creating an Oracle 11g database on a notebook is not ideally done with DBCA defaults. So, I thought I’d walk you through my basic recommendations for creating a light weight Oracle 11g database. ...
|
By Johannes Ahrends on
2/3/2009 9:36 AM
By Johannes Ahrends and John Pocknell
This 3-part blog will help you differentiate between what Oracle Enterprise Manager (OEM) offers the DBA compared to Toad DBA Suite for Oracle and how the same tasks are approached using each.
Toad DBA Suite for Oracle provides a complete solution for DBAs using Oracle Standard Edition, or in smaller shops where OEM is not being used or as a complementary solution for...
|
By Richard To on
Friday, January 30, 2009 6:31 AM
Written by Rene Woody
This blog is a continuation of a series about the SQL optimization process in the Batch Optimizer and the Tuning Lab modules of Quest SQL Optimizer for Oracle. It explains the order in which the SQL statements are displayed.
After the optimization process is finished, the SQL alternatives are displayed in the order of their Oracle cost from the smallest cost to the largest. The Oracle cost is found in the execution plan and is generated by Oracle. The Oracle cost provides an estimate of the system resources that will be used by this execution plan to process the SQL statement. The theory is that the SQL statement with the lowest cost should be the best alternative. When actually testing the performance of alternative SQL statements in your database environment, you will find that frequently the SQL statements with the lowest cost are not the best performing SQL, since if Oracle cost estimation was correct for this SQL, you probably would not need to tune this SQL, so the best practice is to execute all the SQL alternatives to find the best one and not just assume that the SQL statement with the lowest estimate is the best. ...
|
By Bert Scalzo on
Wednesday, January 21, 2009 6:39 AM
We don’t get this particular question per se as often as one would expect, but we do see enough user problems where this fundamental issue becomes the underlying question to answer for problem resolution. Below is a chart for the release dates for both Toad and Oracle. The “blue highlighted” dates are when Oracle first releases a major new version, such as Oracle 10g in January of 2004. But it’s the “red highlighted” dates...
|
By Richard To on
Friday, January 16, 2009 5:49 AM
Written by Rene Woody
This blog is a continuation of a series about the SQL optimization process in the Batch Optimizer and the Tuning Lab modules of Quest SQL Optimizer for Oracle. It covers the importance of finding the best “driving path” for retrieving rows from the database.
We’ll use a simple illustration of a Nested Loop...
|
By John Weathington on
Friday, January 16, 2009
US Airways flight 1549 teaches us that improbable events actually do occur sometimes. When the NTSB goes to investigate, the airplane’s black boxes will prove vital in the determination of cause. We can leverage this concept to fortify our chances of surviving a serious investigation. In this article I introduce design considerations for what I call the Black Box Data Store, the important data you need to prove your innocence in an investigation.
|
By Bert Scalzo on
Wednesday, January 14, 2009 7:31 AM
Oracle explain plans – they are considered by many as critical when optimizing or tuning SQL statements (I however prefer to look at trace data in conjunction with explain plans). For those who prefer primarily to rely on explain plan interpretation, comprehension and improvement – Toad offers numerous capabilities to make the entire process simpler and more productive. Because let’s face it, explain plans are like much proofs...
|
By Johannes Ahrends on
1/8/2009 8:56 AM
Is German your native language? Read this blog in German on Johannes' tech articles page.
Since version 10g, Oracle provides a new job scheduling mechanism named scheduler. There are several advantages over the old dbms_job function but as often the documentation and the various functions is more confusing than helpful. In 11g...
|
By John Weathington on
Thursday, January 08, 2009
Coming off of a break myself, it seems appropriate to discuss the architectures what support continuity, when your company takes a break from following compliance policy. In this article, we discuss why this might happen, and what you can do to minimize the disruption this type of break can cause.
|
By Johannes Ahrends on
1/7/2009 12:51 PM
Is German your native language? Read this blog in German on Johannes' tech articles page.
A lot of companies with Oracle databases have been using RMAN as their main backup utility for years now. But others are still relying on the classical way by copying data files or even using Oracle export as a backup method. There are several reasons for this,...
|
By Bert Scalzo on
Wednesday, January 07, 2009 7:48 AM
I’ve got Toad Freeware installed and running on my Ubuntu 8.10 Linux machine – and so far, not a single problem has yet occurred (knock on wood).
Here are the basic steps that I had to perform in order to “Make it so” (as Star Trek Next Generation’s Captain Piccard would say):
Install Ubuntu with Wine – make sure that the Wine version is latest and greatest...
|
By Steven Feuerstein on
Tuesday, January 06, 2009 9:30 AM
In part 1 of this series, I reviewed the automated refactoring features in SQL Developer. Now I will check out PL/SQL Developer (version 7.1.5)'s refactoring features.
To access these features, I highlight some code in a procedure edit window and then choose Refactoring from the right click menu. I see these options:
I...
|
By Jim Wankowski on
Tuesday, January 06, 2009 8:19 AM
Happy new year everybody. I hope everyone had a great holiday season. It’s tough getting your head back in the game after a long holiday, that’s for sure! But there is a lot to look forward to in 2009 with our DB2 products. Toad for DB2 came a long way in 2008. As you may or may not know, we are in process on transitioning all of the functionality of our Quest Central for DB2 product over to Toad. ...
|
By Richard To on
Friday, January 02, 2009 7:11 AM
Written by Rene Woody
This blog is a continuation of a series about the SQL optimization process in the Batch Optimizer and the Tuning Lab modules of Quest SQL Optimizer for Oracle. It explains how the Oracle optimization hints are applied to the SQL statements to generate more execution plans.
One technique that you can...
|
By Richard To on
Friday, December 19, 2008 12:16 PM
Recently, I received an email from the presales support team. They asked me to help them tune three SQL statements for a benchmark database provided by a customer. Our presales support said that our SQL Optimizer was not providing any alternatives for two of these three complex SQL statements. I found two of these SQL statements were very complicated and I knew that there should be a lot of alternative SQL generated. Finally,...
|
By Bert Scalzo on
Wednesday, December 17, 2008 6:27 AM
Many business analysts rely heavily upon Microsoft Excel as one of their primary tools for manipulating and reporting upon their business data. Sometimes they will send data extraction requests to their information systems (IS) people to perform and then deliver, sometimes they’ll instead access it themselves in place via the external data interface within Excel, and sometimes they’ll extract the data themselves from the Oracle...
|
By Bert Scalzo on
Wednesday, December 10, 2008 7:24 AM
Lately I’ve been seeing what I think might be an interesting yet disturbing new trend: whenever there’s a problem that initially seems unusual and/or unexplainable, it’s not uncommon to quickly question virtualization as a potential source of the issue. I fully understand that virtualization adds a new variable to the basic equation – and represents greater complexity due to more moving parts. But it seems to be somewhat rushed...
|
By Steven Feuerstein on
Tuesday, December 09, 2008 12:23 PM
I have long been attracted to the idea and process of refactoring (explained below). It is now very exciting to see that automated refactoring features are working their way into tools for PL/SQL development. I will analyze these features over the next few entries in my ToadWorld blog, starting with SQL Developer and then moving on to PL/SQL Developer, and finishing up with SQL Navigator and Toad. ...
|
By Richard To on
Friday, December 05, 2008 7:23 AM
Written by Rene Woody
This blog is a continuation of a series about the SQL optimization process in the Batch Optimizer and the Tuning Lab modules of Quest SQL Optimizer for Oracle. It covers how to specify the table join syntax to be used when generating SQL alternatives.
When the syntax for SQL statements was originally developed,...
|
By Jeff Smith on
12/5/2008
For most users, the significant new feature for v9.7 will be the AppsDesigner. This technology allows a Toad user to take a collection of Toad commands or Actions and create a miniature Toad App or macro that you can then replay on demand or schedule to run when needed.
Like most new features, you generally will learn how to use them when you are faced with a task that requires said feature. I’d like to share an...
|
By Bert Scalzo on
Wednesday, December 03, 2008 10:47 AM
A few weeks ago I wrote Part III of this series – and fortunately (or unfortunately for my poor ego) an astute reader wrote to ask for some clarification on my Excel chart. Ends up my Excel formula had a mistake – so many thanks to Johannes V. Djernæs from Miracle A/S in Denmark. So I’ll be...
|
By Bert Scalzo on
Wednesday, November 26, 2008 6:50 AM
Just a very brief blog this Thanksgiving week (my favorite holiday of the year) – part 2 of last week’s relatively easy suggestions on how to make Oracle run as fast as possible on minimal computer setup. As before, my goal is simply to squeeze as much performance blood from the Oracle turnip as possible when deployed on limited capacity equipment....
|
By Richard To on
Friday, November 21, 2008 5:54 AM
Written by Rene Woody
This blog is a continuation of a series about the SQL optimization process in the Batch Optimizer and the Tuning Lab modules of Quest SQL Optimizer for Oracle. It covers optimizing SQL statements that use VIEWs.
In early versions of the Oracle database, a VIEW was handled like a temporary table that...
|
By Jeff Smith on
11/20/2008
After working with Toad for almost a decade (I think I first saw it as a new grad in ’99…), I tend to start taking things for granted when I do demonstrations for customers or present at conferences on the beauty of Toad. It’s very easy to get excited about CRUD Matrices and the beauty of PL/SQL debuggers, but overlook the critical core features that users often miss out on.
Well, ‘overlook’ is such a critical, judgmental...
|