Orcan Update…

I’ve been in Sweden for the last few days at Orcan, the Swedish Oracle User Group. The event was held in the Yasuragi Hasseludden hotel about 20 minutes outside Stockholm. I was a surprised when I arrived as the hotel is a Japanese Spa and it didn’t really seem to be an obvious place to hold a conference. As it turned out it was a great choice. The atmosphere was very relaxing and the social event involved sitting and chatting in a hot bath then going for food. It sounds a bit strange, but it was good fun.

Some of the sessions were in Swedish, so I took the opportunity to use the spa facilities, including a flotation tank. It’s quite freaky lying in a big plastic bubble full of salt water with no light or sound. Sensory deprivation is a strange thing…

It was good to see some familar faces (Julian Dontcheff and Laurent Schneider) and meet some new people including Joel Goodman.

I’d like to say a big thank you to Patrik Norlander for inviting me to speak at the event and thanks to everyone who attended my talks. Hope to see you all again soon.

I think I’m going to be at home for the next few months. It looks like I’ll be in Chile, Bulgaria and Finland in the middle of next year, but for the moment life is back to normal…

Cheers

Tim…

Fedora 10 and Oracle 11gR1…

I like to meddle with Fedora from time to time, just so I can see what’s coming round the corner in RHEL. I read recently that Fedora 11 will be the base for RHEL6, which means we are about 6 months away from seeing what the future of RHEL is going to be…

Much as I expected, there were no real problems getting Oracle 11gR1 running on Fedora 10. Here is an OS and an Oracle installation guide for Fedora 10.

The Fedora 10 network configuration dialog seemed to have a couple of issues/bugs. For a start, it was impossible to set the subnet mask. It was constantly overwritten by the default gateway. I adjusted it in the config file and it was fine, but it was a bit confusing for a while. 🙂

I’ve complained a number of times in the past that Fedora doesn’t seem to have an obvious direction. Is it server or is it desktop? Of course it’s both, but I think some clear intent helps from a marketing point of view. The fact that the Desktop Edition, a live CD, is at the top of the Get Fedora page will save many people form downloading a DVD full of software they will never need. Once installed, you get access to all the software via the “Add/Remove Software” dialog.

A few interesting things about the installation are:

  • The installation package list is fixed. There’s no customization during the installation.
  • The installer assumes you want DHCP for your network.
  • SELinux and the Firewall are on by default.
  • Services like SSHD are not on by default.

I guess if these issues annoy you, don’t pick the desktop edition. 🙂

I think this is definite step in the right direction as far as encouraging Fedora for desktop use.

Cheers

Tim…

PIVOT and UNPIVOT in 11g…

I’m trying to get back into the swing of writing again after my 2 month layoff. It’s a little daunting, but quite fun as well.

There’s a bunch of 11g new features that didn’t make it into the OCP exam, and the PIVOT and UNPIVOT operators fall slap bang into that category.

Pretty neat!

Cheers

Tim…

Oracle 11g RAC On Linux Using VMware Server 2…

I mentioned in a previous post I had taken the plunge and upgraded to VMware Server 2 on my laptop. Now I’ve also upgraded my main machine at home and it seems to be working fine. Probably the most complicated thing I run at home is a virtual RAC, so I wrote a new article to document the installation:

From a user point of view, the only difference between VMware Server 1.x and 2 is the new web-based managment interface. The VM setup itself is almost identical and as you would expect, so is the Oracle installation.

So far so good.

Cheers

Tim…

NZOUG Day 1…

NZOUG Day 1 seemed to go pretty well. My talk went OK, and the guys from Quest gave me some more Toads to shoot out into the audience. In the evening we all went out for a Skyrides and Luge trip. The Luge rides were cool, but I nearly fell out at one point.

On the last luge run you had to carry a cup of water, with the person spilling the least winning a prize. Francisco Munoz Alvarez got some shots off me. Here’s a couple of shots of Francisco and his son.

The luge runs were followed by food and a quiz. My team came 4th from bottom and I was unable to answer most of the questions about the UK. 🙂

It was a great night out, but I feel really tired today! I guess I better go and prepare for my second presentation now…

Cheers

Tim…

