Author Archives

Wasted Space

Here’s a little quiz: If I take the average row length of the rows in a table, multiply by the number of rows, and convert the result to the equivalent number of blocks, how can the total volume of data in the table be greater than the total number of blocks below the table high […]

Delphix

If you’ve been keeping an eye on my Public Appearances page you’ll know that I am scheduled to go on line with Kyle Hailey for a second (more technical) discussion about Delphix and virtual databases on 19th June (tomorrow). If you haven’t registered, there’s still time to do so. It’s scheduled for 5:00 pm (BST), […]

Hints again

A recent posting on OTN came up with a potentially interesting problem – it started roughly like this: I have two queries like this: select * from emp where dept_id=10 and emp_id=15; select * from emp where dept_id=10 and emp_id=16; When I run them separately I get the execution plan I want, but when I run […]

Webinar questions

Following the webinars about 11g stats that I presented on Monday John Goodhue emailed me a few questions that had come through the chat line while I was speaking, but hadn’t appeared on my screen. He’s emailed them to me, so here are the questions and answers. 1. I’d like to know what parameter to […]

Not In Nasty

Actually it’s probably not the NOT IN that’s nasty, it’s the thing you get if you don’t use NOT IN that’s more likely to be nasty. Just another odd little quirk of the optimizer, which I’ll demonstrate with a simple example (running under 11.2.0.3 in this case): This code is going to give you 10,000 rows […]

Metadata bug

Here’s a funny little bug – which probably won’t cause any damage – that may remind you that (most of) the people who work for Oracle are just ordinary people like you and me who make ordinary little mistakes in their programming. It’s a bug I discovered by accident because I just wanted to check something […]

SQL*Net Compression – 2

I wrote a note a few years ago about SQL*Net compression (this will open in a new window so that you can read the posts concurrently), showing how the order of the data returned by a query could affect the amount of network traffic. An example in the note demonstrated, using autotrace statistics that the number […]

Webinars

Reminder The “Smarter Stats in 11g” webinar is on tomorrow (Monday 10th): Update: I’ve scheduled a third time for the repeats of the free webinar  ”Smarter Statistics in 11g” on June 10th – 1:00 pm BST.  The 6:00 pm is already full, but there are still places on the 9:00 pm showing.  As before we’re […]

10053

I thought I’d try to spend some of today catching up on old comments – first the easier ones, then the outstanding questions on Oracle Core. The very first one I looked at was about pushing predicates, and the specific comment prompted me to jot down this little note about the 10053 trace file (the […]

Same Plan

An interesting little problem appeared on the Oracle-L mailing list earlier on this week – a query ran fairly quickly when statistics hadn’t been collected on the tables, but then ran rather slowly after stats collection even though the plan hadn’t changed, and the tkprof results were there to prove the point. Here are the […]