21 March, 2007

Backups and Recoveries, SANs and Clones, and Murphy

Here's an excellent writeup on Backups and Recoveries, SANs and Clones, Murphy and s*t hitting the f*
Even if you are not a DBA do read the article in it's entirety.
http://www.dizwell.com/prod/node/628
(article entited "The Only Issue" dizwell's blog.)
UPDATE : The blog post is no longer available.

a) Change Control by DBAs (use scripts and logs, not command-line and how I hate GUI point-and-click !)
b) Test your backup and recovery
c) Don't "assume"
d) Murphy will be Murphy ! -- really, truly everything that can go wrong does go wrong -- read the whole article !

20 March, 2007

Optimizer Index Cost Parameters

Frequently, I come across postings rejoicing about the benefits of OPTIMIZER_INDEX_COST_ADJ and OPTIMIZER_INDEX_CACHING. However, in a recent response, Tom Kyte seems to be either a) Unimpressed b) Wanting to "put down" these parameters. Rather than making it clear that a performance benefit MAY arise IF the execution plan actually changes because of "tuning" these parameters, he just seems to say "ho hum .. the optimizer will perceive a difference in COST". He keeps repeating that COST would differ (and, I agree, that is why COST isn't always a reliable indicator of expected response time). But he forgets to mention that Performance also _may_ differ. However, he _does_ quote from his book "..I've seen systems go from nonfunctional to blazingly fast simply by adjusting these two knobs." which point isn't emphasised through the rest of his posting.
Am I saying that we should always try to tune these parameters ? No. Although I have used these parameter a few times with noticeable improvement in query response time, they don't always provide "faster" performance. Just to say, that when all other tuning is failing, these parameters are worth considering.

14 March, 2007

Understanding "Timed Events" in a StatsPack Report

Jonathan Lewis writes about the miscalculations [misinterpretations] you might make when reading the "Top 5 Timed Events" [or "Top 5 Wait Events"] section of a StatsPack report in this article.