AUSOUG Perth…

The AUSOUG Perth conference finished a few hours ago. It’s a really good size event, about 400 people, which is big enough to feel busy, but small enough to feel personal. I met a bunch of familiar faces and many new ones.

The best speaker prize went to Connor McDonald. If you get the chance, check out his presentation style. It’s not the normal thing you see on the Oracle conference circuit.

I did two talks, which must have gone down OK with the audience as I got the second prize behind Connor. It was very nice surprise.

So tomorrow morning I leave Perth and head to Sydney for a couple of days on my way to Gold Coast…

Cheers

Tim…

Doug: I’ve already had the Number Two’s joke, so I’ll head you off at the pass on that one… 🙂

OpenWorld Pictures…

I didn’t really take many photos in San Francisco, but here’s two shots I thought were worth posting…

First the DeLorean. Why didn’t Larry pack the Database Machine into one of these?

From OpenWorld

Next, a photo taken on Friday morning, after the conference was over. Believe it ot not, this was the road with the big marquee. Hard to imagine this road actually has traffic on it the rest of the year. 🙂

From OpenWorld

Cheers

Tim…

OpenWorld 2008 Summary…

This is the 3rd OpenWorld I’ve attended and I think it was probably the most enjoyable for me so far.

The first year I was more than a little overwhelmed and intimidated by everything. The scale of the event is hard to imagine and being surrounded by people who are at the top of their game is quite daunting. I wouldn’t say I was suffering from hero worship, but I did get the odd “we are not worthy” moment.

The second year I had a bit of a “been there, done that” attitude and I don’t think I really appreciated it as much as I should have done.

This year I think I found my groove and relaxed into things. It’s really cool to reconnect with people from previous years and meet new people.

Massive thanks to Victoria Lira and Lillian Buziak who I bugged incessantly about my travel arrangements for this trip. You are both worth your weight in gold. Big thanks to Justin Kestelyn and the OTN crew for making sure everything ran smoothly.

Cheers

Tim…

PS. Doug, perhaps next year you will be 3rd on the list…

Real World Performance, Exadata Storage & ACE Session…

Today was a very full day…

Real-World Database Performance Techniques and Methods
Real-World Database Performance Roundtable

I went to the primer session on Tuesday and both sessions today. I don’t think there was anything particularly new to me here, but listening to the experiences of a team like that helps you crystallize things in your mind. The three sessions were well presented and the last session, which was a Q&A session, through up a few interesting things.

Take-home messages in no particular order:

  • It all boils down to the SQL and the cardinality of the steps in the execution plan. If the optimizer gets the correct cardinality for each step it should make the correct decision. If it doesn’t it will make a bad decision. When you spot a problem SQL you need to find out why it make that bad decision.
  • Debug methodically. If only a fraction of your SQL performs badly, making global changes to the database is a very bad idea. Fix the problems, don’t tamper with the whole system.
  • You have to decide if your aim is to have predictable execution plans or to let execution plans evolve over time. Either choice comes with issues. To make plans predictable, use SQL Profiles, hints, check high/low values, avoid histograms and don’t be too quick to gather new stats. If you want plans to evolve, gather stats regularly and accept that plans will change over time. Identify poorly performing SQL when it arises and figure out why it is going wrong.
  • Tune 3rd party apps, and Oracle Apps the way the vendor recommends, even if it doesn’t make sense to you. Some applications are quite fussy and doing what you think is correct may be the wrong move.
  • Your aim should be to spread I/O evenly across all disks. ASM will do this for you.
  • In Oracle 11g, you should gather statistics with the auto sample size, unless you know of a specific reason not to. Don’t make random decisions on sample size.
  • The team always use 8K block sizes because that’s what the majority of the database testing is done against and what the majority of people use.
  • Partitioning: Global stats tend to give predictable execution plans, but that’s not always a good thing. Partition stats give a more accurate picture, but won’t always result in predictable execution plans. You have to decide which you want.
  • High/low values are important stats. Don’t default to extreme values that make high/low values unrepresentative as this affects the optimizer.

There’s a lot of information in the slides, so check them out when they come online. The main message is you should be methodical and consistent. Nothing new in that. 🙂

