May 172013
 
insert into joyous_memories
  select making_vast_improvements
  from   that_horrible_query
  union  all
  select designing_data_models
  from   scalable_applications
  union  all
  select heart_warming_smile
  from   your_newborn_child;

While there can be a lot of effort put in before getting these outcomes, the reward is worth it! :)
Apr 052013
 
declare
  process_response_time number := 10;
  response_time_sla     number;
begin
  <<tuning>>
  loop
    process_response_time := 
      improved_execution_time ();
    exit when 
      process_response_time < 
        response_time_sla;
  end loop;
end;
/

It's far too easy to get stuck in a loop incrementally improving SQL runtimes when there's no defined SLA to hit.
In my experience these aren't normally set, leading to many a happy hour reading SQL traces!
Mar 292013
 
select 'Enjoy your ' ||
       substr(tzname, instr(tzname, '/')+1) ||
       ' ' || substr(text, 8, 3) || 's!' 
         as "Season's Greetings"
from   v$timezone_names, all_source
where  tzabbrev = 'EASST'
and    tzname like 'Pacific%'
and    name = 'DBMS_REPCAT'
and    line = 306;

Season's Greetings
-----------------------
Enjoy your Easter eggs!  

I hope you have a great Easter, don't eat too many Easter eggs and thanks for following :)
Results above obtained on 11.2.0.2; other versions may vary!