Oracle’s New Database Accelerator: Query Processing Revolutionized
Oracle’s New Database Accelerator: A Technical Overview

These two sessions were renamed to include the Exadata name. I didn’t record the new names, but I guess that will be obvious when you see the list of presentations.

Take-home messages:

  • The exadata storage server is also known as a storage cell.
  • You can buy the storage cells on their own and use them to build your own database system, or buy the preconfigured database machine.
  • The system is only supported on Linux at the moment, but other platforms will follow. I assume this means databases on other platforms plugging into the same Linux storage appliances.
  • The storage cells are single purpose. They are for holding database files only. If you want a shared filesystem for any other file types you need to use something else. So you guys who want to use it to store MP3s and pr0n better store it in BLOBs in the database. 🙂
  • The iDB protocol (like iSCSI) presents storage to ASM. No OS config (LUNs mount points) is necessary. At its simplest, you can consider each storage cell as a single disk when viewed from ASM.
  • Storage cells don’t talk to each other, only to the database. The cells are aware of the database state and the database knows about the cells because of ASM.
  • Multiple databases can use the same storage cell.
  • The storage is presented to the database as shared-everything, but it has elements of shared-nothing architecture. Because the presentation to the database is unchanged, it is suitable for use with any existing application without change.
  • There is an EM plugin and several tools, but for the most part it needs no management. It is essentially a storage appliance (their words), but it can do some clever stuff.
  • Because of the presentation of storage cells to ASM, adding new storage cells is like adding disks. It triggers an ASM rebalance.
  • Normal ASM mirroring (2 or 3-way) is present, but it makes sure it mirrors to different cells, not just different disks in a cell, so it can tolerate a disk or a cell failure.
  • The storage cells should not need a software upgrade to work with new versions of Oracle, but if new offload features require changes, you may be restricting the offload functionality by not upgrading the cell server software. This was likended to the ASM compatibility modes in 11g.
  • Resource management information is passed from the database to the storage cells so I/O is prioritized to match the database resource management.
  • When you offload processing to the storage cell, only the relevant column information is returned. As a result, this won’t be stored in the buffer cache, but it is possible to cache it in the SQL result cache.
  • Up to 6 of the prebuilt database machines can fit together by just cabling them. You only need to worry about extra infiniband switches if you want more than 6. I can see this being a big problem for me… Not! 🙂
  • It is designed for intensive query work, like warehouses. The performance of insert, update and delete operations is just like any other block storage device. That’s what the guy said, but I guess it was a glib statement. I would assume it is still faster than most storage devices due to the wicked network bandwidth.

This list represents many of the points made in the two talks, but I’ve started to read some of the stuff on Kevin Closson‘s blog, and the related links and it’s making me a bit nervous about my random ramblings. I’m going to leave this list here to remind me of what I heard, but you really need to check out the white papers.

There were some neat slides explaining the cell server software and the way the project evolved.

The biggest surprise to me was how few people were actually at these sessions. I blogged previously to say I was underwhelmed by the announcement, but I was still curious. It seems not many other people were. 🙁

After hearing a bit more about the kit I can see why some people are really excited by it. It is very clever, but I still think it is pretty irrelevant to grunt DBA/Developers like me. Of course, I reserve the right to get excited by it at a later date and back track on all my cynical rantings. When they are in the bargain section at PC World I will race to the shop to buy one, but until then I guess I’ll be stuck with crappy old disks. 🙂

Oracle ACE Director Birds-of-a-Feather Tips and Techniques Panel

This was my only real job at OpenWorld and I was pretty nervous going in to it. When you present a formal session you are talking about a specific area and you have an idea of what questions might come up. Sitting on a panel without access to Google and no time to compose your thoughts is a whole different ball game. Luckily the verbal diahorea gene that runs in my family was expressed in full effect and I managed to do more than my fair share of talking. Thanks to Lewis for setting this up. Thanks to the other guys on the panel for answering the questions that would have stumped this chump. Most of all thanks to the attendees for turning up and asking questions. I hope you got something out of it. 🙂

I think I’ll let the events of the last few days sink in, then write a summing up post tomorrow.

Cheers

Tim…